d4d1c48036f17702ea57d5f96ac79a1692ac7179
[gcc.git] / gcc / ChangeLog
1 2011-07-05 Jakub Jelinek <jakub@redhat.com>
2
3 PR tree-optimization/49618
4 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
5 t recurse on the decl.
6 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
7 return true if expr isn't known to be defined in current
8 TU or some other LTO partition.
9
10 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
11
12 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
13 override CASE_VALUES_THRESHOLD.
14
15 * stmt.c (toplevel): Include params.h.
16 (case_values_threshold): Use the --param case-values-threshold
17 value if non-zero, otherwise use machine dependent value.
18 (expand_case): Use case_values_threshold.
19
20 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
21
22 * doc/invoke.texi (--param case-values-threshold): Document.
23
24 2011-07-05 Richard Henderson <rth@redhat.com>
25
26 * dwarf2out.c (dwarf2out_cfi_label): Make static.
27 (dwarf2out_flush_queued_reg_saves): Make static.
28 (dwarf2out_reg_save): Remove.
29 (dwarf2out_return_save): Remove.
30 (dwarf2out_return_reg): Remove.
31 (dwarf2out_reg_save_reg): Remove.
32 (dwarf2out_def_cfa): Merge into ...
33 (dwarf2out_frame_init): ... here.
34 * dwarf2out.h, tree.h: Remove declarations as necessary.
35
36 2011-07-05 Richard Henderson <rth@redhat.com>
37
38 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
39 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
40 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
41 the alloc insn.
42
43 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
44 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
45 (process_epilogue): Don't call dwarf2out_def_cfa.
46
47 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
48 indicate the return address save.
49 (process_cfa_register): Likewise.
50
51 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
52 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
53
54 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
55 for ar.pfs save at alloc insn.
56
57 2011-07-05 Richard Henderson <rth@redhat.com>
58
59 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
60 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
61 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
62 stack pointer save.
63 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
64 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
65 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
66 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
67
68 2011-07-05 Richard Henderson <rth@redhat.com>
69
70 * config/vax/vax.md (define_c_enum unspecv): New. Define the
71 VUNSPEC_* constants here instead of via define_constants.
72 (VUNSPEC_PEM): New constant.
73 (procedure_entry_mask): New insn.
74 (prologue): New expander.
75 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
76 (vax_expand_prologue): Rename from vax_output_function_prologue;
77 emit rtl instead of text.
78 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
79 (print_operand): Add 'x' prefix.
80
81 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
82
83 PR middle-end/47715
84 * calls.c (precompute_register_parameters): Promote the function
85 argument before checking non-legitimate constant.
86
87 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
88
89 PR tree-optimization/47654
90 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
91 (lst_do_strip_mine_loop): Return an int.
92 (lst_do_strip_mine): Same.
93 (scop_do_strip_mine): Same.
94 (scop_do_block): Loop blocking should strip-mine at least two loops.
95 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
96 (scop_do_interchange): Same.
97 * graphite-poly.h (scop_do_interchange): Update declaration.
98 (scop_do_strip_mine): Same.
99
100 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
101
102 * graphite-clast-to-gimple.c (precision_for_value): Removed.
103 (precision_for_interval): Removed.
104 (gcc_type_for_interval): Use mpz_sizeinbase.
105
106 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
107
108 * graphite-ppl.h (value_max): Correct computation of max.
109
110 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
111
112 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
113
114 2011-07-05 Richard Guenther <rguenther@suse.de>
115
116 * c-decl.c (c_init_decl_processing): Defer building common
117 tree nodes to c_common_nodes_and_builtins.
118
119 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
120
121 PR tree-optimization/49580
122 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
123 the loop's number of iterations.
124 * tree-parloops.c (transform_to_exit_first_loop): Add the
125 handling of the loop's number of iterations before the call
126 to gimple_duplicate_sese_tail.
127 Insert the stmt caclculating the new rhs of the loop's
128 condition stmt to the preheader instead of iters_bb.
129
130 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
131
132 PR rtl-optimization/47449
133 * fwprop.c (forward_propagate_subreg): Don't propagate hard
134 register nor zero/sign extended hard register.
135
136 2011-07-05 Richard Guenther <rguenther@suse.de>
137
138 PR tree-optimization/49518
139 PR tree-optimization/49628
140 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
141 irrelevant and invariant data-references.
142 (vect_analyze_data_ref_access): For invariant loads clear the
143 group association.
144
145 2011-07-04 Jakub Jelinek <jakub@redhat.com>
146
147 PR rtl-optimization/49619
148 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
149 pass VOIDmode as op0_mode to recursive call, and return temp even
150 when different from tor, just if it is not IOR of the original
151 PLUS arguments.
152
153 PR rtl-optimization/49472
154 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
155 negating MULT, negate the second operand instead of first.
156 (simplify_binary_operation_1) <case MULT>: If one operand is
157 a NEG and the other is MULT, don't attempt to optimize by
158 negation of the MULT operand if it only moves the NEG operation
159 around.
160
161 PR debug/49602
162 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
163 get_current_def return value if it can't be trusted to be
164 the current value of the variable in the current bb.
165
166 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
167
168 PR target/49600
169 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
170 general register to memory for !TARGET_INTER_UNIT_MOVES.
171
172 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
173
174 PR target/44643
175 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
176 instead of TREE_READONLY.
177
178 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
179
180 * doc/extend.texi (AVR Built-in Functions): Update documentation
181 of __builtin_avr_fmul*.
182 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
183 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
184 * config/avr/avr.md (fmul): Rename to fmul_insn.
185 (fmuls): Rename to fmuls_insn.
186 (fmulsu): Rename to fmulsu_insn.
187 (fmul,fmuls,fmulsu): New expander.
188 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
189 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
190 * config/avr/libgcc.S (__fmul): New function.
191 (__fmuls): New function.
192 (__fmulsu,__fmulsu_exit): New function.
193
194 2011-07-04 Richard Guenther <rguenther@suse.de>
195
196 PR tree-optimization/49615
197 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
198 basic-block index check.
199
200 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
201
202 * longlong.h (count_leading_zeros, count_trailing_zeros,
203 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
204 resp. 64.
205
206 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
207
208 PR tree-optimization/49610
209 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
210 a basic block.
211
212 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
213 Olivier Hainque <hainque@adacore.com>
214 Nicolas Setton <setton@adacore.com>
215
216 * tree.h (TYPE_ARTIFICIAL): New flag.
217 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
218 the DIE of the type if it is artificial.
219 (gen_array_type_die): Likewise.
220 (gen_enumeration_type_die): Likewise.
221 (gen_struct_or_union_type_die): Likewise.
222 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
223 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
224
225 2011-07-01 Jakub Jelinek <jakub@redhat.com>
226
227 * tree-object-size.c (pass_through_call): Handle
228 BUILT_IN_ASSUME_ALIGNED.
229
230 2011-07-01 Martin Jambor <mjambor@suse.cz>
231
232 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
233
234 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
235
236 PR middle-end/48016
237 * explow.c (update_nonlocal_goto_save_area): Use proper mode
238 for stack save area.
239 * function.c (expand_function_start): Likewise.
240
241 2011-07-01 Richard Guenther <rguenther@suse.de>
242
243 PR middle-end/49596
244 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
245 may have unknown refs.
246
247 2011-07-01 Kai Tietz <ktietz@redhat.com>
248
249 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
250
251 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
252
253 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
254 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
255 (Specific, mips-sgi-irix6): Likewise.
256
257 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
258
259 PR libmudflap/49549
260 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
261
262 2011-07-01 Jakub Jelinek <jakub@redhat.com>
263
264 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
265 [idx]= and [idx1 ... idx2]= before initializers if needed for
266 array initializers.
267
268 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
269
270 * config.gcc (score-*-elf): Remove score7.o.
271 * config/score/t-score-elf: Likewise.
272 * config/score/score.c: Merge score7 to score.c and
273 remove forwarding functions.
274 * config/score/score7.c: Deleted.
275 * config/score/score7.h: Deleted.
276
277 2011-07-01 Richard Guenther <rguenther@suse.de>
278
279 PR tree-optimization/49603
280 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
281
282 2011-06-30 Martin Jambor <mjambor@suse.cz>
283
284 * tree-sra.c (struct access): Rename total_scalarization to
285 grp_total_scalarization
286 (completely_scalarize_var): New function.
287 (sort_and_splice_var_accesses): Set total_scalarization in the
288 representative access.
289 (analyze_access_subtree): Propagate total scalarization accross the
290 tree, no holes in totally scalarized trees, simplify coverage
291 computation.
292 (analyze_all_variable_accesses): Call completely_scalarize_var instead
293 of completely_scalarize_record.
294
295 2011-06-30 Richard Henderson <rth@redhat.com>
296
297 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
298 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
299 * config/i386/i386.c: Don't include dwarf2out.h.
300 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
301 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
302 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
303 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
304 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
305
306 2011-06-30 Richard Henderson <rth@redhat.com>
307
308 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
309 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
310 * final.c (final_scan_insn): Look for it, and invoke
311 dwarf2out_frame_debug before the insn if found.
312
313 2011-06-30 Richard Henderson <rth@redhat.com>
314
315 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
316 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
317
318 2011-06-30 Richard Henderson <rth@redhat.com>
319
320 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
321 Define a vector of this type.
322 (regs_saved_in_regs): Use a VEC.
323 (num_regs_saved_in_regs): Remove.
324 (compare_reg_or_pc): New.
325 (record_reg_saved_in_reg): Split out from...
326 (dwarf2out_flush_queued_reg_saves): ... here.
327 (clobbers_queued_reg_save): Update for VEC.
328 (reg_saved_in): Likewise.
329 (dwarf2out_frame_debug_init): Likewise.
330 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
331 (dwarf2out_frame_debug_cfa_register): Likewise.
332
333 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
334
335 PR tree-optimization/49572
336 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
337 type of the RHS instead of that of the LHS for the expression type.
338
339 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
340
341 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
342 unconditionally.
343
344 2011-06-30 Richard Guenther <rguenther@suse.de>
345
346 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
347 * tree-ssa-structalias.c (create_variable_info_for): Do not
348 add initial constraints for non-var-decls. Properly handle
349 globals in other ltrans partitions.
350 (intra_create_variable_infos): Manually create constraints for
351 the fake no-alias parameter.
352 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
353 and assert there are no clones.
354
355 2011-06-30 Richard Guenther <rguenther@suse.de>
356
357 PR tree-optimization/46787
358 * tree-data-ref.c (dr_address_invariant_p): Remove.
359 (find_data_references_in_stmt): Invariant accesses are ok now.
360 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
361 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
362 invariant loads.
363
364 2011-06-30 Martin Jambor <mjambor@suse.cz>
365
366 PR tree-optimization/49094
367 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
368 (build_accesses_from_assign): Use it.
369
370 2011-06-30 Jakub Jelinek <jakub@redhat.com>
371
372 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
373 handling of BUILT_IN_ASSUME_ALIGNED.
374
375 PR debug/49364
376 * dwarf2out.c (output_abbrev_section): Don't return early
377 if abbrev_die_table_in_use is 1.
378 (dwarf2out_finish): Instead don't call output_abbrev_section
379 nor emit abbrev_section_label in that case.
380
381 2011-06-30 Nick Clifton <nickc@redhat.com>
382
383 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
384 for the V850E.
385
386 2011-06-30 Jakub Jelinek <jakub@redhat.com>
387
388 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
389 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
390
391 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
392
393 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
394 both pattern and original statements if necessary.
395 (vect_transform_loop): Likewise.
396 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
397 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
398 Mark the pattern statement only if the original statement doesn't
399 have its own uses.
400 (process_use): Call vect_mark_relevant with additional parameter.
401 (vect_mark_stmts_to_be_vectorized): Likewise.
402 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
403 (vect_analyze_stmt): Handle both pattern and original statements
404 if necessary.
405 (vect_transform_stmt): Don't store vectorized pattern statement
406 in the original statement.
407 (vect_is_simple_use_1): Use related pattern statement only if the
408 original statement is irrelevant.
409 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
410
411 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
412
413 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
414 option.
415 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
416 entry.
417 (TARGET_AVX128_OPTIMAL): New definition.
418 * config/i386/i386.c (initial_ix86_tune_features): Initialize
419 X86_TUNE_AVX128_OPTIMAL entry.
420 (ix86_option_override_internal): Enable the generation
421 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
422 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
423 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
424
425 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
426
427 PR tree-optimization/49539
428 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
429 names by means of stmt_references_abnormal_ssa_name.
430 (associate_plusminus): Call can_propagate_from before propagating
431 from definition statements.
432 (ssa_forward_propagate_and_combine): Remove superfluous newline.
433
434 2011-06-29 Richard Guenther <rguenther@suse.de>
435
436 * doc/invoke.texi: Document -scev dump modifier.
437 * tree-pass.h (TDF_SCEV): New dump flag.
438 * tree-dump.c (dump_option_value_in): Add scev.
439 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
440 * tree-scalar-evolution.c: Likewise.
441
442 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
443
444 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
445 (cxa_type_match): Correct declaration.
446 (__gnu_unwind_pr_common): Reconstruct additional indirection
447 when __cxa_type_match returns succeeded_with_ptr_to_base.
448
449 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
450
451 PR rtl-optimization/49114
452 * reload.c (struct replacement): Remove SUBREG_LOC member.
453 (push_reload): Do not set it.
454 (push_replacement): Likewise.
455 (subst_reload): Remove dead code.
456 (copy_replacements): Remove assertion.
457 (copy_replacements_1): Do not handle SUBREG_LOC.
458 (move_replacements): Likewise.
459 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
460 Detect subregs via recursive descent instead of via SUBREG_LOC.
461
462 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
463
464 * config/avr/avr.c (avr_encode_section_info): Dispatch to
465 default_encode_section_info.
466
467 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
468
469 PR tree-optimization/49545
470 * builtins.c (get_object_alignment_1): Update function comment.
471 Do not use DECL_ALIGN for functions, but test
472 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
473 * fold-const.c (get_pointer_modulus_and_residue): Don't check
474 for functions here.
475 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
476
477 2011-06-29 Jakub Jelinek <jakub@redhat.com>
478
479 PR debug/49567
480 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
481 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
482
483 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
484
485 PR target/34734
486 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
487 about uninitialized data attributed 'progmem' from here...
488 (avr_encode_section_info): ...to this new function.
489 (TARGET_ENCODE_SECTION_INFO): New define.
490 (avr_section_type_flags): For data in ".progmem.data", remove
491 section flag SECTION_WRITE.
492
493 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
494
495 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
496 _xmulhisi3_exit.
497 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
498 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
499 (__umulhisi3): Ditto.
500 * config/avr/avr.md (mulhisi3): New insn expender.
501 (umulhisi3): New insn expender.
502 (*mulhisi3_call): New insn.
503 (*umulhisi3_call): New insn.
504
505 2011-06-28 Joseph Myers <joseph@codesourcery.com>
506
507 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
508
509 2011-06-28 Richard Henderson <rth@redhat.com>
510
511 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
512 all code and arguments that handled pushes. Update all callers.
513
514 2011-06-28 Richard Henderson <rth@redhat.com>
515
516 * config/arm/arm.c (arm_output_function_prologue): Don't call
517 thumb1_output_function_prologue.
518 (arm_expand_prologue): Avoid dead store.
519 (number_of_first_bit_set): Use ctz_hwi.
520 (thumb1_emit_multi_reg_push): New.
521 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
522 to emit the entire prologue as rtl.
523 (thumb1_output_interwork): Split out from
524 thumb1_output_function_prologue.
525 (thumb1_output_function_prologue): Remove.
526 (arm_attr_length_push_multi): Handle thumb1.
527 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
528 (prologue_thumb1_interwork): New.
529 (*push_multi): Allow thumb1; use push_mult_memory_operand.
530 * config/arm/predicates.md (push_mult_memory_operand): New.
531
532 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
533
534 * config/sparc/sync.md (*stbar): Delete.
535 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
536
537 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
538
539 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
540
541 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
542
543 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
544 (TARGET_64BIT_DEFAULT): Define.
545 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
546 of tm_file.
547 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
548
549 2011-06-28 Joseph Myers <joseph@codesourcery.com>
550
551 * common.opt (in_lto_p): New Variable entry.
552 * flags.h (in_lto_p): Move to common.opt.
553 * gcc.c: Include params.h.
554 (set_option_handlers): Also use common_handle_option and
555 target_handle_option.
556 (main): Call global_init_params, finish_params and init_options_struct.
557 * opts.c (debug_type_names): Move from toplev.c.
558 (print_filtered_help): Access quiet_flag through opts pointer.
559 (common_handle_option): Return early in the driver for some options.
560 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
561 opts pointer.
562 * toplev.c (in_lto_p): Move to common.opt.
563 (debug_type_names): Move to opts.c.
564 * Makefile.in (OBJS): Remove opts.o.
565 (OBJS-libcommon-target): Add opts.o.
566 (gcc.o): Update dependencies.
567
568 2011-06-28 Kai Tietz <ktietz@redhat.com>
569
570 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
571
572 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
573
574 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
575 with '=' constraint modifier.
576 (*divdf3_vfp): Likewise.
577 ("*mulsf3_vfp"): Likewise.
578 ("*muldf3_vfp"): Likewise.
579 ("*mulsf3negsf_vfp"): Likewise.
580 ("*muldf3negdf_vfp"): Likewise.
581
582 2011-06-28 Nick Clifton <nickc@redhat.com>
583
584 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
585 relaxation when performing an incremental link.
586
587 2011-06-28 Kai Tietz <ktietz@redhat.com>
588
589 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
590 within BB from last to first.
591
592 2011-06-28 Joseph Myers <joseph@codesourcery.com>
593
594 * genattr-common.c: New. Based on genattr.c.
595 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
596 (MOSTLYCLEANFILES): Add insn-attr-common.h.
597 (opts.o): Update dependencies.
598 (.PRECIOUS): Add insn-attr-common.h.
599 (simple_rtl_generated_h): Add insn-attr-common.h.
600 (build/genattr-common.o): New.
601 (genprogrtl): Add attr-common.
602 * genattr.c (main): Include insn-attr-common.h. Don't generate
603 definitions of DELAY_SLOTS or INSN_SCHEDULING.
604 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
605
606 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
607
608 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
609 avr-*-* and avr-*-rtems* targets.
610
611 * config/avr/elf.h: New file.
612 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
613 (TARGET_ASM_SELECT_SECTION): Define.
614 (INIT_SECTION_ASM_OP): Undefine.
615 (FINI_SECTION_ASM_OP): Undefine.
616 (READONLY_DATA_SECTION_ASM_OP): Undefine.
617 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
618 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
619 * config/avr/avr.h:
620 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
621 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
622 (MAX_OFILE_ALIGNMENT): Move to elf.h.
623 (STRING_LIMIT): Move to elf.h.
624 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
625 (ASM_DECLARE_OBJECT_NAME): Remove.
626 (ESCAPES): Remove.
627 (ASM_OUTPUT_SKIP): Remove.
628 (DWARF2_DEBUGGING_INFO): Remove.
629 (OBJECT_FORMAT_ELF): Remove.
630 (USER_LABEL_PREFIX): Remove.
631 (ASM_OUTPUT_EXTERNAL): Remove.
632 (ASM_OUTPUT_ASCII): Remove.
633 (TYPE_ASM_OP): Remove.
634 (SIZE_ASM_OP): Remove.
635 (WEAK_ASM_OP): Remove.
636 (STRING_ASM_OP): Remove.
637 (SET_ASM_OP): Remove.
638 (ASM_WEAKEN_LABEL): Remove.
639 (TYPE_OPERAND_FMT): Remove.
640 (ASM_DECLARE_FUNCTION_SIZE): Remove.
641 (ASM_FINISH_DECLARE_OBJECT): Remove.
642 (NO_DOLLAR_IN_LABEL): Remove.
643 (ASM_GENERATE_INTERNAL_LABEL): Remove.
644 (ASM_OUTPUT_CASE_LABEL): Remove.
645 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
646 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
647 (gas_output_ascii): Remove.
648 (gas_output_limited_string): Remove.
649 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
650 * config/avr/avr-protos.h
651 (gas_output_ascii): Remove prototye.
652 (gas_output_limited_string): Remove prototype.
653
654 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
655
656 PR target/48637
657 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
658 asm operands.
659
660 2011-06-27 Jan Hubicka <jh@suse.cz>
661
662 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
663 node instead of references in node.
664
665 2011-06-27 Richard Henderson <rth@redhat.com>
666
667 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
668 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
669 inside ifdef.
670
671 2011-06-27 Jakub Jelinek <jakub@redhat.com>
672
673 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
674
675 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
676 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
677 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
678 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
679 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
680 (evaluate_stmt, execute_fold_all_builtins): Handle
681 BUILT_IN_ASSUME_ALIGNED.
682 * tree-ssa-dce.c (propagate_necessity): Likewise.
683 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
684 call_may_clobber_ref_p_1): Likewise.
685 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
686 (expand_builtin_assume_aligned): New function.
687 * doc/extend.texi (__builtin_assume_aligned): Document.
688
689 PR debug/49544
690 * cselib.c (promote_debug_loc): If cselib_preserve_constants
691 and l has two DEBUG_INSN owned locs instead of just one, adjust
692 the second location's setting_insn too.
693
694 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
695
696 PR libmudflap/38738
697 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
698
699 2011-06-27 Nick Clifton <nickc@redhat.com>
700
701 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
702 bit position of highest bit set into a count of the high zero bits.
703
704 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
705
706 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
707
708 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
709
710 PR lto/48492
711 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
712 to a NULL parent.
713
714 2011-06-27 Richard Guenther <rguenther@suse.de>
715
716 PR tree-optimization/49394
717 * passes.c (execute_one_pass): Restore current_pass after
718 applying IPA transforms.
719
720 2011-06-27 Kai Tietz <ktietz@redhat.com>
721
722 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
723 out of type precision after operation.
724 (find_bswap): Take for limit value the integer auto-promotion
725 into account.
726
727 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
728
729 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
730 forward scan as well.
731
732 2011-06-27 Tristan Gingold <gingold@adacore.com>
733
734 PR target/44241
735 * config/vms/vms-protos.h: New file.
736 * config/vms/vms-crtlmap.map: New file.
737 * config/vms/vms.c: New file.
738 * config/vms/make-crtlmap.awk: New file.
739 * config/vms/vms-crtl.h: File removed.
740 * config/vms/vms-crtl-64.h: File removed.
741 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
742 * config/alpha/vms64.h: Do not include vms-crtl-64.h
743 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
744 clear some builtins on VMS. Calls vms_patch_builtins.
745 (avms_asm_output_external): Remove.
746 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
747 (struct crtl_name_spec): Remove
748 (DO_CTRL_NAMES): Remove.
749 * config/ia64/vms.h (struct crtl_name_spec): Remove
750 (DO_CTRL_NAMES): Remove.
751 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
752 clear some builtins on VMS. Calls vms_patch_builtins.
753 (ia64_asm_output_external): Remove DO_CRTL_NAME.
754 * config/ia64/vms64.h: Do not include vms-crtl-64.h
755 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
756
757 2011-06-27 Tristan Gingold <gingold@adacore.com>
758
759 * config/alpha/alpha.c (alpha_end_function): Always generate .end
760 directive on VMS.
761
762 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
763
764 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
765 the function receives nonlocal gotos.
766
767 2011-06-27 Richard Guenther <rguenther@suse.de>
768
769 PR tree-optimization/49536
770 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
771 For non-scalar inner types use a scalar type according to
772 the scalar inner mode.
773
774 2011-06-27 Richard Guenther <rguenther@suse.de>
775
776 PR tree-optimization/49365
777 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
778
779 2011-06-27 Richard Guenther <rguenther@suse.de>
780
781 PR tree-optimization/49169
782 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
783 the alignment of function decls.
784
785 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
786
787 PR target/47997
788 * config/darwin.c (darwin_mergeable_string_section): Place string
789 constants in '.cstring' rather than '.const' when CF/NSStrings are
790 active.
791
792 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
793
794 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
795 (emit_save_register_window): Likewise.
796 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
797 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
798 Swap back %o7/%i7 in register naming.
799
800 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
801
802 PR driver/49371
803 * config/darwin.c (darwin_override_options): Improve warning when
804 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
805 is given with fpie/fPIE.
806 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
807 * config/darwin9.h (PIE_SPEC): New.
808
809 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
810
811 * timevar.c (timevar_print): Increase width for display of timevar
812 name.
813
814 2011-06-24 Jakub Jelinek <jakub@redhat.com>
815
816 PR c++/46400
817 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
818 instead of TYPE_CHAIN for chain_next for types.
819
820 2011-06-24 Richard Henderson <rth@redhat.com>
821
822 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
823 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
824 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
825 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
826 (sparc_flat_expand_prologue): Emit individual instructions
827 instead of one of the above.
828
829 2011-06-24 Easwaran Raman <eraman@google.com>
830
831 PR rtl-optimization/49429
832 PR target/49454
833 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
834 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
835 used to copy y into x.
836 * calls.c (initialize_argument_information): Mark
837 an argument addressable if it is passed by invisible reference.
838 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
839 if it is passed by reference.
840
841 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
842
843 PR rtl-optimization/49504
844 * rtlanal.c (nonzero_bits1): Properly handle addition or
845 subtraction of a pointer in Pmode if pointers extend unsigned.
846 (num_sign_bit_copies1): Likewise.
847
848 2011-06-24 Martin Jambor <mjambor@suse.cz>
849
850 PR tree-optimizations/49516
851 * tree-sra.c (sra_modify_assign): Choose the safe path for
852 aggregate copies if we also did scalar replacements.
853
854 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
855
856 PR target/49335
857 * config/arm/predicates.md (add_operator): New.
858 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
859
860 2011-06-24 Andi Kleen <ak@linux.intel.com>
861
862 * tree-sra.c (type_internals_preclude_sra_p): Add msg
863 parameter. Split up ifs and report reason in *msg.
864 (reject): Add.
865 (find_var_candiate): Add msg variable.
866 Split up ifs and report reason to reject.
867 (find_param_candidates): Add msg variable.
868 Pass msg to type_internals_preclude_sra_p.
869
870 2011-06-23 Jeff Law <law@redhat.com>
871
872 PR middle-end/48770
873 * reload.h (reload): Change to return a bool.
874 * ira.c (ira): If requested by reload, run a fast DCE pass after
875 reload has completed. Fix comment typo.
876 * reload1.c (need_dce): New file scoped static.
877 (reload): Set reload_completed here. Return whether or not a DCE
878 pass after reload is needed.
879 (delete_dead_insn): Set need_dce as needed.
880
881 PR middle-end/49465
882 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
883 to detect threading through joiner block. If there was already
884 an edge to the new target, then do not change the PHI nodes.
885
886 2011-06-23 Jakub Jelinek <jakub@redhat.com>
887
888 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
889 get_pointer_alignment to see if base isn't sufficiently aligned.
890
891 2011-06-23 Jan Hubicka <jh@suse.cz>
892
893 PR tree-optimize/49373
894 * tree-pass.h (all_late_ipa_passes): Declare.
895 * cgraphunit.c (init_lowered_empty_function): Fix properties.
896 (cgraph_optimize): Execute late passes; remove unreachable funcions
897 after materialization.
898 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
899 LTOing.
900 * passes.c (all_late_ipa_passes): Declare.
901 (dump_passes, register_pass): Handle late ipa passes.
902 (init_optimization_passes): Move ipa_pta to late passes; schedule
903 fixup_cfg at beggining of all_passes.
904 (apply_ipa_transforms): New function.
905 (execute_one_pass): When doing simple ipa pass, apply all transforms.
906
907 2011-06-23 Joseph Myers <joseph@codesourcery.com>
908
909 * params.c: Include common/common-target.h. Don't include tm.h.
910 (lang_independent_params): Move from toplev.c.
911 (global_init_params): New.
912 * params.h (global_init_params): Declare.
913 * target.def (default_params): Move to common-target.def.
914 * toplev.c (lang_independent_options): Remove.
915 (lang_independent_params): Move to params.c.
916 (general_init): Use global_init_params.
917 * common/common-target.def (option_default_params): Move from
918 target.def.
919 * common/config/ia64/ia64-common.c: Include params.h.
920 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
921 from ia64.c.
922 * common/config/rs6000/rs6000-common.c: Include params.h.
923 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
924 from rs6000.c.
925 * common/config/sh/sh-common.c: Include params.h.
926 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
927 from sh.c.
928 * common/config/spu/spu-common.c: Include params.h.
929 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
930 from spu.c.
931 * config/ia64/ia64.c (ia64_option_default_params,
932 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
933 * config/rs6000/rs6000.c (rs6000_option_default_params,
934 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
935 * config/sh/sh.c (sh_option_default_params,
936 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
937 * config/spu/spu.c (spu_option_default_params,
938 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
939 * Makefile.in (OBJS): Remove params.o.
940 (OBJS-libcommon-target): Add params.o.
941 (params.o, $(common_out_object_file)): Update dependencies.
942 * doc/tm.texi: Regenerate.
943
944 2011-06-23 Alan Modra <amodra@gmail.com>
945
946 PR bootstrap/49383
947 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
948 invocation for 2011-06-09 changes.
949
950 2011-06-22 Jakub Jelinek <jakub@redhat.com>
951
952 PR libgomp/49490
953 * omp-low.c (expand_omp_for_static_nochunk): Only
954 use n ceil/ nthreads size for the first n % nthreads threads in the
955 team instead of all threads except for the last few ones which
956 get less work or none at all.
957
958 PR debug/49496
959 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
960 uses.
961
962 2011-06-22 Richard Guenther <rguenther@suse.de>
963
964 PR tree-optimization/49493
965 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
966 Refer to the alias target of variables.
967 (associate_varinfo_to_alias_1): Remove.
968 (ipa_pta_execute): Do not associate aliases with anything.
969 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
970 (cgraph_function_node): Likewise.
971 (cgraph_function_or_thunk_node): Likewise.
972 (varpool_variable_node): Likewise.
973
974 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
975
976 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
977 * config.gcc (arm*-*-linux*): Default to gnu tls.
978 (arm*-*-*): Add --with-tls option.
979 (all_defaults): Add 'tls'.
980
981 2011-06-22 Richard Henderson <rth@redhat.com>
982
983 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
984 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
985 (dwarf2out_frame_debug_cfa_window_save): Rename from
986 dwarf2out_window_save; make static.
987 * tree.h (dwarf2out_window_save): Don't declare.
988
989 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
990 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
991 (emit_save_register_window): Rename from gen_save_register_window;
992 emit the insn and add REG_CFA_* notes.
993 (sparc_expand_prologue): Update to match.
994 * config/sparc/sparc.md (save_register_window_1): Simplify from
995 save_register_window<P:mode>.
996
997 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
998
999 PR target/49497
1000 * config/i386/i386.md (*lea_general_2): Always allow SImode.
1001 (*lea_general_2_zext): Likewise.
1002 (imul to lea peepholes): Use const359_operand and check
1003 TARGET_PARTIAL_REG_STALL.
1004
1005 * config/i386/predicates.md (const359_operand): New.
1006
1007 2011-06-22 Michael Matz <matz@suse.de>
1008
1009 * cgraphunit.c (assemble_thunk): Use correct return type.
1010
1011 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
1012 Dmitry Melnik <dm@ispras.ru>
1013
1014 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
1015 (neon_output_shift_immediate): Ditto.
1016 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
1017 prototype.
1018 (neon_output_shift_immediate): Ditto.
1019 * config/arm/neon.md (vashl<mode>3): Modified constraint.
1020 (vashr<mode>3_imm): New insn pattern.
1021 (vlshr<mode>3_imm): Ditto.
1022 (vashr<mode>3): Modified constraint.
1023 (vlshr<mode>3): Ditto.
1024 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
1025 predicate.
1026 (imm_for_neon_rshift_operand): Ditto.
1027 (imm_lshift_or_reg_neon): Ditto.
1028 (imm_rshift_or_reg_neon): Ditto.
1029
1030 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
1031
1032 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1033
1034 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
1035 builtin calls even if likelyvalue is not CONSTANT.
1036 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
1037 Return get_value_for_expr of first operand
1038 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
1039 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1040 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
1041 their non-checking counterparts.
1042 (call_may_clobber_ref_p_1): Likewise.
1043 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
1044 like their non-checking counterparts.
1045 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1046 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
1047 like their non-checking counterparts.
1048 (find_func_clobbers): Likewise.
1049 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
1050 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
1051
1052 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
1053 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
1054 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
1055 of base type reference as argument.
1056 (resolve_addr_in_expr): Likewise. Fix keep computation.
1057 (convert_descriptor_to_signed): Renamed to...
1058 (convert_descriptor_to_mode): ... this. For wider types convert to
1059 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
1060 (typed_binop): New function.
1061 (scompare_loc_descriptor, ucompare_loc_descriptor,
1062 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
1063 default to unsigned type instead of signed.
1064
1065 PR debug/47858
1066 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
1067 (gimple_build_debug_source_bind_stat): New prototype.
1068 (gimple_build_debug_source_bind): Define.
1069 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
1070 gimple_debug_source_bind_get_value,
1071 gimple_debug_source_bind_get_value_ptr,
1072 gimple_debug_source_bind_set_var,
1073 gimple_debug_source_bind_set_value): New inlines.
1074 * gimple.c (gimple_build_debug_source_bind_stat): New function.
1075 * gimple-pretty-print.c (dump_gimple_debug): Handle
1076 GIMPLE_DEBUG_SOURCE_BIND.
1077 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
1078 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1079 * tree-parloops.c (eliminate_local_variables,
1080 separate_decls_in_region): Likewise.
1081 (separate_decls_in_region_debug): Renamed from
1082 separate_decls_in_region_debug_bind. Handle
1083 gimple_debug_source_bind_p.
1084 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
1085 prototypes.
1086 (DECL_HAS_DEBUG_ARGS_P): Define.
1087 (struct tree_function_decl): Add has_debug_args_flag field.
1088 * tree.c (debug_args_for_decl): New variable.
1089 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
1090 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
1091 (rewrite_debug_stmt_uses): New function.
1092 (rewrite_stmt): Use it to rewrite debug stmt uses.
1093 * rtl.def (DEBUG_PARAMETER_REF): New.
1094 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
1095 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
1096 DEBUG_PARAMETER_REF.
1097 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
1098 * print-rtl.c (print_rtx): Likewise.
1099 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
1100 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
1101 debug stmts in the first bb.
1102 * tree-inline.c (remap_ssa_name): If remapping default def
1103 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
1104 a source bind debug stmt.
1105 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
1106 (maybe_move_debug_stmts_to_successors): Likewise.
1107 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
1108 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
1109 debug args vector from old_decl to new_decl.
1110 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
1111 or modified parameters, add debug bind stmts before call
1112 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
1113 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
1114 on DECL_DEBUG_EXPRs from debug args vector.
1115 (expand_debug_source_expr): New function.
1116 (expand_debug_locations): Use it for source bind insns.
1117 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
1118 * var-tracking.c (prepare_call_arguments): Add debug args
1119 to call_arguments if any.
1120 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
1121 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
1122 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
1123 (get_ref_die_offset, parameter_ref_descriptor): New functions.
1124 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
1125 (gen_subprogram_die): Handle parameters identified by
1126 DEBUG_PARAMETER_REF.
1127
1128 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1129
1130 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
1131 * doc/install.texi (Configuration): Document --with-tls.
1132 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
1133 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
1134 (arm_tls_descseq_addr): New.
1135 (legitimize_tls_address): Add tlsdesc support.
1136 (arm_cannot_copy_insn_p): Check for tlscall.
1137 (arm_emit_tls_decoration): Likewise.
1138 * config/arm/arm.h (TARGET_GNU2_TLS): New.
1139 (OPTION_DEFAULT_SPECS): Add with-tls support.
1140 * config/arm/arm.md (R1_REGNUM): Define.
1141 (tlscall): New.
1142 * config/arm/arm.opt (tls_type): New enumeration type and values.
1143 (mtls-dialect): New switch.
1144 * config/arm/arm-opts.h (enum tls_type): New.
1145
1146 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
1147
1148 * attribs.c (register_attribute): Added assert to check that all
1149 attribute specs are registered with a name that is not empty and
1150 does not start with '_'.
1151 (decl_attributes): Avoid the lookup of the "naked" attribute spec
1152 if the function has no attributes.
1153 * tree.c (is_attribute_with_length_p): Removed.
1154 (is_attribute_p): Removed.
1155 (private_is_attribute_p): New.
1156 (private_lookup_attribute): New.
1157 (lookup_attribute): Removed.
1158 (lookup_ident_attribute): New.
1159 (remove_attribute): Require the first argument to be in the form
1160 'text', not '__text__'. Updated asserts.
1161 (merge_attributes): Use lookup_ident_attributes instead of
1162 lookup_attribute.
1163 (merge_dllimport_decl_attributes): Use remove_attribute.
1164 (attribute_list_contained): Likewise.
1165 (attribute_list_equal): Immediately return 1 if the arguments are
1166 identical pointers.
1167 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
1168 'int'. Require the first argument to be in the form 'text', not
1169 '__text__'. Require the second argument to be an identifier.
1170 (lookup_attribute): Made inline. Require the first argument to be
1171 in the form 'text', not '__text__'.
1172 (private_is_attribute_p, private_lookup_attribute): New.
1173 Updated comments.
1174
1175 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1176
1177 * builtins.c: Add sync_ or SYNC__ to builtin names.
1178 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
1179 * omp-low.c: Add sync_ or SYNC__ to builtin names.
1180
1181 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1182
1183 PR target/33049
1184 * config/avr/avr.md (extzv): New expander.
1185 (*extzv): New insn.
1186 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
1187 * config/avr/constraints.md (C04): New constraint.
1188 * doc/md.texi (Machine Constraints): Document it.
1189
1190 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1191
1192 PR middle-end/49489
1193 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
1194 unsignedp argument instead of 1 for clrsb_optab.
1195 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
1196 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
1197 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
1198 * optabs.c (widen_leading): Call widen_operand and expand_unop
1199 with 0 as unsignedp argument instead of 1 for clrsb_optab.
1200 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
1201
1202 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1203
1204 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
1205
1206 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
1207
1208 * gensupport.c (add_define_attr): New static function.
1209 (is_predicable): Allow multi-alternative lists for the "predicable"
1210 attribute.
1211 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1212 (process_one_cond_exec): Call alter_attrs_for_insn.
1213 * doc/md.texi (Defining Attributes): Mention some standard names.
1214 (Conditional Execution): Update documentation for "predicable".
1215
1216 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1217 __builtin_clrsbll): Document.
1218 * doc/rtl.texi (clrsb): New entry.
1219 * optabs.c (widen_leading): Renamed from widen_clz. New argument
1220 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
1221 (expand_unop): Handle clrsb_optab.
1222 (init_optabs): Initialize it.
1223 * optabs.h (enum optab_index): New entry OTI_clrsb.
1224 (clrsb_optab): Define.
1225 * genopinit.c (optabs): Add an entry for it.
1226 * builtins.c (expand_builtin): Handle clrsb builtin functions.
1227 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1228 BUILT_IN_CLRSBLL): New.
1229 * rtl.def (CLRSB): New code.
1230 * dwarf2out.c (mem_loc_descriptor): Handle it.
1231 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1232 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1233 and popcount.
1234 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1235 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1236 (__ctzDI2): Move declaration.
1237 * config/bfin/bfin.md (clrsbsi2): New expander.
1238 (signbitssi2): Use the CLRSB rtx.
1239 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
1240 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1241
1242 2011-06-21 Richard Guenther <rguenther@suse.de>
1243
1244 * ipa-inline-transform.c (inline_transform): Fix previous change.
1245
1246 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
1247
1248 PR tree-optimization/49478
1249 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1250 with constant operand.
1251
1252 2011-06-21 Richard Guenther <rguenther@suse.de>
1253
1254 * ipa-inline-transform.c (inline_transform): Fix typo.
1255
1256 2011-06-21 Richard Guenther <rguenther@suse.de>
1257
1258 PR tree-optimization/49483
1259 * tree-vect-stmts.c (vectorizable_assignment): Also handle
1260 VIEW_CONVERT_EXPR conversions.
1261
1262 2011-06-21 Joseph Myers <joseph@codesourcery.com>
1263
1264 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1265 * config/avr/avr-tables.opt: New file (generated).
1266 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1267 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1268 avr-mcus.def.
1269 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1270 (avr_option_override): Don't process -mmcu= argument here. Set
1271 avr_current_device using avr_mcu_index.
1272 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1273 * config/avr/avr.opt (mmcu=): Use Enum.
1274 * config/avr/t-avr (avr-devices.o): Update dependencies.
1275 ($(srcdir)/config/avr/avr-tables.opt): New.
1276 * target.def (help): Remove.
1277 * doc/tm.texi.in (TARGET_HELP): Remove.
1278 * doc/tm.texi: Regenerate.
1279 * opts.c: Don't include target.h.
1280 (common_handle_option): Don't call targetm.help.
1281 * system.h (TARGET_HELP): Poison.
1282 * Makefile.in (opts.o): Update dependencies.
1283
1284 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1285
1286 * config/usegld.h: New file.
1287 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1288 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
1289 (LIB_SPEC): Likewise. Search /lib.
1290 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1291 (RDYNAMIC_SPEC): Handle GNU ld.
1292 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1293 Define.
1294 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1295 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1296 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1297 (STACK_CHECK_STATIC_BUILTIN): Define.
1298 * config/sol2.opt (compat-bsd): Remove.
1299 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1300 * config/sol2-bi.h: New file.
1301 * config/sol2-gld.h: Remove.
1302 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1303 (NO_DBX_BNSYM_ENSYM): Remove.
1304 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1305 (STACK_CHECK_STATIC_BUILTIN): Remove.
1306 Test USE_GLD instead of TARGET_GNU_LD.
1307 * config/i386/sol2-10.h: Rename to ...
1308 * config/i386/sol2-bi.h .. this.
1309 (SUBTARGET_EXTRA_SPECS): Redefine.
1310 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1311 (MULTILIB_DEFAULTS): Remove.
1312 (DEFAULT_ARCH32_P): Define.
1313 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1314 (ARCH64_SUBDIR): Define.
1315 Test USE_GLD instead of TARGET_GNU_LD.
1316 (I386_EMULATION): Rename to ...
1317 (ARCH32_EMULATION): ... this.
1318 (X86_64_EMULATION): Rename to ...
1319 (ARCH64_EMULATION): ... this.
1320 (TARGET_LD_EMULATION): Remove.
1321 (LINK_ARCH_SPEC): Remove.
1322 * config/i386/sol2-gas.h: Remove.
1323 * config/i386/t-sol2-10: Rename to ...
1324 * config/i386/t-sol2-64: ... this.
1325 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1326 (AS_SPARC64_FLAG): Define.
1327 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1328 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1329 depending on TARGET_CPU_DEFAULT.
1330 (CPP_CPU_SPEC): Redefine.
1331 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1332 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1333 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1334 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1335 ASM_ARCH_DEFAULT_SPEC): Redefine.
1336 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1337 LINK_ARCH_DEFAULT_SPEC.
1338 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1339 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1340 (ARCH64_SUBDIR): Define.
1341 (LINK_ARCH64_SPEC): Redefine.
1342 (CC1_SPEC): Redefine.
1343 (OPTION_DEFAULT_SPECS): Redefine.
1344 (MULTILIB_DEFAULTS): Define.
1345 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1346 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1347 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1348 (NO_DBX_BNSYM_ENSYM): Remove.
1349 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1350 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1351 (TARGET_ASM_NAMED_SECTION): Likewise.
1352 (STACK_CHECK_STATIC_BUILTIN): Remove.
1353 * config/sparc/sol2-bi.h: Remove.
1354 * config/sparc/sol2-gas-bi.h: Remove.
1355 * config/sparc/sol2-gas.h: Remove.
1356 * config/sparc/sol2-gld-bi.h: Remove.
1357 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1358 common parts ...
1359 (*-*-solaris2*): ... here.
1360
1361 2011-06-21 Christian Bruel <christian.bruel@st.com>
1362
1363 PR other/43564
1364 * ipa-inline.c (can_inline_edge_p): Check
1365 !DECL_DISREGARD_INLINE_LIMITS.
1366
1367 2011-06-21 Christian Bruel <christian.bruel@st.com>
1368
1369 PR middle-end/49139
1370 * cgraphunit.c (process_function_and_variable_attributes): warn when
1371 always_inline functions that are not inline.
1372 * ipa-inline-transform.c (inline_transform): Always call
1373 optimize_inline.
1374 * tree-inline.c (tree_inlinable_function_p): Use error instead
1375 of sorry.
1376 (expand_call_inline): Likewise.
1377
1378 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1379
1380 * Makefile.in (dg_target_exps): Set.
1381 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1382 instead of 7, try to divide it more evenly.
1383
1384 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
1385
1386 PR target/49089
1387 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1388 (avx256_split_unaligned_store): New definition.
1389 (ix86_option_override_internal): Enable avx256 unaligned load/store
1390 splitting only when avx256_split_unaligned_load/store is set.
1391
1392 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1393
1394 * regrename.c (scan_rtx_reg): Handle the case where we write to an
1395 open chain in a smaller mode without failing the entire block.
1396
1397 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1398
1399 PR middle-end/47725
1400 * combine.c (cant_combine_insn_p): Don't check zero/sign
1401 extended hard registers.
1402
1403 2011-06-21 Alan Modra <amodra@gmail.com>
1404
1405 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1406 CONST high part large-toc address.
1407 (rs6000_tls_referenced_p): Make static.
1408 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1409
1410 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1411
1412 PR middle-end/47725
1413 * combine.c (cant_combine_insn_p): Check zero/sign extended
1414 hard registers.
1415
1416 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1417
1418 PR target/49385
1419 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1420 one of the operands is a register.
1421
1422 2011-06-20 Kai Tietz <ktietz@redhat.com>
1423
1424 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1425 operations in combination with binary and.
1426
1427 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1428
1429 * regrename.c (do_replace): Don't update notes.
1430
1431 2011-06-20 Alan Modra <amodra@gmail.com>
1432
1433 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1434 of toc-relative address in CONST.
1435 (rs6000_delegitimize_address): Recognize changed address.
1436 (rs6000_legitimize_reload_address): Likewise.
1437 (rs6000_emit_move): Don't force these constants to memory.
1438 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1439 toc-relative address in CONST.
1440 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1441 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1442
1443 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1444
1445 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
1446 (count_trailing_zeros): Likewise.
1447
1448 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1449
1450 PR other/49325
1451 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1452 .init_array can be used with .ctors on targets.
1453 * configure: Regenerated.
1454
1455 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1456
1457 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1458 if the element type is volatile.
1459
1460 2011-06-18 Jan Hubicka <jh@suse.cz>
1461
1462 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1463 extra name aliases.
1464 (lto_symtab_resolve_can_prevail_p): Likewise.
1465 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1466 * cgraphbuild.c (record_reference): Remove extra body alias code.
1467 (mark_load): Likewise.
1468 (mark_store): Likewise.
1469 * cgraph.h (varpool_node): Remove extra_name filed;
1470 add alias_of and extraname_alias.
1471 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1472 (varpool_alias_aliased_node): New inline function.
1473 (varpool_variable_node): New function.
1474 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1475 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1476 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1477 (input_varpool_node): Likewise.
1478 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1479 (varpool_externally_visible_p): Remove extra body alias code.
1480 (function_and_variable_visibility): Likewise.
1481 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1482 (ipa_pta_execute): Use it.
1483 * varpool.c (varpool_remove_node): Remove extra name alias code.
1484 (varpool_mark_needed_node): Likewise.
1485 (varpool_analyze_pending_decls): Analyze aliases.
1486 (assemble_aliases): New functoin.
1487 (varpool_assemble_decl): Use it.
1488 (varpool_create_variable_alias): New function.
1489 (varpool_extra_name_alias): Rewrite.
1490 (varpool_for_node_and_aliases): New function.
1491
1492 2011-06-18 Jakub Jelinek <jakub@redhat.com>
1493
1494 PR target/49411
1495 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1496 last_arg_constant and last argument doesn't match its predicate,
1497 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1498 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1499 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1500 spelling of error message.
1501 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1502 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1503 const_0_to_255_operand instead of const_int_operand.
1504
1505 Revert:
1506 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1507
1508 * config/i386/sse.md (blendbits): Remove mode attribute.
1509 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1510 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1511 Check integer value of operand 3 in insn constraint.
1512
1513 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1514
1515 PR rtl-optimization/48542
1516 * reload.c (find_equiv_reg): Stop looking when finding a
1517 setjmp-type call.
1518 * reload1.c (reload_as_needed): Invalidate all reload
1519 registers when crossing a setjmp-type call.
1520
1521 2011-06-16 Jeff Law <law@redhat.com>
1522
1523 * tree-ssa-threadupdate.c (struct redirection_data): New field
1524 intermediate_edge.
1525 (THREAD_TARGET2): Define.
1526 (redirection_data_eq): Also check that the intermediate edge is equal.
1527 (lookup_redirection_data): Drop useless argument. Extract the
1528 outgoing_edge and intermediate edge from E. Callers updated.
1529 (copy_phi_args, update_destination_phis): New functions.
1530 (fix_duplicate_block_edges): Likewise.
1531 (create_edge_and_update_destination_phis): Duplicate all the edges
1532 hung off e->aux. Use copy_phi_args.
1533 (create_duplicates): Use fix_duplicate_block_edges.
1534 (fixup_template_block): Likewise.
1535 (redirect_edges): If necessary, redirect the joiner block's incoming
1536 edge to the duplicate of the joiner block.
1537 (thread_block): Don't muck up loops when threading through a joiner
1538 block.
1539 (thread_through_loop_header): Handle threading through a joiner block.
1540 (mark_threaded_blocks, register_jump_thread): Likewise.
1541 * tree-flow.h (register_jump_thread): Add new argument. Callers
1542 updated.
1543 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1544 (thread_across_edge): Handle threading through a joiner block.
1545
1546 2011-06-16 Martin Jambor <mjambor@suse.cz>
1547
1548 PR tree-optimization/49343
1549 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1550 calculate offset, provide 2nd operand for the new COMPONENT_REF.
1551
1552 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
1553
1554 * config/darwin-protos.h (machopic_select_rtx_section): Move to
1555 inside RTX_CODE ifdef.
1556
1557 2011-06-16 Tom de Vries <tom@codesourcery.com>
1558
1559 PR target/45098
1560 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1561 Disallow NULL pointer for pointer arithmetic.
1562
1563 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1564
1565 PR target/49398
1566 Revert.
1567 2011-06-10 Wei Guozhi <carrot@google.com>
1568
1569 PR target/45335
1570 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1571 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1572 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1573 related peephole2.
1574 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1575 related peephole2.
1576 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1577 (arm_legitimate_ldrd_p): New prototype.
1578 (arm_output_ldrd): New prototype.
1579 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1580 (arm_legitimate_ldrd_p): New function.
1581 (arm_output_ldrd): New function.
1582
1583 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1584
1585 PR middle-end/46500
1586 * doc/tm.texi.in: Update Copyright date.
1587 * doc/tm.texi: Regenerate.
1588 * targhooks.c (default_setup_incoming_varargs): Replace
1589 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1590 (default_pretend_outgoing_varargs_named): Likewise.
1591 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1592 (hook_callee_copies_named): Likewise.
1593 (default_function_arg_advance): Likewise.
1594 (default_function_arg): Likewise.
1595 (default_function_incoming_arg): Likewise.
1596 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1597 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1598 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1599 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1600 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1601 * targhooks.h (default_setup_incoming_varargs): Likewise.
1602 (default_pretend_outgoing_varargs_named): Likewise.
1603 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1604 (hook_callee_copies_named): Likewise.
1605 (default_function_arg_advance): Likewise.
1606 (default_function_arg): Likewise.
1607 (default_function_incoming_arg): Likewise.
1608 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1609 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1610 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1611 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1612 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1613 * target.def (pass_by_reference): Likewise.
1614 (setup_incoming_varargs, strict_argument_naming): Likewise.
1615 (pretend_outgoing_varargs_named, callee_copies): Likewise.
1616 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1617 (function_incoming_arg): Likewise.
1618 * target.h: Don't include "tm.h" .
1619 (cumulative_args_t): New typedef.
1620 [GCC_TM_H] (get_cumulative_args): New static inline function.
1621 [GCC_TM_H] (pack_cumulative_args): Likewise.
1622 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1623 argument type with cumulative_args_t.
1624 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1625 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1626 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1627 (frv_arg_partial_bytes, frv_function_arg): Likewise.
1628 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1629 (frv_function_arg_1): Likewise.
1630 * config/s390/s390.c (s390_pass_by_reference): Likewise.
1631 (s390_function_arg_advance, s390_function_arg): Likewise.
1632 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1633 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1634 (m32c_strict_argument_naming): Likewise.
1635 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1636 (spu_function_arg_advance): Likewise.
1637 (spu_setup_incoming_varargs): Likewise. Make static.
1638 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1639 Remove prototype.
1640 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1641 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1642 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1643 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1644 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1645 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1646 (mep_pass_by_reference, mep_function_arg): Likewise.
1647 (mep_function_arg_advance): Likewise.
1648 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1649 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1650 (m32r_function_arg, m32r_function_arg_advance): Likewise.
1651 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1652 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1653 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1654 (ix86_setup_incoming_varargs): Likewise.
1655 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1656 (sh_strict_argument_naming): Likewise.
1657 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1658 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1659 (sh_function_arg_advance, sh_function_arg): Likewise.
1660 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1661 (pdp11_function_arg_advance): Likewise.
1662 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1663 Likewise.
1664 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1665 * config/avr/avr.c (avr_function_arg): Likewise.
1666 (avr_function_arg_advance): Likewise.
1667 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1668 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1669 (xtensa_function_arg_1): Likewise.
1670 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1671 Likewise.
1672 (xstormy16_function_arg): Likewise.
1673 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1674 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1675 (fr30_function_arg_advance): Likewise.
1676 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1677 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1678 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1679 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1680 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1681 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1682 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1683 (cris_function_arg, cris_function_incoming_arg): Likewise.
1684 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1685 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1686 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1687 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1688 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1689 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1690 (mn10300_arg_partial_bytes): Likewise.
1691 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1692 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1693 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1694 (ia64_function_arg_1): Likewise.
1695 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1696 (m68k_function_arg): Likewise.
1697 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1698 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1699 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1700 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1701 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1702 (picochip_arg_advance): Likewise.
1703 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1704 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1705 (mcore_function_arg_advance): Likewise.
1706 * config/score/score.c (score_pass_by_reference): Likewise.
1707 (score_function_arg_advance): Likewise.
1708 (score_arg_partial_bytes): Likewise. Make static.
1709 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1710 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1711 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1712 (arm_function_arg, arm_function_arg_advance): Likewise.
1713 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1714 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1715 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1716 (pa_function_arg): Likewise.
1717 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1718 (mips_function_arg, mips_function_arg_advance): Likewise.
1719 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1720 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1721 * config/vax/vax.c (vax_function_arg): Likewise.
1722 (vax_function_arg_advance): Likewise.
1723 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1724 (h8300_function_arg_advance): Likewise.
1725 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1726 (v850_strict_argument_naming, v850_function_arg): Likewise.
1727 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1728 (v850_setup_incoming_varargs): Likewise.
1729 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1730 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1731 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1732 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1733 with const void *.
1734 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1735 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1736 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1737 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1738 * calls.c (emit_call_1): Change type of args_so_far to
1739 cumulative_args_t. Changed all callers.
1740 (initialize_argument_information): Likewise.
1741 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1742 * dse.c (get_call_args): Likewise.
1743 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1744 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1745 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1746 New member args_so_far_v. Changed all users.
1747 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1748 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1749 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1750 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1751 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1752 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1753 Likewise.
1754 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1755 m32r_pass_by_reference.
1756
1757 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
1758
1759 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1760 argument to be a VEC of statements.
1761 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1762 assert that pattern statements have to have their vector type set.
1763 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1764 Change the first argument to be a VEC of statements. Update
1765 documentation.
1766 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1767 (vect_handle_widen_mult_by_const): New function.
1768 (vect_recog_widen_mult_pattern): Change the first argument to be a
1769 VEC of statements. Update documentation. Check that the constant is
1770 INTEGER_CST. Support multiplication by a constant that fits an
1771 intermediate type - call vect_handle_widen_mult_by_const.
1772 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1773 call. Handle additional pattern statements if necessary.
1774
1775 2011-06-16 Nick Clifton <nickc@redhat.com>
1776
1777 PR target/49427
1778 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1779 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1780 md_file, extra_modes, out_file and extra_options are these are all
1781 deduced from cpu_type.
1782
1783 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1784
1785 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1786 truncation mask to 63.
1787
1788 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1789
1790 PR target/49313
1791 PR target/29524
1792 * longlong.h: Add AVR support:
1793 (count_leading_zeros): New macro.
1794 (count_trailing_zeros): New macro.
1795 (COUNT_LEADING_ZEROS_0): New macro.
1796 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1797 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1798 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1799 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1800 (LIB2FUNCS_EXCLUDE): Add _clz.
1801 * config/avr/libgcc.S (XCALL): Move up in file.
1802 (XJMP): New C Macro.
1803 (DEFUN): New asm macro.
1804 (ENDF): New asm macro.
1805 (__ffssi2): New function.
1806 (__ffshi2): New function.
1807 (__loop_ffsqi2): New function.
1808 (__ctzsi2): New function.
1809 (__ctzhi2): New function.
1810 (__clzdi2): New function.
1811 (__clzsi2): New function.
1812 (__clzhi2): New function.
1813 (__paritydi2): New function.
1814 (__paritysi2): New function.
1815 (__parityhi2): New function.
1816 (__parityqi2): New function.
1817 (__popcounthi2): New function.
1818 (__popcountsi2): New function.
1819 (__popcountdi2): New function.
1820 (__popcountqi2): New function.
1821 (__bswapsi2): New function.
1822 (__bswapdi2): New function.
1823 (__ashldi3): New function.
1824 (__ashrdi3): New function.
1825 (__lshrdi3): New function.
1826 Fix suspicous lines.
1827
1828 2011-06-16 Richard Guenther <rguenther@suse.de>
1829
1830 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1831 the same as x != 0.
1832 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1833 to (bool) X & 1.
1834 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1835 equality compares against zero for the lower bit.
1836
1837 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1838
1839 PR tree-optimization/49419
1840 * tree-vrp.c (execute_vrp): Call init_range_assertions
1841 before estimate_numbers_of_iterations, call
1842 free_number_of_iterations_estimates before calling
1843 remove_range_assertions.
1844
1845 2011-06-16 Revital Eres <revital.eres@linaro.org>
1846
1847 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1848 (struct partial_schedule): Add rows_length field.
1849 (verify_partial_schedule): Check rows_length.
1850 (ps_insert_empty_row): Handle rows_length.
1851 (create_partial_schedule): Likewise.
1852 (free_partial_schedule): Likewise.
1853 (reset_partial_schedule): Likewise.
1854 (create_ps_insn): Remove rest_count argument.
1855 (remove_node_from_ps): Update rows_length.
1856 (add_node_to_ps): Update rows_length and call create_ps_insn
1857 without passing row_rest_count.
1858 (rotate_partial_schedule): Update rows_length.
1859
1860 2011-06-16 Revital Eres <revital.eres@linaro.org>
1861
1862 * ddg.c (add_intra_loop_mem_dep): New function.
1863 (build_intra_loop_deps): Call it.
1864
1865 2011-06-13 Jeff Law <law@redhat.com>
1866
1867 * df-problems.c (df_lr_local_compute): Manually CSE
1868 PIC_OFFSET_TABLE_REGNUM.
1869 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1870 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1871
1872 2011-06-13 Jan Hubicka <jh@suse.cz>
1873
1874 * cgraphunit.c (handle_alias_pairs): New function.
1875 (cgraph_finalize_compilation_unit): Use it.
1876 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1877 as externally visible.
1878
1879 2011-06-15 Richard Guenther <rguenther@suse.de>
1880
1881 * expr.c (expand_expr_real_2): Reduce all integral types to
1882 bitfield precision.
1883 (expand_expr_real_1): Likewise.
1884
1885 2011-06-15 Martin Jambor <mjambor@suse.cz>
1886
1887 PR tree-optimization/48613
1888 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1889 ipa_node_params_vector is NULL.
1890
1891 2011-06-15 Jakub Jelinek <jakub@redhat.com>
1892
1893 PR debug/49382
1894 * dwarf2out.c (dw_loc_list_node): Add force field.
1895 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1896 location in the list, even if it is modified before first real insn.
1897 (output_loc_list): Emit empty ranges with force flag set.
1898 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1899
1900 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
1901
1902 PR target/49349
1903 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1904 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1905 above a fence. Update comments.
1906 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1907 placed just above it. Do not allow NULL place_to_insert.
1908
1909 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
1910
1911 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1912 (slpeel_tree_peel_loop_to_edge): Don't call
1913 remove_dead_stmts_from_loop.
1914 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1915 remove irrelevant pattern statements. For irrelevant statements
1916 check if it is the last statement of a detected pattern, use
1917 corresponding pattern statement instead.
1918 (destroy_loop_vec_info): No need to remove pattern statements,
1919 only free stmt_vec_info.
1920 (vect_transform_loop): For irrelevant statements check if it is
1921 the last statement of a detected pattern, use corresponding
1922 pattern statement instead.
1923 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1924 pattern statements. Set basic block for the new statement.
1925 (vect_pattern_recog): Update documentation.
1926 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1927 operands of pattern statements.
1928 (vectorizable_call): Fix printing. In case of a pattern statement
1929 use the lhs of the original statement when creating a dummy
1930 statement to replace the original call.
1931 (vect_analyze_stmt): For irrelevant statements check if it is
1932 the last statement of a detected pattern, use corresponding
1933 pattern statement instead.
1934 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1935 statements use gsi of the original statement.
1936
1937 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1938
1939 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1940 common/common-target-def.h.
1941 * target.def (default_target_flags, handle_option,
1942 supports_split_stack, optimization_table, init_struct,
1943 except_unwind_info, unwind_tables_default, have_named_sections):
1944 Move to common/common-target.def.
1945 * target.h (enum opt_levels, struct default_options): Move to
1946 common/common-target.h.
1947 * targhooks.c (default_except_unwind_info,
1948 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1949 default_target_handle_option, empty_optimization_table): Move to
1950 common/common-targhooks.c.
1951 * targhooks.h (default_except_unwind_info,
1952 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1953 default_target_handle_option, empty_optimization_table): Move to
1954 common/common-targhooks.h.
1955 * common/common-target-def.h: Include common/common-targhooks.h.
1956 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1957 defined.
1958 * common/common-target.def (handle_option, option_init_struct,
1959 option_optimization_table, default_target_flags,
1960 except_unwind_info, supports_split_stack, unwind_tables_default,
1961 have_named_sections): Move from target.def.
1962 (HOOK_PREFIX): Undefine at end of file.
1963 * common/common-target.h: Include input.h.
1964 (enum opt_levels, struct default_options): Move from target.h.
1965 * common/common-targhooks.c, common/common-targhooks.h: New.
1966 * config.gcc (target_has_targetm_common): Default to yes.
1967 (moxie*): Set target_has_targetm_common=no.
1968 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1969 * doc/tm.texi: Regenerate.
1970 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1971 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1972 (GCC_OBJS): Remove vec.o.
1973 (OBJS): Remove hooks.o and vec.o.
1974 (OBJS-libcommon-target): Add vec.o, hooks.o and
1975 common/common-targhooks.o.
1976 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1977 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1978 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1979 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1980 Update dependencies.
1981 (common/common-targhooks.o): New.
1982 * common/config/default-common.c: Include tm.h. Add FIXME comment.
1983 * common/config/pa/pa-common.c: Include more headers. Take
1984 copyright dates from pa.c.
1985 (pa_option_optimization_table, pa_handle_option,
1986 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1987 TARGET_HANDLE_OPTION): Move from pa.c.
1988 * common/config/alpha/alpha-common.c,
1989 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1990 common/config/bfin/bfin-common.c,
1991 common/config/cris/cris-common.c,
1992 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1993 common/config/h8300/h8300-common.c,
1994 common/config/i386/i386-common.c,
1995 common/config/ia64/ia64-common.c,
1996 common/config/iq2000/iq2000-common.c,
1997 common/config/lm32/lm32-common.c,
1998 common/config/m32c/m32c-common.c,
1999 common/config/m32r/m32r-common.c,
2000 common/config/m68k/m68k-common.c,
2001 common/config/mcore/mcore-common.c,
2002 common/config/mep/mep-common.c,
2003 common/config/microblaze/microblaze-common.c,
2004 common/config/mips/mips-common.c,
2005 common/config/mmix/mmix-common.c,
2006 common/config/mn10300/mn10300-common.c,
2007 common/config/pdp11/pdp11-common.c,
2008 common/config/picochip/picochip-common.c,
2009 common/config/rs6000/rs6000-common.c,
2010 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
2011 common/config/score/score-common.c, common/config/sh/sh-common.c,
2012 common/config/sparc/sparc-common.c,
2013 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
2014 common/config/vax/vax-common.c,
2015 common/config/xstormy16/xstormy16-common.c,
2016 common/config/xtensa/xtensa-common.c: New.
2017 * config/alpha/alpha.c: Include common/common-target.h.
2018 (alpha_option_optimization_table, alpha_handle_option,
2019 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2020 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
2021 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
2022 * config/arm/arm.c (arm_option_optimization_table,
2023 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2024 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
2025 arm-common.c.
2026 * config/avr/avr.c (avr_option_optimization_table,
2027 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2028 to avr-common.c.
2029 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
2030 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
2031 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
2032 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
2033 * config/cris/cris.c (cris_option_optimization_table,
2034 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2035 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
2036 cris-common.c.
2037 * config/fr30/fr30.c (fr30_option_optimization_table,
2038 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
2039 to fr30-common.c.
2040 * config/frv/frv.c (frv_option_optimization_table,
2041 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
2042 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
2043 * config/h8300/h8300.c (h8300_option_optimization_table,
2044 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2045 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
2046 * config/i386/i386-protos.h (ix86_handle_option): Declare.
2047 * config/i386/i386.c: Include common/common-target.h.
2048 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
2049 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
2050 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
2051 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
2052 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
2053 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
2054 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
2055 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
2056 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
2057 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
2058 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
2059 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
2060 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
2061 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
2062 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
2063 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
2064 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
2065 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
2066 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
2067 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
2068 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
2069 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
2070 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
2071 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
2072 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
2073 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
2074 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
2075 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
2076 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
2077 ix86_option_optimization_table, ix86_option_init_struct,
2078 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
2079 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2080 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
2081 i386-common.c.
2082 * config/i386/t-i386 (i386.o): Update dependencies.
2083 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
2084 * config/ia64/ia64.c (ia64_option_optimization_table,
2085 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2086 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2087 ia64_handle_option): Move to ia64-common.c.
2088 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2089 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
2090 * config/lm32/lm32.c (lm32_option_optimization_table,
2091 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2092 to lm32-common.c.
2093 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
2094 m32c-common.c.
2095 * config/m32r/m32r.c (m32r_option_optimization_table,
2096 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2097 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2098 m32r_handle_option): Move to m32r-common.c.
2099 (m32r_memory_move_cost): Remove comment referring to
2100 TARGET_HANDLE_OPTION.
2101 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
2102 Move to m68k-common.c.
2103 * config/mcore/mcore.c (mcore_option_optimization_table,
2104 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2105 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
2106 * config/mep/mep.c (mep_option_optimization_table,
2107 mep_handle_option, TARGET_HANDLE_OPTION,
2108 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
2109 Move to mep-common.c.
2110 * config/microblaze/microblaze.c
2111 (microblaze_option_optimization_table,
2112 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2113 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
2114 * config/mips/mips.c (mips_handle_option,
2115 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2116 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
2117 mips-common.c.
2118 * config/mmix/mmix.c (mmix_option_optimization_table,
2119 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2120 Move to mmix-common.c.
2121 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2122 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
2123 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2124 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
2125 * config/pa/pa.c: Include common/common-target.h.
2126 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2127 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2128 pa_handle_option): Move to pa-common.c.
2129 (pa_option_override): Use targetm_common.except_unwind_info.
2130 (pa_asm_output_mi_thunk, pa_function_section): Use
2131 targetm_common.have_named_sections.
2132 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
2133 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2134 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2135 pdp11_handle_option, pdp11_option_init_struct): Move to
2136 pdp11-common.c.
2137 * config/picochip/picochip.c (picochip_option_optimization_table,
2138 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
2139 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
2140 * config/rs6000/rs6000.c: Include common/common-target.h.
2141 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
2142 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
2143 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
2144 rs6000_handle_option): Move to rs6000-common.c.
2145 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2146 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
2147 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2148 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
2149 * config/s390/s390.c (processor_flags_table,
2150 s390_option_optimization_table, s390_option_init_struct,
2151 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
2152 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2153 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
2154 * config/s390/s390.h (processor_flags_table): Declare.
2155 * config/score/score.c (score_option_optimization_table,
2156 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2157 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
2158 score_handle_option): Move to score-common.c.
2159 * config/sh/sh.c (sh_option_optimization_table,
2160 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2161 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2162 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
2163 * config/sparc/sparc.c: Include common/common-target.h.
2164 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2165 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
2166 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
2167 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
2168 spu_option_init_struct): Move to spu-common.c.
2169 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2170 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
2171 * config/v850/v850.c (small_memory_physical_max,
2172 v850_handle_memory_optionn v850_handle_option,
2173 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2174 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
2175 v850-common.c.
2176 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
2177 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
2178 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2179 Move to xtensa-common.c.
2180 * cfglayout.c: Include common/common-target.h.
2181 (fixup_reorder_chain): Use targetm_common.have_named_sections.
2182 * cfgrtl.c: Include common/common-target.h.
2183 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
2184 targetm_common.have_named_sections.
2185 * dbxout.c: Include common/common-target.h.
2186 (dbxout_function_end): Use targetm_common.have_named_sections.
2187 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
2188 targetm_common.except_unwind_info.
2189 * dwarf2out.c: Include common/common-target.h.
2190 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2191 dwarf2out_begin_prologue, dwarf2out_frame_init,
2192 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
2193 targetm_common.except_unwind_info.
2194 * except.c: Include common/common-target.h.
2195 (init_eh, finish_eh_generation,
2196 output_one_function_exception_table): Use
2197 targetm_common.except_unwind_info.
2198 (switch_to_exception_section): Use targetm_common.have_named_sections.
2199 * explow.c: Include common/common-target.h.
2200 * expr.c: Include common/common-target.h.
2201 (build_personality_function): Use targetm_common.except_unwind_info.
2202 * function.c: Include common/common-target.h.
2203 (expand_function_end): Use targetm_common.except_unwind_info.
2204 * haifa-sched.c: Include common/common-target.h.
2205 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
2206 * lto-opts.c: Include common/common-target.h instead of target.h.
2207 (lto_reissue_options): Use targetm_common.handle_option.
2208 * opts.c: Include common/common-target.h.
2209 (target_handle_option): Use targetm_common.handle_option.
2210 (init_options_struct): Update comment referring to
2211 targetm.target_option.optimization. Use
2212 targetm_common.default_target_flags,
2213 targetm_common.unwind_tables_default and
2214 targetm_common.option_init_struct.
2215 (default_options_optimization): Use
2216 targetm_common.option_optimization_table.
2217 (finish_options): Use targetm_common.except_unwind_info,
2218 targetm_common.unwind_tables_default,
2219 targetm_common.have_named_sections and
2220 targetm_common.supports_split_stack.
2221 * toplev.c: Include common/common-target.h.
2222 (process_options): Use targetm_common.have_named_sections.
2223 * tree-tailcall.c: Include common/common-target.h.
2224 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
2225 * tree.c: Include common/common-target.h.
2226 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
2227 * varasm.c: Include common/common-target.h.
2228 (resolve_unique_section, hot_function_section,
2229 default_function_section): Use targetm_common.have_named_sections.
2230
2231 2011-06-14 Easwaran Raman <eraman@google.com>
2232
2233 PR rtl-optimization/44194
2234 * dse.c: Include tree-flow.h
2235 (insn_info): Add new field non_frame_wild_read.
2236 (group_info): Add new fields escaped_n and escaped_p.
2237 (kill_on_calls): New variable.
2238 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2239 (dse_step0): Initialize kill_on_calls.
2240 (can_escape): New function.
2241 (set_usage_bits): Add additional parameter; record information
2242 about escaped locations.
2243 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
2244 (dse_step2_nospill): Set kill_on_calls based on
2245 group->escaped_n and group->escaped_n.
2246 (add_wild_read): Refactor into...
2247 (reset_active_stores): ... New function, and
2248 (free_read_records): ... New function.
2249 (add_non_frame_wild_read): New function.
2250 (scan_insn): Call add_non_frame_wild_read on non-const calls.
2251 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2252 (dse_step5_nospill): Call scan_reads_nospill for instructions
2253 marked as non_frame_wild_read.
2254 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2255
2256 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2257
2258 * common/common-target-def.h, common/common-target.def,
2259 common/common-target.h, common/config/default-common.c,
2260 common/config/pa/pa-common.c: New files.
2261 * Makefile.in (common_out_file, common_out_object_file,
2262 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2263 (OBJS-libcommon-target): Include $(common_out_object_file).
2264 (prefix.o): Update dependencies.
2265 ($(common_out_object_file), common/common-target-hooks-def.h,
2266 s-common-target-hooks-def-h): New.
2267 (s-tm-texi): Also check timestamp on common-target.def.
2268 (build/genhooks.o): Update dependencies.
2269 * config.gcc (common_out_file, target_has_targetm_common): Define.
2270 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2271 TARGET_ALWAYS_STRIP_DOTDOT.
2272 * configure.ac (common_out_object_file): Define.
2273 (common_out_file, common_out_object_file): Substitute.
2274 (common): Create directory.
2275 * configure: Regenerate.
2276 * doc/tm.texi.in (targetm_common): Document.
2277 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2278 * doc/tm.texi: Regenerate.
2279 * genhooks.c (hook_array): Also include common/common-target.def.
2280 * prefix.c (tm.h): Don't include.
2281 (common/common-target.h): Include.
2282 (ALWAYS_STRIP_DOTDOT): Don't define.
2283 (update_path): Use targetm_common.always_strip_dotdot instead of
2284 ALWAYS_STRIP_DOTDOT.
2285 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2286
2287 2011-06-14 David Li <davidxl@google.com>
2288
2289 * passes.c (execute_function_todo): Remove TODO_dump_func.
2290 (execute_one_pass): Remove TODO_dump_func.
2291 (execute_function_dump): New function.
2292 * tree-vrp.c: Remove TODO_dump_func.
2293 * regrename.c: Remove TODO_dump_func.
2294 * fwprop.c: Remove TODO_dump_func.
2295 * tree-into-ssa.c: Remove TODO_dump_func.
2296 * tree-complex.c: Remove TODO_dump_func.
2297 * tracer.c: Remove TODO_dump_func.
2298 * tree-loop-distribution.c: Remove TODO_dump_func.
2299 * postreload-gcse.c: Remove TODO_dump_func.
2300 * postreload.c: Remove TODO_dump_func.
2301 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2302 * tree-tailcall.c: Remove TODO_dump_func.
2303 * ipa-cp.c: Remove TODO_dump_func.
2304 * final.c: Remove TODO_dump_func.
2305 * tree-emutls.c: Remove TODO_dump_func.
2306 * omp-low.c: Remove TODO_dump_func.
2307 * tree-ssa-dse.c: Remove TODO_dump_func.
2308 * tree-ssa-uncprop.c: Remove TODO_dump_func.
2309 * auto-inc-dec.c: Remove TODO_dump_func.
2310 * reorg.c: Remove TODO_dump_func.
2311 * tree-ssa-copyrename.c: Remove TODO_dump_func.
2312 * tree-ssa-ccp.c: Remove TODO_dump_func.
2313 * compare-elim.c: Remove TODO_dump_func.
2314 * mode-switching.c: Remove TODO_dump_func.
2315 * modulo-sched.c: Remove TODO_dump_func.
2316 * tree-call-cdce.c: Remove TODO_dump_func.
2317 * cse.c: Remove TODO_dump_func.
2318 * web.c: Remove TODO_dump_func.
2319 * tree-stdarg.c: Remove TODO_dump_func.
2320 * lto-streamer-out.c: Remove TODO_dump_func.
2321 * tree-ssa-math-opts.c: Remove TODO_dump_func.
2322 * tree-ssa-dom.c: Remove TODO_dump_func.
2323 * tree-nrv.c: Remove TODO_dump_func.
2324 * loop-init.c: Remove TODO_dump_func.
2325 * gimple-low.c: Remove TODO_dump_func.
2326 * ipa-inline.c: Remove TODO_dump_func.
2327 * tree-ssa-sink.c: Remove TODO_dump_func.
2328 * jump.c: Remove TODO_dump_func.
2329 * ifcvt.c: Remove TODO_dump_func.
2330 * tree-ssa-loop.c: Remove TODO_dump_func.
2331 * recog.c: Remove TODO_dump_func.
2332 * dse.c: Remove TODO_dump_func.
2333 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2334 * matrix-reorg.c: Remove TODO_dump_func.
2335 * tree-eh.c: Remove TODO_dump_func.
2336 * regmove.c: Remove TODO_dump_func.
2337 * function.c: Remove TODO_dump_func.
2338 * tree-vectorizer.c: Remove TODO_dump_func.
2339 * ipa-split.c: Remove TODO_dump_func.
2340 * gcse.c: Remove TODO_dump_func.
2341 * tree-if-conv.c: Remove TODO_dump_func.
2342 * init-regs.c: Remove TODO_dump_func.
2343 * tree-ssa-phiopt.c: Remove TODO_dump_func.
2344 * implicit-zee.c: Remove TODO_dump_func.
2345 * lower-subreg.c: Remove TODO_dump_func.
2346 * bt-load.c: Remove TODO_dump_func.
2347 * tree-dfa.c: Remove TODO_dump_func.
2348 * except.c: Remove TODO_dump_func.
2349 * emit-rtl.c: Remove TODO_dump_func.
2350 * store-motion.c: Remove TODO_dump_func.
2351 * cfgexpand.c: Remove TODO_dump_func.
2352 * tree-cfgcleanup.c: Remove TODO_dump_func.
2353 * cfgcleanup.c: Remove TODO_dump_func.
2354 * tree-ssa-pre.c: Remove TODO_dump_func.
2355 * tree-sra.c: Remove TODO_dump_func.
2356 * tree-mudflap.c: Remove TODO_dump_func.
2357 * tree-ssa-copy.c: Remove TODO_dump_func.
2358 * cfglayout.c: Remove TODO_dump_func.
2359 * tree-ssa-forwprop.c: Remove TODO_dump_func.
2360 * tree-ssa-dce.c: Remove TODO_dump_func.
2361 * ira.c: Remove TODO_dump_func.
2362 * tree-ssa.c: Remove TODO_dump_func.
2363 * integrate.c: Remove TODO_dump_func.
2364 * tree-optimize.c: Remove TODO_dump_func.
2365 * tree-ssa-phiprop.c: Remove TODO_dump_func.
2366 * tree-object-size.c: Remove TODO_dump_func.
2367 * combine.c: Remove TODO_dump_func.
2368 * bb-reorder.c: Remove TODO_dump_func.
2369 * cprop.c: Remove TODO_dump_func.
2370 * var-tracking.c: Remove TODO_dump_func.
2371 * tree-profile.c: Remove TODO_dump_func.
2372 * tree-vect-generic.c: Remove TODO_dump_func.
2373 * reg-stack.c: Remove TODO_dump_func.
2374 * sched-rgn.c: Remove TODO_dump_func.
2375 * tree-ssa-structalias.c: Remove TODO_dump_func.
2376 * tree-switch-conversion.c: Remove TODO_dump_func.
2377 * tree-cfg.c: Remove TODO_dump_func.
2378 * tree-ssa-reassoc.c: Remove TODO_dump_func.
2379 * combine-stack-adj.c: Remove TODO_dump_func.
2380 * dce.c: Remove TODO_dump_func.
2381 * tree-ssanames.c: Remove TODO_dump_func.
2382 * regcprop.c: Remove TODO_dump_func.
2383
2384 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
2385
2386 PR middle-end/47364
2387 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2388 and properly handle result not in Pmode.
2389
2390 2011-06-14 Robert Millan <rmh@gnu.org>
2391
2392 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2393 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2394 `config/linux.h'.
2395
2396 * config/i386/kfreebsd-gnu64.h: New file.
2397 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2398 with `i386/kfreebsd-gnu64.h'.
2399
2400 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2401 (GNU_USER_LINK_EMULATION64): New macros.
2402 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2403 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2404 of hardcoding `elf_i386' and `elf_x86_64'.
2405
2406 2011-06-14 Nick Clifton <nickc@redhat.com>
2407
2408 PR target/49403
2409 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2410
2411 PR target/49402
2412 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2413
2414 2011-06-14 Jakub Jelinek <jakub@redhat.com>
2415
2416 PR fortran/49103
2417 * tree.h (DECL_NONSHAREABLE): Define.
2418 (struct tree_decl_common): Change decl_common_unused to
2419 decl_nonshareable_flag.
2420 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2421 Ignore vars with DECL_NONSHAREABLE bit set.
2422 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2423 on stores to automatic aggregate vars.
2424
2425 PR rtl-optimization/49390
2426 Revert:
2427 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2428
2429 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2430 MEM_ALIAS_SET.
2431
2432 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
2433 Tom de Vries <tom@codesourcery.com>
2434
2435 PR target/45098
2436 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2437 Document changed semantics.
2438 (max_stmt_executions, max_stmt_executions_int): Declare.
2439 * tree-data-ref.c (estimated_loop_iterations)
2440 (estimated_loop_iterations_int): Move functions...
2441 * tree-ssa-loop-niter.c (estimated_loop_iterations)
2442 (estimated_loop_iterations_int): here.
2443 (record_estimate): Change nb_iterations_upper_bound and
2444 nb_iterations_estimate semantics.
2445 (max_stmt_executions, max_stmt_executions_int): New function.
2446 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2447 (max_stmt_executions_tree): this.
2448 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2449 estimated_loop_iterations_tree.
2450 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2451 max_stmt_executions_int instead of estimated_loop_iterations_int.
2452 * predict.c (predict_loops): Idem.
2453 * tree-parloops.c (parallelize_loops): Idem.
2454 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2455 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2456 (init_omega_for_ddr_1): Idem.
2457 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2458 (loop_prefetch_arrays): Idem
2459 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2460 max_stmt_executions instead of estimated_loop_iterations.
2461 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2462 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2463 instead of nb_iterations_upper_bound.
2464
2465 2011-06-13 Jan Hubicka <jh@suse.cz>
2466
2467 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2468
2469 2011-06-14 Richard Henderson <rth@redhat.com>
2470
2471 PR debug/48459
2472 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2473 (based_loc_descr): Assert it's true.
2474 (compute_frame_pointer_to_fb_displacement): Set it, rather than
2475 aborting immediately.
2476
2477 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
2478 Mingfeng Wu <mingfeng@faraday-tech.com>
2479
2480 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2481
2482 2011-06-13 Jan Hubicka <jh@suse.cz>
2483
2484 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2485
2486 2011-06-13 Jan Hubicka <jh@suse.cz>
2487
2488 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2489 similarly to DECL_COMDAT.
2490 * cgraphunit.c (cgraph_analyze_function): Likewise.
2491 * ipa.c (function_and_variable_visibility): Likewise.
2492
2493 2011-06-13 Jan Hubicka <jh@suse.cz>
2494
2495 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2496 BINFO_VIRTUALS when streaming for ltrans unit.
2497
2498 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
2499
2500 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2501 (movdi_internal64): Same.
2502
2503 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
2504
2505 PR target/44618
2506 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2507 a set of similar patterns, where the MATCH_OPERAND for the function
2508 argument is replaced with individual references to hardware registers.
2509 (save_fpregs_<mode>): Ditto
2510 (restore_gpregs_<mode>): Ditto
2511 (return_and_restore_gpregs_<mode>): Ditto
2512 (return_and_restore_fpregs_<mode>): Ditto
2513 (return_and_restore_fpregs_aix_<mode>): Ditto
2514
2515 2011-06-13 Jan Hubicka <jh@suse.cz>
2516
2517 * ipa-utils.c (postorder_stack): New structure.
2518 (ipa_reverse_postorder): Handle aliases.
2519
2520 2011-06-13 Jan Hubicka <jh@suse.cz>
2521
2522 * ipa-inline.c (reset_edge_caches): Walk aliases.
2523 (update_caller_keys): Do not test inlinability of aliases.
2524 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2525 (do_estimate_growth): Fix typo.
2526
2527 2011-06-13 Jan Hubicka <jh@suse.cz>
2528
2529 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2530 (can_remove_node_now_p): ... here; handle same comdat groups.
2531 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2532 (inline_call): Update use of can_remove_node_now_p.
2533
2534 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2535
2536 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2537 condition to disallow non-identical memory locations.
2538 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2539 preference to bit manipulation instructions.
2540
2541 2011-06-13 Jan Hubicka <jh@suse.cz>
2542
2543 * cgraph.c (cgraph_for_node_thunks_and_aliases,
2544 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2545 (nonremovable_p): New function.
2546 (cgraph_can_remove_if_no_direct_calls_p): New function.
2547 (used_from_object_file_p): New functoin.
2548 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2549 references from aliases.
2550 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2551 * ipa-inline.c (check_caller_edge): New function.
2552 (want_inline_function_called_once_p): Use it; accept aliases called
2553 once, too.
2554 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2555
2556 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2557
2558 PR target/48454
2559 * config/arm/neon.md (vec_pack_trunc): Set the lengths
2560 correctly for the case with Quad vectors.
2561
2562 2011-06-13 Jakub Jelinek <jakub@redhat.com>
2563 Ira Rosen <ira.rosen@linaro.org>
2564
2565 PR tree-optimization/49352
2566 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2567 all, make sure loop_use_stmt after the loop is a def stmt of a used
2568 SSA_NAME that is the only one defined inside of the loop. Don't
2569 check for COND_EXPR and GIMPLE_BINARY_RHS.
2570 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2571 check_reduction is true.
2572
2573 2011-06-11 Jan Hubicka <jh@suse.cz>
2574
2575 PR middle-end/49373
2576 * ipa.c (cgraph_externally_visible_p): Check resolution info.
2577
2578 2011-06-11 Jan Hubicka <jh@suse.cz>
2579
2580 PR middle-end/48836
2581 * ipa-inline-transform.c: Include tree-pass.h
2582 (inline_transform): Set TODO_update_ssa_only_virtuals.
2583 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2584
2585 2011-06-11 Jan Hubicka <jh@suse.cz>
2586
2587 PR middle-end/49378
2588 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2589 aliases and thunks.
2590
2591 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
2592
2593 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2594 Take number of iterations to peel into account for equally frequent
2595 misalignment values.
2596
2597 2011-06-11 Jan Hubicka <jh@suse.cz>
2598
2599 * lto-streamer-out.c (produce_symtab): Stream out the newly
2600 represented aliases.
2601
2602 2011-06-11 Jan Hubicka <jh@suse.cz>
2603
2604 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2605 varying args.
2606 (ipa_update_after_lto_read): Likewise.
2607 (ipa_write_node_info): Do not sream call_with_var_arguments.
2608 (ipa_read_node_info): Likewise.
2609
2610 2011-06-11 Jan Hubicka <jh@suse.cz>
2611
2612 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2613
2614 2011-06-11 Jan Hubicka <jh@suse.cz>
2615
2616 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2617 (lto_symtab_resolve_can_prevail_p): Likewise.
2618 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2619 * cgraph.c (same_body_aliases_done): New global var.
2620 (cgraph_same_body_alias_1): Rename to ...
2621 (cgraph_create_function_alias): ... this one; reorg to new
2622 representation.
2623 (cgraph_same_body_alias): Use cgraph_create_function_alias;
2624 record references when asked to.
2625 (cgraph_add_thunk): Fix formating.
2626 (cgraph_get_node): Kill same body alias code.
2627 (cgraph_node_for_asm): Likewise.
2628 (cgraph_remove_same_body_alias): Remove.
2629 (cgraph_remove_node): Kill same body alias code.
2630 (cgraph_mark_address_taken_node): Mark also the aliased function
2631 as having address taken.
2632 (dump_cgraph_node): Dump same body aliases.
2633 (cgraph_for_node_thunks_and_aliases): Update for new alias
2634 representation.
2635 (cgraph_for_node_and_aliases): Likewise.
2636 * cgraph.h (same_body): Kll pointer.
2637 (same_body_alias): Update comment.
2638 (same_body_aliases_done): Declare.
2639 (cgraph_remove_same_body_alias): Remove declaration.
2640 (cgraph_create_function_alias): Declare.
2641 (cgraph_process_same_body_aliases): Declare.
2642 (cgraph_function_with_gimple_body_p): Check for alias.
2643 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2644 (cgraph_alias_aliased_node): New function.
2645 (cgraph_function_node): Update for new aliases.
2646 (cgraph_function_or_thunk_node): Likewise.
2647 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2648 (inline_call): Remove dead aliases.
2649 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2650 name hack for same body aliases.
2651 (clone_of_p): Look through aliases.
2652 (verify_cgraph_node): Verify aliases.
2653 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2654 (cgraph_process_same_body_aliases): New function.
2655 (process_function_and_variable_attributes): Disable weakref warning on
2656 alias.
2657 (cgraph_analyze_functions): Handle aliases.
2658 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2659 (assemble_thunks): Rename to ...
2660 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2661 (cgraph_expand_function): Remove alias output code.
2662 (cgraph_output_in_order): Skip aliases.
2663 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2664 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2665 (ipa_record_reference): Do not assert on alias references.
2666 (ipa_ref_has_aliases_p): New function.
2667 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2668 (ipa_ref_has_aliases_p): Declare.
2669 * lto-cgraph.c (lto_output_node): Handle aliases.
2670 (input_node): Likewise.
2671 * lto-streamer-out.c (lto_output): Skip aliases.
2672 (produce_symtab): Kill same_body_alias code.
2673 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2674 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2675 * ipa-inline.c (update_caller_keys): Walk aliases.
2676 (inline_small_functions): Fix thinko in previous patch.
2677 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2678 (function_and_variable_visibility): Do not walk same body aliases.
2679 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2680 (ipa_pta_execute): Use it.
2681
2682 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2683
2684 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2685 (*vec_dupv2df): Rename from vec_dupv2df.
2686 (vec_dupv2df): New expander.
2687
2688 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2689
2690 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2691
2692 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2693
2694 * config/i386/i386.md: Use default value in "isa" attribute.
2695 * config/i386/sse.md: Ditto.
2696 * config/i386/mmx.md: Ditto.
2697
2698 2011-06-10 Wei Guozhi <carrot@google.com>
2699
2700 PR target/45335
2701 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2702 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2703 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2704 related peephole2.
2705 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2706 related peephole2.
2707 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2708 (arm_legitimate_ldrd_p): New prototype.
2709 (arm_output_ldrd): New prototype.
2710 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2711 (arm_legitimate_ldrd_p): New function.
2712 (arm_output_ldrd): New function.
2713
2714 2011-06-10 David Li <davidxl@google.com>
2715
2716 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2717 * passes.c (passr_eq): New function.
2718 (create_pass_tab): New function.
2719 (pass_traverse): New function.
2720 (dump_one_pass): New function.
2721 (dump_pass_list): New function.
2722 (dump_passes): New function.
2723
2724 2011-06-10 Jan Hubicka <jh@suse.cz>
2725
2726 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2727 setting the nothrow flag.
2728 * ipa-reference.c (propagate): Skip aliases.
2729 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2730 (propagate_nothrow): Skip aliases; do not update cgraph.
2731 (local_pure_const): Do not update cgraph.
2732 * tree-profile.c (tree_profiling): Do fixup_cfg.
2733
2734 2011-06-10 Jan Hubicka <jh@suse.cz>
2735
2736 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2737 (cgraph_local_node_p): ... here; handle aliases.
2738 (has_addr_references_p): Break out from ...;
2739 (cgraph_remove_unreachable_nodes) ... here.
2740
2741 2011-06-10 Jan Hubicka <jh@suse.cz>
2742
2743 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2744 * common.opt (flag_inline_functions_called_once): Do not
2745 initialize to 1.
2746
2747 2011-06-10 Jan Hubicka <jh@suse.cz>
2748
2749 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2750 (ipcp_initialize_node_lattices): Do not deal with aliases;
2751 Do not try to propagate through thunks.
2752 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2753
2754 2011-06-10 Jan Hubicka <jh@suse.cz>
2755
2756 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2757 for indirect calls.
2758 (ipa_read_node_info): Likewise.
2759
2760 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2761
2762 PR lto/49302
2763 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2764 (build_and_insert_call): Likewise.
2765 (build_and_insert_ref): New.
2766 (gimple_expand_builtin_pow): Minor cleanup.
2767 (gimple_expand_builtin_cabs): New.
2768 (execute_cse_sincos): Add case for BUILT_IN_CABS.
2769
2770 2011-06-10 Jan Hubicka <jh@suse.cz>
2771
2772 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2773 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2774 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2775 (ipcp_propagate_stage): Skip aliases when propagating.
2776 (ipcp_need_redirect_p): Skip aliases.
2777 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2778 collect_callers_of_node.
2779 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2780 for aliases.
2781 (ipa_compute_jump_functions): Look through aliases.
2782
2783 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2784
2785 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2786
2787 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2788
2789 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2790 Adjust comments.
2791 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2792
2793 2011-06-10 Jan Hubicka <jh@suse.cz>
2794
2795 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2796 Update call of gimple_get_virt_method_for_binfo.
2797 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2798 refuse_thunks parameter.
2799 (gimple_fold_call): Update.
2800 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2801
2802 2011-06-10 Jan Hubicka <jh@suse.cz>
2803
2804 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2805 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2806 worker for cgraph_for_node_and_aliases.
2807 (convert_callers_for_node): Break out from ...
2808 (convert_callers): ... here.
2809 (modify_function): Use collect_callers_of_node.
2810 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2811
2812 2011-06-10 Richard Guenther <rguenther@suse.de>
2813
2814 PR tree-optimization/49361
2815 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2816 when not already in gimple form.
2817
2818 2011-06-10 Richard Guenther <rguenther@suse.de>
2819
2820 PR bootstrap/49344
2821 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2822 FOR_EACH_PHI_OR_STMT_USE.
2823
2824 2011-06-10 Jan Hubicka <jh@suse.cz>
2825
2826 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2827 (clone_inlined_nodes): ... here.
2828 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2829 to real destination prior inlining.
2830 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2831 can_early_inline_edge_p, want_early_inline_function_p,
2832 want_early_inline_function_p, want_inline_small_function_p,
2833 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2834 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2835 add_new_edges_to_heap, inline_small_functions, flatten_function,
2836 inline_always_inline_functions, early_inline_small_functions): Use
2837 cgraph_function_or_thunk_node.
2838 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2839 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2840 (do_estimate_edge_growth_1): Break out from ...
2841 (do_estimate_growth) ... here; walk aliases.
2842 (inline_generate_summary): Skip aliases.
2843
2844 2011-06-10 Richard Guenther <rguenther@suse.de>
2845
2846 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2847 forward when combining, visit inserted stmts when a stmt was changed.
2848
2849 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2850
2851 * tree.h (error_operand_p): Add.
2852 * dbxout.c (dbxout_type_fields): Use the latter.
2853 * c-decl.c (add_stmt): Likewise.
2854 * gimplify.c (omp_add_variable, omp_notice_variable,
2855 gimplify_scan_omp_clauses): Likewise.
2856
2857 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
2858
2859 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2860 when a value is actually passed in regs.
2861
2862 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
2863 Laurent Rougé <laurent.rouge@menta.fr>
2864
2865 * doc/invoke.texi (SPARC options): Add -mflat.
2866 * config/sparc/sparc.opt: Likewise.
2867 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2868 (sparc_flat_expand_prologue): Declare.
2869 (sparc_flat_expand_epilogue): Likewise.
2870 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2871 (CPP_ENDIAN_SPEC): Replace with...
2872 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2873 (CPP_SPEC): Adjust to above change.
2874 (EXTRA_SPECS): Likewise.
2875 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2876 (INCOMING_REGNO): Likewise.
2877 (OUTGOING_REGNO): Likewise.
2878 (LOCAL_REGNO): Likewise.
2879 (SETUP_FRAME_ADDRESSES): Likewise.
2880 (FIXED_REGISTERS): Set 0 for %fp.
2881 (CALL_USED_REGISTERS): Likewise.
2882 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2883 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2884 (RETURN_ADDR_REGNUM): Define.
2885 (RETURN_ADDR_RTX): Use it.
2886 (INCOMING_RETURN_ADDR_REGNUM): Define.
2887 (INCOMING_RETURN_ADDR_RTX): Use it.
2888 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2889 (EH_RETURN_REGNUM): Define.
2890 (EH_RETURN_STACKADJ_RTX): Use it.
2891 (EH_RETURN_HANDLER_RTX): Delete.
2892 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2893 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2894 Delete.
2895 (struct machine_function): Add frame_size, apparent_frame_size,
2896 frame_base_reg, frame_base_offset, n_global_fp_regs and
2897 save_local_in_regs_p fields.
2898 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2899 sparc_frame_base_offset, sparc_n_global_fp_regs,
2900 sparc_save_local_in_regs_p): New macros.
2901 (sparc_option_override): Error out if -fcall-saved-REG is specified
2902 for Out registers.
2903 (eligible_for_restore_insn): Fix formatting.
2904 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2905 (eligible_for_sibcall_delay): Likewise.
2906 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2907 (sparc_legitimate_address_p): Adjust to above change.
2908 (save_global_or_fp_reg_p): New predicate.
2909 (return_addr_reg_needed_p): Likewise.
2910 (save_local_or_in_reg_p): Likewise.
2911 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2912 (SORR_SAVE, SORR_RESTORE): Delete.
2913 (sorr_pred_t): New typedef.
2914 (sorr_act_t): New enum.
2915 (save_or_restore_regs): Rename to...
2916 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2917 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2918 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2919 mechanism. Add CFI information for double-word saves in 32-bit mode.
2920 (emit_adjust_base_to_offset): New function extracted from...
2921 (emit_save_or_restore_regs): ...this. Rename the rest to...
2922 (emit_save_or_restore_regs_global_fp_regs): ...this.
2923 (emit_save_or_restore_regs_local_in_regs): New function.
2924 (gen_create_flat_frame_[123]): New functions.
2925 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2926 (sparc_flat_expand_prologue): New function.
2927 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2928 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2929 (sparc_flat_expand_epilogue): New function.
2930 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2931 (output_return): Likewise.
2932 (output_sibcall): Likewise.
2933 (sparc_output_mi_thunk): Likewise.
2934 (sparc_frame_pointer_required): Likewise.
2935 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2936 function optimization.
2937 * config/sparc/sparc.md (flat): New attribute.
2938 (prologue): Add TARGET_FLAT handling.
2939 (save_register_window): Disable if TARGET_FLAT.
2940 (create_flat_frame_[123]): New patterns.
2941 (epilogue): Add TARGET_FLAT handling.
2942 (sibcall_epilogue): Likewise.
2943 (eh_return): New expander.
2944 (eh_return_internal): New insn and splitter.
2945 (return_internal): Add TARGET_FLAT handling.
2946 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2947 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2948 (nonlocal_goto): Add TARGET_FLAT handling.
2949 * config/sparc/t-elf: Add -mflat multilib.
2950 * config/sparc/t-leon: Likewise.
2951
2952 2011-06-10 Jan Hubicka <jh@suse.cz>
2953
2954 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2955 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2956 (self_recursive_p): Use cgraph_function_node.
2957 (propagate_pure_const): Likewise.
2958 (propagate_nothrow): Likewise.
2959 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2960 cgraph_function_node.
2961 (propagate_bits): Likewise.
2962 (propagate): Likewise.
2963
2964 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2965 Richard Earnshaw <rearnsha@arm.com>
2966
2967 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2968 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2969 (*thumb2_movdi_vfp): Delete.
2970 (*arm_movdi_vfp_cortexa8): Delete.
2971 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2972 (*movdi_vfp_cortexa8): Likewise.
2973
2974 2011-06-10 Richard Guenther <rguenther@suse.de>
2975
2976 * stor-layout.c (initialize_sizetypes): Give names to all
2977 sizetype kinds.
2978
2979 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
2980
2981 PR tree-optimization/49318
2982 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2983 irrelevant pattern statements.
2984
2985 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2986
2987 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2988
2989 PR bootstrap/49354
2990 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2991 to last assignment.
2992
2993 2011-06-09 Jan Hubicka <jh@suse.cz>
2994
2995 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2996 do not recompute reachable flag.
2997 (cgraph_finalize_function, cgraph_analyze_functions): Set
2998 redefined_extern_inline here.
2999
3000 2011-06-09 Jan Hubicka <jh@suse.cz>
3001
3002 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
3003 (cgraph_only_called_directly_p): ... this one; bring offline.
3004 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3005 varpool_used_from_object_file_p): Drop names from the declaratoin.
3006 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
3007 collect_callers_of_node): New.
3008 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
3009 (cgraph_edge_recursive_p): Use cgraph_function_node.
3010 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
3011 (cgraph_node_cannot_be_local_p_1): Break out from ...
3012 (cgraph_node_can_be_local_p): ... here; walk aliases.
3013 (cgraph_for_node_thunks_and_aliases): New function.
3014 (cgraph_for_node_and_aliases): New function.
3015 (cgraph_make_node_local_1): Break out from ...
3016 (cgraph_make_node_local) ... here; use
3017 cgraph_for_node_thunks_and_aliases.
3018 (cgraph_set_nothrow_flag_1): Break out from ...
3019 (cgraph_set_nothrow_flag) ... here;
3020 use cgraph_for_node_thunks_and_aliases.
3021 (cgraph_set_const_flag_1): Break out from ...
3022 (cgraph_set_const_flag) ... here;
3023 use cgraph_for_node_thunks_and_aliases.
3024 (cgraph_set_pure_flag_1): Break out from ...
3025 (cgraph_set_pure_flag) ... here;
3026 use cgraph_for_node_thunks_and_aliases.
3027 (cgraph_propagate_frequency_1): Break out from ...
3028 (cgraph_propagate_frequency) ... here; use
3029 cgraph_for_node_thunks_and_aliases.
3030 (cgraph_used_from_object_file_p): Do not care about aliases.
3031 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
3032 New functions.
3033 (collect_callers_of_node_1, collect_callers_of_node): New functions.
3034
3035 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3036
3037 PR rtl-optimization/49154
3038 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
3039 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
3040 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
3041 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
3042 * config/cris/cris.h (cris_register_move_cost): Remove
3043 !TARGET_V32 code. Tweak comments.
3044
3045 2011-06-09 Jan Hubicka <jh@suse.cz>
3046
3047 * cgraphbuild.c (record_eh_tables): Mark personality function as having
3048 address taken.
3049
3050 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3051
3052 PR rtl-optimization/49154
3053 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
3054 is a matching slot in the hashtable, assign it to classes_ptr.
3055
3056 PR rtl-optimization/49154
3057 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
3058 register classes.
3059 * doc/tm.texi: Regenerate.
3060
3061 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
3062
3063 PR target/49307
3064 * config/sh/sh.md (UNSPEC_CHKADD): New.
3065 (chk_guard_add): New define_insn_and_split.
3066 (symGOT_load): Use chk_guard_add instead of blockage.
3067
3068 2011-06-09 Kai Tietz <ktietz@redhat.com>
3069
3070 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
3071
3072 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
3073
3074 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
3075
3076 2011-06-09 Wei Guozhi <carrot@google.com>
3077
3078 PR target/46975
3079 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
3080 (peephole2 for conditional move): Generate 16 bit instructions.
3081
3082 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
3083
3084 * config/i386/i386.md (*movdi_internal_rex64): Merge
3085 alternatives 6 and 8.
3086
3087 2011-06-09 David Li <davidxl@google.com>
3088
3089 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3090 * passes.c (passr_eq): New function.
3091 (create_pass_tab): New function.
3092 (pass_traverse): New function.
3093 (dump_one_pass): New function.
3094 (dump_pass_list): New function.
3095 (dump_passes): New function.
3096
3097 2011-06-09 David Li <davidxl@google.com>
3098
3099 * tree-complex.c (tree_lower_complex): Gate cleanup.
3100 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
3101 (execute_optimize_stdarg): Ditto.
3102 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
3103 (execute_cleanup_eh_1): Ditto.
3104 (execute_cleanup_eh): Ditto.
3105 * gcse.c (gate_rtl_pre): Ditto.
3106 (execute_rtl_pre): Ditto.
3107 * except.c (finish_eh_generation): Ditto.
3108 (convert_to_eh_region_ranges): Ditto.
3109 * cprop.c (one_cprop_pass): Ditto.
3110
3111 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
3112
3113 PR target/48673
3114 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
3115 in all basic blocks.
3116
3117 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3118
3119 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
3120 (HAVE_ENABLE_EXECUTE_STACK): Define.
3121 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
3122 (HAVE_ENABLE_EXECUTE_STACK): Define.
3123 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
3124 (HAVE_ENABLE_EXECUTE_STACK): Define.
3125 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
3126 (ENABLE_EXECUTE_STACK): Remove.
3127 (HAVE_ENABLE_EXECUTE_STACK): Define.
3128 [IN_LIBGCC2]: Don't include <windows.h>.
3129 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3130 (HAVE_ENABLE_EXECUTE_STACK): Define.
3131 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
3132 (HAVE_ENABLE_EXECUTE_STACK): Define.
3133 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
3134 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
3135 (HAVE_ENABLE_EXECUTE_STACK): Define.
3136 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
3137 (HAVE_ENABLE_EXECUTE_STACK): Define.
3138 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
3139 (HAVE_ENABLE_EXECUTE_STACK): Define.
3140 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3141 (HAVE_ENABLE_EXECUTE_STACK): Define.
3142 * config/alpha/alpha.c (alpha_trampoline_init): Test
3143 HAVE_ENABLE_EXECUTE_STACK.
3144 * config/i386/i386.c (ix86_trampoline_init): Likewise.
3145 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3146 (sparc64_initialize_trampoline): Likewise.
3147 * libgcc2.c [L_enable_execute_stack]: Remove.
3148 * system.h (ENABLE_EXECUTE_STACK): Poison.
3149 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
3150 * doc/tm.texi: Regenerate.
3151 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
3152
3153 2011-06-09 Jakub Jelinek <jakub@redhat.com>
3154
3155 PR middle-end/49308
3156 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
3157 variable. After resetting and rescanning insn continue with previous
3158 statement.
3159
3160 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3161
3162 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
3163 (gcc_cv_ld_hidden): Likewise.
3164 * configure: Regenerate.
3165 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
3166 (ix86_stack_protect_fail): Mark unused.
3167 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
3168 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
3169 [TARGET_MACHO]: Don't define.
3170 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
3171 (TARGET_STACK_PROTECT_FAIL): Likewise.
3172 (rs6000_stack_protect_fail): Mark unused.
3173 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
3174 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
3175
3176 2011-06-08 Andi Kleen <ak@linux.intel.com>
3177
3178 * varasm.c (get_section): Print location of other conflict
3179 for section conflicts.
3180
3181 2011-06-08 Andi Kleen <ak@linux.intel.com>
3182
3183 * config/i386/driver-i386.c (host_detect_local_cpu):
3184 Add model 0x2d Intel CPU.
3185
3186 2011-06-08 Andi Kleen <ak@linux.intel.com>
3187
3188 * reginfo.c (global_regs_decl): Add.
3189 (globalize_reg): Add decl parameter. Compute location. Pass location
3190 to warnings and add inform. Store decl in global_regs_decl.
3191 * rtl.h (globalize_reg): Update prototype.
3192 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
3193
3194 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
3195
3196 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
3197
3198 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3199
3200 PR target/49305
3201 * config/sh/predicates.md (general_movsrc_operand): Check
3202 mode for memory with indexed address for QI and HImode.
3203 (general_movdst_operand): Likewise.
3204
3205 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
3206
3207 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
3208
3209 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
3210
3211 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3212 (num_ssa_operands): Likewise.
3213 (op_iter_init_phiuse): Forward-declare.
3214 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3215
3216 2011-06-08 Nick Clifton <nickc@redhat.com>
3217
3218 * doc/invoke.texi (ARM Options): Update description of
3219 -mthumb-interwork.
3220
3221 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
3222
3223 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3224 unknown Intel family 0x6 CPUs.
3225
3226 2011-06-08 Martin Jambor <mjambor@suse.cz>
3227
3228 * tree-sra.c (mark_rw_status): Removed.
3229 (analyze_access_subtree): New parameter parent instead of
3230 mark_read and mark_write, propagate from that.
3231
3232 2011-06-08 Julian Brown <julian@codesourcery.com>
3233
3234 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3235 for double-precision helper functions in hard-float mode if only
3236 single-precision arithmetic is supported in hardware.
3237
3238 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
3239
3240 PR rtl-optimization/49303
3241 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
3242 code_motion_path_driver returned 0 or 1.
3243 (sel_region_finish): Clear h_d_i_d.
3244
3245 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3246
3247 * config/sh/sh.c (prepare_move_operands): Set pic register
3248 appropriately for global and local dynamic tls models even
3249 if flag_pic is unset.
3250
3251 2011-06-07 Jason Merrill <jason@redhat.com>
3252
3253 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3254
3255 2011-06-07 Xinliang David Li <davidxl@google.com>
3256 * passes.c (enable_disable_pass): Handle assembler name.
3257 (is_pass_explicitly_enabled_or_disabled): Ditto.
3258
3259 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3260
3261 PR tree-optimization/48497
3262 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3263
3264 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3265
3266 PR tree-optimization/46728
3267 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3268 to use gimple_val_nonnegative_real_p.
3269 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3270 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3271
3272 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
3273
3274 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3275
3276 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
3277
3278 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3279 constant vectors.
3280
3281 2011-06-07 Richard Guenther <rguenther@suse.de>
3282
3283 * stor-layout.c (initialize_sizetypes): Initialize all
3284 sizetypes based on target definitions.
3285 (set_sizetype): Remove.
3286 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3287 * tree.h (set_sizetype): Remove.
3288
3289 2011-06-07 Nick Clifton <nickc@redhat.com>
3290
3291 * config.gcc: Unify V850 architecture options and add support for
3292 newer V850 architectures.
3293 * config/v850/t-v850e: Delete.
3294
3295 2011-06-07 Richard Guenther <rguenther@suse.de>
3296
3297 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3298 Call set_sizetype from here.
3299
3300 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
3301
3302 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3303 (*maddhisi4tb, *maddhisi4tt): New define_insns.
3304
3305 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
3306 Andrew Stubbs <ams@codesourcery.com>
3307
3308 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3309 multiplies.
3310 * doc/md.texi (Canonicalization of Instructions): Document widening
3311 multiply canonicalization.
3312
3313 2011-06-07 Jakub Jelinek <jakub@redhat.com>
3314
3315 PR gcov-profile/49299
3316 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
3317
3318 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
3319
3320 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3321 a pointer.
3322 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3323 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3324 vect_recog_pow_pattern): Likewise.
3325 (vect_pattern_recog_1): Remove declaration.
3326 (widened_name_p): Remove declaration. Add new argument to specify
3327 whether to check that both types are either signed or unsigned.
3328 (vect_recog_widen_mult_pattern): Update documentation. Handle
3329 unsigned patterns and multiplication by constants.
3330 (vect_pattern_recog_1): Update vect_recog_func references. Use
3331 statement information from the statement returned from pattern
3332 detection functions.
3333 (vect_pattern_recog): Update vect_recog_func reference.
3334 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3335 multiplication by a constant use the type of the other operand.
3336
3337 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
3338
3339 PR rtl-optimization/49145
3340 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3341
3342 2011-06-06 Jakub Jelinek <jakub@redhat.com>
3343
3344 PR debug/49262
3345 * dwarf2out.c (native_encode_initializer): Decrement count in each
3346 iteration.
3347
3348 PR debug/49294
3349 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3350 non-MODE_INT modes.
3351
3352 PR c++/49264
3353 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3354 if stmt folded into nothing.
3355 * tree-inline.c (fold_marked_statements): If a builtin at the end of
3356 a bb folded into nothing, just update cgraph edges and move to next bb.
3357 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3358 to be NULL. Don't compute count and frequency if new_call is NULL.
3359
3360 2011-06-04 Diego Novillo <dnovillo@google.com>
3361
3362 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3363 (cgraph.o): Likewise.
3364 (cgraphunit.o): Likewise.
3365 * cgraphunit.c: Include lto-streamer.h
3366 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3367 if LTO is enabled.
3368 * lto-streamer-in.c (unpack_value_fields): Call
3369 streamer_hooks.unpack_value_fields if set.
3370 (lto_materialize_tree): For unhandled nodes, first try to
3371 call lto_streamer_hooks.alloc_tree, if it exists.
3372 (lto_input_ts_decl_common_tree_pointers): Move reading of
3373 DECL_INITIAL to lto_streamer_read_tree.
3374 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3375 (lto_streamer_read_tree): New.
3376 (lto_reader_init): Rename from lto_init_reader.
3377 Move initialization code to lto/lto.c.
3378 * lto-streamer-out.c (pack_value_fields): Call
3379 streamer_hooks.pack_value_fields if set.
3380 (lto_output_tree_ref): For tree nodes that are not normally indexable,
3381 call streamer_hooks.indexable_with_decls_p before giving up.
3382 (lto_output_ts_decl_common_tree_pointers): Move handling
3383 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3384 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3385 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
3386 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
3387 (lto_streamer_write_tree): New.
3388 (lto_output): Call lto_streamer_init directly.
3389 (lto_writer_init): Remove.
3390 * lto-streamer.c (streamer_hooks): New.
3391 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3392 instead of lto_preload_common_nodes.
3393 (lto_is_streamable): Move from lto-streamer.h
3394 (lto_streamer_hooks_init): New.
3395 (streamer_hooks): New.
3396 (streamer_hooks_init): New.
3397 * lto-streamer.h (struct output_block): Forward declare.
3398 (struct lto_input_block): Likewise.
3399 (struct data_in): Likewise.
3400 (struct bitpack_d): Likewise.
3401 (struct streamer_hooks): Declare.
3402 (streamer_hooks): Declare.
3403 (lto_streamer_hooks_init): Declare.
3404 (lto_streamer_write_tree): Declare.
3405 (lto_streamer_read_tree): Declare.
3406 (streamer_hooks_init): Declare.
3407 (lto_is_streamable): Move to lto-streamer.c
3408
3409 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3410
3411 * longlong.h (smul_ppmm): The resulting register pair contains the
3412 higher order word first.
3413
3414 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3415
3416 PR tree-optimization/46728
3417 * builtins.c (powi_table): Remove.
3418 (powi_lookup_cost): Remove.
3419 (powi_cost): Remove.
3420 (expand_powi_1): Remove.
3421 (expand_powi): Remove.
3422 (expand_builtin_pow_root): Remove.
3423 (expand_builtin_pow): Remove.
3424 (expand_builtin_powi): Eliminate handling of constant exponent.
3425 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
3426
3427 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3428
3429 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3430
3431 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3432
3433 * dce.c (reset_unmarked_insns_debug_uses): New.
3434 (delete_unmarked_insns): Skip debug insns.
3435 (prescan_insns_for_dce): Likewise.
3436 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3437 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3438 active reg can be found.
3439 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
3440 (convert_regs_1): Use it.
3441
3442 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3443
3444 * tree-pretty-print.c (dump_function_header): Add flags.
3445 Don't dump decl_uid with nouid.
3446 * tree-pretty-print.h (dump_function_header): Adjust.
3447 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3448 * passes.c (pass_init_dump_file): Pass dump_flags on.
3449 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3450
3451 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3452
3453 PR bootstrap/49270
3454 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3455
3456 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
3457
3458 PR tree-optimization/49243
3459 * calls.c (setjmp_call_p): Also check if fndecl has the
3460 returns_twice attribute.
3461
3462 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3463
3464 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3465 -ffast-math etc.
3466
3467 2011-06-06 Richard Henderson <rth@redhat.com>
3468 Georg-Johann Lay <avr@gjlay.de>
3469
3470 PR target/42210
3471 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3472 New predicates.
3473 * config/avr/avr.md ("insv"): New insn expander.
3474 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3475 "*insv.not.io", "*insv.reg"): New insns.
3476
3477 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
3478
3479 PR target/49285
3480 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3481 to nonimmediate_operand from memory_operand for the operand that is to
3482 be forced to memory by the expander. Lose the constraints.
3483
3484 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
3485
3486 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3487 EH return when delayed branches are disabled.
3488
3489 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
3490
3491 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3492 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
3493 calculation.
3494 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3495 Simplify MODE_V1DF and MODE_V2SF handling.
3496 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3497 Simplify MODE_SF handling.
3498
3499 2011-06-04 Jan Hubicka <jh@suse.cz>
3500
3501 PR tree-optimization/48893
3502 PR tree-optimization/49091
3503 PR tree-optimization/49179
3504 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3505 Bounds check.
3506
3507 2011-06-04 Jan Hubicka <jh@suse.cz>
3508
3509 PR lto/48954
3510 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3511 bitmaps.
3512
3513 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
3514
3515 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3516
3517 2011-06-04 Jakub Jelinek <jakub@redhat.com>
3518
3519 PR target/49281
3520 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3521 to be strictly smaller than 1 << shiftcount.
3522
3523 2011-06-04 Jan Hubicka <jh@suse.cz>
3524
3525 PR tree-optimize/48929
3526 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3527 of empty predicate.
3528
3529 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
3530
3531 PR debug/48333
3532 * calls.c (emit_call_1): Prefer the __builtin declaration of
3533 builtin functions.
3534
3535 2011-06-03 Diego Novillo <dnovillo@google.com>
3536
3537 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3538 (lto_input_tree_pointers): Likewise.
3539 * lto-streamer-out.c (pack_value_fields): Likewise.
3540 (lto_output_tree_pointers): Likewise.
3541 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3542 and OPTIMIZATION_NODE.
3543
3544 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3545
3546 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3547 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3548 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3549 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3550 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3551 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3552 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3553 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3554 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3555 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3556 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3557 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3558 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3559 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3560 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3561 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3562 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3563 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3564 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3565 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3566 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3567 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3568 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3569 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3570 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3571 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3572 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3573 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3574 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3575 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3576 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3577 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3578 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3579 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3580 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3581 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3582 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3583 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3584 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3585 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3586 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3587 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3588 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3589 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3590 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3591 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3592 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3593 * system.h (MD_UNWIND_SUPPORT): Poison.
3594 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3595 * doc/tm.texi: Regenerate.
3596 * unwind-dw2.c: Include md-unwind-support.h instead of
3597 MD_UNWIND_SUPPORT.
3598 * config/ia64/unwind-ia64.c: Likewise.
3599 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3600
3601 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
3602
3603 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3604
3605 2011-06-03 Richard Henderson <rth@redhat.com>
3606 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3607
3608 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3609 (sigill_hdlr): Correct insn, insn size.
3610 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3611
3612 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3613
3614 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3615 t-slibgcc-dummy.
3616 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3617 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3618 * config/mips/t-iris: Remove.
3619 * config/mips/t-irix6: New file.
3620 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3621
3622 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3623
3624 * Makefile.in (LIB2ADDEHDEP): Remove.
3625 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3626 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3627 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3628 * config/t-darwin (LIB2ADDEHDEP): Remove.
3629 * config/t-freebsd (LIB2ADDEHDEP): Remove.
3630 * config/t-linux (LIB2ADDEHDEP): Remove.
3631
3632 2011-06-03 Diego Novillo <dnovillo@google.com>
3633
3634 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3635 (lto_register_var_decl_in_symtab): Likewise.
3636 (lto_register_function_decl_in_symtab): Likewise.
3637 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3638 logic to uniquify_nodes.
3639
3640 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3641
3642 * config/alpha/t-osf5: Remove.
3643 * config/alpha/t-osf-pthread: Remove.
3644 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3645 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3646
3647 2011-06-03 Julian Brown <julian@codesourcery.com>
3648
3649 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3650 (strongarm1110): Use strongarm tuning.
3651 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3652 * config/arm/arm.c (arm_strongarm_tune): New.
3653 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3654 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3655 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3656 setting, using previous defaults or 1 for Cortex-A5.
3657 (arm_option_override): Set max_insns_skipped from current tuning.
3658
3659 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3660
3661 * doc/install.texi (Options specification): Document --with-specs.
3662
3663 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3664
3665 * config/arm/neon.md (orndi3_neon): Actually split it.
3666
3667 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3668
3669 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3670 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3671
3672 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3673
3674 PR debug/47590
3675 * target.def (delay_sched2, delay_vartrack): New.
3676 * doc/tm.texi.in: Update.
3677 * doc/tm.texi: Rebuild.
3678 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3679 * var-tracking.c (gate_handle_var_tracking): Likewise.
3680 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3681 (bfin_flag_var_tracking): Drop.
3682 (output_file_start): Don't save and override flag_var_tracking.
3683 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3684 (bfin_reorg): Test original variables.
3685 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3686 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3687 (ia64_flag_var_tracking): Drop.
3688 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3689 (ia64_file_start): Don't save and override flag_var_tracking.
3690 (ia64_override_options_after_change): Ditto
3691 flag_schedule_insns_after_reload.
3692 (ia64_reorg): Test original variables.
3693 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3694 (picochip_flag_var_tracking): Drop.
3695 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3696 (picochip_option_override): Don't save and override
3697 flag_schedule_insns_after_reload.
3698 (picochip_asm_file_start): Ditto flag_var_tracking.
3699 (picochip_reorg): Test original variables.
3700 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3701 (TARGET_DELAY_VARTRACK): Define.
3702 (spu_var_tracking): New.
3703 (spu_machine_dependent_reorg): Call it.
3704 (asm_file_start): Don't save and override flag_var_tracking.
3705
3706 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3707
3708 PR target/49163
3709 * config/sh/predicates.md (general_movsrc_operand): Return 0
3710 for memory and memory subreg of which address is an invalid
3711 indexed address for QI and HImode.
3712 (general_movdst_operand): Likewise.
3713
3714 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3715
3716 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3717 edges only, when there is a non-local label in the function.
3718 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3719
3720 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3721
3722 * config/i386/constraints.md (Y3): New register constraint.
3723 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3724 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3725 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3726 *sse2_interleave_lowv2df.
3727
3728 2011-06-02 Julian Brown <julian@codesourcery.com>
3729
3730 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3731 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3732 (arm_cortex_a5_tune): New.
3733
3734 2011-06-02 Julian Brown <julian@codesourcery.com>
3735
3736 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3737 * config/arm/arm.c (arm_default_branch_cost): New.
3738 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3739 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3740 (arm_fa726_tune): Set branch_cost field using
3741 arm_default_branch_cost.
3742 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3743 current_tune structure.
3744 * dojump.c (tm_p.h): Include file.
3745
3746 2011-06-02 Julian Brown <julian@codesourcery.com>
3747
3748 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3749 tuning.
3750 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3751 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3752 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3753 field.
3754 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3755 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3756 (arm_fa726te_tune): Add prefer_constant_pool setting.
3757 (arm_v6t2_tune, arm_cortex_tune): New.
3758 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3759 prefer_constant_pool setting.
3760
3761 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3762
3763 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3764 switch statement.
3765 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3766 (*movdf_internal) <case 6,7,8>: Ditto.
3767
3768 * config/i386/constraints.md (Y4): New register constraint.
3769 * config/i386/sse.md (vec_set<mode>_0): Merge with
3770 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3771 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3772 *vec_extractv2di_1_sse.
3773 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3774 and *vec_concatv2di_rex64_sse.
3775
3776 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3777
3778 PR target/48807
3779 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3780 of cgraph_local_info for null before attempting to use it.
3781
3782 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3783
3784 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3785 (current_function_dynamic_alloc_count): Delete.
3786 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3787 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3788 (expand_builtin_update_setjmp_buf): Remove dead code.
3789 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3790 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3791 support.
3792 * function.c (instantiate_virtual_regs): Likewise.
3793 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3794 for a block with a single abnormal incoming edge.
3795 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3796 (SETJMP_VIA_SAVE_AREA): Delete.
3797 * config/sparc/sparc-protos.h (load_got_register): Declare.
3798 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3799 (load_got_register): Make global.
3800 (sparc_frame_pointer_required): Add 'static'.
3801 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3802 (sparc_builtin_setjmp_frame_value): New function.
3803 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3804 (save_stack_nonlocal): New expander.
3805 (restore_stack_nonlocal): Likewise.
3806 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3807 (nonlocal_goto_internal): New insn.
3808 (goto_handler_and_restore): Delete.
3809 (builtin_setjmp_setup): Likewise.
3810 (do_builtin_setjmp_setup): Likewise.
3811 (setjmp): Likewise.
3812 (builtin_setjmp_receiver): New expander.
3813
3814 2011-06-01 David Li <davidxl@google.com>
3815
3816 PR middle-end/49261
3817 * tree-pretty-print.c (dump_function_header): Format cleanup.
3818
3819 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3820
3821 PR target/49238
3822 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3823 needed when original operands are used for msw_skip comparison.
3824
3825 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3826
3827 PR debug/49250
3828 * var-tracking.c (add_uses, add_stores): Don't call
3829 cselib_subst_to_values on ENTRY_VALUE.
3830
3831 2011-06-01 Diego Novillo <dnovillo@google.com>
3832
3833 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3834 output_record_start with LTO_null instead of output_zero.
3835 (lto_output_ts_binfo_tree_pointers): Likewise.
3836 (lto_output_tree): Likewise.
3837 (output_eh_try_list): Likewise.
3838 (output_eh_region): Likewise.
3839 (output_eh_lp): Likewise.
3840 (output_eh_regions): Likewise.
3841 (output_bb): Likewise.
3842 (output_function): Likewise.
3843 (output_unreferenced_globals): Likewise.
3844 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3845 instead of NUM_TREE_CODES.
3846 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3847 (lto_output_int_in_range): Change << to >> when shifting VAL.
3848
3849 2011-06-01 Diego Novillo <dnovillo@google.com>
3850
3851 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3852 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3853
3854 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3855
3856 PR target/45074
3857 * optabs.h (valid_multiword_target_p): Declare.
3858 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3859 doing multi-word operations.
3860 * optabs.c (expand_binop): Likewise.
3861 (expand_doubleword_bswap): Likewise.
3862 (expand_absneg_bit): Likewise.
3863 (expand_unop): Likewise.
3864 (expand_copysign_bit): Likewise.
3865 (multiword_target_p): New function.
3866
3867 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3868
3869 PR rtl-optimization/48830
3870 PR rtl-optimization/48808
3871 PR rtl-optimization/48792
3872 * reload.c (push_reload): Check contains_reg_of_mode.
3873 * reload1.c (strip_paradoxical_subreg): New function.
3874 (gen_reload_chain_without_interm_reg_p): Use it to handle
3875 paradoxical subregs.
3876 (emit_output_reload_insns, gen_reload): Likewise.
3877
3878 2011-06-01 David Li <davidxl@google.com>
3879
3880 * predict.c : Change pass name
3881 * ipa.c: Ditto.
3882 * dce.c: Ditto.
3883 * tree-profile.c: Ditto.
3884 * except.c: Ditto.
3885
3886 2011-06-01 David Li <davidxl@google.com>
3887
3888 * tree-pretty-print.c (dump_function_header): New function.
3889 * final.c (rest_of_clean_state): Use header dumper.
3890 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3891 * passes.c (pass_init_dump_file): Use header dumper.
3892
3893 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3894
3895 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3896 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3897 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3898 New functions.
3899 (mem_loc_descriptor): Use them.
3900
3901 * var-tracking.c (create_entry_value): New function.
3902 (vt_add_function_parameter): Use it.
3903
3904 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3905
3906 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3907 Include <signal.h>, <ucontext.h>.
3908 (sigill_caught): Define.
3909 (sigill_hdlr): New function.
3910 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3911 insns can be executed.
3912 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3913 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3914
3915 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3916
3917 * config/t-slibgcc-darwin: Move to ...
3918 * config/t-slibgcc-dummy: ... this. Clarify comments.
3919 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3920 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3921 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3922 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
3923 Remove i386/t-crtstuff from tmake_file.
3924 (i[34567]86-*-solaris2*): Remove t-svr4,
3925 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3926 t-slibgcc-dummy.
3927 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3928 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3929 sparc/t-crtfm from tmake_file.
3930 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3931 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3932 Remove extra_parts.
3933 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3934 * config/i386/t-nwld (SHLIB_LINK): Remove.
3935 * config/i386/t-rtems-i386: Rename to ...
3936 * config/i386/t-rtems: ... this.
3937 ($(T)crti.o, $(T)crtn.o): Remove.
3938 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3939 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3940 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3941 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3942 EXTRA_MULTILIB_PARTS): Remove.
3943 * config/sparc/t-sol2-64: Likewise.
3944 * config/sparc/t-sol2: Remove.
3945 * config/sparc/t-crtin: Remove.
3946 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3947 * config/i386/gmon-sol2.c: Remove.
3948 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3949 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3950 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3951 * config/i386/sol2-gc1.asm: Remove.
3952 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3953 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3954 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3955 * config/t-slibgcc-sld: Remove.
3956
3957 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3958
3959 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3960 base_type_for_mode with op_mode instead of mode.
3961
3962 2011-06-01 Paul Brook <paul@cpodesourcery.com>
3963
3964 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3965 Cortex-A15.
3966 * config/arm/arm-tune.md: Regenerate.
3967 * config/arm/arm-tables.opt: Regenerate.
3968 * config/arm/arm.c (FL_DIV): Rename...
3969 (FL_THUMB_DIV): ... to this.
3970 (FL_ARM_DIV): Define.
3971 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3972 (arm_arch_hwdiv): Remove.
3973 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3974 (arm_issue_rate): Add cortexr5.
3975 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3976 __ARM_ARCH_EXT_IDIV__.
3977 (TARGET_IDIV): Define.
3978 (arm_arch_hwdiv): Remove.
3979 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3980 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3981 (divsi3, udivsi3): New patterns.
3982 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3983 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3984
3985 2011-06-01 Martin Jambor <mjambor@suse.cz>
3986
3987 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3988 * ipa-utils.c (searchc): Set scc_no.
3989
3990 2011-06-01 Martin Jambor <mjambor@suse.cz>
3991
3992 * ipa-utils.c (searchc_env): New field allow_overwritable.
3993 (searchc): do not ignore edges to overwritable nodes if indicated
3994 by env->allow_overwritable.
3995 (ipa_reduced_postorder): Set env.allow_overwritable.
3996
3997 2011-06-01 Richard Guenther <rguenther@suse.de>
3998
3999 * tree.c (free_lang_data): Do not reset boolean_type_node nor
4000 char_type_node.
4001 * lto-streamer.c (lto_record_common_node): Take node pointer,
4002 do not register types.
4003 (lto_preload_common_nodes): Explicitly skip preloading nodes
4004 that differ between frontends.
4005
4006 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
4007
4008 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
4009 NON_FLOAT_REGS.
4010
4011 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
4012
4013 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
4014 parameter value for dump. Dump cost on outermost call only.
4015 (rs6000_memory_move_cost): Dump cost on outermost call only.
4016
4017 2011-05-31 Jakub Jelinek <jakub@redhat.com>
4018
4019 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
4020 DW_OP_GNU_convert ops.
4021
4022 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
4023 cselib_preserve_constants.
4024 (cselib_lookup_1): If cselib_preserve_constants,
4025 a new VALUE is being created for REG and there is a VALUE for the
4026 same register in wider mode, add another loc with lowpart SUBREG of
4027 the wider VALUE.
4028 (cselib_subst_to_values): Handle ENTRY_VALUE.
4029 * var-tracking.c (replace_expr_with_values): Return NULL for
4030 ENTRY_VALUE too.
4031 * dwarf2out.c (convert_descriptor_to_signed): New function.
4032 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
4033 instead of two shifts.
4034 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
4035 the right mode if needed.
4036 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
4037 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
4038 convert_descriptor_to_signed.
4039 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
4040 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
4041
4042 PR target/48688
4043 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
4044
4045 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4046
4047 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
4048 of X87MODEI12 and SWI48x instead of SSEMODEI24.
4049 (SWI248x): New mode iterator, rename from X87MODEI.
4050 (X87MODEI): Remove mode iterator.
4051 (X87MODEI12): Ditto.
4052 (SSEMODEI24): Ditto.
4053
4054 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4055
4056 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
4057 * doc/invoke.texi: Document max-vartrack-expr-depth.
4058 * var-tracking.c (EXPR_DEPTH): New.
4059 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
4060
4061 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4062
4063 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
4064 * config/i386/sse.md: Add n to negated FMA pattern names.
4065
4066 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4067
4068 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
4069
4070 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4071
4072 * gengtype-state.c (read_state_params_structs): Initialize previous.
4073
4074 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4075
4076 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
4077 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
4078
4079 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4080
4081 * config/i386/i386.md (*movtf_internal): Avoid allocating general
4082 registers. Penalize F*r->o alternative to prevent partial memory
4083 stalls. Slightly penalize *roF->*r alternative. Generate SSE
4084 CONST_DOUBLE immediates when optimizing function for size. Do not move
4085 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4086 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
4087 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
4088 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
4089 alternatives.
4090 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
4091
4092 (fp_register_operand splitters): Use fp_register_operand
4093 constraint. Do not use FP_REG_P in insn condition.
4094 (any_fp_register_operand splitters): Use any_fp_register_operand
4095 constraint. Do not use ANY_FP_REG_P in insn condition.
4096
4097 2011-05-31 Jan Hubicka <jh@suse.cz>
4098
4099 * cgraph.h (cgraph_inline_failed_t): Give enum a name
4100 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
4101 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
4102 (lto_output_edge): Use output_enum and var_len_unsigned.
4103 (lto_output_varpool_node): Likewise.
4104 (input_overwrite_node): Do not take resolution parameter;
4105 extract it from a bitpack.
4106 (input_node): Do not read resolution; use input_enum and
4107 var_len_unsigned.
4108 (input_varpool_node): Likewise.
4109 (input_edge): Likewise.
4110 (input_cgraph_1): Likewise.
4111
4112 2011-05-31 Richard Guenther <rguenther@suse.de>
4113
4114 * gimple.c (gimple_register_canonical_type): Do not register
4115 any types via gimple_register_type.
4116
4117 2011-05-31 Jan Hubicka <jh@suse.cz>
4118
4119 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
4120 of thunks.
4121
4122 2011-05-31 Jakub Jelinek <jakub@redhat.com>
4123
4124 PR rtl-optimization/49235
4125 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
4126 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
4127
4128 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
4129
4130 PR tree-optimization/49093
4131 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
4132 data references.
4133
4134 2011-05-31 Dodji Seketeli <dodji@redhat.com>
4135
4136 PR debug/49047
4137 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
4138 for concrete functions containing the code of cloned functions.
4139
4140 2011-05-31 Richard Guenther <rguenther@suse.de>
4141
4142 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
4143 to ...
4144 (forward_propagate_into_comparison_1): ... this.
4145 (forward_propagate_comparison): Rename to ...
4146 (forward_propagate_into_comparison): ... this. Split out
4147 real forward propagation code to ...
4148 (forward_propagate_comparison): ... this.
4149 (forward_propagate_into_gimple_cond): Remove looping.
4150 (forward_propagate_into_cond): Likewise.
4151 (simplify_not_neg_expr): Return whether we have done something.
4152 (simplify_gimple_switch): Likewise.
4153 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
4154 (ssa_forward_propagate_and_combine): ... this. Re-structure
4155 to do a forward forward-propagation walk on BBs and a backward
4156 stmt combining walk on BBs. Consistently re-scan changed statements.
4157 (pass_forwprop): Adjust.
4158
4159 2011-05-30 Ian Lance Taylor <iant@google.com>
4160
4161 * godump.c (go_format_type): Correct length of name added to
4162 obstack for anonymous field.
4163
4164 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
4165
4166 PR target/49186
4167 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
4168 part of the second operand is 0.
4169
4170 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
4171
4172 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
4173 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
4174 to memory for !TARGET_MEMORY_MISMATCH_STALL.
4175 (*movdf_internal_rex64): Do not penalize F->r alternative.
4176 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
4177 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
4178 when optimizing function for size. Do not move CONST_DOUBLEs
4179 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4180 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
4181 SUBREGs. Do not check for MEM_P operands in the insn condition,
4182 check for ANY_FP_REGNO_P instead.
4183 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
4184 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
4185 function for speed.
4186 * config/i386/i386.c (ix86_option_override_internal): Do not
4187 set TARGET_INTEGER_DFMODE_MOVES here.
4188
4189 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
4190
4191 PR target/49168
4192 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
4193
4194 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4195
4196 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
4197 DW_TAG_rvalue_reference_type even for
4198 -gdwarf-4 -fno-debug-types-section.
4199
4200 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4201
4202 PR tree-optimization/46728
4203 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
4204 (build_and_insert_binop): New.
4205 (gimple_expand_builtin_pow): Reorder args for
4206 build_and_insert_call; use build_and_insert_binop; add more
4207 optimizations for fractional exponents.
4208
4209 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4210
4211 PR bootstrap/49190
4212
4213 Revert:
4214 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4215
4216 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4217 tree_common.
4218 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4219 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4220 TS_BASE instead of TS_COMMON.
4221 * varasm.c (assemble_name): Remove assert.
4222
4223 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
4224
4225 * config.gcc: Keep obselete list sorted.
4226
4227 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4228 Eric Botcazou <ebotcazou@adacore.com>
4229
4230 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4231 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4232 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4233 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4234 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4235
4236 2011-05-30 Richard Guenther <rguenther@suse.de>
4237
4238 * gimple.c (gimple_types_compatible_p_1): Compare record
4239 and union type members properly.
4240
4241 2011-05-30 Richard Guenther <rguenther@suse.de>
4242
4243 PR tree-optimization/49210
4244 * ipa-split.c (split_function): Care for the case where the call
4245 result is not trivially convertible to the result holding variable.
4246
4247 2011-05-30 Richard Guenther <rguenther@suse.de>
4248
4249 PR tree-optimization/49218
4250 * tree-vrp.c (adjust_range_with_scev): Properly check whether
4251 overflow occured.
4252
4253 2011-05-30 Richard Guenther <rguenther@suse.de>
4254
4255 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4256 New function split out from ...
4257 (forward_propagate_into_gimple_cond): ... here. Adjust.
4258 (forward_propagate_into_cond): Likewise.
4259 (forward_propagate_comparison): Also propagate into
4260 comparisons on assignment RHS. Change return value to
4261 behave similar to forward_propagate_into_cond.
4262 (tree_ssa_forward_propagate_single_use_vars): Handle
4263 strict-overflow warnings properly for forward_propagate_comparison.
4264
4265 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4266
4267 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4268 from plugin linker.
4269 * configure: Regenerate.
4270
4271 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
4272
4273 PR tree-optimization/49199
4274 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
4275 non-reduction operands are either defined in the loop or by induction.
4276
4277 2011-05-29 Xinliang David Li <davidxl@google.com>
4278
4279 * opts-global.c (handle_common_deferred_options): Handle new options.
4280 * passes.c (register_one_dump_file): Call register_pass_name.
4281 (execute_one_pass): Check explicit enable/disable flag.
4282 (passr_hash): New function.
4283 (passr_eq): Ditto.
4284 (register_pass_name): Ditto.
4285 (get_pass_by_name): Ditto.
4286 (pass_hash): Ditto.
4287 (pass_eq): Ditto.
4288 (enable_pass): Ditto.
4289 (disable_pass): Ditto.
4290 (is_pass_explicitly_enabled_or_disabled): Ditto.
4291
4292 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
4293
4294 * config/i386/i386.md (*movoi_internal_avx): Use
4295 standard_sse_constant_opcode for alternative 0.
4296 (*movti_internal_sse): Ditto.
4297 (*movti_internal_rex64): Use standard_sse_constant_opcode for
4298 alternative 2.
4299 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4300 sselog1 type moves.
4301 (*movsi_internal): Ditto.
4302 (*movdi_internal): Ditto. Add ssecvt type moves.
4303
4304 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
4305
4306 PR target/48830
4307 * rtlanal.c (simplify_subreg_regno): Adjust comment.
4308
4309 2011-05-29 Jakub Jelinek <jakub@redhat.com>
4310
4311 PR rtl-optimization/49095
4312 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4313 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4314
4315 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4316
4317 PR target/43995
4318 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4319 recurse_p argument. Only follow register copies if it is set,
4320 and prevent mips_find_pic_call_symbol from recursing.
4321 (mips_find_pic_call_symbol): Add a recurse_p argument.
4322 Pass it to mips_pic_call_symbol_from_set.
4323 (mips_annotate_pic_calls): Update accordingly.
4324
4325 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4326
4327 * emit-rtl.c (try_split): Use a loop to search for
4328 NOTE_INSN_CALL_ARG_LOCATIONs.
4329
4330 2011-05-29 Richard Guenther <rguenther@suse.de>
4331
4332 PR tree-optimization/49217
4333 * ipa-pure-const.c (propagate_pure_const): Fix typos.
4334
4335 2011-05-28 Jan Hubicka <jh@suse.cz>
4336
4337 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4338 length.
4339 (string_slot_free): Remove
4340 (create_output_block): Initialize obstack.
4341 (destroy_output_block): Free obstack.
4342 (lto_string_index): Add PERSISTENT parameter; do not duplicate
4343 the string unless it needs to be added into the hash.
4344 (lto_output_string_with_length): Add persistent attribute;
4345 handle NULL strings.
4346 (lto_output_string): Add PERSISTENT parameter.
4347 (output_string_cst, output_identifier): Simplify.
4348 (lto_output_location_bitpack): Update.
4349 (lto_output_builtin_tree): Update.
4350 * lto-streamer.h (struct output_block): Add obstack.
4351 (lto_output_string, lto_output_string_with_length): Remove
4352 declarations; functions are static now.
4353
4354 2011-05-28 Jan Hubicka <jh@suse.cz>
4355
4356 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4357 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4358 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4359 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4360 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4361 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4362 unpack_ts_decl_with_vis_value_fields,
4363 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4364 lto_get_builtin_tree): Use enum and variable length i/o.
4365 * basic-block.h (profile_status_d): Add PROFILE_LAST.
4366 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4367 New functions.
4368 (bp_pack_enum, bp_unpack_enum): New macros.
4369
4370 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4371
4372 * genrecog.c: Remove redundant forward declarations.
4373
4374 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4375
4376 * config.gcc: Deprecate mips*-*-openbsd*.
4377
4378 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4379
4380 PR bootstrap/49195
4381 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4382 for match_op_dup.
4383
4384 2011-05-27 Andrew Pinski <pinskia@gmail.com>
4385
4386 PR middle-end/48981
4387 * gengtype.c (vec_prefix_type): New function.
4388 (note_def_vec): Use vec_prefix_type and change the length
4389 attribute to be based on the prefix.
4390 * vec.c: Include coretypes.h before vec.h.
4391 (struct vec_prefix): Remove.
4392 (vec_gc_p_reserve): Change the offsetof to sizeof.
4393 (vec_gc_p_reserve_exact): Likewise.
4394 (vec_heap_p_reserve): Likewise.
4395 (vec_heap_p_reserve_exact): Likewise.
4396 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4397 (vec_stack_p_reserve): Change the offsetof to sizeof.
4398 (vec_stack_p_reserve_exact): Likewise.
4399 * vec.h (struct vec_prefix): New struct definition.
4400 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4401 (VEC_T_GTY(T,B)): Likewise.
4402 (DEF_VEC_FUNC_P(T)): Use prefix field.
4403 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4404 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4405
4406 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4407
4408 PR tree-optimization/46728
4409 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4410 (powi_as_mults): Add gimple_set_location.
4411 (build_and_insert_call): New.
4412 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4413 0.5, 0.25, 0.75, 1./3., or 1./6.
4414
4415 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
4416
4417 * doc/contrib.texi: Update copyright years.
4418 (Contributors): Add Zdenek Sojka.
4419
4420 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4421
4422 * c-decl.c (c_push_function_context): Copy the current statement
4423 list stack.
4424 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4425 (finish_struct): Call building_stmt_list_p instead of checking
4426 cur_stmt_list.
4427 * c-parser.c (c_parser_postfix_expression): Likewise.
4428 * c-typeck.c (c_end_compound_stmt): Likewise.
4429 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4430 * tree-iterator.c (stmt_list_cache): Change to a VEC.
4431 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4432 (free_stmt_list): Likewise.
4433 * tree.h (struct tree_statement_list): Include typed_tree instead
4434 of tree_common.
4435 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4436 as TS_TYPED instead of TS_COMMON.
4437
4438 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4439 Uros Bizjak <ubizjak@gmail.com>
4440
4441 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4442 (HAVE_AS_IX86_TLSGDPTL): Define.
4443 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4444 (HAVE_AS_IX86_TLSLDMPLT): Define.
4445 * configure: Regenerate.
4446 * config.in: Regenerate.
4447 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4448 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4449 TARGET_SUN_TLS, use @tlsgdplt or @plt.
4450 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4451 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4452 @tlsldmplt or @plt.
4453 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4454
4455 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4456
4457 * sched-int.h (struct _haifa_deps_insn_data): New members cond
4458 and reverse_cond.
4459 (INSN_COND, INSN_REVERSE_COND): New macros.
4460 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4461 once.
4462 (sched_get_condition_with_rev): Cache the results, and look them up
4463 if possible.
4464 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4465 are clobbered by the current insn.
4466 * target.def (exposed_pipline): New sched data hook.
4467 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4468 * doc/tm.texi: Regenerate.
4469
4470 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4471
4472 PR tree-optimization/49170
4473 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
4474 sincos or cexp.
4475
4476 2011-05-27 Richard Guenther <rguenther@suse.de>
4477
4478 PR middle-end/49189
4479 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4480 of comparisons.
4481
4482 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4483
4484 * haifa-sched.c (sched_scan_info): Remove.
4485 (schedule_block): Call sched_extend_luids rather than sched_init_luids
4486 with NULL args.
4487 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4488 Remove functions.
4489 (sched_scan): Remove.
4490 (sched_extend_luids): Renamed from luids_extend_insn and no longer
4491 static. All callers changed.
4492 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4493 static. All callers changed.
4494 (sched_init_luids): Remove all arguments except the first. All
4495 callers changed. Don't use sched_scan.
4496 (haifa_init_h_i_d): Likewise.
4497 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4498 manually rather than using sched_init_luids. Likewise with
4499 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4500 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4501 rather than sched_init_luids with NULL args.
4502 * sel-sched-ir.c (new_insns): Remove variable.
4503 (sched_scan): New static function, previously in haifa-sched.c. Remove
4504 all arguments but the first two; all callers changed.
4505 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4506 rather than sched_init_luids.
4507 (sel_init_bbs): Remove second argument. All callers changed.
4508 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4509 with NULL arguments.
4510 (create_insn_rtx_from_pattern): Likewise.
4511 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4512 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4513 (sched_init_insn_luid, sched_extend_luids): Declare.
4514 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4515 declarations.
4516
4517 2011-05-27 Richard Guenther <rguenther@suse.de>
4518
4519 PR middle-end/49177
4520 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4521 A CMP B ? (T) true : (T) false for non-integral types T again.
4522
4523 2011-05-27 Jan Hubicka <jh@suse.cz>
4524
4525 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4526 so 0 means NULL string.
4527 (lto_output_string_with_length): ... here.
4528 (lto_output_string, output_string_cst, output_identifier): Update
4529 handling of NULL strings.
4530 (lto_output_location_bitpack): New function.
4531 (lto_output_location): Use it.
4532 (lto_output_tree_ref): Use output_record_start.
4533 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4534 len values.
4535 * lto-streamer-in.c (string_for_index): Break out from ...; offset
4536 values by 1.
4537 (input_string_internal): ... here;
4538 (input_string_cst, input_identifier, lto_input_string): Update handling
4539 of NULL strings.
4540 (lto_input_location_bitpack): New function
4541 (lto_input_location): Use it.
4542 (unpack_ts_type_common_value_fields): Pack align & alias in var len
4543 values.
4544 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4545 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4546 (bp_pack_value): Sanity check the value range.
4547 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4548 New functions.
4549 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4550 New functions.
4551
4552 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
4553
4554 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4555 call_arg_location instructions down the floor.
4556
4557 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
4558
4559 PR rtl-optimization/49154
4560 * ira.c (setup_pressure_classes): Process class without sublcasses
4561 as a candidate for pressure classes.
4562
4563 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
4564
4565 PR rtl-optimization/48575
4566 * genrecog.c (position_type): New enum.
4567 (position): New structure.
4568 (decision): Use position structure instead of a string.
4569 (root_pos, peep2_insn_pos_list): New variables.
4570 (next_position, compare_positions): New functions.
4571 (new_decision): Use position structures instead of strings.
4572 (maybe_both_true): Likewise.
4573 (change_state): Likewise.
4574 (write_tree): Likewise.
4575 (make_insn_sequence): Likewise.
4576
4577 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4578
4579 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4580 TS_BASE instead of TS_COMMON.
4581 (find_decls_types_r): Check for TS_TYPED structure before looking at
4582 TREE_TYPE.
4583 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4584 Add chain field.
4585 (BLOCK_CHAIN): Use new chain field.
4586
4587 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
4588
4589 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4590 moves expensive on Power7 also.
4591
4592 2011-05-26 Richard Guenther <rguenther@suse.de>
4593
4594 * fold-const.c (fold_unary_loc): Remove bogus code.
4595
4596 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4597
4598 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4599 tree_common.
4600 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4601 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4602 TS_BASE instead of TS_COMMON.
4603 * varasm.c (assemble_name): Remove assert.
4604
4605 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4606
4607 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4608 substituted first.
4609 * libgcc-std.ver: Delete file.
4610
4611 2011-05-26 Richard Guenther <rguenther@suse.de>
4612
4613 PR tree-optimization/48702
4614 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4615 only when we know the base address is within bounds.
4616 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4617 assume the base address of TARGET_MEM_REFs is in bounds.
4618
4619 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4620
4621 PR target/49099
4622 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4623 declaration in TARGET_SOLARIS.
4624
4625 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
4626
4627 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4628 The instruction is then expanded explicitly.
4629 (supported_compare): Callable instruction.
4630 (compare): Likewise.
4631
4632 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4633
4634 PR c++/49165
4635 * gimplify.c (shortcut_cond_r): Don't special case
4636 COND_EXPRs if they have void type on one of their arms.
4637
4638 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4639
4640 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4641 to reduce duplication, and to achieve a slightly more logical order
4642 of operations.
4643
4644 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4645
4646 PR tree-optimization/49161
4647 * tree-vrp.c (struct case_info): New type.
4648 (compare_case_labels): Sort case_info structs instead of
4649 trees, and not primarily by CASE_LABEL uids but by
4650 label_for_block indexes.
4651 (find_switch_asserts): Put case labels into struct case_info
4652 array instead of TREE_VEC, adjust sorting, compare label_for_block
4653 values instead of CASE_LABELs.
4654
4655 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4656
4657 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4658 ("orndi3_neon"): Likewise.
4659 ("bic<mode>3_neon"): Likewise.
4660
4661 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
4662
4663 PR tree-optimization/49038
4664 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4665 Ensure at least one epilogue iteration if required by data
4666 accesses with gaps.
4667 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4668 to mark loops that require peeling for gaps.
4669 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4670 (vect_get_known_peeling_cost): Take peeling for gaps into
4671 account.
4672 (vect_transform_loop): Generate epilogue if required by data
4673 access with gaps.
4674 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4675 loop as requiring an epilogue if there are gaps in the end of
4676 the strided group.
4677
4678 2011-05-25 Ian Lance Taylor <iant@google.com>
4679
4680 * godump.c (go_format_type): Output the first field with a usable
4681 Go type, if any.
4682
4683 2011-05-25 Ian Lance Taylor <iant@google.com>
4684
4685 * godump.c (go_format_type): Check for invalid type names, pointer
4686 target types, and struct field types.
4687
4688 2011-05-25 Jason Merrill <jason@redhat.com>
4689
4690 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4691
4692 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
4693
4694 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4695
4696 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4697
4698 * config/i386/i386.md (*movqi_extv_1)): Put back
4699 "register_operand" check in "type" calculation.
4700 (*movqi_extzv_2): Likewise.
4701
4702 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4703
4704 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4705
4706 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4707
4708 PR bootstrap/49160
4709 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4710 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4711 __divxc3, __divtc3): Wrap definitions in #ifndef.
4712
4713 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4714
4715 PR target/49142
4716 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4717 "register_operand" check and replace q_regs_operand with
4718 QIreg_operand in "type" calculation.
4719 (*movqi_extv_1): Likewise.
4720 (*movqi_extzv_2_rex64): Likewise.
4721 (*movqi_extzv_2): Likewise.
4722
4723 * config/i386/predicates.md (QIreg_operand): New.
4724
4725 2011-05-25 Richard Guenther <rguenther@suse.de>
4726
4727 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4728 type-based offset disambiguation, streamline MEM_REF and
4729 TARGET_MEM_REF handling.
4730
4731 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4732
4733 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4734 (bdesc_special_args): Add pause intrinsic.
4735
4736 * config/i386/i386.md (UNSPEC_PAUSE): New.
4737 (pause): Likewise.
4738 (*pause): Likewise.
4739 * config/i386/ia32intrin.h (__pause): Likewise.
4740
4741 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4742 pause intrinsic.
4743
4744 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4745
4746 PR tree-optimization/46728
4747 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4748 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4749
4750 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4751
4752 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4753 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4754 instead of TS_COMMON.
4755
4756 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4757
4758 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4759 LIBGCC2_GNU_PREFIX is defined.
4760 (__N): New macro.
4761 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4762 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4763 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4764 __clz_tab): Define using __N.
4765 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4766 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4767 * target.def (libfunc_gnu_prefix): New hook.
4768 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4769 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4770 * doc/tm.texi: Regenerate.
4771 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4772 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4773 account.
4774 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4775 (init_optabs): Likewise for the bswap libfuncs.
4776 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4777 and divide.
4778 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4779 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4780 * libgcc-std.ver: Remove.
4781 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4782 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4783 libgcc-std.ver.
4784 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4785 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4786 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4787 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4788 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4789 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4790 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4791 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4792 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4793 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4794
4795 2011-05-25 Jan Hubicka <jh@suse.cz>
4796
4797 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4798 (lto_output_tree): Use output_record_start.
4799 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4800 (lto_get_pickled_tree): Use input_record_start.
4801 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4802 (lto_value_range_error): New function.
4803 * lto-streamer.h (lto_value_range_error): Declare.
4804 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4805 (lto_output_enum, lto_input_enum): New macros.
4806
4807 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4808
4809 * common.opt (flag_stack_usage_info): New variable.
4810 (-Wstack-usage): New option.
4811 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4812 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4813 <OPT_fstack_usage>: Likewise.
4814 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4815 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4816 of flag_stack_usage.
4817 (emit_library_call_value_1): Likewise.
4818 * explow.c (allocate_dynamic_stack_space): Likewise.
4819 * function.c (instantiate_virtual_regs ): Likewise.
4820 (prepare_function_start): Likewise.
4821 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4822 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4823 * config/arm/arm.c (arm_expand_prologue): Likewise.
4824 (thumb1_expand_prologue): Likewise.
4825 * config/avr/avr.c (expand_prologue): Likewise.
4826 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4827 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4828 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4829 * config/mips/mips.c (mips_expand_prologue): Likewise.
4830 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4831 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4832 * config/s390/s390.c (s390_emit_prologue): Likewise.
4833 * config/sh/sh.c (sh_expand_prologue): Likewise.
4834 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4835 * config/spu/spu.c (spu_expand_prologue): Likewise.
4836
4837 2011-05-25 Richard Guenther <rguenther@suse.de>
4838
4839 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4840 (gimple_canonical_types_compatible_p): Likewise.
4841
4842 2011-05-25 Jan Hubicka <jh@suse.cz>
4843
4844 PR middle-end/49062
4845 * ipa.c (function_and_variable_visibility): Only add to same
4846 comdat group list if DECL_ONE_ONLY.
4847
4848 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
4849
4850 PR rtl-optimization/49014
4851 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4852
4853 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4854
4855 PR target/49128
4856 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4857
4858 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4859
4860 PR rtl-optimization/48757
4861 * ira-build.c (loop_with_eh_edge_p): Rename to
4862 loop_with_complex_edge_p, check edges on complexity, make function
4863 conditional.
4864 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4865 conditional.
4866
4867 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4868
4869 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4870 force flag_ira_share_save_slots to 0.
4871
4872 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4873
4874 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4875 (vt_initialize): Set PROLOGUE_BB unconditionally.
4876 Add block comment about CFA_BASE_RTX machinery.
4877 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4878 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4879
4880 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4881
4882 PR objc/48187
4883 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4884 parsing of syntax error in ObjC instance variable lists. In
4885 particular, avoid an infinite loop if there is a stray ']'.
4886 Updated error message.
4887
4888 2011-05-24 Ian Lance Taylor <iant@google.com>
4889
4890 * godump.c (go_define): Don't accept a string immediately after
4891 another operand.
4892
4893 2011-05-24 Ian Lance Taylor <iant@google.com>
4894
4895 * godump.c (struct godump_container): Add invalid_hash field.
4896 (go_format_type): Return false if type is found in invalid_hash.
4897 (go_output_typedef): Add invalid type to invalid_hash.
4898 (go_finish): Create and delete invalid_hash.
4899
4900 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4901
4902 PR tree-optimization/46728
4903 * tree-ssa-math-opts.c (powi_table): New.
4904 (powi_lookup_cost): New.
4905 (powi_cost): New.
4906 (powi_as_mults_1): New.
4907 (powi_as_mults): New.
4908 (gimple_expand_builtin_powi): New.
4909 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4910 (gate_cse_sincos): Remove sincos/cexp restriction.
4911
4912 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4913
4914 PR target/3746
4915 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4916 mips-tdump native.
4917 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4918 * mips-tdump.c: Likewise.
4919
4920 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4921
4922 PR target/49128
4923 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4924 add -mno-XXX. Handle FMA.
4925
4926 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4927
4928 PR rtl-optimization/48633
4929 * ira-build.c (loop_with_eh_edge_p): New function.
4930 (mark_loops_for_removal): Use it.
4931
4932 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4933
4934 PR rtl-optimization/48971
4935 * ira.c (setup_pressure_classes): Don't check register move cost
4936 for classes with one registers. Don't add pressure class if there
4937 is a pressure class with the same available hard registers.
4938 Check contains_reg_of_mode. Fix a typo in collecting
4939 temp_hard_regset. Ignore hard registers not belonging to a class.
4940
4941 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
4942
4943 PR target/49133
4944 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4945
4946 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4947 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4948
4949 PR gcov-profile/48845
4950 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4951
4952 2011-05-24 Richard Guenther <rguenther@suse.de>
4953
4954 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4955 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4956 (gimple_types_compatible_p_1): Adjust.
4957 (iterative_hash_canonical_type): Do not bother about complete vs.
4958 incomplete types.
4959 (gimple_canonical_types_compatible_p): Likewise.
4960
4961 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4962
4963 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4964
4965 2011-05-24 Richard Guenther <rguenther@suse.de>
4966
4967 PR bootstrap/49078
4968 * gimple.c (gimple_register_canonical_type): Revert
4969 previous change.
4970 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4971 does not for a tree for the case where it matters. Cache
4972 pointer-type alias-sets.
4973
4974 2011-05-24 Joseph Myers <joseph@codesourcery.com>
4975
4976 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4977 (OBJS): Remove options.o, opts-common.o and prefix.o.
4978 (OBJS-libcommon-target): New.
4979 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4980 (BACKEND): Include libcommon-target.a.
4981 (MOSTLYCLEANFILES): Include libcommon-target.a.
4982 (libcommon-target.a): New.
4983 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4984 prefix.o.
4985
4986 2011-05-23 Joseph Myers <joseph@codesourcery.com>
4987
4988 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4989 parts of output shared with the driver.
4990 * optc-gen.awk: Don't generate parts of output not shared with the
4991 driver.
4992 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4993 * doc/options.texi (SourcerInclude): Mention options-save.c.
4994 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4995 (OBJS): Add options-save.o.
4996 (options-save.c, options-save.o): New.
4997 (options.o): Update dependencies.
4998 (gcc-options.o): Remove.
4999 (mostlyclean): Remove options-save.c.
5000
5001 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5002
5003 PR debug/49032
5004 * dbxout.c: Include cgraph.h.
5005 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
5006 and without value expr, return NULL if no varpool node exists for
5007 it or if it is not needed.
5008 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
5009
5010 PR c/49120
5011 * c-decl.c (start_decl): Convert expr to void_type_node.
5012
5013 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
5014
5015 PR rtl-optimization/48826
5016 * emit-rtl.c (try_split): When splitting a call that is followed
5017 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
5018
5019 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5020
5021 * cfgexpand.c (expand_debug_expr): For unused non-addressable
5022 parameters passed in memory prefer using DECL_INCOMING_RTL over
5023 the pseudos it will be copied into.
5024
5025 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
5026
5027 PR target/47315
5028 * config/i386/i386.c (ix86_option_override_internal): Save the
5029 initial options after checking vzeroupper.
5030
5031 2011-05-23 David Li <davidxl@google.com>
5032
5033 PR tree-optimization/48988
5034 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5035 Initialize has_valid_pred for each pred chain.
5036
5037 2011-05-23 Richard Guenther <rguenther@suse.de>
5038
5039 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
5040 (iterative_hash_gimple_type): Always hash type names.
5041
5042 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5043
5044 * c-typeck.c (build_function_call_vec): Tweak call to
5045 check_function_arguments.
5046
5047 2011-05-23 Richard Guenther <rguenther@suse.de>
5048
5049 PR tree-optimization/49115
5050 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
5051 is not necessarily carried out, do not claim it kills the ref.
5052 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5053
5054 2011-05-23 Richard Guenther <rguenther@suse.de>
5055
5056 PR middle-end/15419
5057 * builtins.c (fold_builtin_memory_op): Be less restrictive about
5058 what pointer types we accept for folding.
5059
5060 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5061
5062 * gthr-gnat.c: Remove.
5063 * gthr-gnat.h: Remove.
5064 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
5065 * config/t-freebsd (LIB2ADDEH): Likewise.
5066 * config/t-linux (LIB2ADDEH): Likewise.
5067 * config/t-sol2 (LIB2ADDEH): Likewise.
5068 * config/ia64/t-vms (LIB2ADDEH): Likewise.
5069 * configure.ac (target_thread_file): Remove gnat handling.
5070 * configure: Regenerate.
5071 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
5072
5073 2011-05-23 Tristan Gingold <gingold@adacore.com>
5074 Eric Botcazou <ebotcazou@adacore.com>
5075
5076 * gcov.c (create_file_names): If no object directory is specified,
5077 keep the directory of the file.
5078
5079 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5080
5081 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
5082 * configure: Regenerate.
5083
5084 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5085
5086 PR middle-end/48973
5087 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
5088 failed and the comparison has a single bit signed type, use
5089 constm1_rtx instead of const1_rtx for true value.
5090 (do_store_flag): If ops->type is single bit signed type, disable
5091 signel bit test optimization and pass -1 instead of 1 as last
5092 parameter to emit_store_flag_force.
5093
5094 2011-05-23 Tom de Vries <tom@codesourcery.com>
5095
5096 PR target/45098
5097 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
5098 function.
5099 (infer_loop_bounds_from_undefined): Use new function.
5100
5101 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5102
5103 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
5104 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
5105 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
5106 and -O0 otherwise.
5107 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
5108
5109 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5110
5111 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
5112 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
5113 returns true.
5114
5115 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5116
5117 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
5118
5119 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5120
5121 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
5122 UNSPEC_MOVE_PIC pattern.
5123
5124 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5125
5126 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
5127 (sparc-*-rtems*): Likewise.
5128 (sparc64-*-elf*): Likewise.
5129 (sparc64-*-rtems*): Likewise.
5130 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
5131 * config/sparc/t-crtin: New file.
5132 * config/sparc/t-sol2 (crti.o): Delete rule.
5133 (crtn.o): Likewise.
5134 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
5135 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
5136 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
5137 (ENDFILE_SPEC): Add crtn.o.
5138
5139 2011-05-22 Tom de Vries <tom@codesourcery.com>
5140
5141 PR middle-end/48689
5142 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
5143 CODE_CONTAINS_STRUCT (TS_COMMON).
5144
5145 2011-05-22 Jakub Jelinek <jakub@redhat.com>
5146
5147 PR middle-end/49029
5148 * expmed.c (extract_fixed_bit_field): Test whether target can be used
5149 only after deciding which mode to use.
5150
5151 2011-05-22 Tom de Vries <tom@codesourcery.com>
5152
5153 PR target/45098
5154 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
5155 for call to get_shiftadd_cost.
5156
5157 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
5158
5159 PR target/49104
5160 * config/i386/cpuid.h (bit_MMXEXT): New define.
5161
5162 2011-05-22 Nick Clifton <nickc@redhat.com>
5163
5164 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
5165 initialisation of non-existant args[2] element. Use args[] array
5166 not arg[] array to pass arguments to build_function_type_list.
5167
5168 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
5169
5170 PR tree-optimization/49087
5171 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
5172
5173 2011-05-21 Jason Merrill <jason@redhat.com>
5174
5175 PR c++/49092
5176 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
5177 static storage duration.
5178
5179 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5180
5181 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
5182 frame pointer.
5183
5184 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5185
5186 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
5187 false if there are call-saved registers here...
5188 (sparc_can_use_return_insn_p): ...but here instead.
5189 (save_or_restore_regs): Fix thinko.
5190 (sparc_expand_prologue): Use current_function_is_leaf.
5191 (sparc_frame_pointer_required): Likewise.
5192
5193 2011-05-21 Nick Clifton <nickc@redhat.com>
5194
5195 PR target/49098
5196 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5197
5198 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
5199
5200 * gengtype.c (walk_type): Implemented "atomic" GTY option.
5201 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
5202
5203 2011-05-21 Joseph Myers <joseph@codesourcery.com>
5204
5205 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
5206 * optc-gen.awk: Move common code to opt-read.awk.
5207 * opth-gen.awk: Likewise.
5208 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
5209
5210 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
5211
5212 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5213
5214 2011-05-20 Tom de Vries <tom@codesourcery.com>
5215
5216 PR target/45098
5217 * tree-ssa-loop-ivopts.c: Include expmed.h.
5218 (get_shiftadd_cost): New function.
5219 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
5220
5221 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5222
5223 PR bootstrap/49086
5224 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5225 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5226
5227 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5228
5229 * Makefile.in: Update comment referring to $(OBJS-common).
5230
5231 2011-05-20 Ian Lance Taylor <iant@google.com>
5232
5233 * godump.c (go_output_typedef): Put enum constants in the macro
5234 hash table to avoid duplicate Go const definitions.
5235
5236 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5237
5238 * Makefile.in (LIBDEPS): Add libcommon.a.
5239 (LIBS): Likewise.
5240 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5241 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5242 pretty-print.o and version.o.
5243 (OBJS-libcommon): New.
5244 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5245 (BACKEND): Add libcommon.a.
5246 (MOSTLYCLEANFILES): Likewise.
5247 (libcommon.a): New.
5248 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5249 (cpp$(exeext)): Likewise.
5250 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5251 pretty-print.o and input.o.
5252 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5253 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5254 (errors.o): Remove.
5255 (mips-tfile): Don't explicitly use version.o.
5256 (mips-tdump): Likewise.
5257 (gcov.o): Depend on $(DIAGNOSTIC_H).
5258 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5259 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5260 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5261 * gcov-dump.c: Include intl.h and diagnostic.h.
5262 (main): Initialize diagnostics.
5263 * gcov.c: Include diagnostic.h.
5264 (fnotice): Remove.
5265 (main): Initialize diagnostics.
5266 * lto-wrapper.c: Include diagnostic.h.
5267 (main): Initialize diagnostics.
5268
5269 2011-05-20 Michael Matz <matz@suse.de>
5270
5271 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5272
5273 2011-05-20 Michael Matz <matz@suse.de>
5274 Richard Guenther <rguenther@suse.de>
5275
5276 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5277 use lto_streamer_cache_append directly instead of returning a VEC.
5278 (preload_common_node): Remove.
5279 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5280 track seen nodes.
5281 (lto_streamer_cache_create): Call lto_preload_common_nodes.
5282
5283 2011-05-20 Richard Guenther <rguenther@suse.de>
5284
5285 PR tree-optimization/49079
5286 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5287 MEM_REFs correctly for the trailing array access detection.
5288 Special case constants the same way as decls for overall size
5289 constraining.
5290
5291 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
5292
5293 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5294 argument expansion.
5295
5296 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5297
5298 PR tree-optimization/49073
5299 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5300 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
5301 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5302
5303 2011-05-20 Richard Guenther <rguenther@suse.de>
5304
5305 PR middle-end/48849
5306 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5307 of pointer types the same way the middle-end does.
5308
5309 2011-05-20 Richard Guenther <rguenther@suse.de>
5310
5311 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5312 or pointer-to chains. Delay all fixup to uniquify_nodes.
5313
5314 2011-05-19 Quentin Neill <quentin.neill@amd.com>
5315
5316 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5317 (fma4_fmaddsub): Likewise
5318
5319 2011-05-19 Jan Hubicka <jh@suse.cz>
5320
5321 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5322 (GIMPLE_TYPE_PAIR_SIZE): New macro.
5323 (type_pair_cache): New static var.
5324 (lookup_type_pair): Use fixed sized custom hash; make inline.
5325 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5326 calls of lookup_type_pair.
5327 (print_gimple_types_stats): Remove cache stats.
5328 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5329 and gtc_ob.
5330
5331 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
5332
5333 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5334 when TARGET_RDRND is active.
5335 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5336 Generate dummy SImode target register when target is NULL.
5337
5338 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5339
5340 * config/arm/arm-fpus.def: New.
5341 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5342 arm-fpus.def.
5343 * config/arm/arm-tables.opt: Regenerate.
5344 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5345 (arm_option_override): Don't decode FPU name to string here.
5346 * config/arm/arm.opt (mfpu=): Use Enum.
5347 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5348 Update dependencies.
5349
5350 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5351
5352 * collect2.c: Include diagnostic.h.
5353 (fatal_perror, fatal, error, fancy_abort): Remove.
5354 (main): Set progname. Call xmalloc_set_program_name and
5355 diagnostic_initialize.
5356 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5357 scan_libraries, resolve_lib_name): Call fatal_error instead of
5358 fatal and fatal_perror.
5359 * collect2.h (error, fatal, fatal_perror): Don't declare.
5360 * tlink.c: Include diagnostic-core.h.
5361 (recompile_files): Call fatal_error instead of fatal_perror.
5362 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5363 pretty-print.o and input.o.
5364 (collect2.o, tlink.o): Update dependencies.
5365
5366 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5367
5368 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5369
5370 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5371
5372 PR target/40483
5373 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5374 COMDAT group syntax, both SPARC and x86 variants.
5375 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5376 * configure: Regenerate.
5377 * config/sol2.h (TARGET_SOLARIS): Define.
5378 (PUSHSECTION_FORMAT): Remove.
5379 (SECTION_NAME_FORMAT): Define.
5380 * config/sol2.c: Include hashtab.h.
5381 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5382 expansion, using SECTION_NAME_FORMAT.
5383 (solaris_comdat_htab): New variable.
5384 (struct comdat_entry): Define.
5385 (comdat_hash): New function.
5386 (comdat_eq): New function.
5387 (solaris_elf_asm_comdat_section): New function.
5388 (solaris_define_comdat_signature): New function.
5389 (solaris_code_end): New function.
5390 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5391 (solaris_code_end): Declare.
5392 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5393 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5394 solaris_code_end.
5395 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5396 Remove ATTRIBUTE_UNUSED.
5397 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5398 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
5399 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
5400 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5401 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5402 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5403 (PUSHSECTION_FORMAT): Remove.
5404 (SECTION_NAME_FORMAT): Redefine.
5405
5406 2011-05-19 Kai Tietz <ktietz@redhat.com>
5407
5408 * tree-cfg.c (verify_gimple_assign_binary): Barf on
5409 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5410 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5411
5412 2011-05-19 Anatoly Sokolov <aesok@post.ru>
5413 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5414
5415 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5416
5417 2011-05-19 Richard Guenther <rguenther@suse.de>
5418
5419 PR middle-end/48985
5420 * tree-object-size.c (addr_object_size): If the pointed-to
5421 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5422
5423 2011-05-19 Richard Guenther <rguenther@suse.de>
5424
5425 * gimple.c (gimple_types_compatible_p_1): Compare names of
5426 the types themselves.
5427 (iterative_hash_gimple_type): And hash them that way.
5428 (gimple_register_type_1): If we register a main variant properly
5429 initialize the leader to ourselves.
5430
5431 2011-05-19 Tom de Vries <tom@codesourcery.com>
5432
5433 PR target/45098
5434 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5435 get_loop_invariant_expr_id.
5436 (get_loop_invariant_expr_id): Use get_expr_id.
5437 (parm_decl_cost): New function.
5438 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5439 Improve bound cost estimation. Use different inv_expr_id for elim and
5440 express cases.
5441
5442 2011-05-19 Tom de Vries <tom@codesourcery.com>
5443
5444 PR target/45098
5445 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5446 cost_base.cost == 0.
5447
5448 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
5449
5450 PR target/49002
5451 * config/i386/sse.md
5452 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5453 load cast.
5454
5455 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5456
5457 PR tree-optimization/49039
5458 * tree-vrp.c (extract_range_from_binary_expr): For
5459 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5460 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5461
5462 2011-05-18 Tom de Vries <tom@codesourcery.com>
5463
5464 PR target/45098
5465 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5466
5467 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
5468
5469 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5470 (*tls_global_dynamic_64): Ditto.
5471 (*tls_local_dynamic_base_32_gnu): Ditto.
5472 (*tls_local_dynamic_base_64): Ditto.
5473 (tls_initial_exec_64_sun): Ditto.
5474
5475 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
5476
5477 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5478 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5479 bf592-none.
5480 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5481 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5482 * config/bfin/bfin.c (bfin_cpus): Add bf592.
5483 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5484 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5485 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5486 * config/bfin/elf.h (LIB_SPEC): Add bf592.
5487
5488 2011-05-18 Joseph Myers <joseph@codesourcery.com>
5489
5490 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5491 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5492 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5493 target_thread_pointer, arm_structure_size_boundary, struct
5494 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5495 struct abi_name, arm_all_abis): Remove.
5496 (arm_option_override) Don't process most enumerated option values here.
5497 Don't process target_fpe_name here. Work with integer not string for
5498 structure size boundary; use separate diagnostics for each case.
5499 * config/arm/arm.h (enum float_abi_type, enum
5500 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5501 to arm-opts.h.
5502 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5503 arm_structure_size_boundary): Remove.
5504 * config/arm/arm.opt (mabi=): Use Enum and Init.
5505 (arm_abi_type): New Enum and EnumValue entries.
5506 (mfloat-abi=): Use Enum and Init.
5507 (float_abi_type): New Enum and EnumValue entries.
5508 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5509 (mfp16-format=): Use Enum and Init.
5510 (arm_fp16_format_type): New Enum and EnumValue entries.
5511 (mstructure-size-boundary=): Use UInteger and Init.
5512 (mtp=): Use Enum and Init.
5513 (arm_tp_type): New Enum and EnumValue entries.
5514
5515 2011-05-18 Richard Guenther <rguenther@suse.de>
5516
5517 PR tree-optimization/49018
5518 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5519 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5520 gimple_has_side_effects.
5521
5522 2011-05-18 Richard Guenther <rguenther@suse.de>
5523
5524 * gimple.c (gimple_register_type_1): New function, split out from ...
5525 (gimple_register_type): ... here. Avoid infinite recursion.
5526
5527 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5528
5529 PR tree-optimization/41881
5530 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5531 reduction_chains along with a macro for its access.
5532 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5533 (destroy_loop_vec_info): Free reduction chains.
5534 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5535 (vect_is_slp_reduction): New function.
5536 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5537 (vect_create_epilog_for_reduction): Support SLP reduction chains.
5538 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5539 definition types for reduction chains.
5540 (vect_supported_load_permutation_p): Don't allow permutations for
5541 reduction chains.
5542 (vect_analyze_slp_instance): Support reduction chains.
5543 (vect_analyze_slp): Try to build SLP instance from reduction chains.
5544 (vect_get_constant_vectors): Handle reduction chains.
5545 (vect_schedule_slp_instance): Mark the first statement of the
5546 reduction chain as reduction.
5547
5548 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5549
5550 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5551 names for group elements access.
5552 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5553 reduction chains as well. Remove data reference and interleaving
5554 related words from the fields names.
5555 * tree-vect-loop.c (vect_transform_loop): Use new names for group
5556 elements access.
5557 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5558 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5559 vect_update_interleaving_chain, vect_same_range_drs,
5560 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5561 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5562 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5563 vect_analyze_group_access, vect_analyze_data_ref_access,
5564 vect_create_data_ref_ptr, vect_transform_strided_load,
5565 vect_record_strided_load_vectors): Likewise.
5566 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5567 vect_model_load_cost, vectorizable_store, vectorizable_load,
5568 vect_remove_stores, new_stmt_vec_info): Likewise.
5569 * tree-vect-slp.c (vect_build_slp_tree,
5570 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5571
5572 2011-05-18 Richard Guenther <rguenther@suse.de>
5573
5574 PR middle-end/48989
5575 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5576 operand verification.
5577 (verify_gimple_assign_binary): Likewise.
5578 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5579 to non-1-precision BOOLEAN_TYPEs.
5580
5581 2011-05-18 Tom de Vries <tom@codesourcery.com>
5582
5583 PR target/45098
5584 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5585
5586 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5587
5588 PR tree-optimization/49000
5589 * tree-ssa.c (execute_update_addresses_taken): Call
5590 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
5591 be rewritten and decl has been marked for renaming, reset
5592 the debug stmt.
5593
5594 2011-05-17 Joseph Myers <joseph@codesourcery.com>
5595
5596 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5597 enum_opts_set when testing if attributes have set -mfpmath=.
5598
5599 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5600
5601 * config/mips/mips.c (mips_handle_option): Remove unused variable.
5602
5603 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5604
5605 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5606 info->entry with 0
5607 * tree-inline.c (maybe_inline_call_in_expr): Initialize
5608 id.transform_lang_insert_block with NULL.
5609
5610 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5611
5612 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5613 (output_fp_compare): Change args 3 and 4 to bool.
5614 (ix86_expand_call): Change arg 6 to bool.
5615 (ix86_attr_length_immediate_default): Change arg 2 to bool.
5616 (ix86_attr_length_vex_default): Change arg 3 to bool.
5617 * config/i386/i386.md: Update all uses.
5618 * config/i386/i386.c: Ditto.
5619 (ix86_flags_dependent): Change return type to bool.
5620
5621 2011-05-17 Richard Guenther <rguenther@suse.de>
5622
5623 * gimple.c (type_hash_pair_compare): Fix comparison.
5624
5625 2011-05-17 Richard Guenther <rguenther@suse.de>
5626
5627 * gimple.c (iterative_hash_gimple_type): Simplify singleton
5628 case some more, fix final hash value of the non-singleton case.
5629
5630 2011-05-17 Richard Guenther <rguenther@suse.de>
5631
5632 PR bootstrap/49013
5633 Revert
5634 2011-05-16 Richard Guenther <rguenther@suse.de>
5635
5636 * gimple.c (gimple_types_compatible_p_1): Use names of the
5637 type itself, not its main variant.
5638 (iterative_hash_gimple_type): Likewise.
5639
5640 2011-05-17 Richard Guenther <rguenther@suse.de>
5641
5642 * gimple.c (gimple_register_canonical_type): Use the main-variant
5643 leader for computing the canonical type.
5644
5645 2011-05-17 Nick Clifton <nickc@redhat.com>
5646
5647 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5648 moves.
5649
5650 * config/rx/rx.md: Add peephole to remove redundant extensions
5651 after loads.
5652 (bitset_in_memory): Use rx_restricted_mem_operand.
5653 (bitinvert_in_memory): Likewise.
5654 (bitclr_in_memory): Likewise.
5655
5656 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5657 Nick Clifton <nickc@redhat.com>
5658
5659 * config/rx/rx.md: Add peepholes to match a register move followed
5660 by a comparison of the moved register. Replace these with an
5661 addition of zero that does both actions in one instruction.
5662
5663 2011-05-17 Jakub Jelinek <jakub@redhat.com>
5664
5665 PR target/48986
5666 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5667 predicate to allow CONST_INT.
5668 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5669
5670 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5671
5672 * opts-common.c (opt_enum_arg_to_value): New.
5673 * opts.h (opt_enum_arg_to_value): Declare.
5674 * config/i386/i386.opt (fpmath): Remove.
5675 (mfpmath=): Use Enum, Init and Save.
5676 (fpmath_unit): New Enum and EnumValue entries.
5677 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5678 name for function fpmath state.
5679 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5680 * config/i386/i386.c: Include diagnostic.h.
5681 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5682 (ix86_target_string): Take enum fpmath_unit value instead of string.
5683 (ix86_debug_options): Update call to ix86_target_string.
5684 (ix86_option_override_internal): Don't process fpmath strings here.
5685 (x86_function_specific_save, ix86_function_specific_restore):
5686 Don't handle fpmath state specially.
5687 (ix86_function_specific_print): Pass fpmath state to
5688 ix86_target_string instead of printing in this function.
5689 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5690 Handle enum attributes.
5691 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5692 (ix86_valid_target_attribute_tree): Update option_strings
5693 handling. Handle fpmath as enum option.
5694 (ix86_can_inline_p): Update field names for function fpmath state.
5695 (ix86_expand_builtin): Update call to ix86_target_string.
5696 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5697 (ix86_fpmath): Remove.
5698 * config/i386/t-i386 (i386.o): Update dependencies.
5699
5700 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5701
5702 PR preprocessor/48677
5703 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5704 from decoded_options[0], not from itself.
5705
5706 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
5707
5708 * config/i386/constraints.md (z): New constraint.
5709 * config/i386/i386.c (c): New mode attribute.
5710 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5711 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5712 constraint for operand 0.
5713 (*call_vzeroupper): Ditto.
5714 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5715 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5716 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5717 Use "lzm" constraint for operand 0.
5718 (*call_pop_vzeroupper): Ditto.
5719 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5720 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5721 constraint for operand 0.
5722 (*sibcall_vzeroupper): Ditto.
5723 (*sibcall_rex64_ms_sysv): Ditto.
5724 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5725 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5726 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5727 (*sibcall_pop_vzeroupper): Ditto.
5728 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5729 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5730 mode iterator. Use "<c>zm" constraint for operand 1.
5731 (*call_value_vzeroupper): Ditto.
5732 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
5733 for operand 1.
5734 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5735 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5736 *call_value_pop_1. Use "lzm" constraint for operand 1.
5737 (*call_value_pop_vzeroupper): Ditto.
5738 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5739 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5740 mode iterator. Use "Uz" constraint for operand 1.
5741 (*sibcall_value_vzeroupper): Ditto.
5742 (*sibcall_value_rex64_ms_sysv): Ditto.
5743 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5744 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5745 constraint for operand 1.
5746 (*sibcall_value_pop_vzeroupper): Ditto.
5747 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5748 and "z" constraint for operand 2.
5749 (*tls_global_dynamic_32_gnu): Ditto.
5750 (*tls_local_dynamic_base_32_gnu): Ditto.
5751 (*tls_local_dynamic_base_64): Ditto.
5752 (*tls_local_dynamic_32_once): Ditto.
5753 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5754 Update all callers.
5755 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5756
5757 2011-05-16 Richard Guenther <rguenther@suse.de>
5758
5759 * gimple.c (gimple_types_compatible_p_1): Use names of the
5760 type itself, not its main variant.
5761 (iterative_hash_gimple_type): Likewise.
5762
5763 2011-05-16 Richard Guenther <rguenther@suse.de>
5764
5765 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5766 always visit pointer target and function result and argument types.
5767
5768 2011-05-16 Jason Merrill <jason@redhat.com>
5769
5770 PR c++/48999
5771 * tree-inline.c (copy_statement_list): Put back recursion.
5772
5773 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5774
5775 PR target/27663
5776 PR target/41076
5777 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5778 * config/avr/avr.md ("*ior<mode>qi.byte0",
5779 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5780
5781 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5782
5783 PR target/45099
5784 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5785 register is needed for a function argument.
5786
5787 2011-05-16 Richard Guenther <rguenther@suse.de>
5788
5789 * gimple.c (struct type_hash_pair): New type.
5790 (type_hash_pair_compare): New function.
5791 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5792
5793 2011-05-16 Revital Eres <revital.eres@linaro.org>
5794
5795 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5796
5797 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5798
5799 * config/i386/i386.md (floating point move splitters): Fix
5800 usage of standard_80387_constant_p.
5801 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5802
5803 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5804
5805 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5806
5807 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5808
5809 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5810 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5811 (tree_ssa_lim_finalize): Likewise.
5812
5813 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
5814
5815 * config/i386/constraint.md (Yd, Yx): New register constraints.
5816 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5817 Yd conditional register constraint.
5818 (*movtf_internal): Use standard_sse_constant_opcode.
5819 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5820 Yx conditional register constraint.
5821 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5822 Yd conditional register constraint. Use standard_sse_constant_p to
5823 check for valid SSE constants and call standard_sse_constant_opcode to
5824 output SSE insn.
5825 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5826 constants and call standard_sse_constant_opcode to output SSE insn.
5827 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5828 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5829 optimize_size is set.
5830 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5831
5832 2011-05-14 Tobias Burnus <burnus@net-b.de>
5833
5834 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5835
5836 2011-05-13 Martin Jambor <mjambor@suse.cz>
5837
5838 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5839 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5840 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5841 (evaluate_conditions_for_ipcp_clone): Removed.
5842 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5843 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5844 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5845
5846 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5847
5848 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5849 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5850 lieu of MAY_HAVE_DEBUG_STMTS.
5851 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5852 debug statements if !MAY_HAVE_DEBUG_STMTS.
5853
5854 2011-05-13 Martin Thuresson <martint@google.com>
5855
5856 PR gcov-profile/47793
5857 * libgcov.c (gcov_exit): Support relative profile paths.
5858 * doc/invoke.texi (-fprofile-dir): Update for above change.
5859
5860 2011-05-13 Richard Guenther <rguenther@suse.de>
5861
5862 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5863 type-pair caching, do not compare hashes.
5864
5865 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5866
5867 PR middle-end/48965
5868 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5869 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5870
5871 2011-05-13 Kai Tietz <ktietz@redhat.com>
5872
5873 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5874 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5875 compatible type for TRUTH_NOT_EXPR.
5876
5877 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5878
5879 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5880 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5881 can_create_pseudo_p ().
5882
5883 2011-05-13 Richard Guenther <rguenther@suse.de>
5884
5885 PR lto/48978
5886 * gimple.c (iterative_hash_gimple_type): Revert change in
5887 pointer target and function result and argument hashing.
5888
5889 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
5890
5891 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5892 (*movxf_internal_nointeger): Ditto.
5893 (*movdf_internal_rex64): Ditto.
5894 (*movdf_internal): Ditto.
5895 (*movdf_internal_nointeger): Ditto.
5896 (*movsf_internal): Ditto.
5897 (sincos splitters): Use can_create_pseudo ().
5898
5899 2011-05-13 Joseph Myers <joseph@codesourcery.com>
5900
5901 * config/i386/i386-opts.h: New.
5902 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5903 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5904 ix86_section_threshold): Remove.
5905 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5906 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5907 OPT_mbranch_cost_.
5908 (ix86_option_override_internal): Don't decode strings for options
5909 other than -march=, -mtune= and -mfpmath=. Don't allow for
5910 __attribute__ uses in remaining diagnostics for options with
5911 string arguments. Don't check for integer arguments being negative.
5912 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5913 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5914 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5915 ix86_branch_cost, ix86_section_threshold): Remove.
5916 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5917 HeaderInclude.
5918 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5919 but not Var.
5920 (masm=): Use Enum and Init.
5921 (asm_dialect): New Enum and EnumValue entries.
5922 (mbranch-cost=): Use UInteger.
5923 (mlarge-data-threshold=): Use UInteger and Init.
5924 (mcmodel=): Use Enum and Init.
5925 (cmodel): New Enum and EnumValue entries.
5926 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5927 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5928 mregparm=): Use UInteger.
5929 (mstringop-strategy=): Use Enum and Init.
5930 (stringop_alg): New Enum and EnumValue entries.
5931 (mtls-dialect=): Use Enum and Init.
5932 (tls_dialect): New Enum and EnumValue entries.
5933 (mabi=): Use Enum and Init.
5934 (calling_abi): New Enum and EnumValue entries.
5935 (mveclibabi=): Use Enum and Init.
5936 (ix86_veclibabi): New Enum and EnumValue entries.
5937
5938 2011-05-13 Nick Clifton <nickc@redhat.com>
5939
5940 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5941 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5942
5943 2011-05-13 Kai Tietz <ktietz@redhat.com>
5944
5945 PR middle-end/48984
5946 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5947 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5948 (gimple_boolify): Check for cast for boolean_type_node instead for
5949 BOOLEAN_TYPE.
5950
5951 2011-05-13 Richard Guenther <rguenther@suse.de>
5952
5953 PR tree-optimization/48172
5954 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5955 multiplying by number of iterations for equal step.
5956 (vect_create_cond_for_alias_checks): Likewise.
5957
5958 2011-05-13 Andreas Schwab <schwab@redhat.com>
5959
5960 * configure.ac: Use AS_HELP_STRING throughout.
5961 * configure: Regenerate.
5962
5963 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5964
5965 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5966 (ix86_emit_restore_regs_using_mov): Likewise.
5967 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5968
5969 2011-05-12 Anatoly Sokolov <aesok@post.ru>
5970
5971 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5972 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5973 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5974 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5975 RTX_OK_FOR_OLO10_P): ...here.
5976 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5977 SYMBOLIC_CONST.
5978
5979 2011-05-12 Kai Tietz <ktietz@redhat.com>
5980
5981 * gimplify.c (gimple_boolify): Re-boolify expression
5982 arguments even if expression type is of kind BOOLEAN_TYPE.
5983 (gimplify_boolean_expr): Removed.
5984 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5985 and XOR. Additional take care that we keep expression's type.
5986 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5987 of TRUTH_AND|OR|XOR_EXPR.
5988
5989 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5990
5991 PR tree-optimization/48975
5992 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5993 on all bbs here and free and clear ifc_bbs at the end.
5994
5995 2011-05-12 Richard Guenther <rguenther@suse.de>
5996
5997 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5998 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5999 until after simple checks.
6000 (gimple_types_compatible_p): Likewise.
6001 (iterative_hash_gimple_type): Always hash pointer targets
6002 and function return and argument types.
6003 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
6004 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
6005 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
6006 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
6007 completely in the simple compare section.
6008 (gimple_register_canonical_type): Query the cache again after
6009 registering.
6010
6011 2011-05-12 Richard Guenther <rguenther@suse.de>
6012
6013 PR tree-optimization/48172
6014 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
6015 the number of iterations from the segment size calculation.
6016 (vect_create_cond_for_alias_checks): Adjust.
6017
6018 2011-05-12 Jakub Jelinek <jakub@redhat.com>
6019
6020 PR debug/48967
6021 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
6022 if validate_subreg fails.
6023
6024 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
6025
6026 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
6027 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
6028 early.
6029
6030 2011-05-12 DJ Delorie <dj@redhat.com>
6031
6032 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
6033 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
6034 created builtin into rx_builtins array.
6035 (rx_builtin_decl): New function.
6036 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
6037
6038 2011-05-12 DJ Delorie <dj@redhat.com>
6039 Nick Clifton <nickc@redhat.com>
6040
6041 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
6042 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
6043 (rx_is_legitimate_address): Add pre-decrement and post-increment
6044 addressing in HImode and QImode. Fix test for out of range
6045 REG+INT addressing.
6046 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
6047 (rx_align_for_label): Test label before extracting its usage count.
6048 (rx_adjust_insn_lengths): Fix selection of insn codes.
6049 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
6050
6051 2011-05-11 Jason Merrill <jason@redhat.com>
6052
6053 * tree.c (type_hash_canon): Use struct tree_type_non_common.
6054
6055 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6056
6057 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
6058 reindent the subsequent block.
6059
6060 2011-05-11 Satoru Takabayashi <satorux@google.com>
6061 Paul Pluzhnikov <ppluzhnikov@google.com>
6062
6063 * doc/install.texi (Configuration): Document --with-linker-hash-style.
6064 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
6065 * config.in: Add LINKER_HASH_STYLE.
6066 * configure.ac: Add --with-linker-hash-style.
6067 * configure: Regenerate.
6068
6069 2011-05-11 Richard Guenther <rguenther@suse.de>
6070
6071 PR middle-end/48964
6072 * gimple.c (iterative_hash_canonical_type): Fix typo.
6073
6074 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
6075
6076 * config/i386/i386.c (legitimize_tls_address)
6077 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6078 expanders directly for TARGET_GNU2_TLS. Determine pic and
6079 __tls_get_addr symbol reference here. Update call to
6080 gen_tls_global_dynamic_{32,64} for added arguments.
6081 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6082 expanders directly for TARGET_GNU2_TLS. Determine
6083 __tls_get_addr symbol reference here. Update call to
6084 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
6085 unique UNSPEC REG_EQUIV to libcall block.
6086 (ix86_tls_get_addr): Declare static.
6087 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
6088 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
6089 Do not determine pic and __tls_get_addr symbol reference here. Do not
6090 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
6091 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
6092 (tls_global_dynamic_64): Add operand 2. Do not determine
6093 __tls_get_addr symbol reference here. Do not call
6094 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
6095 (tls_local_dynamic_base64): Ditto for operand 1.
6096
6097 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6098
6099 * function.c (expand_function_start): Initialize stack_check_probe_note
6100 only if the generic stack checking mechanism is used.
6101
6102 2011-05-11 Richard Guenther <rguenther@suse.de>
6103
6104 PR tree-optimization/15256
6105 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
6106 (A & B) | C, combine (A op CST1) op CST2.
6107 (tree_ssa_forward_propagate_single_use_vars): Only bother to
6108 visit assigns that have uses.
6109
6110 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
6111
6112 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
6113 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
6114 (unpack_ts_type_common_value_fields): ...this. Update comment.
6115 (unpack_value_fields): Adjust for renaming.
6116 (lto_input_ts_type_tree_pointers): Split into...
6117 (lto_input_ts_type_common_tree_pointer): ...this and...
6118 (lto_input_ts_type_non_common_tree_pointers): ...this.
6119 (lto_input_tree_pointers): Adjust for above split.
6120 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
6121 (pack_ts_type_common_value_fields): ...this. Update comment.
6122 (lto_output_ts_type_tree_pointers): Split into...
6123 (lto_output_ts_type_common_tree_pointers): ...this and...
6124 (lto_output_ts_type_non_common_tree_pointers): ...this.
6125 (lto_output_tree_pointers): Adjust for above split.
6126 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
6127 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
6128 * stor-layout.c (vector_type_mode): Adjust location of mode field.
6129 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
6130 Define.
6131 (struct tree_type): Split into...
6132 (struct tree_type_common: ...this and...
6133 (struct tree_type_with_lang_specific): ...this and...
6134 (struct tree_type_non_common): ...this. Adjust accessor macros
6135 accordingly.
6136 (TYPE_VALUES_RAW): Define.
6137 (union tree_node): Update for above changes.
6138 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
6139 TS_TYPE_NON_COMMON.
6140 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
6141 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
6142 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
6143 * treestructu.def (TS_TYPE): Remove.
6144 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
6145 Define.
6146
6147 2011-05-11 Jakub Jelinek <jakub@redhat.com>
6148
6149 PR debug/48159
6150 * tree-ssa.c (reset_debug_uses): New function.
6151 * tree-flow.h (reset_debug_uses): New prototype.
6152 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
6153 * tree-loop-distribution.c (generate_loops_for_partition): Call
6154 reset_debug_uses on the stmts that will be removed. Keep around
6155 all debug stmts, don't count them as bits in partition bitmap.
6156 (generate_builtin): Don't count debug stmts or labels as bits in
6157 partition bitmap.
6158
6159 2011-05-11 Richard Guenther <rguenther@suse.de>
6160
6161 * gimple.c (gimple_type_hash_1): Merge with ...
6162 (gimple_type_hash): ... this.
6163 (gtc_visit): Remove mode parameter and simplify accordingly.
6164 (gimple_types_compatible_p_1): Likewise.
6165 (gimple_types_compatible_p): Likewise.
6166 (iterative_hash_gimple_type): Likewise.
6167 (visit): Likewise.
6168 (gimple_type_eq): Adjust.
6169
6170 2011-05-11 Revital Eres <revital.eres@linaro.org>
6171
6172 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
6173 enters the branch create an anti edge in the opposite direction
6174 to prevent the creation of reg-moves.
6175 * modulo-sched.c: Adjust comment to reflect the fact we are
6176 scheduling closing branch.
6177 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
6178 (stage_count): New field in struct partial_schedule.
6179 (calculate_stage_count): New function.
6180 (normalize_sched_times): Rename to reset_sched_times and handle
6181 incrementing the sched time of the nodes by a constant value
6182 passed as parameter.
6183 (duplicate_insns_of_cycles): Skip closing branch.
6184 (sms_schedule_by_order): Schedule closing branch.
6185 (ps_insn_find_column): Handle closing branch.
6186 (sms_schedule): Call reset_sched_times and adjust the code to
6187 support scheduling of the closing branch.
6188 (ps_insert_empty_row): Update calls to normalize_sched_times
6189 and rotate_partial_schedule functions.
6190
6191 2011-05-11 Richard Guenther <rguenther@suse.de>
6192
6193 PR middle-end/48953
6194 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
6195
6196 2011-05-11 Joseph Myers <joseph@codesourcery.com>
6197
6198 * opts.c (finish_options): Move warning settings from process_options.
6199 * toplev.c (process_options): Move warning settings to finish_options.
6200
6201 2011-05-11 Richard Guenther <rguenther@suse.de>
6202
6203 PR tree-optimization/18041
6204 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
6205 (simplify_bitwise_binary): ... this. Handle operand conversions
6206 by applying them to the result instead.
6207 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
6208
6209 2011-05-11 Richard Guenther <rguenther@suse.de>
6210
6211 * gimple.c (gimple_canonical_types_compatible_p): Split out
6212 from gimple_types_compatible_p and friends. Do not recurse
6213 to pointed-to types.
6214 (gimple_canonical_type_eq): Use it.
6215 (iterative_hash_canonical_type): Split out from
6216 iterative_hash_gimple_type and friends. Do not recurse
6217 to pointed-to types.
6218 (gimple_canonical_type_hash): Use it, allocate the hash here.
6219
6220 2011-05-11 Revital Eres <revital.eres@linaro.org>
6221
6222 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6223 recognizing doloop.
6224
6225 2011-05-11 Revital Eres <revital.eres@linaro.org>
6226
6227 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6228 instead of PREV_INSN.
6229
6230 2011-05-11 Revital Eres <revital.eres@linaro.org>
6231
6232 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6233 * loop-doloop.c (doloop_condition_get): Likewise.
6234 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6235 (doloop_end): New.
6236 * config/arm/arm.md (*addsi3_compare0): Remove "*".
6237
6238 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6239
6240 * tree.def (CASE_LABEL_EXPR): Add an operand.
6241 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6242
6243 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6244
6245 * c-decl.c (c_override_global_bindings_to_false): Remove.
6246 (global_bindings_p): Don't check
6247 c_override_global_bindings_to_false.
6248 * c-tree.h (c_override_global_bindings_to_false): Remove.
6249 * c-typeck.c (composite_type): Don't set
6250 c_override_global_bindings_to_false.
6251
6252 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6253
6254 PR target/48857, 48495
6255 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6256 (VSX_MODE): Ditto.
6257 (VSX_MOVE_MODE): Ditto.
6258 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6259 VSX vector types. Add V2DImode.
6260 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6261 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6262 (MODES_TIEABLE_P): Ditto.
6263
6264 * config/rs6000/rs6000.c (rs6000_emit_move): Use
6265 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6266 VSX_VECTOR_MODE.
6267 (init_cumulative_args): Ditto.
6268 (rs6000_function_arg_boundary): Ditto.
6269 (rs6000_function_arg_advance_1): Ditto.
6270 (rs6000_function_arg): Ditto.
6271 (rs6000_function_ok_for_sibcall): Ditto.
6272 (emit_frame_save): Ditto.
6273 (rs6000_function_value): Ditto.
6274 (rs6000_libcall_value): Ditto.
6275
6276 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6277
6278 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6279 i386/darwin-lib.h to $libgcc_tm_file.
6280 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6281
6282 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6283
6284 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6285
6286 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6287
6288 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
6289 * config/rs6000/rs6000-tables.opt: New file (generated).
6290 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6291 rs6000/rs6000-tables.opt to extra_options.
6292 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6293 * config/rs6000/rs6000.c (rs6000_select): Remove.
6294 (processor_target_table): Move contents to rs6000-cpus.def.
6295 (darwin_rs6000_override_options): Check
6296 global_options_set.x_rs6000_cpu_index instead of
6297 rs6000_select[1].string.
6298 (rs6000_option_override_internal): Likewise.
6299 (rs6000_handle_option): Don't assert that global structures are in
6300 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
6301 (rs6000_default_cpu): New variable.
6302 (rs6000_file_start): Set it instead of local default_cpu. Check
6303 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6304 global_options_set.x_rs6000_tune_index instead of rs6000_select.
6305 (rs6000_darwin_file_start): Check rs6000_default_cpu and
6306 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6307 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6308 rs6000_select): Remove.
6309 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6310 Remove.
6311 (mcpu=, mtune=): Use Var, Init, Enum and Save.
6312 * config/rs6000/t-rs6000
6313 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6314 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6315 global_options_set.x_rs6000_cpu_index instead of
6316 rs6000_select[1].string.
6317 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6318 global_options_set.x_rs6000_cpu_index instead of
6319 rs6000_select[1].string.
6320
6321 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6322
6323 * config.gcc (libgcc_tm_file): Define instead of including files
6324 from ../../libgcc/config/ in tm_file.
6325 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6326 * configure: Regenerate.
6327 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6328 libgcc_tm.h, cs-libgcc_tm.h): New.
6329 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6330 (clean): Remove libgcc_tm.h.
6331 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6332 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6333 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6334
6335 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
6336
6337 PR target/48896
6338 * config/avr/avr.c (avr_ret_register): Return unsigned int
6339 instead of int.
6340 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6341 it to avr_libcall_value.
6342 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6343 expand_expr.
6344 (avr_expand_binop_builtin): Ditto.
6345 (avr_expand_unop_builtin): Ditto.
6346
6347 2011-05-10 DJ Delorie <dj@redhat.com>
6348
6349 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6350 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6351 * config/rx/rx.c (rx_align_for_label): Add label and
6352 uses_threshold parameters. Do not align when the label is not
6353 used enough.
6354 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6355
6356 2011-05-10 Richard Guenther <rguenther@suse.de>
6357
6358 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6359 a series of conversions and apply foldings similar to what
6360 fold-const does.
6361 (tree_ssa_forward_propagate_single_use_vars): Call it.
6362
6363 2011-05-10 Jakub Jelinek <jakub@redhat.com>
6364
6365 PR tree-optimization/48611
6366 PR tree-optimization/48794
6367 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6368 referenced from RESX or EH_DISPATCH arguments.
6369
6370 PR debug/48928
6371 * dfp.c (decimal_to_decnumber): Handle conversion from
6372 dconst{1,2,m1,half}.
6373
6374 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6375
6376 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6377 for !flag_prefer_avx128.
6378 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6379
6380 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6381
6382 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6383 (fold_ternary_loc): Use expr_location_or.
6384
6385 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
6386
6387 PR debug/48853
6388 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6389 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6390 Pmode and mem_mode is not VOIDmode.
6391
6392 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
6393
6394 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6395 TYPE_QUAL_RESTRICT): Convert to enum.
6396
6397 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6398
6399 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6400 (const_pow2_1_to_8_operand): Ditto.
6401 (const_pow2_1_to_128_operand): Ditto.
6402 (const_pow2_1_to_32768_operand): Ditto.
6403 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6404 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
6405 in insn constraint to check integer value of operand 3.
6406 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6407
6408 (PINSR_MODE): New mode iterator.
6409 (sse2p4_1): New mode attribute.
6410 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6411 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6412 iterator. Use const_int_operand instead of
6413 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
6414 exact_log2 in insn constraint to check integer value of operand 3.
6415
6416 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6417
6418 * config/i386/sse.md (blendbits): Remove mode attribute.
6419 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6420 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6421 Check integer value of operand 3 in insn constraint.
6422
6423 2011-05-09 Richard Guenther <rguenther@suse.de>
6424
6425 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6426 for diagnostics.
6427 (lto_symtab_merge): Likewise. Do not register types here.
6428 (lto_symtab_merge_decls_2): Likewise.
6429 (lto_symtab_merge_decls_1): Likewise.
6430 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6431 * gimple.c (enum gtc_mode): Declare.
6432 (gimple_types_compatible_p): Make static.
6433
6434 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6435
6436 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6437 temporary register to match Pmode.
6438
6439 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6440
6441 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6442 and *vec_concatv4si_1_avx.
6443
6444 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6445
6446 PR rtl-optimization/48927
6447 * ira-conflicts.c (commutative_constraint_p): Use
6448 recog_data.alternative_enabled_p to disable alternatives where
6449 "enabled" attribute is false.
6450 (get_dup_num): Ditto.
6451 * ira-lives.c (single_reg_class): Ditto.
6452 (ira_implicitly_set_insn_hard_regs): Ditto.
6453
6454 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6455
6456 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6457 (dataflow_set_preserve_mem_locs): Likewise.
6458
6459 2011-05-09 Philipp Thomas <pth@suse.de>
6460
6461 * config/mep/mep.c (mep_validate_vliw): Syntax description
6462 should not be translated.
6463
6464 2011-05-09 Joseph Myers <joseph@codesourcery.com>
6465
6466 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6467 * config/mips/mips-tables.opt: New file (generated).
6468 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6469 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6470 MIPS_ARCH_OPTION_NATIVE): Define.
6471 * config/mips/mips.c (mips_cpu_info_table): Move contents to
6472 mips-cpus.def.
6473 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6474 mips_parse_cpu): Remove.
6475 (mips_cpu_info_from_opt, mips_default_arch): New.
6476 (mips_handle_option): Don't assert that global structures are in
6477 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6478 (mips_option_override): Use new variables and functions to set
6479 state of these options. Use strcmp to check for individual CPU names.
6480 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6481 definition.
6482 * config/mips/mips.opt (march=): Use ToLower and Enum.
6483 (mips): Use ToLower, Enum and Var.
6484 (mtune=): Use ToLower and Enum.
6485 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6486
6487 2011-05-08 Jan Hubicka <jh@suse.cz>
6488
6489 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6490 Arrange type pairs to be UID ordered.
6491 (gimple_lookup_type_leader): Make inline.
6492
6493 2011-05-09 Nick Clifton <nickc@redhat.com>
6494
6495 PR target/48899
6496 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6497 PROCESSOR_DEFAULT.
6498
6499 PR target/48897
6500 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6501 variable 's'.
6502
6503 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
6504
6505 * combine.c (simplify_comparison): Abstract out parts into...
6506 (simplify_compare_const): ... new function.
6507 (try_combine): Generalize parallel arithmetic/compare combining
6508 to call simplify_compare_const() and CANONICALIZE_COMPARE().
6509
6510 2011-05-08 Jan Hubicka <jh@suse.cz>
6511
6512 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6513 (cgraph_create_virtual_clone): Call hooks once virtual clone
6514 is finished.
6515 * cgraph.h (cgraph_clone_node): Update prototype.
6516 * ipa-cp.c (ipcp_estimate_growth): Use
6517 estimate_ipcp_clone_size_and_time.
6518 * ipa-inline-transform.c (clone_inlined_nodes): Update.
6519 * lto-cgraph.c (input_node): Update.
6520 * ipa-inline.c (recursive_inlining): Update.
6521 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6522 (evaluate_conditions_for_known_args): Break out from ...
6523 (evaluate_conditions_for_edge): ... here.
6524 (evaluate_conditions_for_ipcp_clone): New function.
6525 (inline_node_duplication_hook): Update clone summary based
6526 on parameter map.
6527 (estimate_callee_size_and_time): Rename to ...
6528 (estimate_node_size_and_time): take NODE instead of EDGE;
6529 take POSSIBLE_TRUTHS as argument.
6530 (estimate_callee_size_and_time): Update.
6531 (estimate_ipcp_clone_size_and_time): New function.
6532 (do_estimate_edge_time): Update.
6533
6534 2011-05-08 Richard Guenther <rguenther@suse.de>
6535
6536 PR middle-end/48908
6537 PR middle-end/48905
6538 * expmed.c (expand_shift_1): Compute adjusted constant shift
6539 amount manually.
6540
6541 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6542
6543 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6544
6545 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6546
6547 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6548
6549 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
6550
6551 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6552
6553 2011-05-07 Jan Hubicka <jh@suse.cz>
6554
6555 * ipa-inline-transform.c (inline_call): Account when program size
6556 decreases.
6557 * ipa-inline.c (relative_time_benefit): New function.
6558 (edge_badness): Reorganize to be power 2 based; fix thinko when
6559 computing badness for negative growth; update comments to match
6560 reality; better dumps.
6561
6562 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
6563
6564 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6565 type to bool and adjust comment.
6566 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6567 (fold_mathfn_compare): Remove calls to global_bindings_p.
6568 (fold_inf_compare): Likewise.
6569 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6570 * c-tree.h (global_bindings_p): Adjust prototype.
6571 * c-decl.c (global_bindings_p): Return bool and simplify.
6572
6573 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
6574
6575 PR tree-optimization/48837
6576 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6577 when accumulator transformation is performed.
6578
6579 2011-05-06 Jan Hubicka <jh@suse.cz>
6580
6581 * i386.h (ix86_tune_indices): Add
6582 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6583 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6584 * i386.c (initial_ix86_tune_features): Add
6585 X86_SOFTARE_PREFETCHING_BENEFICIAL.
6586 (software_prefetching_beneficial_p): Remove predicate.
6587 (ix86_option_override_internal): Use new macro.
6588
6589 2011-05-06 Jan Hubicka <jh@suse.cz>
6590
6591 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6592
6593 2011-05-06 Jan Hubicka <jh@suse.cz>
6594
6595 * cgraph.c (cgraph_add_thunk): Create real function node instead
6596 of alias node; finalize it and mark needed/reachale; arrange visibility
6597 to be right and add it into the corresponding same comdat group list.
6598 (dump_cgraph_node): Dump thunks.
6599 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6600 cgraph_function_with_gimple_body_p,
6601 cgraph_first_function_with_gimple_body,
6602 cgraph_next_function_with_gimple_body): New functions.
6603 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6604 New macros.
6605 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6606 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6607 * cgraphunit.c (cgraph_finalize_function): Only look into possible
6608 devirtualization when optimizing.
6609 (verify_cgraph_node): Verify thunks.
6610 (cgraph_analyze_function): Analyze thunks.
6611 (cgraph_mark_functions_to_output): Output thunks only in combination
6612 with function they are assigned to.
6613 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6614 alias into normal node.
6615 (assemble_thunks): New functoin.
6616 (cgraph_expand_function): Use it.
6617 * lto-cgraph.c (lto_output_node): Stream thunks.
6618 (input_overwrite_node): Stream in thunks.
6619 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6620 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6621 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6622 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6623 (inline_analyze_function): Do not care about thunk jump functions.
6624 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6625 * ipa-prop.c (ipa_prop_write_jump_functions): Use
6626 cgraph_function_with_gimple_body_p.
6627 * passes.c (do_per_function_toporder): Use
6628 cgraph_function_with_gimple_body_p.
6629 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6630 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6631 (function_called_by_processed_nodes_p): Likewise.
6632
6633 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6634
6635 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6636 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6637 entries.
6638 (mabi=): Replace with separate entries for mabi=altivec,
6639 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6640 mabi=ieeelongdouble and mabi=ibmlongdouble.
6641 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6642 check for -mabi=spe without SPE ABI support here.
6643 (rs6000_handle_option): Replace OPT_mabi_ handling with
6644 OPT_mabi_altivec and OPT_mabi_spe handling.
6645
6646 2011-05-06 Cary Coutant <ccoutant@google.com>
6647
6648 * dwarf2out.c (contains_subprogram_definition): New function.
6649 (should_move_die_to_comdat): Call it.
6650
6651 2011-05-06 Jeff Law <law@redhat.com>
6652
6653 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6654 remove_ctrl_stmt_and_useless_edges.
6655 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6656 (fixup_template_block, thread_single_edge): Likewise.
6657 (mark_threaded_blocks): Use THREAD_TARGET.
6658
6659 2011-05-06 Alan Modra <amodra@gmail.com>
6660
6661 PR target/48900
6662 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6663 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6664
6665 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6666
6667 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6668 constraint modifier to "r".
6669
6670 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6671
6672 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6673 fall through for OPT_mcmodel_.
6674
6675 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6676
6677 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6678 instruction sizes.
6679 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6680
6681 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6682
6683 PR target/47930
6684 * config/arm/arm.opt (marm): Document it.
6685 (mthumb): Reject negative variant.
6686
6687 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6688
6689 PR target/48898
6690 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6691 Fix typo in "ccvt" variable name.
6692
6693 2011-05-06 Tristan Gingold <gingold@adacore.com>
6694
6695 PR target/48895
6696 * config/vms/vms-ar.c (main): Remove cwd variable.
6697
6698 2011-05-06 Jakub Jelinek <jakub@redhat.com>
6699
6700 PR debug/48902
6701 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6702
6703 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6704
6705 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6706 * gimplify.c (gimplify_switch_expr): Likewise.
6707 * omp-low.c (expand_omp_sections): Likewise.
6708 * tree-eh.c (lower_try_finally_switch): Likewise.
6709 (lower_eh_dispatch): Likewise.
6710 * tree.h (build_case_label): Declare.
6711 * tree.c (build_case_label): Define.
6712
6713 2011-05-05 Jason Merrill <jason@redhat.com>
6714
6715 PR c++/40975
6716 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6717 (copy_statement_list): Don't recurse.
6718 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6719 STATEMENT_LIST.
6720
6721 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6722
6723 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6724 through from -mfpu= handling.
6725 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6726
6727 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6728
6729 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6730 POST_MODIFY.
6731
6732 2011-05-05 Steve Ellcey <sje@cup.hp.com>
6733
6734 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6735 for 11.31.
6736 (hppa[12]*-*-hpux11*): Ditto.
6737 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6738 * config/ia64/hpux-unix2003.h: New.
6739 * config/pa/pa-hpux1131.opt: New.
6740 * config/pa/pa-hpux1131.h: New.
6741 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6742 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6743 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6744
6745 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6746
6747 PR debug/48853
6748 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6749 instead of mode as 3rd argument to recursive call.
6750 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6751 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6752 VOIDmode.
6753 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6754 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6755 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6756 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6757
6758 2011-05-05 Julian Brown <julian@codesourcery.com>
6759
6760 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6761 parenthesis in D-register case.
6762
6763 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6764
6765 * opt-functions.awk (var_type_struct): Handle Enum options.
6766 * optc-gen.awk: Don't check range of variables of character type.
6767 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6768 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6769 rs6000_sdata_name, rs6000_explicit_options): Remove.
6770 (rs6000_option_override_internal): Check for -malign-power here.
6771 Use global_options_set instead of rs6000_explicit_options.
6772 (rs6000_parse_fpu_option): Remove.
6773 (rs6000_handle_option): Access variables via opts and opts_set
6774 pointers. Use error_at and warning_at. Add fall-through
6775 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6776 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6777 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6778 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6779 here. Don't use rs6000_parse_fpu_option.
6780 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6781 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6782 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6783 (mrecip=): Use Var.
6784 (mspe): Use Var and Save.
6785 (mtraceback=): Use Enum and Var.
6786 (rs6000_traceback_type): New Enum and EnumValue entries.
6787 (mfloat-gprs=): Use Enum, Var and Save.
6788 (rs6000_float_gprs): New Enum and EnumValue entries.
6789 (mlong-double-): use Var and Save.
6790 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6791 (malign-): Use Enum and Var.
6792 (rs6000_alignment_flags): New Enum and EnumValue entries.
6793 (mfpu=): Use Enum.
6794 (fpu_type_t): New Enum and EnumValue entries.
6795 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6796 global_options_set instead of rs6000_explicit_options.
6797 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6798 global_options_set instead of rs6000_explicit_options.
6799 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6800 global_options_set instead of rs6000_explicit_options.
6801 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6802 global_options_set instead of rs6000_explicit_options.
6803 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6804 global_options_set instead of rs6000_explicit_options.
6805 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6806 global_options_set instead of rs6000_explicit_options.
6807 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6808 definition.
6809 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6810 global_options_set instead of rs6000_explicit_options.
6811 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6812 (rs6000_cmodel): New Enum and EnumValue entries.
6813 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6814 global_options_set instead of rs6000_explicit_options.
6815 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6816 (mtls-size=): Use Enum and Var.
6817 (rs6000_tls_size): New Enum and EnumValue entries.
6818
6819 2011-05-05 Michael Matz <matz@suse.de>
6820
6821 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6822 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6823 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6824 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6825 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6826 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6827 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6828 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6829 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6830 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6831 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6832 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6833 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6834 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6835 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6836 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6837
6838 2011-05-05 Richard Guenther <rguenther@suse.de>
6839
6840 * expmed.c (expand_variable_shift): Rename to ...
6841 (expand_shift_1): ... this. Take an expanded shift amount.
6842 For rotates recurse directly not building trees for the shift amount.
6843 (expand_variable_shift): Wrap around expand_shift_1.
6844 (expand_shift): Adjust.
6845
6846 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6847
6848 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6849
6850 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6851
6852 * tree.h (get_pending_sizes): Remove prototype.
6853 (put_pending_size): Likewise.
6854 (put_pending_sizes): Likewise.
6855 * stor-layout.c (pending_sizes): Delete.
6856 (get_pending_sizes): Likewise.
6857 (put_pending_size): Likewise.
6858 (put_pending_sizes): Likewise.
6859 (variable_size): Do not call put_pending_size and tidy up.
6860 * function.h (struct function): Remove dont_save_pending_sizes_p.
6861 * lto-streamer-in.c (input_function): Do not stream it.
6862 * lto-streamer-out.c (output_function): Likewise.
6863 * tree-inline.c (initialize_cfun): Do not copy it.
6864 * c-decl.c (store_parm_decls): Do not set it.
6865 * omp-low.c (create_task_copyfn): Likewise.
6866 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6867
6868 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
6869
6870 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6871 conditions.
6872 (*movdf_internal): Ditto.
6873 (*movdf_internal_nointeger): Ditto.
6874 (*movsf_internal): Ditto.
6875
6876 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6877
6878 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6879 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6880 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6881 (c_variable_size): Remove.
6882 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6883 call put_pending_sizes.
6884 (get_parm_info): Add parameter expr. Use it to set
6885 arg_info->pending_sizes.
6886 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6887 get_pending_sizes.
6888 * c-parser.c (c_parser_parms_declarator): Update call to
6889 c_parser_parms_list_declarator.
6890 (c_parser_parms_list_declarator): Take parameter expr. Update
6891 call to push_parm_decl. Update recursive call. Don't call
6892 get_pending_sizes. Update calls to get_parm_info.
6893 (c_parser_objc_method_definition): Update calls to
6894 c_parser_objc_method_decl and objc_start_method_definition.
6895 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6896 (c_parser_objc_method_decl): Add parameter expr. Update call to
6897 grokparm.
6898 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6899 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6900 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6901
6902 2011-05-05 Michael Hope <michael.hope@linaro.org>
6903
6904 PR pch/45979
6905 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6906 __ARM_EABI__ hosts.
6907
6908 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6909
6910 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6911 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6912 (spu_output_mi_thunk): New function.
6913
6914 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6915
6916 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6917 targetm.asm_out.print_operand.
6918 * config/sol2.c: Include target.h.
6919
6920 2011-05-04 Jan Hubicka <jh@suse.cz>
6921
6922 * ipa-inline.c (reset_edge_caches): New function.
6923 (update_caller_keys): Add check_inlinablity_for; do not
6924 reset edge caches; remove now unnecesary loop.
6925 (update_callee_keys): Add comments; reset node_growth_cache of callee.
6926 (update_all_callee_keys): Likewise.
6927 (inline_small_functions): Sanity check cache; update code
6928 recomputing it.
6929
6930 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6931
6932 PR rtl-optimization/47612
6933 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6934 as the last insn of the sequence to be moved.
6935
6936 2011-05-04 Tobias Burnus <burnus@net-b.de>
6937
6938 PR fortran/48864
6939 * doc/invoke.texi (Ofast): Document that it
6940 enables Fortran's -fno-protect-parens.
6941
6942 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6943
6944 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6945
6946 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6947
6948 * stor-layout.c (variable_size): Do not issue errors.
6949
6950 2011-05-04 Richard Guenther <rguenther@suse.de>
6951
6952 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6953 for array-ref indices.
6954 (tree_coverage_counter_addr): Likewise.
6955 (build_fn_info_type): Use size_int for index types.
6956 (build_gcov_info): Likewise.
6957
6958 2011-05-04 Richard Guenther <rguenther@suse.de>
6959
6960 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6961 to build_int_cst.
6962 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6963 for constructor indices.
6964 (push_init_level): Likewise.
6965
6966 2011-05-04 Richard Guenther <rguenther@suse.de>
6967
6968 * explow.c (promote_mode): Move variable declarations before code.
6969
6970 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6971
6972 * tree.h (build_function_type_array): Declare.
6973 (build_varargs_function_type_array): Declare.
6974 (build_function_type_vec, build_varargs_function_type_vec): Define.
6975 * tree.c (build_function_type_array_1): New function.
6976 (build_function_type_array): New function.
6977 (build_varargs_function_type_array): New function.
6978
6979 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6980
6981 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6982 before setting STMT_VINFO_TYPE.
6983
6984 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6985
6986 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6987 instead of spu_pass_by_reference.
6988
6989 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6990
6991 * calls.c (emit_library_call_value_1): Invoke
6992 promote_function_mode hook on libcall arguments.
6993 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6994 argument being NULL.
6995 * targhooks.c (default_promote_function_mode): Lisewise.
6996 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6997 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6998
6999 * doc/tm.texi: Document that TYPE argument might be NULL.
7000
7001 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7002
7003 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
7004
7005 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7006
7007 From Bernd Schmidt
7008 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
7009
7010 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7011
7012 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
7013 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
7014 Move ...
7015 * mips-tfile.c: ... here.
7016 Don't include coretypes.h, tm.h, filenames.h.
7017 (saber_stop): Remove definition and all calls.
7018 [__SABER__]: Remove.
7019 (__LINE__): Remove default.
7020 (Size_t, Ptrdiff_t): Remove definitions.
7021 Replace by size_t, ptrdiff_t.
7022 [!MIPS_DEBUGGING_INFO]: Remove.
7023 (SHASH_SIZE, THASH_SIZE): Remove defaults.
7024 (progname): Add const.
7025 (STATIC): Remove.
7026 Replace all uses by static.
7027 (ALIGN_SYMTABLE_OFFSET): Remove default.
7028 * mips-tdump.c: Don't include coretypes.h, tm.h.
7029 Remove !MIPS_IS_STAB guard.
7030 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
7031 $(TM_H), filenames.h dependencies.
7032 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
7033
7034 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7035
7036 From Jie Zhang
7037 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
7038 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7039
7040 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7041
7042 From Bernd Schmidt
7043 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
7044 account and save/restore RETS.
7045 (PROFILE_BEFORE_PROLOGUE): Define.
7046 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
7047 the push insn to use predecrement.
7048
7049 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7050
7051 From Jie Zhang
7052 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
7053
7054 2011-05-04 Nick Clifton <nickc@redhat.com>
7055
7056 * config/mn10300/mn10300.c: Include cfgloop.h.
7057 (DUMP): New macro.
7058 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
7059 Lcc or a FLcc insn into the instruction stream.
7060 (mn10300_block_contains_call): New function. Returns true if the
7061 given basic block contains a CALL insn.
7062 (mn10300_loop_contains_call_insn): New function. Returns true if
7063 the given loop contains a CALL insn.
7064 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
7065 to use the SETLB and Lcc or FLcc insns.
7066 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
7067 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
7068 * config/mn10300/mn10300.opt (msetlb): New option. Used to
7069 disable the SETLB optimization.
7070 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
7071 __SETLB__ or __NO_SETLB__.
7072 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
7073 (movsf_internal): Handle MDR register.
7074 (cmpsi): Make visible.
7075 (setlb): New pattern.
7076 (Lcc): New pattern.
7077 (FLcc): New pattern.
7078
7079 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
7080
7081 PR target/48860
7082 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
7083 for reg<->xmm moves.
7084 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
7085 (vec_concatv2di_rex64_sse): Ditto.
7086 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
7087 (*vec_extractv2di_1_rex64): Ditto.
7088
7089 Revert:
7090 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7091
7092 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7093 reg<->xmm moves.
7094 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
7095
7096 2011-05-04 Richard Guenther <rguenther@suse.de>
7097
7098 * tree.h (int_const_binop): Remove notrunc argument.
7099 * fold-const.c (int_const_binop): Remove notrunc argument. Always
7100 create integer constants that are properly truncated.
7101 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
7102 (const_binop): Remove zero notrunc argument to int_const_binop.
7103 (size_binop_loc): Likewise.
7104 (fold_div_compare): Likewise.
7105 (maybe_canonicalize_comparison_1): Likewise.
7106 (fold_comparison): Likewise.
7107 (fold_binary_loc): Likewise.
7108 (multiple_of_p): Likewise.
7109 * expr.c (store_constructor): Likewise.
7110 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
7111 (maybe_fold_stmt_addition): Likewise.
7112 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
7113 * stor-layout.c (layout_type): Likewise.
7114 * tree-data-ref.c (tree_fold_divides_p): Likewise.
7115 * tree-sra.c (build_ref_for_offset): Likewise.
7116 (build_user_friendly_ref_for_offset): Likewise.
7117 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
7118 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7119 * tree-ssa-loop-niter.c (inverse): Likewise.
7120 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7121 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
7122 * tree-switch-conversion.c (check_range): Likewise.
7123 (build_constructors): Likewise.
7124 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
7125 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
7126 (extract_range_from_assert): Likewise.
7127 (vrp_int_const_binop): Likewise.
7128 (extract_range_from_binary_expr): Likewise.
7129 (extract_range_from_unary_expr): Likewise.
7130 (check_array_ref): Likewise.
7131 (find_case_label_range): Likewise.
7132 (simplify_div_or_mod_using_ranges): Likewise.
7133 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
7134 comparing case labels for merging.
7135
7136 2011-05-03 Mark Wielaard <mjw@redhat.com>
7137
7138 * dwarf2out.c (debug_str_hash_forced): Removed.
7139 (gen_label_for_indirect_string): Removed.
7140 (get_debug_string_label): Removed.
7141 (AT_string_form): Generate label directly.
7142 (output_indirect_string): Test indirect_string_node for
7143 DW_FORM_strp instead of checking label and refcount.
7144 (prune_indirect_string): Removed.
7145 (prune_unused_types): Don't check debug_str_hash_forced or
7146 call prune_indirect_string.
7147
7148 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7149
7150 PR other/48093
7151 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
7152
7153 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7154
7155 PR debug/47994
7156 PR debug/47919
7157 * combine.c (try_combine): Skip debug insns at m_split tests.
7158
7159 2011-04-26 Mark Wielaard <mjw@redhat.com>
7160
7161 PR42288
7162 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
7163 when info_section_emitted.
7164
7165 2011-05-03 Joseph Myers <joseph@codesourcery.com>
7166
7167 * config/mips/mips-opts.h: New.
7168 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
7169 to mips-opts.h.
7170 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
7171 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
7172 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
7173 via opts pointer.
7174 * config/mips/mips.h (enum mips_code_readable_setting): Move to
7175 mips-opts.h.
7176 (mips_abi, mips_code_readable): Don't declare.
7177 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
7178 (mabi=): Use Enum and Var.
7179 (mips_abi): New Enum and EnumValue entries.
7180 (mcode-readable=): Use Enum and Var.
7181 (mips_code_readable_setting): New Enum and EnumValue entries.
7182 (mr10k-cache-barrier=): Use Enum and Var.
7183 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
7184
7185 2011-05-03 Jan Hubicka <jh@suse.cz>
7186
7187 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
7188 replace hash by pointer map.
7189 (cgraph_node_set_element_def, cgraph_node_set_element,
7190 const_cgraph_node_set_element, varpool_node_set_element_def,
7191 varpool_node_set_element, const_varpool_node_set_element): Remove.
7192 (free_cgraph_node_set, free_varpool_node_set): New function.
7193 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
7194 * tree-emutls.c: Free varpool node set.
7195 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
7196 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7197 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
7198 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7199 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
7200 Move here from ipa.c; implement using pointer_map
7201 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
7202 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7203 debug_cgraph_node_set, varpool_node_set_new,
7204 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7205 dump_varpool_node_set, debug_varpool_node_set):
7206 Move to ipa-uitls.c.
7207 * passes.c (ipa_write_summaries): Update.
7208
7209 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7210
7211 From Mike Frysinger:
7212 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7213 bf542/bf544/bf547/bf548/bf549.
7214
7215 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7216
7217 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7218
7219 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7220
7221 From Bernd Schmidt:
7222 * config/bfin/bfin.md (MOVCC): New mode_macro.
7223 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7224 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
7225 comments from generated assembly.
7226
7227 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7228
7229 From Bernd Schmidt
7230 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7231 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7232 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7233 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7234 * config/bfin/lib1funcs.asm (___muldi3): New function.
7235
7236 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7237
7238 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7239 build_function_type_list instead of build_function_type.
7240 Rearrange initialization of `args' to do so.
7241
7242 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7243
7244 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7245 instead of build_function_type.
7246
7247 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7248
7249 * config/rs6000/rs6000.c (spe_init_builtins): Call
7250 build_function_type_list instead of build_function_type.
7251 (paired_init_builtins, altivec_init_builtins): Likewise.
7252 (builtin_function_type): Likewise.
7253
7254 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7255
7256 * config/sh/sh.c (sh_media_init_builtins): Call
7257 build_function_type_list instead of build_function_type.
7258
7259 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7260
7261 * config/sparc/sparc.c (sparc_file_end): Call
7262 build_function_type_list instead of build_function_type.
7263
7264 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7265
7266 * config/alpha/alpha.c (alpha_init_builtins): Call
7267 build_function_type_list instead of build_function_type.
7268
7269 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7270
7271 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7272 build_function_type_list instead of build_function_type.
7273
7274 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7275
7276 * config/iq2000/i2000.c (iq2000_init_builtins): Call
7277 build_function_type_list instead of build_function_type.
7278 Delete `endlink' variable.
7279
7280 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7281
7282 * config/avr/avr.c (avr_init_builtins): Call
7283 build_function_type_list instead of build_function_type.
7284
7285 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7286
7287 * config/picochip/picochip.c (picochip_init_builtins): Call
7288 build_function_type_list instead of build_function_type.
7289 Delete `endlink' variable.
7290
7291 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7292
7293 * config/bfin/bfin.c (bfin_init_builtins): Call
7294 build_function_type_list instead of build_function_type.
7295
7296 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7297
7298 From Bernd Schmidt
7299 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7300 that's not CONST_INT. Seemingly redundant check is due to PR39768.
7301
7302 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7303
7304 From Jie Zhang:
7305 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7306 libbffastfp overrides libgcc when -mfast-fp.
7307
7308 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7309
7310 Originally from Bernd Schmidt
7311 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7312 * config/bfin/bfin.c (override_options): Test it and error if
7313 TARGET_FDPIC.
7314
7315 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7316
7317 Originally From Bernd Schmidt
7318 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7319 FD-PIC.
7320
7321 2011-05-03 Jeff Law <law@redhat.com>
7322
7323 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7324 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7325 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7326 than accessing AUX field directly. Free the AUX field before
7327 clearing it.
7328 (thread_block, thread_through_loop_header): Likewise.
7329 (thread_single_edge, mark_threaded_blocks): Likewise.
7330 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
7331 (register_jump_thread): Do not attempt to thread to a NULL edge.
7332
7333 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7334
7335 * function.c (init_function_start): Call decide_function_section.
7336 * varasm.c (decide_function_section): New function.
7337 (assemble_start_function): When not using
7338 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7339 or first_function_block_is_cold.
7340 * rtl.h (decide_function_section): Declare.
7341
7342 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7343 Jakub Jelinek <jakub@redhat.com>
7344
7345 PR target/48774
7346 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7347 only succeed if req_mode is the same as set_mode.
7348
7349 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7350
7351 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7352 * genemit.c (gen_exp): Handle RETURN.
7353 * emit-rtl.c (verify_rtx_sharing): Likewise.
7354 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7355 * rtl.c (copy_rtx): RETURN is shared.
7356 * rtl.h (enum global_rtl_index): Add GR_RETURN.
7357 (ret_rtx): New.
7358 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7359 * config/s390/s390.c (s390_emit_epilogue): Likewise.
7360 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7361 * config/cris/cris.c (cris_expand_return): Likewise.
7362 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7363 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7364 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7365 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7366 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7367 Likewise.
7368 * config/v850/v850.c (expand_epilogue): Likewise.
7369 * config/bfin/bfin.c (bfin_expand_call): Likewise.
7370 * config/arm/arm.md (epilogue): Likewise.
7371 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7372 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7373 variable to ret_reg.
7374
7375 2011-05-03 Richard Guenther <rguenther@suse.de>
7376
7377 PR lto/48846
7378 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7379 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7380 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7381
7382 2011-05-03 Richard Guenther <rguenther@suse.de>
7383
7384 * c-decl.c (grokdeclarator): Instead of looking at
7385 TREE_OVERFLOW check if the constant fits in the index type.
7386
7387 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7388
7389 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7390 (vec_store_lanes<mode><mode>): Likewise.
7391
7392 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7393
7394 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7395 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7396 convert_optab_index values.
7397 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7398 * genopinit.c (optabs): Initialize the new optabs.
7399 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7400 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7401 (expand_STORE_LANES): New functions.
7402 * tree.h (build_array_type_nelts): Declare.
7403 * tree.c (build_array_type_nelts): New function.
7404 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7405 (vect_model_load_cost): Likewise.
7406 (vect_store_lanes_supported, vect_load_lanes_supported)
7407 (vect_record_strided_load_vectors): Declare.
7408 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7409 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7410 (vect_transform_strided_load): Split out statement recording into...
7411 (vect_record_strided_load_vectors): ...this new function.
7412 * tree-vect-stmts.c (create_vector_array, read_vector_array)
7413 (write_vector_array, create_array_ref): New functions.
7414 (vect_model_store_cost): Add store_lanes_p argument.
7415 (vect_model_load_cost): Add load_lanes_p argument.
7416 (vectorizable_store): Try to use store-lanes functions for
7417 interleaved stores.
7418 (vectorizable_load): Likewise load-lanes and loads.
7419 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7420 to vect_model_store_cost.
7421 (vect_build_slp_tree): Likewise vect_model_load_cost.
7422
7423 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7424
7425 * hooks.h (hook_bool_mode_uhwi_false): Declare.
7426 * hooks.c (hook_bool_mode_uhwi_false): New function.
7427 * target.def (array_mode_supported_p): New hook.
7428 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7429 * doc/tm.texi: Regenerate.
7430 * stor-layout.c (mode_for_array): New function.
7431 (layout_type): Use it.
7432 * config/arm/arm.c (arm_array_mode_supported_p): New function.
7433 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7434
7435 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
7436
7437 PR target/48723
7438 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7439 for -fstack-check if the size to allocate is negative.
7440
7441 2011-05-02 Lawrence Crowl <crowl@google.com>
7442
7443 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7444 (timevar_cond_start): New for starting a timer only when it is not
7445 already running.
7446 (timevar_cond_stop): New for stopping a timer when it was not already
7447 running.
7448
7449 * timevar.c (timevar_stop): Enable start/stop timers to start again.
7450 (timevar_cond_start): New as above.
7451 (timevar_cond_stop): New as above.
7452
7453 * timevar.def: Add start/stop timers for compiler phases,
7454 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7455 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7456 and TV_PHASE_FINALIZE.
7457 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7458 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7459 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7460 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7461 Make unused TV_OVERLOAD into a start/stop timer.
7462
7463 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7464 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7465 to indicate that they are start/stop timers.
7466
7467 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7468 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7469 Move initialization to do_compile.
7470 (do_compile): Add initialization from above.
7471 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7472
7473 * c-decl.c (c_write_global_declarations): Add start/stop of
7474 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7475
7476 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7477 or TV_PARSE_INLINE, as appropriate.
7478 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7479 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7480
7481 2011-05-02 Jason Merrill <jason@redhat.com>
7482
7483 PR c++/40975
7484 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7485
7486 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
7487
7488 PR c/35445
7489 * c-decl.c (finish_decl): Only create a composite if the types are
7490 compatible.
7491
7492 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7493
7494 * config/fr30/fr30-protos.h (Mmode): Don't define.
7495 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
7496 definition where used.
7497 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7498 define. Expand definitions where used.
7499 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7500 Expand definitions where used.
7501 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7502 rx_function_arg, rx_function_arg_advance,
7503 rx_function_arg_boundary): Expand definitions of those macros.
7504 * config/v850/v850-protos.h (Mmode): Don't define. Expand
7505 definition where used.
7506
7507 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7508
7509 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7510 reg<->xmm moves.
7511 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7512 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
7513 with *movv2sf_internal_rex64_avx.
7514 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7515 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7516 Use %v prefix in insn mnemonic to handle TARGET_AVX.
7517 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
7518 "vex" in "prefix" attribute calculation.
7519 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
7520
7521 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
7522
7523 PR target/47951
7524 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7525 inputs match the output.
7526
7527 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
7528
7529 PR target/47955
7530 * config/m68k/m68k.c (m68k_expand_prologue): Set
7531 current_function_static_stack_size.
7532
7533 2011-05-02 Jan Hubicka <jh@suse.cz>
7534
7535 * lto-streamer.c (lto_streamer_cache_insert_1,
7536 lto_streamer_cache_lookup, lto_streamer_cache_create,
7537 lto_streamer_cache_delete): Use pointer map instead of hashtable.
7538 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7539
7540 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7541
7542 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7543 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7544 config/m68k/t-opts: New files.
7545 * config/m68k/m68k-tables.opt: New file (generated).
7546 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7547 extra_options and m68k/t-opts to tmake_file.
7548 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7549 (all_isas): Initialize using m68k-isas.def.
7550 (all_microarchs): Initialize using m68k-microarchs.def.
7551 (m68k_find_selection): Remove.
7552 (m68k_handle_option): Don't assert that global structures are in
7553 use. Use error_at. Access variables via opts pointer. Don't
7554 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
7555 directly for -m68020-40 and -m68020-60.
7556 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7557 m68k_tune_entry here.
7558 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7559 to m68k-opts.h.
7560 (m68k_library_id_string): Remove declaration.
7561 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7562 (m68k_library_id_string): New Variable.
7563 (march=, mcpu=, mtune=): Use Enum and Var.
7564
7565 2011-05-02 Richard Guenther <rguenther@suse.de>
7566
7567 * varasm.c (output_constructor_regular_field): Compute zero-based
7568 index with double-ints. Make sure to ICE instead of producing
7569 wrong code.
7570 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7571 in asserts. Properly use a signed type.
7572
7573 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7574
7575 * config/i386/sse.md (V): New mode iterator.
7576 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
7577 TARGET_SSE2.
7578 (V_256): Rename from AVX256MODE.
7579 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
7580 condition to all users.
7581 (VF1): Ditto.
7582 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
7583 condition to all users.
7584 (VF_128): Make V4SF mode unconditional.
7585 (VF_256): Rename from AVX256MODEF2P.
7586 (VI4F_128): Rename from SSEMODE4S.
7587 (VI8F_128): Rename from SSEMODE2D.
7588 (VI4F_256): Rename from AVX256MODE8P.
7589 (VI8F_256): Rename from AVX256MODE4P.
7590 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7591 (ssescalarmodesuffix): Remove SF and DF modes.
7592 (SSEMODE124): Remove.
7593 (SSEMODE1248): Ditto.
7594 (SSEMODEF2P): Ditto.
7595 (AVXMODEF2P): Ditto.
7596 (AVXMODEFDP): Ditto.
7597 (AVXMODEFSP): Ditto.
7598 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7599 unconditional.
7600 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
7601 unconditional.
7602 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7603 xop_pcmov_<mode>256. Use V mode iterator.
7604
7605 Adjust RTX patterns globally for renamed mode attributes.
7606
7607 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7608
7609 * haifa-sched.c (sched_emit_insn): Emit insn before first
7610 non-scheduled insn. Inform back-end about new insn. Add
7611 new insn to scheduled_insns list.
7612
7613 2011-05-02 Richard Guenther <rguenther@suse.de>
7614
7615 PR tree-optimization/48822
7616 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7617 (process_scc): Indicate which iteration we start.
7618
7619 2011-05-02 Jan Hubicka <jh@suse.cz>
7620
7621 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7622 (lto_section_overrun): New.
7623 * lto-section-out.c (append_block): Rename to ...
7624 (lto_append_block): ... this one; export.
7625 (lto_output_1_stream): Move lto lto-streamer.h
7626 (lto_output_data_stream): Update.
7627 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7628 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7629 functions.
7630
7631 2011-05-02 Richard Guenther <rguenther@suse.de>
7632
7633 * tree.c (tree_code_counts): New global array.
7634 (record_node_allocation_statistics): Count individual tree codes.
7635 (dump_tree_statistics): Dump individual code stats.
7636
7637 2011-05-01 Jan Hubicka <jh@suse.cz>
7638
7639 * ipa-inline.c (caller_growth_limits): Fix thinko when
7640 looking for largest stack frame.
7641 * ipa-inline.h (dump_inline_summary): Declare.
7642 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7643 on stack usage.
7644 (dump_inline_summary): Export.
7645 (debug_inline_summary): Declare as DEBUG_FUNCTION.
7646
7647 2011-05-01 Anatoly Sokolov <aesok@post.ru>
7648
7649 * reginfo.c (memory_move_cost): Change rclass argument type form
7650 'enum reg_class' to reg_class_t.
7651 * reload.h (memory_move_cost): Update prototype.
7652 * postreload.c reload_cse_simplify_set): Change type dclass var to
7653 reg_class_t.
7654 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7655 Update prototype.
7656 (ira_allocate_and_set_costs): Change aclass argument type form
7657 'enum reg_class' to reg_class_t.
7658 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7659 Change aclass argument type to reg_class_t.
7660 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7661 to reg_class_t.
7662 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7663 memory_move_cost call.
7664
7665 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7666 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7667 Change type tmp var to reg_class_t.
7668
7669 2011-04-30 Jan Hubicka <jh@suse.cz>
7670
7671 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7672 inlining into function with flatten attribute.
7673 (want_inline_small_function_p): Be more realistic about inlining
7674 cold calls where callee size grows.
7675
7676 2011-04-30 Jan Hubicka <jh@suse.cz>
7677
7678 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7679 flags.
7680
7681 2011-04-30 Anatoly Sokolov <aesok@post.ru>
7682
7683 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7684 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7685 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7686 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7687 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7688 (print_operand): Rename to...
7689 (sparc_print_operand): ...this. Make static. Adjust
7690 sparc_print_operand function call.
7691 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7692 functions.
7693
7694 2011-04-30 Jan Hubicka <jh@suse.cz>
7695
7696 PR middle-end/48752
7697 * ipa-inline.c (early_inliner): Disable when doing late
7698 addition of function.
7699
7700 2011-04-30 Jakub Jelinek <jakub@redhat.com>
7701
7702 * dwarf2out.c (get_address_mode): New inline.
7703 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7704 if not dwarf_strict emit
7705 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7706 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7707 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7708 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7709 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7710 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7711 mem_loc_descriptor callers.
7712 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7713 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7714 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7715 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7716 (base_types): New variable.
7717 (get_base_type_offset, calc_base_type_die_sizes,
7718 base_type_for_mode, mark_base_types, base_type_cmp,
7719 move_marked_base_types): New functions.
7720 (calc_die_sizes): Assert that die_offset is 0 or equal to
7721 next_die_offset.
7722 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7723 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7724 callers. If not dwarf_strict, call mem_loc_descriptor even for
7725 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7726 (gen_subprogram_die): Don't give up on call site parameters
7727 with non-integral or large integral modes. Adjust
7728 mem_loc_descriptor callers.
7729 (prune_unused_types): Call prune_unused_types_mark on base_types
7730 vector entries.
7731 (resolve_addr): Call mark_base_types.
7732 (dwarf2out_finish): Call move_marked_base_types.
7733
7734 PR tree-optimization/48809
7735 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7736 type.
7737 (gen_inbound_check): Don't compute index_expr - range_min in utype
7738 again, instead reuse SSA_NAME initialized in build_arrays.
7739 Remove two useless gsi_for_stmt calls.
7740
7741 2011-04-29 Jeff Law <law@redhat.com>
7742
7743 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7744
7745 2011-04-29 Martin Jambor <mjambor@suse.cz>
7746
7747 * cgraph.h (cgraph_postorder): Remove declaration.
7748 * ipa-utils.h (ipa_free_postorder_info): Declare.
7749 (ipa_reverse_postorder): Likewise.
7750 * cgraphunit.c: Include ipa-utils.h.
7751 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7752 * ipa-inline.c: Include ipa-utils.h.
7753 (ipa_inline): Update call to ipa_reverse_postorder.
7754 * ipa-pure-const.c (propagate_pure_const): Update call to
7755 ipa_reduced_postorder and ipa_print_order. Call
7756 ipa_free_postorder_info to clean up.
7757 (propagate_nothrow): Likewise.
7758 * ipa-reference.c (propagate): Removed a useless call to
7759 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7760 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7761 * ipa.c: Include ipa-utils.h.
7762 (ipa_profile): Update call to ipa_reverse_postorder.
7763 (cgraph_postorder): Moved to...
7764 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7765 (ipa_utils_print_order): Renamed to ipa_print_order.
7766 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7767 comments.
7768 (ipa_free_postorder_info): New function.
7769 * passes.c: Include ipa-utils.h.
7770 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7771 (ipa_write_summaries): Likewise.
7772 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7773 (cgraphunit.o): Likewise.
7774 (ipa.o): Likewise.
7775 (ipa-inline.o): Likewise.
7776
7777 2011-04-29 Jan Hubicka <jh@suse.cz>
7778
7779 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7780 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7781 * ipa-inline.h (clause_t): Turn into unsigned int.
7782 * ipa-inline-analysis.c (add_clause): Do more simplification.
7783 (and_predicates): Shortcut more cases.
7784 (predicates_equal_p): Move forward; check that clauses are properly
7785 ordered.
7786 (or_predicates): Shortcut more cases.
7787 (edge_execution_predicate): Rewrite as...
7788 (set_cond_stmt_execution_predicate): ... this function; handle
7789 __builtin_constant_p.
7790 (set_switch_stmt_execution_predicate): New .
7791 (compute_bb_predicates): New.
7792 (will_be_nonconstant_predicate): Update TODO.
7793 (estimate_function_body_sizes): Use compute_bb_predicates
7794 and free them later, always try to estimate if stmt is constant.
7795 (estimate_time_after_inlining, estimate_size_after_inlining):
7796 Gracefully handle optimized out edges.
7797 (read_predicate): Fix off by one error.
7798
7799 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7800
7801 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7802
7803 2011-04-27 Xinliang David Li <davidxl@google.com>
7804
7805 * tree-profile.c (init_ic_make_global_vars): Set
7806 tls attribute on ic vars.
7807 * coverage.c (coverage_end_function): Initialize
7808 function_list with zero.
7809
7810 2011-04-29 Richard Guenther <rguenther@suse.de>
7811
7812 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7813 for the type of the result.
7814 (fold_builtin_isascii): Likewise.
7815 (fold_builtin_toascii): Use integer_type_node where appropriate.
7816 (fold_builtin_logb): Likewise.
7817 (fold_builtin_frexp): Likewise.
7818 (fold_builtin_strstr): Likewise.
7819 (fold_builtin_strpbrk): Likewise.
7820 (fold_builtin_fputs): Likewise.
7821 (fold_builtin_sprintf): Likewise.
7822 (fold_builtin_snprintf): Likewise.
7823 (fold_builtin_printf): Likewise.
7824 (do_mpfr_remquo): Use a proper type for the assigned constant.
7825 (do_mpfr_lgamma_r): Likewise.
7826 * dwarf2out.c (resolve_one_addr): Use size_int.
7827 * except.c (init_eh): Likewise.
7828 (assign_filter_values): Use integer_type_node for filter values.
7829 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7830 indices.
7831 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7832 for EH region numbers.
7833 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7834 for the shift amount.
7835
7836 2011-04-29 Richard Guenther <rguenther@suse.de>
7837
7838 * expr.h (expand_shift): Rename to ...
7839 (expand_variable_shift): ... this.
7840 (expand_shift): Take a constant shift amount.
7841 * expmed.c (expand_shift): Rename to ...
7842 (expand_variable_shift): ... this.
7843 (expand_shift): New wrapper around expand_variable_shift.
7844 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7845 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7846 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7847 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7848 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7849 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7850 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7851 emit_store_flag_1, emit_store_flag): Likewise.
7852 * builtins.c (expand_builtin_signbit): Likewise.
7853 * calls.c (load_register_parameters): Likewise.
7854 * function.c (assign_parm_setup_block): Likewise.
7855 * lower-subreg.c (resolve_shift_zext): Likewise.
7856 * optabs.c (widen_bswap, expand_abs_nojump,
7857 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7858 * spu/spu.c (spu_expand_extv): Likewise.
7859 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7860
7861 2011-04-29 Richard Guenther <rguenther@suse.de>
7862
7863 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7864 for the remapped region number.
7865 * predict.c (build_predict_expr): Use integer_type_node for the
7866 predict kind.
7867 * fold-const.c (fold_binary_loc): Use integer_type_node for
7868 the shift amount. Use a proper type for the PLUS_EXPR operand.
7869
7870 2011-04-29 Michael Matz <matz@suse.de>
7871
7872 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7873 other trees that just builtins.
7874 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7875
7876 2011-04-29 Richard Guenther <rguenther@suse.de>
7877
7878 * tree-nested.c (get_trampoline_type): Use size_int.
7879 (get_nl_goto_field): Likewise.
7880 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7881 for all indexes.
7882 (lower_eh_constructs_2): Likewise.
7883 (lower_resx): Likewise.
7884 (lower_eh_dispatch): Likewise.
7885 * tree-mudflap.c (mf_build_string): Use size_int.
7886 (mudflap_register_call): Use integer_type_node for the flag.
7887 (mudflap_enqueue_constant): Use size_int.
7888 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7889 instead of rebuilding it.
7890
7891 2011-04-29 Richard Guenther <rguenther@suse.de>
7892
7893 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7894 Handle OBJ_TYPE_REF.
7895 (find_func_aliases_for_call): Use it more consistently.
7896
7897 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
7898
7899 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7900 (rank_for_schedule): Use it.
7901 (schedule_block): Set it.
7902
7903 2011-04-28 David Li <davidxl@google.com>
7904
7905 * tree.c (crc32_string): Use crc32_byte.
7906 (crc32_byte): New function.
7907 * tree.h (crc32_byte): New function.
7908 * gcov.c (read_graph_file): Handle new cfg_cksum.
7909 (read_count_file): Ditto.
7910 * profile.c (instrument_values): Ditto.
7911 (get_exec_counts): Ditto.
7912 (read_profile_edge_counts): Ditto.
7913 (compute_branch_probabilities): Ditto.
7914 (compute_value_histograms): Ditto.
7915 (branch_prob): Ditto.
7916 (end_branch_prob): Ditto.
7917 * coverage.c (read_counts_file): Ditto.
7918 (get_coverage_counts): Ditto.
7919 (tree_coverage_counter_addr): Ditto.
7920 (coverage_checksum_string): Ditto.
7921 (coverage_begin_output): Ditto.
7922 (coverage_end_function): Ditto.
7923 (build_fn_info_type): Ditto.
7924 (build_fn_info_value): Ditto.
7925 * libgcov.c (gcov_exit): Ditto.
7926 * gcov-dump.c (tag_function): Ditto.
7927 (compute_checksum): Remove.
7928
7929 2011-04-29 Alan Modra <amodra@gmail.com>
7930
7931 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7932 unspec plus offset. Tidy macho code.
7933
7934 2011-04-29 Martin Jambor <mjambor@suse.cz>
7935
7936 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7937 node instead of a decl. Update all callers.
7938 * cgraph.h: Update declaration.
7939
7940 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
7941
7942 PR tree-optimization/48765
7943 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7944 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7945 to indicate if loop aware SLP is being used. Scan the statements
7946 and update the vectorization factor according to the type of
7947 vectorization before statement analysis.
7948 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7949 pass it to vect_analyze_loop_operations.
7950 (vectorizable_reduction): Set number of copies to 1 in case of pure
7951 SLP statement.
7952 * tree-vect-stmts.c (vectorizable_conversion,
7953 vectorizable_assignment, vectorizable_shift,
7954 vectorizable_operation, vectorizable_type_demotion,
7955 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7956 Likewise.
7957 (vectorizable_condition): Move the check that it is not SLP
7958 vectorization before the number of copies check.
7959 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7960 to vectorize the loop using SLP.
7961
7962 2011-04-28 Jakub Jelinek <jakub@redhat.com>
7963
7964 PR middle-end/48597
7965 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7966 inline asm.
7967
7968 2011-04-28 Joseph Myers <joseph@codesourcery.com>
7969
7970 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7971 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7972 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7973 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7974 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7975 linux*.h headers.
7976 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7977 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7978 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7979 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7980 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7981 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7982 REG_NAME.
7983 * config/i386/linux.h (REG_NAME): Don't define.
7984 * config/i386/linux64.h (REG_NAME): Don't define.
7985 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7986 Undefine before defining.
7987
7988 2011-04-28 Jan Hubicka <jh@suse.cz>
7989
7990 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7991 nonconstant_names array.
7992 (estimate_function_body_sizes): Build nonconstant_names array; handle
7993 BUILT_IN_CONSTANT_P.
7994
7995 2011-04-28 Richard Guenther <rguenther@suse.de>
7996
7997 PR bootstrap/48804
7998 Revert
7999 2011-04-28 Richard Guenther <rguenther@suse.de>
8000
8001 * tree-ssa-structalias.c (solve_constraints): Build succ graph
8002 as late as possible.
8003
8004 2011-04-28 Richard Guenther <rguenther@suse.de>
8005
8006 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
8007 (debug_constraint): Do it here.
8008 (dump_constraints): And here.
8009 (rewrite_constraints): And here.
8010 (dump_constraint_edge): Remove.
8011 (dump_constraint_graph): Rewrite to produce DOT output.
8012 (solve_constraints): Build succ graph as late as possible.
8013 Dump constraint graphs before and after solving.
8014
8015 2011-04-28 Richard Guenther <rguenther@suse.de>
8016
8017 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8018 New function split out from ...
8019 (find_func_aliases): ... here. Call it.
8020 (find_func_aliases_for_call): Likewise.
8021
8022 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8023
8024 * internal-fn.h (internal_fn_name_array): Declare.
8025 (internal_fn_flags_array): Likewise.
8026
8027 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
8028
8029 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
8030 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
8031 Move from sse.md.
8032 (ssemodefsuffix): Remove.
8033 (ssevecmodesuffix): New mode attribute.
8034 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
8035 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
8036 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
8037 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
8038 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
8039 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
8040 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
8041 ssemodesuffix mode attribute.
8042 (float splitters): Use ssevecmodesuffix mode attribute.
8043 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
8044 (sseinsmode): Rename from avxvecmode.
8045 (avxsizesuffix): Rename from avxmodesuffix.
8046 (sseintvecmode): Rename from avxpermvecmode.
8047 (ssedoublevecmode): Rename from ssedoublesizemode.
8048 (ssehalfvecmode): Rename from avxhalfvecmode.
8049 (ssescalarmode): Rename from avxscalarmode.
8050 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
8051 templates for ssemodesuffix mode attribute.
8052 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
8053 mode attribute.
8054
8055 Adjust RTX patterns globally for renamed mode attributes.
8056
8057 2011-04-27 Jan Hubcika <jh@suse.cz>
8058
8059 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
8060 * ipa-inline-analysis.c: Include alloc-pool.h.
8061 (edge_predicate_pool): New.
8062 (trye_predicate_p): New function
8063 (false_predicate_p): New function.
8064 (add_clause): Sanity check that false clauses are "optimized";
8065 never add clauses to predicate that is already known to be false.
8066 (and_predicate): Use flase_predicate_p.
8067 (evaulate_predicate): Rename to ...
8068 (evaluate_predicate): ... this one; update all callers; assert
8069 that false is not listed among possible truths.
8070 (dump_predicate): Use true_predicate_p.
8071 (account_size_time): Use false_predicate_p.
8072 (evaulate_conditions_for_edge): Rename to ...
8073 (evaluate_conditions_for_edge) ... this one.
8074 (edge_set_predicate): New function.
8075 (inline_edge_duplication_hook): Duplicate edge predicates.
8076 (inline_edge_removal_hook): Free edge predicates.
8077 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
8078 (dump_inline_summary): Update.
8079 (estimate_function_body_sizes): Set edge predicates.
8080 (estimate_calls_size_and_time): Handle predicates.
8081 (estimate_callee_size_and_time): Update.
8082 (remap_predicate): Add toplev_predicate; update comment.
8083 (remap_edge_predicates): New function.
8084 (inline_merge_summary): Compute toplev predicate; update.
8085 (read_predicate): New function.
8086 (read_inline_edge_summary): Use it.
8087 (inline_read_section): Likewise.
8088 (write_predicate): New function.
8089 (write_inline_edge_summary): Use it.
8090 (inline_write_summary): Likewise.
8091 (inline_free_summary): Free alloc pool and edge summary vec.
8092
8093 2011-04-27 Richard Guenther <rguenther@suse.de>
8094
8095 * tree-ssa-structalias.c (changed_count): Remove.
8096 (changed): Use a bitmap.
8097 (unify_nodes): Adjust.
8098 (do_sd_constraint): Likewise.
8099 (do_ds_constraint): Likewise.
8100 (do_complex_constraint): Likewise.
8101 (solve_graph): Likewise.
8102
8103 2011-04-27 Jan Hubicka <jh@suse.cz>
8104
8105 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
8106
8107 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
8108
8109 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
8110 (avx_vperm2f128_*_operand): Ditto.
8111 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
8112 Use avx_vpermilp_parallel in insn condition.
8113 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
8114 Use avx_vperm2f128_parallel in insn condition.
8115
8116 2011-04-27 Richard Guenther <rguenther@suse.de>
8117
8118 * Makefile.in (tree-ssa-structalias.o): Remove
8119 gt-tree-ssa-structalias.h dependency.
8120 (GTFILES): Remove tree-ssa-structalias.c.
8121 * tree.c (allocate_decl_uid): New function.
8122 (make_node_stat): Use it.
8123 (copy_node_stat): Likewise.
8124 * tree.h (allocate_decl_uid): Declare.
8125 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
8126 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
8127 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
8128 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
8129 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
8130 (struct heapvar_map): Likewise.
8131 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
8132 heapvar_insert): Likewise.
8133 (make_heapvar_for): Rename to ...
8134 (make_heapvar): ... this. Simplify.
8135 (fake_var_decl_obstack): New global var.
8136 (build_fake_var_decl): New function.
8137 (make_constraint_from_heapvar): Adjust.
8138 (handle_lhs_call): Likewise.
8139 (create_function_info_for): Likewise.
8140 (intra_create_variable_infos): Likewise.
8141 (init_alias_vars): Allocate fake_var_decl_obstack.
8142 (init_alias_heapvars, delete_alias_heapvars): Remove.
8143 (compute_points_to_sets): Do not call init_alias_heapvars.
8144 (ipa_pta_execute): Likewise.
8145 (delete_points_to_sets): Free fake_var_decl_obstack.
8146
8147 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8148
8149 * config/spu/divmovti4.c (union qword_UTItype): New data type.
8150 (si_from_UTItype, si_to_UTItype): New functions.
8151 (__udivmodti4): Use them to implement type-punning.
8152 * config/spu/multi3.c (union qword_TItype): New data type.
8153 (si_from_TItype, si_to_TItype): New functions.
8154 (__multi3): Use them to implement type-punning.
8155
8156 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8157
8158 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
8159
8160 2011-04-27 Jan Hubicka <jh@suse.cz>
8161
8162 * ipa-prop.c (function_insertion_hook_holder): New holder.
8163 (ipa_add_new_function): New function.
8164 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
8165 Register/deregister holder.
8166
8167 2011-04-27 Richard Guenther <rguenther@suse.de>
8168
8169 PR tree-optimization/48772
8170 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
8171
8172 2011-04-27 Richard Guenther <rguenther@suse.de>
8173
8174 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
8175 TARGET_MEM_REF handling.
8176
8177 2011-04-27 Nick Clifton <nickc@redhat.com>
8178
8179 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
8180 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
8181 (REG_CLASS_NAMES): Likewise.
8182 (REG_CLASS_CONTENTS): Likewise.
8183 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8184 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8185 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
8186 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
8187 (EVEN_REGS): New macro. Alias for QUAD_REGS.
8188 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
8189 duplicate register classes.
8190 (frv_class_likely_spilled_p): Likewise.
8191 (frv_register_move_cost): Likewise.
8192
8193 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
8194 end of the regno_reg_class array.
8195
8196 2011-04-27 Jakub Jelinek <jakub@redhat.com>
8197
8198 PR c/48742
8199 * c-typeck.c (build_binary_op): Don't wrap arguments if
8200 int_operands is true.
8201
8202 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
8203
8204 PR target/48767
8205 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
8206 targetm.calls.must_pass_in_stack for void type.
8207
8208 2011-04-26 Jan Hubicka <jh@suse.cz>
8209
8210 * cgraphbuild.c (build_cgraph_edges): Update call
8211 of cgraph_create_edge and cgraph_create_indirect_edge.
8212 * cgraph.c (cgraph_create_edge_including_clones,
8213 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8214 cgraph_update_edges_for_call_stmt_node): Do not take nest
8215 argument; do not initialize call_stmt_size/time.
8216 (dump_cgraph_node): Do not dump nest.
8217 (cgraph_clone_edge): Do not take loop_nest argument;
8218 do not propagate it; do not clone call_stmt_size/time.
8219 (cgraph_clone_node): Likewise.
8220 (cgraph_create_virtual_clone): Update.
8221 * cgraph.h (struct cgraph_edge): Remove
8222 call_stmt_size/call_stmt_time/loop_nest.
8223 (cgraph_create_edge, cgraph_create_indirect_edge,
8224 cgraph_create_edge_including_clones, cgraph_clone_node): Update
8225 prototype.
8226 * tree-emutls.c (gen_emutls_addr): Update.
8227 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8228 loop_nest; handle indirect calls, too.
8229 (clone_inlined_nodes): Do not care about updating inline summaries.
8230 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8231 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8232 stream call_stmt_size/call_stmt_time/loop_nest.
8233 * ipa-inline.c (edge_badness): Update.
8234 (ipa_inline): dump summaries after inlining.
8235 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
8236 New.
8237 (inline_edge_summary): New function.
8238 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8239 (inline_edge_removal_hook): Handle edge summaries.
8240 (inline_edge_duplication_hook): New hook.
8241 (inline_summary_alloc): Alloc hooks.
8242 (initialize_growth_caches): Do not register removal hooks.
8243 (free_growth_caches); Do not free removal hook.
8244 (dump_inline_edge_summary): New function.
8245 (dump_inline_summary): Use it.
8246 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8247 (inline_update_callee_summaries): New function.
8248 (inline_merge_summary): Use it.
8249 (do_estimate_edge_time, do_estimate_edge_growth): Update.
8250 (read_inline_edge_summary): New function.
8251 (inline_read_section): Use it.
8252 (write_inline_edge_summary): New function.
8253 (inline_write_summary): Use it.
8254 (inline_free_summary): Free edge new holders.
8255 * tree-inline.c (copy_bb): Update.
8256
8257 2011-04-26 Jason Merrill <jason@redhat.com>
8258
8259 * tree-eh.c (lower_try_finally_switch): Create the label along with
8260 the CASE_LABEL_EXPR.
8261
8262 2011-04-26 David S. Miller <davem@davemloft.net>
8263 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8264
8265 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8266 * configure: Regenerate.
8267
8268 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8269
8270 PR target/48258
8271 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8272 reduction.
8273 (VEC_reduc): New code iterator and splitters for vector reduction.
8274 (VEC_reduc_name): Ditto.
8275 (VEC_reduc_rtx): Ditto.
8276 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8277 (reduc_<VEC_reduc_name>_v4sf): Ditto.
8278
8279 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8280 support for extracting SF on VSX.
8281
8282 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8283 generating xscvspdp.
8284 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8285 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8286 double add, minimum, maximum vector reduction.
8287 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8288 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8289 optimize double vector reduction.
8290 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8291
8292 2011-04-26 Joseph Myers <joseph@codesourcery.com>
8293
8294 * config/fr30/fr30.h (inhibit_libc): Don't define.
8295 * config/m32r/m32r-protos.h: Correct comment.
8296 * config/v850/v850.h (GHS_default_section_names,
8297 GHS_current_section_names): Use tree, not union tree_node *.
8298
8299 2011-04-26 Xinliang David Li <davidxl@google.com>
8300
8301 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8302 * c-family/c-opts.c (c_common_handle_option): Set
8303 warn_maybe_uninitialized.
8304 * opts.c (common_handle_option): Ditto.
8305 * common.opt: New option.
8306 * tree-ssa.c (warn_uninit): Add one more parameter.
8307 (warn_uninitialized_var): Pass warning code.
8308 * tree-flow.h: Interface change.
8309
8310 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8311
8312 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
8313 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8314 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8315
8316 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8317
8318 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8319 * config/mips/mips.opt (mmips-tfile): Remove.
8320
8321 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8322 mips-tdump reference to ...
8323 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
8324 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8325 reference by Tru64 UNIX.
8326
8327 2011-04-26 Jakub Jelinek <jakub@redhat.com>
8328
8329 PR debug/48768
8330 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8331 is error_mark_node, set value to NULL.
8332
8333 PR tree-optimization/48734
8334 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8335 if return value from maybe_fold_*_comparsions isn't something
8336 the code is prepared to handle.
8337
8338 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
8339
8340 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8341 mode check.
8342 (ext_QIreg_nomode_operands): Remove.
8343 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8344 (*andsi_1): Ditto.
8345 (*andhi_1): Ditto.
8346
8347 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
8348
8349 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8350
8351 2011-04-26 Richard Guenther <rguenther@suse.de>
8352
8353 * c-typeck.c (build_unary_op): Do not expand array-refs via
8354 pointer arithmetic. Only adjust qualifiers for function types.
8355
8356 2011-04-26 Richard Guenther <rguenther@suse.de>
8357
8358 PR middle-end/48694
8359 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8360 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
8361 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
8362 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
8363
8364 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8365
8366 * doc/extend.texi: Document __underlying_type.
8367
8368 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
8369
8370 * config/rs6000/titan.md (automata_option "progress"): Remove.
8371
8372 2011-04-25 Jeff Law <law@redhat.com>
8373
8374 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8375
8376 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8377
8378 * system.h (ENUM_BITFIELD): Remove.
8379
8380 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
8381 Eric Botcazou <ebotcazou@adacore.com>
8382
8383 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8384 for STORE_FLAG_VALUE==-1 case.
8385
8386 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
8387
8388 PR target/43804
8389 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8390 LEGITIMATE_PIC_OPERAND_P.
8391
8392 2011-04-24 Jan Hubicka <jh@suse.cz>
8393
8394 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8395 WPA hack.
8396 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8397 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8398 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
8399 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8400 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8401 Sanity check predicate length.
8402 (remap_predicate): Likewise; sanity check jump functions.
8403 (inline_read_section, inline_write_summary): Sanity check
8404 predicate length.
8405
8406 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8407
8408 PR other/48748
8409 * doc/extend.texi (Type Traits): Document __is_standard_layout,
8410 __is_literal_type, and __is_trivial; update throughout about
8411 possibly cv-qualified void types.
8412
8413 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
8414
8415 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8416 testsuite and make it version agnostic.
8417
8418 2011-04-22 Jan Hubicka <jh@suse.cz>
8419
8420 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8421
8422 2011-04-23 Jakub Jelinek <jakub@redhat.com>
8423
8424 PR c/48685
8425 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8426 to VOID_TYPE even around MODIFY_EXPR.
8427
8428 2011-04-22 Mike Stump <mikestump@comcast.net>
8429
8430 * gensupport.c (read_md_rtx): Fix typo in comment.
8431 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8432 comment.
8433
8434 2011-04-22 Jan Hubicka <jh@suse.cz>
8435
8436 * gengtype.c (open_base_files): Add ipa-inline.h include.
8437 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8438 ipa-prop.c; update all uses.
8439 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
8440 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8441 merge summary of inlined function into former caller.
8442 * ipa-inline.c (max_benefit): Remove.
8443 (edge_badness): Compensate for removal of benefits.
8444 (update_caller_keys): Use
8445 reset_node_growth_cache/reset_edge_growth_cache.
8446 (update_callee_keys): Likewise.
8447 (update_all_callee_keys): Likewise.
8448 (inline_small_functions): Do not collect max_benefit; do not reset
8449 estimated_growth; call free_growth_caches and initialize_growth_caches.
8450 * ipa-inline.h (struct condition, type clause_t, struct predicate,
8451 struct size_time_entry): New structures.
8452 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
8453 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8454 and estimated_growth.
8455 (edge_growth_cache_entry): New structure.
8456 (node_growth_cache, edge_growth_cache): New global vars.
8457 (estimate_growth): Turn into inline.
8458 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8459 initialize_growth_caches, free_growth_caches): Declare.
8460 (estimate_edge_growth): Rewrite.
8461 (estimate_edge_time): Implement as inline cache lookup.
8462 (reset_node_growth_cache, reset_edge_growth_cache): New inline
8463 functions.
8464 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8465 (NUM_CONDITIONS): New constant.
8466 (predicate_conditions): New enum.
8467 (IS_NOT_CONSTANT): New constant.
8468 (edge_removal_hook_holder): New var.
8469 (node_growth_cache, edge_growth_cache): New global vars.
8470 (true_predicate, single_cond_predicate, false_predicate,
8471 not_inlined_predicate, add_condition, add_clause, and_predicates,
8472 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8473 dump_clause, dump_predicate, account_size_time,
8474 evaulate_conditions_for_edge): New functions.
8475 (inline_summary_alloc): Move to heap.
8476 (inline_node_removal_hook): Clear condition and entry vectors.
8477 (inline_edge_removal_hook): New function.
8478 (initialize_growth_caches, free_growth_caches): New function.
8479 (dump_inline_summary): Update.
8480 (edge_execution_predicate): New function.
8481 (will_be_nonconstant_predicate): New function.
8482 (estimate_function_body_sizes): Compute BB and constantness predicates.
8483 (compute_inline_parameters): Do not clear estimated_growth.
8484 (estimate_edge_size_and_time): New function.
8485 (estimate_calls_size_and_time): New function.
8486 (estimate_callee_size_and_time): New function.
8487 (remap_predicate): New function.
8488 (inline_merge_summary): New function.
8489 (do_estimate_edge_time): New function based on...
8490 (estimate_edge_time): ... this one.
8491 (do_estimate_edge_growth): New function.
8492 (do_estimate_growth): New function based on....
8493 (estimate_growth): ... this one.
8494 (inline_analyze_function): Analyze after deciding on jump functions.
8495 (inline_read_section): New function.
8496 (inline_read_summary): Use it.
8497 (inline_write_summary): Write all the new data.
8498 * ipa-prop.c (ipa_get_param_decl_index): Export.
8499 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8500 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8501 Declare.
8502 (ipa_get_lattice): Move here from ipa-cp.c
8503 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8504 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8505 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8506 cgraph_edge_inlinable_p): Remove.
8507 * cgraphunit.c: Include ipainline.h
8508 (cgraph_process_new_functions): Update call of
8509 compute_inline_parameters.
8510
8511 2011-04-22 Richard Guenther <rguenther@suse.de>
8512
8513 * tree.c (build_int_cst): Properly create canonicalized integer
8514 constants.
8515 (build_int_cst_type): Remove scary comments.
8516
8517 2011-04-22 Xinliang David Li <davidxl@google.com>
8518
8519 * toplev.c (process_options): Enable -Werror=coverage-mismatch
8520 by default when -Wno-error is not specified.
8521 * opts-global.c (decode_options): Remove call to
8522 control_warning_options.
8523
8524 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8525
8526 PR tree-optimization/48717
8527 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8528 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8529
8530 2011-04-22 Joseph Myers <joseph@codesourcery.com>
8531
8532 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
8533 definition where used.
8534
8535 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8536
8537 PR c/48716
8538 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8539 TREE_STATIC variables declared inside of some OpenMP construct.
8540
8541 2011-04-22 Martin Jambor <mjambor@suse.cz>
8542
8543 PR middle-end/48585
8544 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8545
8546 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
8547
8548 PR c/36750
8549 * c-typeck.c (pop_init_level): Do not warn about initializing
8550 with ` = {0}'.
8551
8552 2011-04-22 Alan Modra <amodra@gmail.com>
8553
8554 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8555 when returning call_cookie.
8556 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8557 pointers, to functions with no more vector args than the current
8558 function, and some non-local calls for ABI_V4.
8559 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8560 sibcall_nonlocal_aix64): Combine to ..
8561 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
8562 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8563 (sibcall_value_nonlocal_aix<mode>): ..likewise.
8564 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8565 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
8566 operand.
8567 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8568 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8569 sibcall_value_symbolic_64): Delete.
8570
8571 2011-04-21 Xinliang David Li <davidxl@google.com>
8572
8573 * cgraph.h: Remove pid.
8574 * cgraph.c: Remove pid.
8575 * value-prof.c (init_node_map): New function.
8576 (del_node_map): New function.
8577 (find_func_by_funcdef_no): New function.
8578 (gimple_ic_transform): Call new function.
8579 * cgraphunit.c (cgraph_finalize_function): Remove pid.
8580 * function.c (get_last_funcdef_no): New function.
8581 * function.h (get_last_funcdef_no): New function.
8582 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8583 to libgcov function.
8584 (tree-profiling): Call node map init and delete function.
8585
8586 2011-04-21 Ian Lance Taylor <iant@google.com>
8587
8588 * godump.c (go_format_type): Use exported Go name for anonymous
8589 field name.
8590
8591 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8592
8593 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8594 Call builtin_function_type_list instead of builtin_function_type.
8595 (UNARY, BINARY, TRINARY, QUAD): Likewise.
8596
8597 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8598
8599 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8600 build_function_type_list instead of build_function_type.
8601 Delete variable `endlink'.
8602
8603 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8604
8605 * config/s390/s390.c (s390_init_builtins): Call
8606 build_function_type_list instead of build_function_type.
8607
8608 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8609
8610 * config/ia64/ia64.c (ia64_init_builtins): Call
8611 build_function_type_list instead of builtin_function_type.
8612
8613 2011-04-21 Easwaran Raman <eraman@google.com>
8614
8615 * cfgexpand.c (stack_var): Remove OFFSET...
8616 (add_stack_var): ...and its reference here...
8617 (expand_stack_vars): ...and here.
8618 (stack_var_cmp): Sort by descending order of size.
8619 (partition_stack_vars): Change heuristic.
8620 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8621 (dump_stack_var_partition): Add newline after each partition.
8622
8623 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
8624 Jeff Law <law@redhat.com>
8625
8626 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8627 * gengtype.c (matching_file_name_substitute): Likewise.
8628
8629 2011-04-21 Richard Guenther <rguenther@suse.de>
8630
8631 PR lto/48703
8632 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8633
8634 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8635
8636 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8637
8638 2011-04-21 Richard Guenther <rguenther@suse.de>
8639
8640 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8641 file name.
8642
8643 2011-04-21 Richard Guenther <rguenther@suse.de>
8644
8645 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8646 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8647 Use DECL_P, not SSA_VAR_P.
8648 (ptr_derefs_may_alias_p): Likewise.
8649 (ptr_deref_may_alias_ref_p_1): Likewise.
8650 (decl_refs_may_alias_p): Likewise.
8651 (refs_may_alias_p_1): Likewise.
8652 (ref_maybe_used_by_call_p_1): Likewise.
8653 (call_may_clobber_ref_p_1): Likewise.
8654 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8655 are either MEM_REF or TARGET_MEM_REF.
8656 (indirect_refs_may_alias_p): Likewise.
8657 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8658 for MEM_EXPR of indirect calls.
8659
8660 2011-04-21 Tristan Gingold <gingold@adacore.com>
8661
8662 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8663 (dst_file_info_struct): Remove flen field.
8664 (lookup_filename): Remove code that set flen field.
8665
8666 2011-04-21 Tristan Gingold <gingold@adacore.com>
8667
8668 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8669
8670 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
8671
8672 PR target/48708
8673 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8674 vec_extract and vec_concat for non-SSE4_1 targets.
8675
8676 2011-04-21 Richard Guenther <rguenther@suse.de>
8677
8678 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8679 return statements.
8680
8681 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8682
8683 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8684 undefine.
8685 (FILE): Don't undefine.
8686
8687 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8688
8689 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8690 struct rtx_def *.
8691 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8692 struct rtx_def *.
8693 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8694 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8695 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8696 rtx_def *.
8697 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8698 definitions where used.
8699 * config/microblaze/microblaze.h (struct microblaze_args): Use
8700 rtx, not struct rtx_def *.
8701 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8702 rtx_def *.
8703 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8704 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8705 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8706 not struct rtx_def *.
8707 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8708 struct rtx_def *.
8709 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8710 rtx_def *.
8711 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8712
8713 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8714
8715 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8716 operand_equal_p to compare DR_BASE_ADDRESSes.
8717 (vect_check_interleaving): Likewise.
8718
8719 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8720
8721 PR target/46329
8722 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8723 for all Neon struct constants.
8724
8725 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8726
8727 * target.def (legitimate_constant_p): New hook.
8728 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8729 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8730 * doc/tm.texi: Regenerate.
8731 * hooks.h (hook_bool_mode_rtx_true): Declare.
8732 * hooks.c (hook_bool_mode_rtx_true): Define.
8733 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8734 * calls.c (precompute_register_parameters): Replace uses of
8735 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8736 (emit_library_call_value_1): Likewise.
8737 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8738 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8739 * ira-costs.c (scan_one_insn): Likewise.
8740 * recog.c (general_operand, immediate_operand): Likewise.
8741 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8742 * reload1.c (init_eliminable_invariants): Likewise.
8743
8744 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8745 mode argument.
8746 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8747 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8748 argument.
8749 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8750 * config/alpha/predicates.md (input_operand): Update call to
8751 alpha_legitimate_constant_p.
8752
8753 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8754 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8755 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8756 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8757 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8758 (arm_legitimate_constant_p): New functions.
8759 (arm_cannot_force_const_mem): Make static.
8760
8761 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8762
8763 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8764 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8765 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8766 instead of bfin_legitimate_constant_p.
8767 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8768 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8769
8770 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8771
8772 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8773
8774 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8775 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8776 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8777 (frv_legitimate_constant_p): Make static. Add a mode argument.
8778
8779 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8780 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8781 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8782
8783 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8784 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8785 * config/i386/i386.c (legitimate_constant_p): Rename to...
8786 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8787 argument.
8788 (ix86_cannot_force_const_mem): Update accordingly.
8789 (ix86_legitimate_address_p): Likewise.
8790 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8791 * config/i386/i386.md: Update commentary.
8792
8793 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8794 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8795 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8796 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8797
8798 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8799
8800 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8801 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8802 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8803 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8804
8805 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8806 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8807 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8808
8809 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8810 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8811 (m32r_legitimate_constant_p): New function.
8812
8813 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8814 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8815 LEGITIMATE_CONSTANT_P.
8816 (LEGITIMATE_CONSTANT_P): Delete.
8817 * config/m68k/m68k.c (m68k_expand_prologue): Call
8818 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8819 (m68k_legitimate_constant_p): New function.
8820 * config/m68k/m68k.md: Update comments.
8821
8822 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8823 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8824 (mcore_legitimate_constant_p): New function.
8825
8826 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8827 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8828 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8829 Add a mode argument.
8830 (mep_legitimate_address): Update accordingly.
8831 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8832
8833 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8834 Delete.
8835 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8836 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8837 static. Check OP's mode for VOIDmode.
8838 (microblaze_legitimate_constant_p): New function.
8839 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8840
8841 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8842 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8843 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8844 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8845 * config/mips/predicates.md: Update comments.
8846
8847 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8848 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8849 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8850 (mmix_legitimate_constant_p): Make static, return a bool, and take
8851 a mode argument.
8852 (mmix_print_operand_address): Update accordingly.
8853
8854 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8855 Delete.
8856 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8857 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8858 static. Add a mode argument.
8859 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8860
8861 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8862
8863 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8864 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8865 (pa_legitimate_constant_p): New function.
8866
8867 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8868
8869 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8870 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8871 (pdp11_legitimate_constant_p): New function.
8872
8873 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8874 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8875 (rs6000_legitimate_constant_p): New function.
8876
8877 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8878 (rx_legitimate_constant_p): ...this.
8879 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8880 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8881 (rx_legitimate_constant_p): ...this.
8882 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8883 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8884
8885 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8886 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8887 * config/s390/s390.c (legitimate_constant_p): Rename to...
8888 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8889 and add a mode argument.
8890 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8891
8892 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8893
8894 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8895 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8896 (sh_legitimate_constant_p): New function.
8897
8898 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8899 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8900 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8901 (legitimate_constant_p): Rename to...
8902 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8903 argument.
8904 (constant_address_p): Update accordingly.
8905
8906 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8907 argument and return a bool.
8908 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8909 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8910 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8911 (spu_rtx_costs): Update accordingly.
8912 * config/spu/predicates.md (vec_imm_operand): Likewise.
8913
8914 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8915
8916 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8917 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8918 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8919
8920 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8921 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8922 * config/vax/vax.c (legitimate_constant_p): Likewise.
8923
8924 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8925 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8926 (xtensa_legitimate_constant_p): New function.
8927
8928 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8929
8930 * target.def (cannot_force_const_mem): Add a mode argument.
8931 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8932 * doc/tm.texi: Regenerate.
8933 * hooks.h (hook_bool_mode_rtx_false): Declare.
8934 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8935 (hook_bool_mode_const_rtx_true): Likewise.
8936 (hook_bool_mode_rtx_false): New function.
8937 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8938 to be non-VOID. Update call to cannot_force_const_mem.
8939 (find_reloads): Update accordingly.
8940 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8941 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8942 argument.
8943 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8944 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8945 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8946 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8947 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8948 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8949 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8950 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8951 (m68k_cannot_force_const_mem): ...this new function.
8952 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8953 argument.
8954 (mips_const_insns, mips_legitimize_const_move): Update calls.
8955 (mips_secondary_reload_class): Likewise.
8956 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8957 (pa_cannot_force_const_mem): ...this new function.
8958 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8959 (rs6000_cannot_force_const_mem): ...this new function.
8960 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8961 argument.
8962 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8963 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8964 to...
8965 (xtensa_cannot_force_const_mem): ...this new function.
8966
8967 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8968
8969 * config/mips/mips.c (mips16_build_function_stub): Call
8970 build_function_type_list instead of build_function_type.
8971 (mips16_build_call_stub): Likewise.
8972
8973 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8974
8975 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8976 instead of build_function_type.
8977
8978 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8979
8980 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8981 instead of build_function_type.
8982
8983 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
8984
8985 PR target/48678
8986 * config/i386/i386.md (insv): Change operand 0 constraint to
8987 "register_operand". Change operand 1 and 2 constraint to
8988 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8989 * config/i386/sse.md (sse4_1_pinsrb): Export.
8990 (sse2_pinsrw): Ditto.
8991 (sse4_1_pinsrd): Ditto.
8992 (sse4_1_pinsrq): Ditto.
8993 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8994 * config/i386/i386.c (ix86_expand_pinsr): New.
8995
8996 2011-04-20 Easwaran Raman <eraman@google.com>
8997
8998 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8999 containing union type only with -fstrict-aliasing.
9000
9001 2011-04-20 Jim Meyering <meyering@redhat.com>
9002
9003 Remove useless if-before-free tests.
9004 * calls.c (expand_call, save_area): Likewise.
9005 * cfgcleanup.c (try_forward_edges): Likewise.
9006 * collect2.c (collect_execute): Likewise.
9007 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
9008 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
9009 * coverage.c (coverage_checksum_string): Likewise.
9010 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
9011 * cselib.c (cselib_init): Likewise.
9012 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
9013 (df_set_clean_cfg): Likewise.
9014 * function.c (free_after_compilation): Likewise.
9015 * gcc.c (do_spec_1, main): Likewise.
9016 * gcov.c (create_file_names): Likewise.
9017 * gensupport.c (identify_predicable_attribute): Likewise.
9018 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
9019 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
9020 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
9021 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
9022 * ipa-pure-const.c (local_pure_const): Likewise.
9023 * ipa-reference.c (propagate): Likewise.
9024 * ira-costs.c (free_ira_costs): Likewise.
9025 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
9026 * matrix-reorg.c (mat_free): Likewise.
9027 * prefix.c (get_key_value): Likewise.
9028 * profile.c (compute_value_histograms): Likewise.
9029 * reload1.c (free_reg_equiv): Likewise.
9030 * sched-deps.c (free_deps): Likewise.
9031 * sel-sched-ir.c (fence_clear): Likewise.
9032 * sese.c (set_rename, if_region_set_false_region): Likewise.
9033 * tree-data-ref.c (free_rdg): Likewise.
9034 * tree-eh.c (lower_try_finally): Likewise.
9035 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
9036 * tree-ssa-live.c (delete_var_map): Likewise.
9037 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
9038 * tree-ssa-pre.c (phi_trans_add): Likewise.
9039
9040 2011-04-20 Jakub Jelinek <jakub@redhat.com>
9041
9042 PR tree-optimization/48611
9043 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
9044 beyond ERT_MUST_NOT_THROW region.
9045
9046 2011-04-20 Catherine Moore <clm@codesourcery.com>
9047
9048 * config/mips/mips.opt (mfix-24k): New.
9049 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
9050 * config/mips/mips.md (length): Increase by 4 for stores if
9051 fixing 24K errata.
9052 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
9053 all noreorder if fixing 24K errata.
9054 * doc/invoke.texi: Document mfix-24k.
9055
9056 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
9057
9058 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
9059 quad-word modes, reduce to 9-bit index range when above 1016 limit.
9060
9061 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9062
9063 * config/arm/arm.c (arm_gen_constant): Move movw support ....
9064 (const_ok_for_op): ... to here.
9065
9066 2011-04-20 Kai Tietz <ktietz@redhat.com>
9067
9068 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
9069 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
9070
9071 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9072
9073 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
9074
9075 2011-04-20 Richard Guenther <rguenther@suse.de>
9076
9077 PR tree-optimization/47892
9078 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
9079 are if-convertible.
9080
9081 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
9082
9083 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
9084
9085 2011-04-20 Tristan Gingold <gingold@adacore.com>
9086
9087 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
9088
9089 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
9090
9091 PR target/18145
9092
9093 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
9094 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9095 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
9096 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
9097 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
9098
9099 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
9100 New prototype.
9101
9102 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
9103 (avr_asm_named_section, avr_asm_output_aligned_common,
9104 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
9105 New functions to update...
9106 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
9107 (avr_asm_init_sections): Overwrite section callbacks for
9108 data_section, bss_section.
9109 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
9110 from here to...
9111 (avr_file_end): ...here.
9112
9113 2011-04-20 Richard Guenther <rguenther@suse.de>
9114
9115 PR middle-end/48695
9116 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
9117 objects and types here. Adjust for their offset before comparing.
9118
9119 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9120
9121 * tree-vect-stmts.c (vectorizable_store): Only chain one related
9122 statement per copy.
9123
9124 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9125
9126 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
9127 (GIMPLE_H): Include $(INTERNAL_FN_H).
9128 (OBJS-common): Add internal-fn.o.
9129 (internal-fn.o): New rule.
9130 * internal-fn.def: New file.
9131 * internal-fn.h: Likewise.
9132 * internal-fn.c: Likewise.
9133 * gimple.h: Include internal-fn.h.
9134 (GF_CALL_INTERNAL): New gf_mask.
9135 (gimple_statement_call): Put fntype into a union with a new
9136 internal_fn field.
9137 (gimple_build_call_internal): Declare.
9138 (gimple_build_call_internal_vec): Likewise.
9139 (gimple_call_same_target_p): Likewise.
9140 (gimple_call_internal_p): New function.
9141 (gimple_call_internal_fn): Likewise.
9142 (gimple_call_fntype): Return null for internal calls.
9143 (gimple_call_set_fntype): Assert that the function is not internal.
9144 (gimple_call_set_fn): Likewise.
9145 (gimple_call_set_fndecl): Likewise.
9146 (gimple_call_set_internal_fn): New function.
9147 (gimple_call_addr_fndecl): Handle null functions.
9148 (gimple_call_return_type): Likewise null types.
9149 * gimple.c (gimple_build_call_internal_1): New function.
9150 (gimple_build_call_internal): Likewise.
9151 (gimple_build_call_internal_vec): Likewise.
9152 (gimple_call_same_target_p): Likewise.
9153 (gimple_call_flags): Handle calls to internal functions.
9154 (gimple_call_fnspec): New function.
9155 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
9156 (gimple_has_side_effects): Handle null functions.
9157 (gimple_rhs_has_side_effects): Likewise.
9158 (gimple_call_copy_skip_args): Handle calls to internal functions.
9159 * cfgexpand.c (expand_call_stmt): Likewise.
9160 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
9161 * gimple-fold.c (gimple_fold_call): Handle null functions.
9162 (gimple_fold_stmt_to_constant_1): Don't fold
9163 calls to internal functions.
9164 * gimple-low.c (gimple_check_call_args): Handle calls to internal
9165 functions.
9166 * gimple-pretty-print.c (dump_gimple_call): Likewise.
9167 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
9168 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
9169 (do_warn_unused_result): Likewise.
9170 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
9171 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
9172 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
9173 the target of a call.
9174 (initialize_hash_element): Update accordingly.
9175 (hashable_expr_equal_p): Use gimple_call_same_target_p.
9176 (iterative_hash_hashable_expr): Handle calls to internal functions.
9177 (print_expr_hash_elt): Likewise.
9178 * tree-ssa-pre.c (can_value_number_call): Likewise.
9179 (eliminate): Handle null functions.
9180 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
9181 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
9182 (find_func_aliases): Likewise.
9183 * value-prof.c (gimple_ic_transform): Likewise.
9184 (gimple_indirect_call_to_profile): Likewise.
9185 * lto-streamer-in.c (input_gimple_stmt): Likewise.
9186 * lto-streamer-out.c (output_gimple_stmt): Likewise.
9187
9188 2011-04-19 Jan Hubicka <jh@suse.cz>
9189
9190 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9191 * ipa-inline.c (inline_small_functions): Compute summaries first,
9192 populate heap later.
9193
9194 2011-04-19 Jan Hubicka <jh@suse.cz>
9195
9196 * cgraph.h (save_inline_function_body): Remove.
9197 * ipa-inline-transform.c: New file, broke out of...
9198 * ipa-inline.c: ... this one; Update toplevel comment.
9199 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
9200 make global.
9201 (update_noncloned_frequencies): Move to ipa-inline-transform.c
9202 (cgraph_mark_inline_edge): Rename to inline_call; move to
9203 ipa-inline-transform.c.
9204 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
9205 move to ipa-inline-transform.c
9206 (recursive_inlining, inline_small_functions, flatten_function,
9207 ipa_inline, inline_always_inline_functions,
9208 early_inline_small_functions): Update.
9209 (inline_transform): Move to ipa-inline-transform.c.
9210 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9211 Declare.
9212 * Makefile.in (ipa-inline-transform.o): New file.
9213 * cgraphunit.c (save_inline_function_body): Move to
9214 ipa-inline-transform.c
9215
9216 2011-04-19 DJ Delorie <dj@redhat.com>
9217
9218 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9219 registers if we already know there aren't any.
9220 (m32c_emit_epilogue): Don't emit a barrier here.
9221 (m32c_emit_eh_epilogue): Likewise.
9222 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9223 operands at expand time.
9224 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9225 int" wchar type.
9226 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9227 duplicates. Provide aliases instead.
9228 * config/m32c/prologue.md (eh_return): Emit a barrier here.
9229 (eh_epilogue): Add a "(return)" here as a hint to other parts of
9230 the compiler.
9231
9232 2011-04-19 Anatoly Sokolov <aesok@post.ru>
9233
9234 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9235 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9236 (general_or_i64_p, sparc_register_move_cost): New function.
9237
9238 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9239
9240 * doc/install.texi (Configuration, --enable-threads): Remove mach.
9241 Add lynx, mipssde. Sort table.
9242
9243 2011-04-19 Xinliang David Li <davidxl@google.com>
9244
9245 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9246 not negative.
9247
9248 2011-04-19 Jakub Jelinek <jakub@redhat.com>
9249
9250 PR target/48678
9251 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9252 is a SUBREG with non-MODE_INT mode inside of it.
9253
9254 2011-04-19 Martin Jambor <mjambor@suse.cz>
9255
9256 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9257 also according to actual contants.
9258 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9259 (gimple_fold_call): Use it.
9260 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9261
9262 2011-04-19 Martin Jambor <mjambor@suse.cz>
9263
9264 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9265 non-pointer assignments.
9266
9267 2011-04-19 Martin Jambor <mjambor@suse.cz>
9268
9269 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9270 account anc_offset and otr_type from the indirect edge info.
9271 * ipa-prop.c (get_ancestor_addr_info): New function.
9272 (compute_complex_ancestor_jump_func): Assignment analysis moved to
9273 get_ancestor_addr_info, call it.
9274 (ipa_note_param_call): Do not initialize information about polymorphic
9275 calls, return the indirect call graph edge. Remove the last
9276 parameter, adjust all callers.
9277 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9278 parameters. Initialize polymorphic information in the indirect edge.
9279
9280 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9281
9282 PR lto/48148
9283 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9284 the types if they have different enumeration identifiers.
9285
9286 2011-04-19 Jan Hubicka <jh@suse.cz>
9287
9288 * cgraph.h (cgraph_optimize_for_size_p): Declare.
9289 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9290 * predict.c (cgraph_optimize_for_size_p): Break out from ...
9291 (optimize_function_for_size_p) ... here.
9292
9293 2011-04-19 Richard Guenther <rguenther@suse.de>
9294
9295 PR lto/48207
9296 * tree.c (free_lang_data): Do not reset the decl-assembler-name
9297 langhook.
9298
9299 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9300
9301 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9302 if DECL_NO_INLINE_WARNING_P is set on the function.
9303
9304 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
9305
9306 PR fortran/47976
9307 * reload1.c (inc_for_reload): Return void. All callers changed.
9308 (emit_input_reload_insns): Don't try to delete previous output
9309 reloads to a register, or record spill_reg_store for autoincs.
9310
9311 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
9312
9313 * gengtype.h: Updated copyright year.
9314 (struct input_file_st): Add inpisplugin field.
9315 (type_fileloc): New function.
9316 * gengtype.c
9317 (write_typed_struct_alloc_def): Add gcc_assert.
9318 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9319 (write_typed_alloc_defns): Don't output for plugin files.
9320 (input_file_by_name): Clear inpisplugin field.
9321 (main): Set inpisplugin field for plugin files.
9322
9323 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
9324
9325 * gengtype-state.c (string_eq): New.
9326 (read_state): Use string_eq instead of strcmp when creating the
9327 state_ident_tab.
9328
9329 2011-04-19 Wei Guozhi <carrot@google.com>
9330
9331 PR target/47855
9332 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9333 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9334 linkage.
9335 * config/arm/constraints.md (Uu): New constraint.
9336 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9337
9338 2011-04-19 Tristan Gingold <gingold@adacore.com>
9339
9340 * config.gcc (-*-*-*vms): Added.
9341 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9342 definitions moved.
9343 * config/vms/vms-ld.c: New file.
9344 * config/vms/vms-ar.c: New file.
9345 * config/vms/t-vmsnative: New file.
9346
9347 2011-04-18 Xinliang David Li <davidxl@google.com>
9348
9349 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9350
9351 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9352
9353 PR middle-end/48661
9354 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9355 if TREE_TYPE (v) is non-NULL.
9356
9357 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9358 gimple_get_virt_mehtod_for_binfo.
9359 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9360 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9361 callers.
9362 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9363
9364 2011-04-18 Michael Matz <matz@suse.de>
9365 Steve Ellcey <sje@cup.hp.com>
9366
9367 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9368 use its mode as source mode if it isn't VOIDmode.
9369
9370 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
9371
9372 * doc/passes.texi: Fill crossref nodes.
9373
9374 2011-04-18 Jim Meyering <meyering@redhat.com>
9375
9376 Fix doubled-word typos in comments and strings
9377 * config/alpha/vms-unwind.h: s/for for/for/
9378 * config/arm/unwind-arm.h: Likewise.
9379 * config/microblaze/microblaze.c: Likewise.
9380 * config/sh/constraints.md: s/in in/in/
9381 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9382
9383 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
9384
9385 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9386 (AVX_FLOAT_MODE_P): Ditto.
9387 (AVX128_VEC_FLOAT_MODE_P): Ditto.
9388 (AVX256_VEC_FLOAT_MODE_P): Ditto.
9389 (AVX_VEC_FLOAT_MODE_P): Ditto.
9390 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9391 (UNSPEC_MASKSTORE): Ditto.
9392 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9393 Merge from <sse>_movmsk<ssemodesuffix> and
9394 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
9395 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
9396 iterator.
9397 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9398 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9399 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9400
9401 2011-04-18 Jan Hubicka <jh@suse.cz>
9402
9403 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9404
9405 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9406 (want_inline_function_called_once_p): Break out the logic from
9407 ipa_inline.
9408 (edge_badness): Ensure that profile is not misupdated.
9409 (lookup_recursive_calls): Prioritize by call frequencies.
9410 (inline_small_functions): Move program size estimates here;
9411 actually process whole queue even when unit growth has been
9412 met. (to properly compute inline_failed reasons and for the
9413 case unit size decrease.) Revisit comments on recursive inlining.
9414 (ipa_inline): Remove unit summary code; first inline hot calls
9415 of functions called once, cold calls next.
9416 (order, nnodes): Remove unused variables.
9417 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9418 (GTFILES): Remove ipa-inline.c
9419 * sel-sched.c (fill_insns): Silence uninitialized var warning.
9420
9421 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9422
9423 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9424
9425 2011-04-18 Jie Zhang <jie@codesourcery.com>
9426 Richard Earnshaw <rearnsha@arm.com>
9427
9428 * arm.c (neon_builtin_type_bits): Remove.
9429 (typedef enum neon_builtin_mode): New.
9430 (T_MAX): Don't define.
9431 (typedef enum neon_builtin_datum): Remove bits, codes[],
9432 num_vars and base_fcode. Add mode, code and fcode.
9433 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9434 VAR10): Change accordingly.
9435 (neon_builtin_data[]): Change accordingly
9436 (arm_init_neon_builtins): Change accordingly.
9437 (neon_builtin_compare): Remove.
9438 (locate_neon_builtin_icode): Remove.
9439 (arm_expand_neon_builtin): Change accordingly.
9440
9441 * arm.h (enum arm_builtins): Move to ...
9442 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9443
9444 * arm.c (arm_builtin_decl): Declare.
9445 (TARGET_BUILTIN_DECL): Define.
9446 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9447 (arm_builtin_decls[]): New.
9448 (arm_init_neon_builtins): Store builtin declarations in
9449 arm_builtin_decls[].
9450 (arm_init_tls_builtins): Likewise.
9451 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
9452 (arm_builtin_decl): New.
9453
9454 2011-04-18 Richard Guenther <rguenther@suse.de>
9455
9456 * tree.c (upper_bound_in_type): Build properly canonicalized
9457 INTEGER_CSTs.
9458 (lower_bound_in_type): Likewise.
9459
9460 2011-04-18 Richard Guenther <rguenther@suse.de>
9461
9462 * gimple.h (gimple_call_addr_fndecl): New function.
9463 (gimple_call_fndecl): Use it.
9464 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9465 for direct calls.
9466 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9467 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9468
9469 2011-04-18 Richard Guenther <rguenther@suse.de>
9470
9471 PR middle-end/48650
9472 * tree.c (build_string): STRING_CST is now derived from tree_typed.
9473
9474 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9475
9476 PR lto/48492
9477 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9478 DECL_IN_CONSTANT_POOL without RTL.
9479
9480 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
9481 Ira Rosen <ira.rosen@linaro.org>
9482
9483 PR target/48252
9484 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9485 to match neon_vzip/vuzp/vtrn_internal.
9486 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9487 outputs explicitly dependent on both inputs.
9488 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9489
9490 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9491
9492 PR tree-optimization/48616
9493 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9494 whether the shift is by scalar or vector based on whether all SLP
9495 scalar stmts have the same rhs.
9496
9497 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
9498
9499 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9500 memory operands.
9501
9502 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
9503
9504 PR target/43700
9505 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9506 registers.
9507
9508 2011-04-17 Jan Hubicka <jh@suse.cz>
9509
9510 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9511 * cgrpahunit.c (cgraph_finalize_function): Do not set
9512 finalized_by_frontend.
9513 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9514 finalized_by_frontend.
9515
9516 2011-04-17 Jan Hubicka <jh@suse.cz>
9517
9518 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9519 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9520 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9521 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9522 method.
9523 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9524 gimple-fold.c
9525 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9526
9527 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
9528
9529 PR lto/48538
9530 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9531 is non-null before accessing it.
9532 (input_cgraph): Remove trailing spaces.
9533
9534 2011-04-17 Revital Eres <revital.eres@linaro.org>
9535
9536 * params.def (sms-min-sc): New param flag.
9537 * modulo-sched.c (sms_schedule): Use it.
9538 * doc/invoke.texi (sms-min-sc): Document it.
9539
9540 2011-04-17 Jan Hubicka <jh@suse.cz>
9541
9542 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9543 present, also set gimple_call_set_cannot_inline.
9544 * ipa-inline.c: Update toplevel comment.
9545 (MAX_TIME): Remove.
9546 (cgraph_clone_inlined_nodes): Fix linebreaks.
9547 (cgraph_check_inline_limits): Restructure to ...
9548 (caller_growth_limits): ... this one; be more tolerant
9549 on growth in nested inline chains; add explanatory comment;
9550 fix stack accounting thinko introduced by previous patch.
9551 (cgraph_default_inline_p): Remove.
9552 (report_inline_failed_reason): New function.
9553 (can_inline_edge_p): New function.
9554 (can_early_inline_edge_p): New function.
9555 (leaf_node_p): Move upwards in file.
9556 (want_early_inline_function_p): New function.
9557 (want_inline_small_function_p): New function.
9558 (want_inline_self_recursive_call_p): New function.
9559 (cgraph_edge_badness): Rename to ...
9560 (edge_badness) ... this one; fix linebreaks.
9561 (update_edge_key): Update call of edge_baddness; add
9562 detailed dump about queue updates.
9563 (update_caller_keys): Use can_inline_edge_p and
9564 want_inline_small_function_p.
9565 (cgraph_decide_recursive_inlining): Rename to...
9566 (recursive_inlining): Use can_inline_edge_p and
9567 want_inline_self_recursive_call_p; simplify and remove no longer
9568 valid FIXME.
9569 (cgraph_set_inline_failed): Remove.
9570 (add_new_edges_to_heap): Use can_inline_edge_p and
9571 want_inline_small_function_p.
9572 (cgraph_decide_inlining_of_small_functions): Rename to ...
9573 (inline_small_functions): ... this one; cleanup; use
9574 can/want predicates; cleanup debug ouput; work edges till fibheap
9575 is exhausted and do not stop once unit growth is reached; remove
9576 later loop processing remaining edges.
9577 (cgraph_flatten): Rename to ...
9578 (flatten_function): ... this one; use can_inline_edge_p
9579 and can_early_inline_edge_p predicates.
9580 (cgraph_decide_inlining): Rename to ...
9581 (ipa_inline): ... this one; remove unreachable nodes before
9582 inlining functions called once; simplify the pass.
9583 (cgraph_perform_always_inlining): Rename to ...
9584 (inline_always_inline_functions): ... this one; use
9585 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9586 (cgraph_decide_inlining_incrementally): Rename to ...
9587 (early_inline_small_functions): ... this one; simplify
9588 using new predicates; cleanup; make dumps prettier.
9589 (cgraph_early_inlining): Rename to ...
9590 (early_inliner): newer inline regular functions into always-inlines;
9591 fix updating of call stmt summaries.
9592 (pass_early_inline): Update for new names.
9593 (inline_transform): Fix formating.
9594 (gate_cgraph_decide_inlining): Rename to ...
9595 (pass_ipa_inline): ... this one.
9596 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9597 * ipa-inline-analysis.c (dump_inline_summary): Update.
9598 (compute_inline_parameters): Do not compute disregard_inline_limits;
9599 look for mismatching arguments.
9600 (estimate_growth): Fix handlig of non-trivial self recursion.
9601 (inline_read_summary): Do not read info->disregard_inline_limits.
9602 (inline_write_summary): Do not write info->disregard_inline_limits.
9603 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9604 and move all checks into can_inline_edge_p predicate; re-enable code
9605 comparing optimization levels.
9606 (expand_call_inline): Do not test inline_forbidden_into_p.
9607 * Makefile.in (ipa-inline.o): Update arguments.
9608
9609 2011-04-17 Revital Eres <revital.eres@linaro.org>
9610
9611 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9612
9613 2011-04-17 Revital Eres <revital.eres@linaro.org>
9614
9615 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9616
9617 2011-04-17 Michael Matz <matz@suse.de>
9618
9619 PR tree-optimization/48622
9620 PR lto/48645
9621 * ipa-inline-analysis.c (inline_read_summary): Read size/time
9622 in same order as they're written.
9623
9624 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9625
9626 * config/pa/predicates.md: Reorganize and simplify predicates.
9627 Eliminate duplicate code checks.
9628 (arith_operand): Rename to arith14_operand
9629 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9630 * config/pa/pa.md: Use renamed operands.
9631 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9632 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9633 arith11_operand, adddi3_operand, indexed_memory_operand,
9634 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9635 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9636 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9637 move_dest_operand, move_src_operand, prefetch_cc_operand,
9638 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9639 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9640 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9641 div_operand, int5_operand, movb_comparison_operator,
9642 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9643 arith_double_operand, ireg_operand, lhs_lshift_operand,
9644 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9645 integer_store_memory_operand): Likewise.
9646 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9647 (integer_store_memory_operand, read_only_operand,
9648 function_label_operand, borx_reg_operand,
9649 non_hard_reg_operand): Likewise.
9650 (eq_neq_comparison_operator): Delete unused operator.
9651 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9652 function_label_operand.
9653 (emit_move_sequence): Likewise.
9654
9655 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9656
9657 * config/i386/sse.md (sseunpackmode): New mode attribute.
9658 (ssepackmode): Ditto.
9659 (vec_pack_trunc_<mode>): Macroize expander from
9660 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9661 (vec_unpacks_lo_<mode>): Macroize expander from
9662 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9663 (vec_unpacks_hi_<mode>): Macroize expander from
9664 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9665 (vec_unpacku_lo_<mode>): Macroize expander from
9666 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9667 (vec_unpacku_hi_<mode>): Macroize expander from
9668 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9669 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9670 ix86_expand_sse4_unpack.
9671 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9672
9673 2011-04-16 Jan Hubicka <jh@suse.cz>
9674
9675 * cgraphbuild.c: Include ipa-inline.h.
9676 (reset_inline_failed): Use initialize_inline_failed.
9677 * cgraph.c: Include ipa-inline.h.
9678 (cgraph_create_node_1): Do not initialize estimated_growth.
9679 (initialize_inline_failed): More to ipa-inline-analysis.c
9680 (dump_cgraph_node): Do not dump inline flags.
9681 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9682 and disregard_inline_limits flags.
9683 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9684 time, size, estimated_growth.
9685 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9686 Update.
9687 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9688 DECL_DISREGARD_INLINE_LIMITS.
9689 (cgraph_analyze_function): Do not initialize
9690 node->local.disregard_inline_limits.
9691 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9692 inlinable, versionable and disregard_inline_limits.
9693 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9694 cgraph_check_inline_limits, cgraph_default_inline_p,
9695 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9696 add_new_edges_to_heap): Update.
9697 (cgraph_decide_inlining_of_small_function): Update; set
9698 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9699 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9700 cgraph_decide_inlining_incrementally): Update.
9701 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9702 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9703 time, size and estimated_growth parameters.
9704 (estimate_edge_growth): Update.
9705 (initialize_inline_failed): Declare.
9706 * ipa-split.c: Include ipa-inline.h
9707 (execute_split_functions): Update.
9708 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9709 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9710 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9711 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9712 estimated_growth to INT_MIN.
9713 (inline_node_duplication_hook): Likewise.
9714 (dump_inline_summary): Dump new fields.
9715 (compute_inline_parameters): Update.
9716 (estimate_edge_time, estimate_time_after_inlining,
9717 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9718 inline_write_summary):
9719 (initialize_inline_failed): Move here from cgraph.c.
9720 * tree-sra.c: Include ipa-inline.h.
9721 (ipa_sra_preliminary_function_checks): Update.
9722 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9723 ipa-inline.h.
9724
9725 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9726
9727 * config/i386/sse.md (V16): New mode iterator.
9728 (VI1, VI8): Ditto.
9729 (AVXMODEQI, AVXMODEDI): Remove.
9730 (sse2, sse3): New mode attribute.
9731 (mov<mode>): Use V16 mode iterator.
9732 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9733 (push<mode>1): Use V16 mode iterator.
9734 (movmisalign<mode>): Ditto.
9735 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9736 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9737 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9738 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9739 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9740 avx_movdqu<avxmodesuffix>.
9741 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9742 *avx_movdqu<avxmodesuffix>.
9743 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9744 avx_lddqu<avxmodesuffix>.
9745 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9746 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9747 avx_movnt<AVXMODEDI:mode>.
9748 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9749 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9750
9751 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9752
9753 PR target/48629
9754 * haifa-sched.c (prune_ready_list, schedule_block): Use
9755 sched_pressure_p rather than flag_sched_pressure.
9756
9757 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
9758
9759 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9760 cgraph_get_node instead of cgraph_get_create_node.
9761
9762 2011-04-15 Jakub Jelinek <jakub@redhat.com>
9763
9764 * cfgexpand.c (expand_debug_expr): Use
9765 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9766
9767 2011-04-15 Michael Matz <matz@suse.de>
9768
9769 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9770 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9771 * function.c (gimplify_parameters): Ditto.
9772 * gimplify.c (gimplify_vla_decl): Ditto.
9773
9774 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9775 (gimple_call_set_alloca_for_var): New inline function.
9776 (gimple_call_alloca_for_var_p): Ditto.
9777 * gimple.c (gimple_build_call_from_tree): Remember
9778 CALL_ALLOCA_FOR_VAR_P state.
9779 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9780
9781 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9782 calls if they were for VLA objects.
9783
9784 2011-04-15 Martin Jambor <mjambor@suse.cz>
9785
9786 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9787 of ADR_EXPRs.
9788
9789 2011-04-15 Martin Jambor <mjambor@suse.cz>
9790
9791 PR middle-end/48601
9792 * tree-emutls.c (lower_emutls_function_body): Call
9793 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9794 result is non-NULL.
9795
9796 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9797
9798 * c-decl.c (detect_field_duplicates): Call
9799 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9800
9801 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9802
9803 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9804 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9805 * ipa-pure-const.c (check_stmt): Call it.
9806 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9807
9808 2011-04-15 Richard Guenther <rguenther@suse.de>
9809
9810 PR tree-optimization/48290
9811 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9812 Properly decide inhibiting propagation based on the valueized
9813 operand. Do loop-closed SSA form preserving here ...
9814 (init_copy_prop): ... not here.
9815
9816 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9817
9818 PR target/48612
9819 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9820 (*ieee_smax<mode>3): Likewise.
9821
9822 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9823
9824 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9825 Replace match_operand with match_dup for the third operand in
9826 these expanders.
9827
9828 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9829
9830 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9831 to track processing of conditionals. Update all callers.
9832 (try_combine, simplify_if_then_else): Update.
9833
9834 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9835
9836 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9837 -fsched-pressure.
9838
9839 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
9840
9841 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9842 instead of match_operand for operand 3.
9843
9844 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9845
9846 * recog.h (insn_operand_data): Add an "allows_mem" field.
9847 * genoutput.c (output_operand_data): Initialize it.
9848 * optabs.c (maybe_legitimize_operand_same_code): New function.
9849 (maybe_legitimize_operand): Use it when matching the original
9850 op->value.
9851
9852 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9853
9854 * gimplify.c: Fix issues in comments throughout.
9855 (voidify_wrapper_expr): Fix long line.
9856 (build_stack_save_restore): Likewise.
9857 (gimplify_loop_expr): Likewise.
9858 (gimplify_compound_lval): Likewise.
9859 (gimplify_init_ctor_eval): Likewise.
9860 (gimplify_modify_expr_rhs): Likewise.
9861 (omp_notice_threadprivate_variable): Likewise.
9862
9863 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9864
9865 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9866 original one if this is not a builtin function.
9867
9868 2011-04-14 Jakub Jelinek <jakub@redhat.com>
9869
9870 PR target/48605
9871 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9872 offset it as needed based on top 2 bits in operands[3], change
9873 MEM mode to SFmode and mask those 2 bits away from operands[3].
9874
9875 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9876
9877 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9878 change from objc_declare_protocols() to objc_declare_protocol().
9879
9880 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
9881
9882 * config/i386/sse.md (sse4_1): New mode attribute.
9883 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9884 avx_blend<ssemodesuffix><avxmodesuffix> and
9885 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9886 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9887 avx_blendv<ssemodesuffix><avxmodesuffix> and
9888 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9889 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9890 avx_dp<ssemodesuffix><avxmodesuffix> and
9891 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9892 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9893 (sse4_1_packusdw): Merge with *avx_packusdw.
9894 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9895 (sse4_1_pblendw): Merge with *avx_pblendw.
9896 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9897 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9898 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9899 VF mode iterator.
9900 (sse4_1_round<ssescalarmodesuffix>): Merge with
9901 *avx_round<ssescalarmodesuffix>.
9902 (aesenc): Merge with *avx_aesenc.
9903 (aesenclast): Merge with *avx_aesenclast.
9904 (aesdec): Merge with *avx_aesdec.
9905 (aesdeclast): Merge with *avx_aesdeclast.
9906 (pclmulqdq): Merge with *pclmulqdq.
9907 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9908 New predicate.
9909 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9910
9911 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9912
9913 PR middle-end/48608
9914 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9915 (align_local_variable): This. Update DECL_ALIGN.
9916 (add_stack_var): Updated.
9917 (expand_one_stack_var): Likewise.
9918
9919 2011-04-14 Richard Guenther <rguenther@suse.de>
9920
9921 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9922 Remove.
9923 (dse_initialize_block_local_data, dse_leave_block,
9924 record_voperand_set, get_stmt_uid): Likewise.
9925 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9926 (dse_optimize_stmt): Remove voperand set handling code.
9927 Simplify and improve to handle any kind of killing stmt.
9928 (dse_record_phi): Remove.
9929 (dse_enter_block): Simplify.
9930 (tree_ssa_dse): Likewise.
9931 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9932
9933 2011-04-14 Jan Hubicka <jh@suse.cz>
9934
9935 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9936 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9937 (cgraph_local_info): Remove inline_summary.
9938 * ipa-cp.c: Include ipa-inline.h.
9939 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9940 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9941 accesor.
9942 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9943 (input_overwrite_node): Do not set inline summary.
9944 (input_node): Do not stream inline summary.
9945 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9946 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9947 growth; we do not have inline parameters computed for that anyway.
9948 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9949 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9950 (inline_summary_t): New type and VECtor.
9951 (debug_inline_summary, dump_inline_summaries): Declare.
9952 (inline_summary): Use VOCtor.
9953 (estimate_edge_growth): Kill hack computing call stmt size directly.
9954 * lto-section-in.c (lto_section_name): Add inline section.
9955 * ipa-inline-analysis.c: Include lto-streamer.h
9956 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9957 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9958 (inline_summary_vec): Define.
9959 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9960 dump_inline_summaries): New functions.
9961 (estimate_function_body_sizes): Properly compute size/time of outgoing
9962 calls.
9963 (compute_inline_parameters): Alloc inline_summary; do not compute
9964 size/time of incomming calls.
9965 (estimate_edge_time): Avoid missing time summary hack.
9966 (inline_read_summary): Read inline summary info.
9967 (inline_write_summary): Write inline summary info.
9968 (inline_free_summary): Free all hooks and inline summary vector.
9969 * lto-streamer.h: Add LTO_section_inline_summary section.
9970 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9971 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9972
9973 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9974
9975 * tree-vectorizer.h (vect_strided_store_supported): Add a
9976 HOST_WIDE_INT argument.
9977 (vect_strided_load_supported): Likewise.
9978 (vect_permute_store_chain): Return void.
9979 (vect_transform_strided_load): Likewise.
9980 (vect_permute_load_chain): Delete.
9981 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9982 count argument. Check that the count is a power of two.
9983 (vect_strided_load_supported): Likewise.
9984 (vect_permute_store_chain): Return void. Update after above changes.
9985 Assert that the access is supported.
9986 (vect_permute_load_chain): Likewise.
9987 (vect_transform_strided_load): Return void.
9988 * tree-vect-stmts.c (vectorizable_store): Update calls after
9989 above interface changes.
9990 (vectorizable_load): Likewise.
9991 (vect_analyze_stmt): Don't check for strided powers of two here.
9992
9993 2011-04-14 Richard Guenther <rguenther@suse.de>
9994
9995 PR tree-optimization/48590
9996 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9997 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9998 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9999 BUILT_IN_STACK_SAVE.
10000 * tree-ssa-dce.c (propagate_necessity): Handle
10001 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10002
10003 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10004
10005 * c-parser.c (c_parser_objc_class_declaration): Updated call to
10006 objc_declare_class.
10007
10008 2011-04-14 Richard Guenther <rguenther@suse.de>
10009
10010 * tree.h (get_object_alignment_1): Declare.
10011 * builtins.c (get_object_alignment_1): Split out worker from ...
10012 (get_object_alignment): ... here.
10013 * fold-const.c (get_pointer_modulus_and_residue): Use
10014 get_object_alignment_1.
10015
10016 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10017
10018 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
10019 type parameter.
10020 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
10021 parameter. Generalise code to handle arrays as well as vectors.
10022 (vect_setup_realignment): Update accordingly.
10023 * tree-vect-stmts.c (vectorizable_store): Likewise.
10024 (vectorizable_load): Likewise.
10025
10026 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10027
10028 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
10029 within the per-copy loop.
10030
10031 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10032
10033 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
10034 in the dump file.
10035
10036 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10037
10038 * doc/options.texi (Negative): Explicitly mention that the
10039 Negative chain must be circular.
10040
10041 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
10042
10043 * function.h (block_chainon): Declare.
10044 * function.c (block_chainon): Define.
10045
10046 2011-04-14 Anatoly Sokolov <aesok@post.ru>
10047 Eric Weddington <eric.weddington@atmel.com>
10048 Georg-Johann Lay <avr@gjlay.de>
10049
10050 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
10051 New Includes
10052 (avr_init_builtins, avr_expand_builtin,
10053 avr_expand_delay_cycles, avr_expand_unop_builtin,
10054 avr_expand_binop_builtin ): New functions.
10055 (avr_builtin_id): New enum
10056 (struct avr_builtin_description): New struct
10057 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
10058 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
10059
10060 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
10061 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
10062 UNSPECV_DELAY_CYCLES): new enumeration values
10063 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
10064 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
10065 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
10066 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
10067 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
10068 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
10069 "fmulsu"): New insns
10070
10071 * config/avr/avr-c.c: fix line endings
10072 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
10073 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
10074 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
10075 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
10076 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
10077
10078 * doc/extend.texi (AVR Built-in Functions): New node
10079 (Target Builtins): Add documentation of AVR
10080 built-in functions.
10081
10082 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
10083
10084 PR target/44643
10085 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
10086 alone. Error if non-const data has attribute progmem.
10087
10088 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10089
10090 * tree.h (struct tree_constructor): Include tree_typed instead of
10091 tree_common.
10092 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
10093 TS_TYPED instead of TS_COMMON.
10094
10095 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10096
10097 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
10098 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
10099 (sse2_psadbw): Merge with *avx_psadbw.
10100 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
10101 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
10102 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
10103 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
10104 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
10105 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
10106 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
10107 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
10108 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
10109 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
10110 (ssse3_palignrti): Merge with *avx_palignrti.
10111
10112 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10113
10114 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
10115 * tree-ssanames.c (fini_ssanames): VEC_free it.
10116 (make_ssa_name_fn): Update for VECness of free_ssanames.
10117 (release_ssa_name, release_dead_ssa_names): Likewise.
10118 * tree.h (struct tree_ssa_name): Include tree_typed instead of
10119 tree_common.
10120 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
10121 TS_TYPED instead of TS_COMMON.
10122
10123 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10124
10125 * postreload-gcse.c (gcse_after_reload_main): Add calls to
10126 statistics_counter_event.
10127 * tree-ssa-copyrename.c (stats): Define.
10128 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
10129 statistics_counter_event.
10130 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
10131 (bswap_stats, widen_mul_stats): Define.
10132 (insert_reciprocals): Increment rdivs_inserted.
10133 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
10134 rfuncs_inserted. Add calls to statistics_counter_event.
10135 (execute_cse_sincos_1): Increment inserted.
10136 (execute_cse_sincos): Zeroize sincos_stats. Add call to
10137 statistics_counter_event.
10138 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
10139 of bswap_stats. Add calls to statistics_counter_event.
10140 (convert_mult_to_widen): Increment widen_mults_inserted.
10141 (convert_plusminus_to_widen): Increment maccs_inserted.
10142 (convert_mult_to_fma): Increment fmas_inserted.
10143 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
10144 calls to statistics_counter_event.
10145
10146 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
10147
10148 PR rtl-optimization/48455
10149 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
10150 `temp_costs->mem_cost'.
10151
10152 2011-04-13 Jan Hubicka <jh@suse.cz>
10153
10154 * ipa-inline.h: New file.
10155 * ipa-inline-analysis.c: New file. Broken out of ...
10156 * ipa-inline.c: ... this file; update toplevel comment;
10157 include ipa-inline.h
10158 (inline_summary): Move to ipa-inline.h
10159 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
10160 ipa-inline-analysis.c.
10161 (cgraph_estimate_time_after_inlining): Rename to
10162 estiamte_time_after_inlining; move to ipa-inline-analysis.c
10163 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
10164 to estimate_edge_growth.
10165 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
10166 rename to estimate_size_after_inlining.
10167 (cgraph_mark_inline_edge): Update for new naming convention.
10168 (cgraph_check_inline_limits): Likewise.
10169 (cgraph_edge_badness): Likewise.
10170 (cgraph_decide_recursive_inlining): Likewise.
10171 (cgraph_decide_inlining_of_small_functions): Likewise.
10172 (cgraph_decide_inlining_incrementally): Likewise.
10173 (cgraph_estimate_growth): Rename to estimate_growth; move to
10174 ipa-inline-analysis.c.
10175 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
10176 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
10177 (compute_inline_parameters): Likewise.
10178 (compute_inline_parameters_for_current): Likewise.
10179 (pass_inline_parameters): Likewise.
10180 (inline_indirect_intraprocedural_analysis): Likewise.
10181 (analyze_function): Rename to inline_analyze_function; likewise.
10182 (add_new_function): Move to ipa-inline-analysis.c.
10183 (inline_generate_summary): Likewise.
10184 (inline_read_summary): Likewise.
10185 (inline_write_summary): Likewise.
10186 * Makefile.in (ipa-inline-analysis.c): New file.
10187
10188 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10189
10190 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
10191 * configure: Regenerate.
10192
10193 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10194
10195 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
10196 instead of tree_common.
10197 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
10198 Likewise.
10199 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
10200 TS_TYPED rather than TS_COMMON.
10201 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
10202
10203 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
10204
10205 PR target/45263
10206 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
10207 r20 around calls of __tablejump_elpm__
10208
10209 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10210
10211 PR middle-end/48591
10212 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10213 NULL.
10214 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10215
10216 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
10217
10218 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10219 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10220 (cfi_vec): New typedef.
10221 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10222 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10223 (cie_cfi_vec): New static variable.
10224 (cie_cfi_head): Delete.
10225 (add_cfi): Accept a cfi_vec * as first argument. All callers and
10226 declaration changed. Use vector rather than list operations.
10227 (new_cfi): Don't initialize the dw_cfi_next field.
10228 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10229 rather than list operations.
10230 (lookup_cfa): Use vector rather than list operations.
10231 (output_cfis): New argument upto. Accept a cfi_vec rather than
10232 a dw_cfi_ref list head as argument. All callers changed.
10233 Iterate over the vector using upto as a maximum index.
10234 (output_all_cfis): New static function.
10235 (output_fde): Use vector rather than list operations. Use the
10236 new upto argument for output_cfis rather than manipulating a
10237 list.
10238 (dwarf2out_begin_prologue): Change initializations to match
10239 new struct members.
10240 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10241 from the vector length rather than searching for the end of a list.
10242 Use output_all_cfis.
10243 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10244
10245 2011-04-13 Nick Clifton <nickc@redhat.com>
10246
10247 * config/rx/rx.md (movmemsi): Do not use this pattern when
10248 volatile pointers are involved.
10249
10250 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10251
10252 * config/i386/sse.md (pinsrbits): Remove.
10253 (sse2_packsswb): Merge with *avx_packsswb.
10254 (sse2_packssdw): Merge with *avx_packssdw.
10255 (sse2_packuswb): Merge with *avx_packuswb.
10256 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10257 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10258 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10259 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10260 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10261 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10262 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10263 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10264 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10265 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10266 (sse2_loadld): Merge with *avx_loadld.
10267 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10268 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10269 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10270 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10271 (vec_concatv2di): Merge with *vec_concatv2di_avx.
10272
10273 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
10274
10275 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10276 calling TREE_CHAIN.
10277 * print-tree.c (print_node): Likewise.
10278 * tree-inline.c (copy_tree_r): Likewise.
10279 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10280 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10281 instead of TS_COMMON.
10282 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10283 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10284 (copy_node_stat): Zero TREE_CHAIN only if necessary.
10285 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10286 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10287 ...and these...
10288 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10289 * tree.h: ...here.
10290 (TREE_CHAIN): Check for a TS_COMMON structure.
10291 (TREE_TYPE): Check for a TS_TYPED structure.
10292
10293 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
10294
10295 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10296 cgraph_get_create_node instead of cgraph_node.
10297
10298 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10299
10300 * c-parser.c (c_parser_initelt): Updated call to
10301 objc_build_message_expr.
10302 (c_parser_postfix_expression): Likewise.
10303
10304 2011-04-12 Kai Tietz <ktietz@redhat.com>
10305
10306 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10307 MASK_MS_BITFIELD_LAYOUT bit.
10308
10309 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10310
10311 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10312 assert it is always true.
10313 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10314 moves.
10315
10316 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10317
10318 * c-parser.c (c_lex_one_token): Rewritten conditional used when
10319 compiling Objective-C to be more efficient.
10320
10321 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
10322
10323 * opts-common.c (decode_cmdline_options_to_array): Remove variable
10324 argv_copied.
10325
10326 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10327
10328 * recog.h, genoutput.c, optabs.c: Revert last patch.
10329
10330 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10331
10332 PR target/48090
10333 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10334
10335 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10336
10337 * recog.h (insn_operand_data): Add an "allows_mem" field.
10338 * genoutput.c (output_operand_data): Initialize it.
10339 * optabs.c (maybe_legitimize_operand_same_code): New function.
10340 (maybe_legitimize_operand): Use it when matching the original
10341 op->value.
10342
10343 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10344
10345 * genpreds.c (process_define_predicate): Move most processing
10346 to gensupport.c. Continue to validate the expression.
10347 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10348 (process_define_predicate): Move processing to gensupport.c.
10349 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10350 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10351 (compute_predicate_codes): Moved from genrecog.c. Add lineno
10352 argument.
10353 (valid_predicate_name_p): New function, split out from old
10354 genpreds.c:process_define_predicate.
10355 (process_define_predicate): New function, combining code from
10356 old genpreds.c and genrecog.c functions.
10357 (process_rtx): Call it for DEFINE_PREDICATE and
10358 DEFINE_SPECIAL_PREDICATE.
10359
10360 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10361
10362 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10363 size of a '%A' memory reference.
10364 (T_DREG, T_QREG): New neon_builtin_type_bits.
10365 (arm_init_neon_builtins): Assert that the load and store operands
10366 are neon_struct_operands.
10367 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10368 (NEON_ARG_MEMORY): New builtin_arg.
10369 (neon_dereference_pointer): New function.
10370 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10371 Handle NEON_ARG_MEMORY.
10372 (arm_expand_neon_builtin): Update after above interface changes.
10373 Use NEON_ARG_MEMORY for loads and stores.
10374 * config/arm/predicates.md (neon_struct_operand): New predicate.
10375 * config/arm/iterators.md (V_two_elem): Tweak formatting.
10376 (V_three_elem): Use BLKmode for accesses that have no associated mode.
10377 (V_four_elem): Tweak formatting.
10378 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10379 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10380 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10381 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10382 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10383 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10384 (neon_vst4<mode>): Replace pointer operand with a memory operand.
10385 Use %A in the output template.
10386 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10387 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10388 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10389 the width of the memory access. Remove post-increment.
10390 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10391
10392 2011-04-12 Nick Clifton <nickc@redhat.com>
10393
10394 * config/v850/v850.c (expand_prologue): Do not use the CALLT
10395 instruction for interrupt handlers if the target is the basic V850
10396 architecture.
10397 (expand_epilogue): Likewise.
10398
10399 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10400
10401 PR rtl-optimization/48549
10402 * combine.c (propagate_for_debug): Also stop after BB_END of
10403 this_basic_block. Process LAST and just stop processing after it.
10404 (combine_instructions): If last_combined_insn has been deleted,
10405 set last_combined_insn to its PREV_INSN.
10406
10407 2011-04-12 Richard Guenther <rguenther@suse.de>
10408
10409 PR tree-optimization/46076
10410 * gimple.h (struct gimple_statement_call): Add fntype field.
10411 (gimple_call_fntype): Adjust.
10412 (gimple_call_set_fntype): New function.
10413 * gimple.c (gimple_build_call_1): Set the call function type.
10414 * gimplify.c (gimplify_call_expr): Preserve the function
10415 type the frontend used for the call.
10416 (gimplify_modify_expr): Likewise.
10417 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10418 function type.
10419 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10420 function type.
10421 * tree-ssa.c (useless_type_conversion_p): Function pointer
10422 conversions are useless.
10423
10424 2011-04-12 Martin Jambor <mjambor@suse.cz>
10425
10426 * cgraph.h (cgraph_node): Remove function declaration.
10427 (cgraph_create_node): Declare.
10428 (cgraph_get_create_node): Likewise.
10429 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10430 Updated all callers.
10431 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10432 the decl does not already exist. Call cgraph_get_create_node instead
10433 of cgraph_node.
10434 (cgraph_get_create_node): New function.
10435 (cgraph_same_body_alias): Update comment.
10436 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10437 assert it does not return NULL.
10438 (cgraph_update_edges_for_call_stmt): Likewise.
10439 (cgraph_clone_edge): Likewise.
10440 (cgraph_create_virtual_clone): Likewise.
10441 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10442 instead of cgraph_node.
10443 (cgraph_add_new_function): Call cgraph_create_node or
10444 cgraph_get_create_node instead of cgraph_node.
10445 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10446 instead of cgraph_node.
10447 (record_eh_tables): Likewise.
10448 (mark_address): Likewise.
10449 (mark_load): Likewise.
10450 (build_cgraph_edges): Call cgraph_get_create_node instead
10451 of cgraph_node.
10452 (rebuild_cgraph_edges): Likewise.
10453 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10454 instead of cgraph_node.
10455 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10456 cgraph_node.
10457 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10458 cgraph_create_node instead of cgraph_node.
10459 * c-decl.c (finish_function): Call cgraph_get_create_node instead
10460 of cgraph_node.
10461 * lto-cgraph.c (input_node): Likewise.
10462 * lto-streamer-in.c (input_function): Likewise.
10463 * varasm.c (mark_decl_referenced): Likewise.
10464 (assemble_alias): Likewise.
10465
10466 2011-04-12 Martin Jambor <mjambor@suse.cz>
10467
10468 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10469 instead of cgraph_node and assert it does not return NULL.
10470 * lto-streamer-in.c (lto_read_body): Likewise.
10471 * omp-low.c (new_omp_context): Likewise.
10472 (create_task_copyfn): Likewise.
10473 * tree-emutls.c (lower_emutls_function_body): Likewise.
10474 * matrix-reorg.c (transform_allocation_sites): Likewise.
10475
10476 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10477
10478 PR c/48552
10479 * c-typeck.c (build_asm_expr): Error out on attempts to use
10480 void type outputs or inputs for constraints that allow reg or
10481 don't allow memory.
10482
10483 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
10484 Richard Earnshaw <rearnsha@arm.com>
10485
10486 PR target/48250
10487 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10488 to use sign-magnitude offsets. Reject unsupported unaligned
10489 cases. Add detailed description in comments.
10490 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10491 condition from TARGET_32BIT to TARGET_ARM.
10492
10493 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
10494
10495 * tree.h (struct typed_tree): New.
10496 (struct tree_common): Include it instead of tree_base.
10497 (TREE_TYPE): Update for new location of type field.
10498 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10499 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10500 (union tree_node): Add typed field.
10501 * treestruct.def (TS_TYPED): New.
10502 * lto-streamer.c (check_handled_ts_structures): Handle it.
10503 * tree.c (MARK_TS_TYPED): New macro.
10504 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10505
10506 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
10507
10508 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10509 (force_nonfallthru): Do not alter the loop nest if no basic block
10510 was created.
10511
10512 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10513
10514 * config/i386/sse.md (VI): New mode iterator.
10515 (SSEMODEI): Remove.
10516 (AVX256MODEI): Ditto.
10517 (AVXMODEF4P): Ditto.
10518 (avxvecpsmode): Ditto.
10519 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
10520 (sse2_andnot<mode>3): New expander.
10521 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10522 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
10523 (<any_logic:code><mode>3): Use VI mode iterator.
10524 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10525 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
10526 (*andnottf3): Handle AVX three-operand constraints.
10527 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10528
10529 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10530 Robert Millan <rmh@gnu.org>
10531
10532 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10533 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10534 GNU_USER_DYNAMIC_LINKER64): Define.
10535 (REG_NAME): Don't undefine.
10536 (MD_UNWIND_SUPPORT): Undefine.
10537 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10538 (REG_NAME): Don't undefine.
10539 (MD_UNWIND_SUPPORT): Undefine.
10540 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10541
10542 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10543
10544 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10545 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10546
10547 2011-04-11 Xinliang David Li <davidxl@google.com>
10548
10549 * value-profile.c (check_ic_target): New function.
10550 (gimple_ic_transform): Sanity check indirect call target.
10551 * gimple-low.c (gimple_check_call_args): Interface change.
10552 (gimple_check_call_matching_types): New function.
10553 * tree-inline.c (tree_can_inline_p): Call new function.
10554
10555 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
10556
10557 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10558 tree-pretty-print.h & realmpfr.h.
10559
10560 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
10561
10562 PR middle-end/48464
10563 * ira.c (setup_pressure_classes): Fix typo in loop condition.
10564 (setup_allocno_and_important_classes): Ditto.
10565
10566 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10567
10568 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10569 GNU_USER_DYNAMIC_LINKER.
10570 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10571 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10572 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10573 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10574 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10575 GNU_USER_TARGET_OS_CPP_BUILTINS.
10576 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10577 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10578 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10579 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10580 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10581 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10582 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10583 GNU_USER_TARGET_OS_CPP_BUILTINS.
10584 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10585 GNU_USER_DYNAMIC_LINKER.
10586 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10587 GNU_USER_TARGET_OS_CPP_BUILTINS.
10588 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10589 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10590 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10591 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10592 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10593 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10594 GNU_USER_DYNAMIC_LINKER64): Remove.
10595 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10596 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10597 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10598 GNU_USER_DYNAMIC_LINKER.
10599 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10600 GNU_USER_TARGET_OS_CPP_BUILTINS.
10601 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10602 GNU_USER_TARGET_OS_CPP_BUILTINS.
10603 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10604 to GNU_USER_TARGET_OS_CPP_BUILTINS.
10605 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10606 GNU_USER_TARGET_OS_CPP_BUILTINS.
10607 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10608 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10609 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10610 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10611 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10612 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10613 GNU_USER_DYNAMIC_LINKER.
10614 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10615 GNU_USER_TARGET_OS_CPP_BUILTINS.
10616 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10617 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10618 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10619 GNU_USER_DYNAMIC_LINKER.
10620 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10621 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10622 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10623 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10624 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10625 GNU_USER_DYNAMIC_LINKER.
10626 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10627 GNU_USER_DYNAMIC_LINKERN32.
10628 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10629 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
10630 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
10631 GNU_USER_DYNAMIC_LINKER32.
10632 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10633 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10634 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10635 GNU_USER_DYNAMIC_LINKER.
10636 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10637 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10638 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10639 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10640 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10641 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10642 GNU_USER_DYNAMIC_LINKER32.
10643 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10644 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10645 GNU_USER_DYNAMIC_LINKER.
10646 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10647 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10648 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10649 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
10650 GNU_USER_DYNAMIC_LINKER64.
10651 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10652 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10653 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10654 GNU_USER_DYNAMIC_LINKER.
10655 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10656 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10657 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10658 GNU_USER_DYNAMIC_LINKER.
10659 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10660 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10661 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10662 GNU_USER_DYNAMIC_LINKER32.
10663 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10664 GNU_USER_DYNAMIC_LINKER64.
10665 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10666 GNU_USER_DYNAMIC_LINKER64.
10667 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10668 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10669 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10670 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10671 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10672
10673 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10674
10675 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10676 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10677 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10678 GNU_USER_DYNAMIC_LINKER.
10679 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10680 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10681 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10682 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10683 GNU_USER_DYNAMIC_LINKER64.
10684 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10685 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10686 GNU_USER_LINK_EMULATION.
10687 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10688 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10689 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10690 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10691 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10692 CPP_SPEC, CC1_SPEC): Remove.
10693 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10694 (GNU_USER_DYNAMIC_LINKER): Define.
10695 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10696 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10697 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10698 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10699 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10700 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10701 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10702 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10703 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10704 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10705 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10706 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10707 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10708 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10709 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10710 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10711 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10712 GNU_USER_DYNAMIC_LINKER.
10713 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10714 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10715 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10716 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10717 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10718 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10719 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10720 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10721 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10722 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10723
10724 2011-04-11 Kai Tietz <ktietz@redhat.com>
10725
10726 PR target/9601
10727 PR target/11772
10728 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10729 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10730 comment.
10731 (ix86_is_msabi_thiscall): Removed.
10732 (ix86_is_type_thiscall): Likewise.
10733 (ix86_get_callcvt): New function.
10734 (ix86_comp_type_attributes): Simplify check.
10735 (ix86_function_regparm): Use ix86_get_callcvt for calling
10736 convention attribute checks.
10737 (ix86_return_pops_args): Likewise.
10738 (ix86_static_chain): Likewise.
10739 (x86_this_parameter): Likewise.
10740 (x86_output_mi_thunk): Likewise.
10741 (ix86_function_type_abi): Optimize check for types without attributes.
10742 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10743 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10744 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10745 by flag-values.
10746 (IX86_BASE_CALLCVT): Helper macro.
10747 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10748 Use ix86_get_callcvt for calling convention attribute checks and avoid
10749 symbol-decoration for stdcall in TARGET_RTD case.
10750 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10751 Likewise.
10752 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10753 for declaration.
10754
10755 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10756
10757 * config/i386/sse.md (VI_128): New mode iterator.
10758 (VI12_128): Rename from SSEMODE12.
10759 (VI14_128): Rename from SSEMODE14.
10760 (VI124_128): New mode iterator.
10761 (VI24_128): Rename from SSEMODE248.
10762 (VI248_128): Rename from SSEMODE248.
10763 (SSEMODE124C8): Remove.
10764 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10765 (*sse2_<plusminus_insn><mode>3): Merge with
10766 *avx_<plusminus_insn><mode>3.
10767 (*mulv8hi3): Merge with *avx_mulv8hi3.
10768 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10769 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10770 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10771 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10772 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10773 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10774 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10775 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10776 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10777 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10778 (*<smaxmin:code>v8hi3): Ditto.
10779 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10780 (*<smaxmin:code>v16qi3): Ditto.
10781 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10782 (*sse2_eq<mode>3): Ditto.
10783 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10784 (*sse2_gt<mode>3): Ditto.
10785 (vcondv2di): Split out of vcond<mode>.
10786 (vconduv2di): Split out of vcondu<mode>.
10787
10788 2011-04-11 Richard Guenther <rguenther@suse.de>
10789
10790 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10791 before calling tree_low_cst.
10792
10793 2011-04-11 Richard Guenther <rguenther@suse.de>
10794
10795 * stor-layout.c (layout_type): Compute all array index size operations
10796 in the original type.
10797 (initialize_sizetypes): Add comment.
10798 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10799
10800 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10801
10802 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10803
10804 2011-04-11 Martin Jambor <mjambor@suse.cz>
10805
10806 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10807 of cgraph_node, handle NULL return value.
10808 (cgraph_global_info): Likewise.
10809 (cgraph_rtl_info): Likewise.
10810 * tree-inline.c (estimate_num_insns): Likewise.
10811 * gimplify.c (unshare_body): Likewise.
10812 (unvisit_body): Likewise.
10813 (gimplify_body): Likewise.
10814 * predict.c (optimize_function_for_size_p): Likewise.
10815 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10816 (call_may_clobber_ref_p_1): Likewise.
10817 * varasm.c (function_section_1): Likewise.
10818 (assemble_start_function): Likewise.
10819
10820 2011-04-11 Martin Jambor <mjambor@suse.cz>
10821
10822 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10823 of cgraph_node.
10824 * final.c (rest_of_clean_state): Likewise.
10825 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10826 * passes.c (pass_init_dump_file): Likewise.
10827 (execute_all_ipa_transforms): Likewise.
10828 (function_called_by_processed_nodes_p): Likewise.
10829 * predict.c (maybe_hot_frequency_p): Likewise.
10830 (probably_never_executed_bb_p): Likewise.
10831 (compute_function_frequency): Likewise.
10832 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10833 (unnest_nesting_tree_1): Likewise.
10834 (lower_nested_functions): Likewise.
10835 * tree-optimize.c (execute_fixup_cfg): Likewise.
10836 (tree_rest_of_compilation): Likewise.
10837 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10838 * tree-sra.c (ipa_early_sra): Likewise.
10839 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10840 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10841 * ipa.c (record_cdtor_fn): Likewise.
10842 * ipa-inline.c (cgraph_early_inlining): Likewise.
10843 (compute_inline_parameters_for_current): Likewise.
10844 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10845 * ipa-pure-const.c (local_pure_const): Likewise.
10846 * ipa-split.c (split_function): Likewise.
10847 (execute_split_functions): Likewise.
10848 * cgraphbuild.c (build_cgraph_edges): Likewise.
10849 (rebuild_cgraph_edges): Likewise.
10850 (cgraph_rebuild_references): Likewise.
10851 (remove_cgraph_callee_edges): Likewise.
10852 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10853 (verify_cgraph_node): Likewise.
10854 (cgraph_analyze_functions): Likewise.
10855 (cgraph_preserve_function_body_p): Likewise.
10856 (save_inline_function_body): Likewise.
10857 (save_inline_function_body): Likewise.
10858 * tree-inline.c (copy_bb): Likewise.
10859 (optimize_inline_calls): Likewise.
10860
10861 2011-04-11 Martin Jambor <mjambor@suse.cz>
10862
10863 PR tree-optimization/48195
10864 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10865 ipa_check_create_edge_args.
10866 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10867 ipa_check_create_edge_args.
10868 * ipa-inline.c (inline_generate_summary): Do not call
10869 ipa_check_create_node_params and ipa_check_create_edge_args.
10870 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10871 ipa_check_create_edge_args.
10872
10873 2011-04-09 Anatoly Sokolov <aesok@post.ru>
10874
10875 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10876 instead of loop.
10877 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10878 * function.c (record_hard_reg_sets): Likewise.
10879 * ira.c (compute_regs_asm_clobbered): Likewise.
10880 * sched-deps.c (sched_analyze_1): Likewise.
10881 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10882
10883 2011-04-09 Xinliang David Li <davidxl@google.com>
10884
10885 PR tree-optimization/PR48484
10886 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10887 has_valid_pred lazily
10888
10889 2011-04-09 Duncan Sands <baldrick@free.fr>
10890
10891 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10892
10893 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10894
10895 * combine.c (combine_validate_cost): Adjust comments. Set registered
10896 cost of I0 to zero at the end, if any.
10897
10898 2011-04-08 Xinliang David Li <davidxl@google.com>
10899
10900 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10901 to insane profile data.
10902
10903 2011-04-08 Xinliang David Li <davidxl@google.com>
10904
10905 * ipa-cp.c (ipcp_update_profiling): Correct
10906 negative scale factor due to insane profile data.
10907
10908 2011-04-08 Xinliang David Li <davidxl@google.com>
10909
10910 * final.c (dump_basic_block_info): New function.
10911 (final): Dump basic block.
10912 (final_scan_insn): Remove old dump.
10913
10914 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10915
10916 PR target/47829
10917 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10918 crtbegin/crtend.
10919
10920 2011-04-08 Michael Matz <matz@suse.de>
10921
10922 PR middle-end/48389
10923 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10924 functions.
10925 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10926 * rtl.h (rebuild_jump_labels_chain): Declare.
10927 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10928 insns inserted on edges.
10929
10930 2011-04-08 Joseph Myers <joseph@codesourcery.com>
10931
10932 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10933 * config/arm/arm-arches.def: New.
10934 * config/arm/arm-opts.h: New.
10935 * config/arm/genopt.sh: New.
10936 * config/arm/arm-tables.opt: New (generated).
10937 * config/arm/arm.c (arm_handle_option, arm_target_help,
10938 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10939 (all_architectures): Get most table contents from arm-arches.def.
10940 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10941 arm_selected_tune here.
10942 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10943 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10944 (march=, mcpu=, mtune=): Use Enum and Var.
10945 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10946 (arm.o): Update dependencies.
10947
10948 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
10949
10950 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10951 of header_file.
10952 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10953 (write_typed_alloc_defns): Likewise.
10954 (main): Calls write_typed_alloc_defns with output_header.
10955
10956 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10957
10958 PR inline-asm/48435
10959 * ira-color.c (setup_profitable_hard_regs): Add comments.
10960 Don't take prohibited hard regs into account.
10961 (setup_conflict_profitable_regs): Rename to
10962 get_conflict_profitable_regs.
10963 (check_hard_reg_p): Check prohibited hard regs.
10964
10965 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10966
10967 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10968 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10969 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10970
10971 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10972
10973 PR target/48366
10974 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10975 move from floating point to shift amount register.
10976 (emit_move_sequence): Remove secondary reload support for floating
10977 point to shift amount amount register copies.
10978 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10979 amount register copies.
10980 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10981 register, return false if mode isn't a scalar integer mode.
10982 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10983
10984 2011-04-08 Richard Guenther <rguenther@suse.de>
10985
10986 * gimple.c (gimple_call_flags): Remove kludge.
10987
10988 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10989
10990 * sel-sched.c (sel_region_init): Move call to
10991 sel_setup_region_sched_flags after setup_current_loop_nest.
10992
10993 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
10994
10995 PR rtl-optimization/48272
10996 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10997 init_insn_reg_pressure_info. Adjust a caller.
10998 * sched-int.h (init_insn_reg_pressure_info): Declare.
10999 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
11000 when sched-pressure is enabled.
11001
11002 2011-04-08 Richard Guenther <rguenther@suse.de>
11003
11004 * gimple.c (gimple_set_modified): Do not queue calls to
11005 MODIFIED_NORETURN_CALLS here ...
11006 * tree-ssa-operands.c (update_stmt_operands): ... but here.
11007
11008 2011-04-08 Richard Guenther <rguenther@suse.de>
11009
11010 PR lto/48467
11011 * toplev.c (lang_dependent_init): Do not open asm_out_file
11012 in WPA mode, nor perform debug machinery initialization.
11013 (finalize): Do not unlink asm_out_file in WPA mode.
11014
11015 2011-04-08 Richard Guenther <rguenther@suse.de>
11016
11017 * gimple.h (gimple_call_fntype): New function.
11018 (gimple_call_return_type): Use it.
11019 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
11020 * gimple-low.c (gimple_check_call_args): Likewise.
11021 * gimple.c (gimple_call_flags): Likewise.
11022 (gimple_call_arg_flags): Likewise.
11023 (gimple_call_return_flags): Likewise.
11024 * tree-cfg.c (verify_gimple_call): Likewise.
11025 (do_warn_unused_result): Likewise.
11026 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11027 * value-prof.c (gimple_ic_transform): Fix fndecl check.
11028
11029 2011-04-08 Dmitry Melnik <dm@ispras.ru>
11030
11031 PR rtl-optimization/48235
11032 * sel-sched.c (code_motion_process_successors): Recompute the last
11033 insn in basic block if control flow changed.
11034 (code_motion_path_driver): Ditto. Recompute the first insn as well.
11035 Update condition for ilist_remove.
11036
11037 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11038
11039 PR rtl-optimization/48302
11040 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
11041 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
11042 it to record added preheader blocks.
11043 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
11044 on to sel_add_loop_preheaders.
11045 (sel_region_init): Move call to setup_current_loop_nest after
11046 sel_init_bbs.
11047
11048 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11049
11050 PR target/48273
11051 * cfgloop.h (loop_has_exit_edges): New helper.
11052 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
11053 non-clonable.
11054 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
11055 that have no exit edges.
11056
11057 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11058
11059 PR rtl-optimization/48442
11060 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
11061 all callers. Adjust assert.
11062
11063 2011-04-08 Jakub Jelinek <jakub@redhat.com>
11064
11065 PR tree-optimization/48377
11066 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
11067 is_packed to true even for types with smaller TYPE_ALIGN than
11068 TYPE_SIZE.
11069
11070 2011-04-08 Richard Guenther <rguenther@suse.de>
11071
11072 PR bootstrap/48513
11073 * doc/tm.texi: Re-generate.
11074
11075 2011-04-08 Wei Guozhi <carrot@google.com>
11076
11077 PR target/47855
11078 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
11079 * config/arm/arm.c (arm_attr_length_push_multi): New function.
11080 * config/arm/arm.md (*push_multi): Change the length computation to
11081 call a C function.
11082
11083 2011-04-08 Anatoly Sokolov <aesok@post.ru>
11084
11085 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
11086 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
11087 * doc/tm.texi: Regenerate.
11088 * system.h (ASM_OUTPUT_BSS): Poison.
11089 * varasm.c (asm_output_bss): Remove function.
11090 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
11091
11092 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
11093 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
11094 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
11095 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11096 Likewise.
11097 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11098 Likewise.
11099 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11100 Likewise.
11101 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11102
11103 2011-04-07 Joseph Myers <joseph@codesourcery.com>
11104
11105 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
11106 EnumValue lines.
11107
11108 2011-04-07 Joseph Myers <joseph@codesourcery.com>
11109
11110 * config/m68k/m68k.c (m68k_handle_option): Don't handle
11111 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
11112 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
11113 OPT_mcpu32.
11114 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11115 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
11116 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
11117 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
11118 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
11119 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
11120 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11121 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
11122 options. Don't map other m68k options manually. Don't handle
11123 old-style options as canonical.
11124 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11125 * doc/install.texi (m68k-*-*): Document binutils version requirement.
11126
11127 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
11128
11129 * basic-block.h (force_nonfallthru): Move to...
11130 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
11131 (force_nonfallthru): ...here.
11132 * cfghooks.c (force_nonfallthru): New function.
11133 * cfgrtl.c (force_nonfallthru): Rename into...
11134 (rtl_force_nonfallthru): ...this.
11135 (commit_one_edge_insertion): Do not set AUX field.
11136 (commit_edge_insertions): Do not discover new basic blocks.
11137 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
11138 (cfg_layout_rtl_cfg_hooks): Likewise.
11139 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
11140 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
11141 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
11142
11143 2011-04-07 Anatoly Sokolov <aesok@post.ru>
11144
11145 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11146 Remove macros.
11147
11148 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
11149
11150 * config/i386/sse.md: Update copyright year.
11151 (avxcvtvecmode): Remove.
11152 (sse_movhlps): Merge with *avx_movhlps.
11153 (sse_movlhps): Merge with *avx_movlhps.
11154 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
11155 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
11156 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
11157 (sse_loadhps): Merge with *avx_loadhps.
11158 (sse_storelps): Merge with *avx_storelps.
11159 (sse_loadlps): Merge with *avx_loadlps.
11160 (sse_movss): Merge with *avx_movss.
11161 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
11162 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
11163 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
11164 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
11165 (vec_set<mode>_0): Ditto.
11166 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
11167 (sse4_1_insertps): Merge with *avx_insertps.
11168 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
11169 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
11170 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
11171 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
11172 (sse2_storehpd): Merge with *avx_storehpd.
11173 (sse2_loadhpd): Merge with *avx_loadhpd.
11174 (sse2_loadlpd): Merge with *avx_loadlpd.
11175 (sse2_movsd): Merge with *avx_movsd.
11176 (*vec_concatv2df): Merge with *vec_concatv2df.
11177
11178 2011-04-07 Jakub Jelinek <jakub@redhat.com>
11179
11180 PR debug/48343
11181 * combine.c (combine_instructions): Add last_combined_insn,
11182 update it if insn is after it, pass it to all try_combine calls.
11183 (try_combine): Add last_combined_insn parameter, pass it instead of
11184 i3 to propagate_for_debug.
11185
11186 2011-04-07 Nick Clifton <nickc@redhat.com>
11187
11188 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
11189 to handle MDR <-> data register transfers.
11190 (movhi_internal): Likewise.
11191
11192 2011-04-07 Alan Modra <amodra@gmail.com>
11193
11194 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
11195 previous stack info.
11196
11197 2011-04-07 Tom de Vries <tom@codesourcery.com>
11198
11199 PR target/43920
11200 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
11201 flow_find_cross_jump. Swap variables to implement backward replacement.
11202 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
11203
11204 2011-04-07 Tom de Vries <tom@codesourcery.com>
11205
11206 PR target/43920
11207 * cfgcleanup.c (walk_to_nondebug_insn): New function.
11208 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
11209 and bb2.
11210 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11211 src1 or src2. Redirect edges to the last basic block. Update
11212 frequency and count on multiple basic blocks in case of fallthru.
11213
11214 2011-04-07 Tom de Vries <tom@codesourcery.com>
11215
11216 PR target/43920
11217 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11218 function.
11219 (old_insns_match_p): Change return type. Replace return false/true
11220 with return dir_none/dir_both. Use can_replace_by.
11221 (flow_find_cross_jump): Add dir_p parameter. Init replacement
11222 direction from dir_p. Register replacement direction in dir, last_dir
11223 and afterlast_dir. Handle new return type of old_insns_match_p using
11224 merge_dir. Return replacement direction in dir_p.
11225 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11226 return type of old_insns_match_p.
11227 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11228 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11229 flow_find_cross_jump.
11230 * basic-block.h (enum replace_direction): New type.
11231 (flow_find_cross_jump): Add parameter to declaration.
11232
11233 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11234
11235 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11236 (AVXMODEDCVTPS2DQ): Ditto.
11237 (VEC_FLOAT_MODE): Ditto.
11238 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
11239 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11240 (<any_logic:code><mode>3): Use VF mode iterator.
11241 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11242 Use VF mode iterator.
11243 (copysign<mode>3): Use VF mode iterator.
11244 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
11245 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11246 (*<any_logic:code><MODEF:mode>3): Merge with
11247 *avx_<any_logic:code><MODEF:mode>3.
11248 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11249 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11250 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11251 (avx_cvtdq2ps<avxmodesuffix>): Remove.
11252 (sse2_cvtdq2ps): Use %v modifier.
11253 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11254 (avx_cvtps2dq<avxmodesuffix>): Remove.
11255 (sse2_cvtps2dq): Use %v modifier.
11256 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11257 (avx_cvttps2dq<avxmodesuffix>): Remove.
11258 (sse2_cvttps2dq): Use %v modifier.
11259 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11260 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11261 (sse2_cvtsd2siq): Fix insn template.
11262 (sse2_cvtsd2siq_2): Ditto.
11263 (sse2_cvttsd2siq): Ditto.
11264 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11265 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11266
11267 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11268
11269 * gcov-io.c: Use GCC Runtime Library Exception.
11270
11271 2011-04-06 Jakub Jelinek <jakub@redhat.com>
11272
11273 PR debug/48466
11274 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11275 as base_reg whatever register reg has been eliminated to, instead
11276 of hardcoding STACK_POINTER_REGNUM.
11277
11278 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11279
11280 * doc/tm.texi.in: Document C target hooks as separate from general
11281 target hooks.
11282 * doc/tm.texi: Regenerate.
11283 * genhooks.c (struct hook_desc): Add docname field.
11284 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
11285 docname field.
11286 (hook_array): Include c-target.def.
11287 (emit_documentation): Use docname field in output.
11288 (emit_init_macros): Take docname argument. Only emit definitions
11289 for hooks matching docname.
11290 (main): Expect additional arguments in all cases. Pass argument
11291 to emit_init_macros.
11292 * target.def: Move initial macro definitions and comments to
11293 target-hooks-macros.h.
11294 (gcc_targetcm): Move to c-family/c-target.def.
11295 * target.h (targetcm): Move declaration to c-family/c-target.h.
11296 * targhooks.c (default_handle_c_option): Move to
11297 c-family/c-opts.c.
11298 * targhooks.h (default_handle_c_option): Move declaration to
11299 c-family/c-common.h.
11300 * target-hooks-macros.h: New file.
11301 * config.gcc (target_has_targetcm): Define and use to add to
11302 c_target_objs and cxx_target_objs.
11303 * config/default-c.c: New file.
11304 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11305 of target.h and target-def.h.
11306 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11307 (darwin_objc_construct_string, darwin_cfstring_ref_p,
11308 darwin_check_cfstring_format_arg): Make static.
11309 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11310 TARGET_STRING_OBJECT_REF_TYPE_P,
11311 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11312 * config/darwin-protos.h (darwin_objc_construct_string,
11313 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11314 declare.
11315 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11316 TARGET_STRING_OBJECT_REF_TYPE_P,
11317 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11318 * config/t-darwin (darwin-c.o): Update dependencies.
11319 * system.h (TARGET_HAS_TARGETCM): Poison.
11320 * Makefile.in (TARGET_H): Update.
11321 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11322 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11323 (default-c.o): New target.
11324 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11325 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11326 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
11327 c-target.def.
11328 (build/genhooks.o): Update dependencies.
11329
11330 2011-04-06 Richard Guenther <rguenther@suse.de>
11331
11332 * ipa-inline.c (enum inlining_mode): Remove.
11333 (cgraph_flatten): Use some other token.
11334 (cgraph_edge_early_inlinable_p): New function, split out from ...
11335 (cgraph_perform_always_inlining): New function, split out from ...
11336 (cgraph_decide_inlining_incrementally): ... here.
11337 (cgraph_mark_inline_edge): Adjust.
11338 (cgraph_early_inlining): Re-structure.
11339 (pass_early_inline): Require SSA form.
11340
11341 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
11342 Julian Brown <julian@codesourcery.com>
11343 Mark Shinwell <shinwell@codesourcery.com>
11344
11345 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11346 LO_REGS only for Thumb-1.
11347 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11348 be used in short instructions when optimising for size on Thumb-2.
11349
11350 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11351
11352 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11353 associated with user returns to be preserved.
11354
11355 2011-04-06 Tristan Gingold <gingold@adacore.com>
11356
11357 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11358 symbol_queue_size, DBXOUT_DECR_NESTING,
11359 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11360 if XCOFF_DEBUGGING_INFO.
11361
11362 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11363
11364 * config/i386/i386.md (attribute isa): New.
11365 (attribute enabled): New.
11366 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11367 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11368 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11369 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11370 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11371 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11372 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11373 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11374
11375 * config/i386/sse.md (VF): New mode iterator.
11376 (VF1): Ditto.
11377 (VF2): Ditto.
11378 (VF_128): Ditto.
11379 (SSEMODEF4): Remove.
11380 (attribute sse): Handle V8SF and V4DF modes.
11381 (<absneg:code><mode>2): Use VF mode iterator.
11382 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
11383 mode iterator.
11384 (<plusminus_insn><mode>3): Use VF mode iterator.
11385 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11386 Use VF mode iterator.
11387 (<sse>_vm<plusminus_insn><mode>3): Merge with
11388 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
11389 (mul<mode>3): Use VF mode iterator.
11390 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
11391 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
11392 mode iterator.
11393 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11394 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11395 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
11396 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
11397 mode iterator.
11398 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11399 Use VF1 mode iterator.
11400 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11401 (sqrt<VF2:mode>2): New expander.
11402 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11403 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11404 and sqrtv2df2. Use VF mode iterator.
11405 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
11406 mode iterator.
11407 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11408 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11409 Use VF1 mode iterator.
11410 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11411 (<smaxmin:code><mode>3): Use VF mode iterator.
11412 (*<smaxmin:code><mode>3_finite): Merge with
11413 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
11414 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11415 (<sse>_vm<smaxmin:code><mode>2): Merge with
11416 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
11417 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
11418 mode iterator.
11419 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
11420 mode iterator.
11421 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11422 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11423 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11424 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11425 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
11426 VF mode iterator.
11427 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11428 Use VF_128 mode iterator.
11429 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
11430 mode iterator.
11431 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
11432 VF_128 mode iterator.
11433 (vcond<mode>): Use VF mode iterator.
11434 * config/i386/predicates.md (sse_comparison_operator): Merge with
11435 avx_comparison_float_operator. Do not declare as special_predicate.
11436 * config/i386/i386.c (struct builtin_description): Update for renamed
11437 compare patterns.
11438 (ix86_expand_args_builtin): Ditto.
11439 (ix86_expand_sse_compare_mask): Ditto.
11440
11441 2011-04-06 Richard Guenther <rguenther@suse.de>
11442
11443 * tree-inline.c (estimate_num_insns): For calls simply account
11444 for all passed arguments and a used return value.
11445
11446 2011-04-06 Richard Guenther <rguenther@suse.de>
11447
11448 PR tree-optimization/47663
11449 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11450 call_stmt_time fields.
11451 (cgraph_edge_inlinable_p): Declare.
11452 (cgraph_edge_recursive_p): New inline function.
11453 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11454 (cgraph_clone_edge): Copy it.
11455 * ipa-inline.c (cgraph_estimate_edge_time): New function.
11456 Account for call stmt time.
11457 (cgraph_estimate_time_after_inlining): Take edge argument.
11458 (cgraph_estimate_edge_growth): Account call stmt size.
11459 (cgraph_estimate_size_after_inlining): Take edge argument.
11460 (cgraph_mark_inline_edge): Adjust.
11461 (cgraph_check_inline_limits): Likewise.
11462 (cgraph_recursive_inlining_p): Remove.
11463 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11464 (cgraph_decide_recursive_inlining): Take edge argument and
11465 adjust.
11466 (cgraph_decide_inlining_of_small_functions): Do not avoid
11467 diags for recursive inlining here.
11468 (cgraph_flatten): Adjust.
11469 (cgraph_decide_inlining_incrementally): Likewise.
11470 (estimate_function_body_sizes): Remove call cost handling.
11471 (compute_inline_parameters): Initialize caller edge call costs.
11472 (cgraph_estimate_edge_growth): New function.
11473 (cgraph_estimate_growth): Use it.
11474 (cgraph_edge_badness): Likewise.
11475 (cgraph_check_inline_limits): Take an edge argument.
11476 (cgraph_decide_inlining_of_small_functions): Adjust.
11477 (cgraph_decide_inlining): Likewise.
11478 * tree-inline.c (estimate_num_insns): Only account for call
11479 return value if it is used.
11480 (expand_call_inline): Avoid diagnostics on recursive inline
11481 functions here.
11482 * lto-cgraph.c (lto_output_edge): Output edge call costs.
11483 (input_edge): Input edge call costs.
11484
11485 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11486
11487 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11488
11489 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
11490
11491 * doc/invoke.texi (Spec Files): Fix typo.
11492
11493 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11494
11495 * profile.c (branch_prob): Move declaration of local variable. Remove
11496 obsolete ??? comment. Expand the location explicitly instead of using
11497 the LOCATION_FILE and LOCATION_LINE macros.
11498
11499 2011-04-06 Wei Guozhi <carrot@google.com>
11500
11501 PR target/47855
11502 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11503 (arm_cond_branch): Likewise.
11504 (arm_cond_branch_reversed): Likewise.
11505 (arm_jump): Likewise.
11506 (push_multi): Likewise.
11507 * config/arm/constraints.md (Py): New constraint.
11508
11509 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11510
11511 PR bootstrap/48471
11512 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11513 Move these...
11514 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11515 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11516 #ifdef DBX_DEBUGGING_INFO.
11517
11518 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
11519
11520 PR bootstrap/48403
11521 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11522 if old and new states differ.
11523
11524 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11525
11526 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11527 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11528 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11529 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11530 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11531 mcfv4e): Use Alias.
11532 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11533 ColdFire options to -mcpu= options.
11534
11535 2011-04-05 Jeff Law <law@redhat.com>
11536
11537 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11538 check if BB is a successor of LOOP->header and return
11539 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11540
11541 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11542
11543 * cprop.c (struct reg_use): Remove.
11544 (reg_use_table): Make an array of RTX.
11545 (find_used_regs, constprop_register, local_cprop_pass,
11546 bypass_block): Simplify users of reg_use_table.
11547 (cprop_insn): Likewise. Iterate if copy propagation succeeded
11548 on one of the uses found by find_used_regs.
11549
11550 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11551
11552 PR bootstrap/48469
11553 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11554 declaration.
11555
11556 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11557
11558 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11559 as an rtx.
11560 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11561
11562 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11563
11564 PR middle-end/48441
11565 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11566
11567 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11568
11569 * combine.c: Include obstack.h.
11570 (struct insn_link): Define.
11571 (uid_log_links): Adjust type.
11572 (FOR_EACH_LOG_LINK): New macro.
11573 (insn_link_obstack): Declare.
11574 (alloc_insn_link): Define.
11575 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
11576 type of link variables.
11577 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11578 (try_combine, record_promoted_values, distribute_notes): Likewise.
11579 (distribute_links): Likewise. Tweak prototype.
11580 (clear_log_links): Delete.
11581 (adjust_for_new_dest): Call alloc_insn_link.
11582 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11583
11584 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11585
11586 * gcse.c (modify_mem_list): Convert to an array of VECs.
11587 (canon_modify_mem_list, compute_transp): Tweak formatting.
11588 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
11589 (load_killed_in_block_p): Likewise.
11590 (record_last_mem_set_info): Likewise.
11591 (clear_modify_mem_tables): Likewise.
11592
11593 2011-04-05 Tom de Vries <tom@codesourcery.com>
11594
11595 PR middle-end/48461
11596 * function.c (emit_use_return_register_into_block): Only define if
11597 HAVE_return.
11598
11599 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
11600
11601 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11602
11603 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11604
11605 * config/rx/rx-opts.h: New.
11606 * config/rx/rx.c (rx_cpu_type): Remove.
11607 (rx_handle_option): Don't assert that global structures are in
11608 use. Access variables via opts pointer. Defer most handling of
11609 OPT_mint_register_. Use error_at.
11610 (rx_option_override): Handle deferred OPT_mint_register_ here.
11611 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11612 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11613 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11614 (rx_cpu_types): New Enum and EnumValue entries.
11615 (mint-register=): Use Defer and use Var accordingly.
11616
11617 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11618
11619 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11620 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11621 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11622 Move these...
11623 (debug_free_queue, debug_nesting, symbol_queue_index):
11624 ...and these...
11625 * dbxout.c: ...to here. Make static.
11626
11627 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11628
11629 * gcse.c (modify_pair): Define. Define a VEC of it.
11630 (canon_modify_mem_list): Convert to an array of VECs.
11631 (free_insn_expr_list_list): Delete.
11632 (clear_modify_mem_tables): Call VEC_free instead.
11633 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11634 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11635 (canon_list_insert, compute_transp): Likewise.
11636
11637 2011-04-05 Tom de Vries <tom@codesourcery.com>
11638
11639 PR target/43920
11640 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11641 for size.
11642
11643 2011-04-05 Tom de Vries <tom@codesourcery.com>
11644
11645 PR target/43920
11646 * function.c (emit_use_return_register_into_block): New function.
11647 (thread_prologue_and_epilogue_insns): Use
11648 emit_use_return_register_into_block.
11649
11650 2011-04-05 Tom de Vries <tom@codesourcery.com>
11651
11652 PR target/43920
11653 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11654 insn.
11655
11656 2011-04-05 Tom de Vries <tom@codesourcery.com>
11657
11658 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11659
11660 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11661
11662 * config/arm/arm.md (define_constants for unspec): Replace with
11663 define_c_enum.
11664 (define_constants for unspecv): Replace with define_c_enum.
11665 * config/arm/neon.md (define_constants for unspec): Replace with
11666 define_c_enum.
11667
11668 2011-04-04 Richard Henderson <rth@redhat.com>
11669
11670 PR bootstrap/48400
11671 * dwarf2out.c (output_line_info): Always emit line info from
11672 at least one section.
11673 (dwarf2out_init): Create text_section_line_info here ...
11674 (set_cur_line_info_table): ... not here.
11675
11676 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
11677
11678 PR target/48380
11679 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11680 not called.
11681
11682 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11683
11684 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11685
11686 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11687 (expr_equiv_p): Remove.
11688 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11689 (hash_scan_set): Update call to insert_set_in_table.
11690 (dump_hash_table): Dump <dest, src> pair.
11691 (lookup_set): Simplify. Lookup <dest, src> pair.
11692 (compute_transp): Remove, fold heavily simplified code into...
11693 (compute_local_properties): ...here. Expect COMP and TRANSP
11694 unconditionally.
11695 (find_avail_set): Take set directly from struct expr.
11696 (find_bypass-set): Likewise.
11697 (bypass_block): Likewise.
11698 (cprop_insn): Likewise. Remove redundant INSN_P test.
11699
11700 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11701 checks on form of COND from find_implicit_sets to here.
11702 (find_implicit_sets): Cleanup control flow. Split critical edges
11703 if it exposes implicit sets. Allocate/resize implicit_sets as
11704 necessary.
11705 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11706 changed something. Run df_analyze after find_implicit_sets if any
11707 edges were split. Do not allocate implicit_sets here.
11708
11709 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11710 (gcse_obstack): Renamed to cprop_obstack.
11711 (GNEW, GNEWVEC, GNEWVAR): Remove.
11712 (gmalloc): Remove.
11713 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11714 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11715 (gcse_alloc): Likewise, and rename to cprop_alloc.
11716 (alloc_gcse_men, free_gcse_mem): Remove.
11717 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11718 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11719 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11720
11721 * cprop.c (oprs_not_set_p): Remove.
11722 (mark_set, mark_clobber): Remove.
11723 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11724 (reg_not_set_p): New function.
11725 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11726 (cprop_insn): Likewise.
11727 (cprop_jump): Use FOR_EACH_EDGE.
11728
11729 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11730
11731 PR bootstrap/48403
11732 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11733 (rank_for_schedule): Use scheduled_insns vector instead of
11734 last_scheduled_insn.
11735 (ok_for_early_queue_removal): Likewise.
11736 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11737 we have a dbg_cnt.
11738 (choose_ready): Likewise.
11739 (commit_schedule): Use VEC_iterate.
11740 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11741 a dbg_cnt, use it and ensure the first insn is in the ready list.
11742 (haifa_sched_init): Allocate scheduled_insns.
11743 (sched_extend_ready_list): Don't allocate it; reserve space.
11744 (haifa_sched_finish): Free it.
11745
11746 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11747
11748 * optc-gen.awk: Always remove type from Variable entry before
11749 recording in var_seen.
11750
11751 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11752
11753 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11754 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11755 call to tidy_fallthru_edges.
11756
11757 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11758
11759 * doc/options.texi (ToLower): Document.
11760 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11761 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11762 * opts.h (cl_option): Add cl_tolower field.
11763 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11764 arguments with lowercase strings.
11765 * config/rx/rx.opt (mcpu=): Add ToLower.
11766 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11767 argument.
11768
11769 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11770
11771 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11772
11773 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11774
11775 * config/vax/vax.c: Include reload.h.
11776
11777 2011-04-04 Anatoly Sokolov <aesok@post.ru>
11778
11779 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11780 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11781 (sparc_preferred_reload_class): New function.
11782
11783 2011-04-04 Jakub Jelinek <jakub@redhat.com>
11784
11785 PR debug/48401
11786 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11787 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11788
11789 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11790
11791 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11792 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11793
11794 2011-04-03 Anatoly Sokolov <aesok@post.ru>
11795
11796 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11797 (ASM_OUTPUT_ALIGNED_BSS): Define.
11798
11799 2011-04-03 Michael Matz <matz@suse.de>
11800
11801 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11802 and next_slot members.
11803 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11804 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11805 (lto_streamer_cache_append): Declare.
11806 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11807 unsigned index, remove offset parameter, ensure that we append
11808 or update existing entries.
11809 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11810 parameter, update next_slot for append.
11811 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11812 parameter.
11813 (lto_streamer_cache_insert_at): Likewise.
11814 (lto_streamer_cache_append): New function.
11815 (lto_streamer_cache_lookup): Use unsigned index.
11816 (lto_streamer_cache_get): Likewise.
11817 (lto_record_common_node): Don't test tree_node_can_be_shared.
11818 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11819 (lto_streamer_cache_delete): Don't free offsets member.
11820 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11821 (lto_output_string_with_length): Use lto_output_data_stream.
11822 (lto_output_tree_header): Remove ix parameter, don't write it.
11823 (lto_output_builtin_tree): Likewise.
11824 (lto_write_tree): Adjust callers to above, don't track and write
11825 offset, write unsigned index.
11826 (output_unreferenced_globals): Don't emit all global vars.
11827 (write_global_references): Use unsigned indices.
11828 (lto_output_decl_state_refs): Likewise.
11829 (write_symbol): Likewise.
11830 * lto-streamer-in.c (lto_input_chain): Move earlier.
11831 (input_function): Use unsigned index.
11832 (input_alias_pairs): Don't read and then ignore all global vars.
11833 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11834 don't pass it back, use lto_streamer_cache_append.
11835 (lto_register_var_decl_in_symtab): Use unsigned index.
11836 (lto_register_function_decl_in_symtab): Likewise.
11837 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11838 index.
11839 (lto_get_builtin_tree): Don't read index, use
11840 lto_streamer_cache_append.
11841 (lto_read_tree): Adjust call to lto_materialize_tree.
11842
11843 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11844 don't use function calls in arguments to MIN.
11845
11846 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11847 twice.
11848
11849 * gimple.c (gimple_type_leader_entry): Mark deletable.
11850
11851 2011-04-03 Alan Modra <amodra@gmail.com>
11852
11853 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11854
11855 2011-04-03 Michael Matz <matz@suse.de>
11856
11857 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11858 an integer.
11859 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11860
11861 2011-04-03 Michael Matz <matz@suse.de>
11862
11863 * cgraphbuild.c (record_reference): Canonicalize constructor values.
11864 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11865 without function context.
11866 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11867 current_function_decl and cfun.
11868
11869 2011-04-03 Michael Matz <matz@suse.de>
11870
11871 * tree.c (decl_init_priority_insert): Don't create entry for
11872 default priority.
11873 (decl_fini_priority_insert): Ditto.
11874 (fields_compatible_p, find_compatible_field): Remove.
11875 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11876 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11877
11878 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11879
11880 * combine.c (try_combine): Remove useless local variable.
11881
11882 2011-04-03 Richard Guenther <rguenther@suse.de>
11883 Ira Rosen <ira.rosen@linaro.org>
11884
11885 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11886 non-variable offsets and compare the remaining bases of the two
11887 accesses instead of looking for exact same data-ref.
11888
11889 2011-04-02 Kai Tietz <ktietz@redhat.com>
11890
11891 PR target/48416
11892 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11893
11894 * i386.c (ix86_is_msabi_thiscall): New helper function.
11895 (ix86_is_type_thiscall): New helper function.
11896 (ix86_comp_type_attributes): Handle thiscall for method-functions
11897 special.
11898 (init_cumulative_args): Likewise.
11899 (find_drap_reg): Likewise.
11900 (ix86_static_chain): Likewise.
11901 (x86_this_parameter): Likewise.
11902 (x86_output_mi_thunk): Likewise.
11903
11904 2011-04-01 Olivier Hainque <hainque@adacore.com>
11905 Nicolas Setton <setton@adacore.com>
11906 Eric Botcazou <ebotcazou@adacore.com>
11907
11908 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11909 (add_gnat_descriptive_type_attribute): New function.
11910 (gen_array_type_die): Call it.
11911 (gen_enumeration_type_die): Likewise.
11912 (gen_struct_or_union_type_die): Likewise.
11913 (modified_type_die): Likewise.
11914 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11915 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11916 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11917
11918 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11919
11920 PR bootstrap/48148
11921 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11922 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11923
11924 Revert:
11925 2011-03-17 Richard Guenther <rguenther@suse.de>
11926
11927 PR bootstrap/48148
11928 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11929 origin for decls in other ltrans units.
11930 (input_varpool_node): Likewise.
11931
11932 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11933
11934 PR middle-end/48335
11935 * expr.c (expand_assignment): Handle all possibilities
11936 if TO_RTX is CONCAT.
11937 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11938 (store_split_bit_field): If SUBREG_REG (op0) or
11939 op0 itself has smaller mode than word, return it
11940 for offset 0 and const0_rtx for out-of-bounds stores.
11941 If word is const0_rtx, skip it.
11942
11943 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11944
11945 * config/h8300/h8300.c (print_operand_address): Rename to...
11946 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11947 Call h8300_print_operand and h8300_print_operand_address instead of
11948 print_operand and print_operand_address. Declare.
11949 (print_operand): Renake to...
11950 (h8300_print_operand): ...this. Make static. Adjust comments.
11951 Call h8300_print_operand instead of print_operand. Declare.
11952 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11953 (h8300_register_move_cost): Likewise.
11954 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11955 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11956 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11957 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11958 * config/h8300/h8300-protos.h (print_operand): Delete.
11959 (print_operand_address): Delete.
11960
11961 2011-04-01 Richard Henderson <rth@redhat.com>
11962
11963 PR 48400
11964 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11965 in strict mode before dwarf4. Re-order tests to early out
11966 before switching sections.
11967
11968 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11969
11970 * config/h8300/constraints.md: New file.
11971 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11972 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11973 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11974 * config/h8300/predicates.md (bit_operand): Likewise.
11975 (incdec_operand): Use satisfies_constraint_M and
11976 satisfies_constraint_O. Don't use C code block.
11977 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11978 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11979 (compute_mov_length): Use satisfies_constraint_G.
11980 (fix_bit_operand): Use satisfies_constraint_U.
11981 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11982 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11983 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11984 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11985 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11986 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11987 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11988 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11989 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11990 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11991 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11992 (EXTRA_MEMORY_CONSTRAINT): Delete.
11993
11994 2011-04-01 Andrew Pinski <pinskia@gmail.com>
11995 Michael Meissner <meissner@linux.vnet.ibm.com>
11996
11997 PR target/48262
11998 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11999 operands, as per the specifications.
12000
12001 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
12002 (vec_extract_evenv4sf): Ditto.
12003 (vec_extract_evenv8hi): Ditto.
12004 (vec_extract_evenv16qi): Ditto.
12005 (vec_extract_oddv4si): Ditto.
12006
12007 2011-03-31 Mark Wielaard <mjw@redhat.com>
12008
12009 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
12010 high_pc attribute if the CU has no associated code. Only output
12011 DW_AT_entry_pc for CU if not generating strict dwarf and
12012 dwarf_version < 4.
12013
12014 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
12015
12016 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
12017 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
12018 out of ...
12019 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
12020 * final.c (final_start_function): Call the new function rather
12021 than using a NULL argument for dwarf2out_frame_debug.
12022
12023 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
12024 that contains the prologue.
12025
12026 * haifa-sched.c (queue_insn): New arg REASON. All callers
12027 changed. Print it in debugging output.
12028
12029 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
12030
12031 * sched-ebb.c (begin_schedule_ready): Remove second argument.
12032 Split most of the code into...
12033 (begin_move_insn): ... here. New function.
12034 (ebb_sched_info): Add a pointer to it.
12035 * haifa-sched.c (scheduled_insns): New static variable.
12036 (sched_extend_ready_list): Allocate it.
12037 (schedule_block): Use it to record the order of scheduled insns.
12038 Perform RTL changes to move insns only after all scheduling
12039 decisions have been made.
12040 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
12041 begin_move_insn field.
12042 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12043 * sched-int.h (struct haifa_sched_info): Remove second argument
12044 from begin_schedule_ready hook. Add new member begin_move_insn.
12045 * sched-rgn.c (begin_schedule_ready): Remove second argument.
12046 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
12047
12048 * haifa-sched.c (prune_ready_list): New function, broken out of
12049 schedule_block.
12050 (schedule_block): Use it.
12051
12052 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12053
12054 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
12055
12056 2011-04-01 Kai Tietz <ktietz@redhat.com>
12057
12058 * config.gcc (*-*-mingw*): Allow as option the
12059 posix threading model.
12060 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
12061 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
12062 definition.
12063 (CPP_SPEC): Add pthread/no-pthread handling.
12064 (LIB_SPEC): Likewise.
12065 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
12066 (LIB_SPEC): Likewise.
12067 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
12068 flag to pass -pthread option for shared libgcc build.
12069 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
12070 for shared libgcc build.
12071 * config/i386/t-mingw-pthread: New file.
12072 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
12073 New define to enable use of library pthread by default.
12074 * config/i386/mingw.opt (pthread): New driver option.
12075 (no-pthread): New driver option.
12076 * config/i386/cygming.opt: Make sure trailing empty line is retained.
12077 * config/i386/mingw-w64.opt: Likewise.
12078
12079 2011-04-01 Gary Funck <gary@intrepid.com>
12080
12081 * c-decl.c (grokdeclarator): Fix formatting.
12082
12083 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12084
12085 * expr.c (emit_block_move_via_movmem): Use n_generator_args
12086 instead of n_operands.
12087 (set_storage_via_setmem): Likewise.
12088 * optabs.c (maybe_gen_insn): Likewise.
12089 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
12090 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
12091 (mips_expand_builtin_direct): Likewise.
12092 * config/spu/spu.c (expand_builtin_args): Likewise.
12093
12094 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12095
12096 * recog.h (insn_data_d): Add n_generator_args.
12097 * genoutput.c (data): Likewise.
12098 (output_insn_data): Print it.
12099 (max_opno, num_dups): Delete.
12100 (scan_operands): Just fill in "d->operand[...]".
12101 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
12102
12103 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12104
12105 * gensupport.h (pattern_stats): New structure.
12106 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
12107 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
12108 (max_operand_1, max_operand_vec): Delete.
12109 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
12110
12111 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
12112
12113 * emit-rtl.c (emit_pattern_after_setloc): New function.
12114 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
12115 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
12116 (emit_pattern_after): New function.
12117 (emit_insn_after, emit_jump_insn_after): Call it.
12118 (emit_call_insn_after, emit_debug_insn_after): Likewise.
12119 (emit_pattern_before_setloc): New function.
12120 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
12121 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
12122 Likewise.
12123 (emit_pattern_before): New function.
12124 (emit_insn_before, emit_jump_insn_before): Call it.
12125 (emit_call_insn_before, emit_debug_insn_before): Likewise.
12126
12127 2011-03-31 Richard Henderson <rth@redhat.com>
12128
12129 * dwarf2out.c (dw_separate_line_info_ref): Remove.
12130 (dw_separate_line_info_entry): Remove.
12131 (enum dw_line_info_opcode): New.
12132 (dw_line_info_entry): Use it.
12133 (dw_line_info_table, dw_line_info_table_p): New.
12134 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
12135 (line_info_table, line_info_label_num): Remove.
12136 (line_info_table_in_use): Remove.
12137 (separate_line_info_table): Remove.
12138 (separate_line_info_table_allocated): Remove.
12139 (separate_line_info_table_in_use): Remove.
12140 (LINE_INFO_TABLE_INCREMENT): Remove.
12141 (line_info_label_num): New.
12142 (cur_line_info_table): New.
12143 (text_section_line_info, cold_text_section_line_info): New.
12144 (separate_line_info): New.
12145 (SEPARATE_LINE_CODE_LABEL): Remove.
12146 (print_dwarf_line_table): Remove.
12147 (debug_dwarf): Don't dump it.
12148 (output_one_line_info_table): New.
12149 (output_line_info): Use it.
12150 (new_line_info_table): New.
12151 (set_cur_line_info_table): New.
12152 (dwarf2out_switch_text_section): Use it.
12153 (dwarf2out_begin_function): Likewise.
12154 (push_dw_line_info_entry): New.
12155 (dwarf2out_source_line): Rewrite for new line info tables.
12156 (dwarf2out_init): Remove dead initailizations.
12157
12158 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12159
12160 * opts.h (cl_option): Add comments to fields. Add bit-fields for
12161 various flags.
12162 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
12163 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
12164 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
12165 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
12166 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
12167 * opt-functions.awk (flag_init, switch_bit_fields): New.
12168 (switch_flags): Don't handle flags moved to bit-fields. Don't
12169 generate CL_MISSING_OK or CL_SAVE.
12170 * optc-gen.awk: Update to generate bit-field output as well as
12171 flags field.
12172 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
12173 bit-field instead of CL_REJECT_DRIVER flag.
12174 * opts-common.c (generate_canonical_option,
12175 decode_cmdline_option): Use bit-fields instead of CL_* flags.
12176 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
12177 instead of CL_REJECT_NEGATIVE flag.
12178 * toplev.c (print_switch_values): Use cl_report bit-field instead
12179 of CL_REPORT flag.
12180
12181 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12182
12183 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
12184 a zero minimum index only if it is redundant.
12185
12186 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
12187
12188 PR rtl-optimization/48381
12189 * ira-color.c (assign_hard_reg): Use hard reg set intersection
12190 instead of ira_class_hard_reg_index for calculating conflicting
12191 hard registers.
12192
12193 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
12194
12195 * cprop.c: Clean up hash table building.
12196 (reg_avail_info): Remove.
12197 (oprs_available_p): Remove.
12198 (record_last_reg_set_info): Remove.
12199 (record_last_set_info): Remove.
12200 (reg_available_p): New function.
12201 (gcse_constant_p): Do not treat unfolded conditions as constants.
12202 (make_set_regs_unavailable): New function.
12203 (hash_scan_set): Simplify with new reg_available_p.
12204 (compute_hash_table_work): Traverse insns stream only once.
12205 Do not compute reg_avail_info. Traverse insns in reverse order.
12206 Record implicit sets after recording explicit sets from the block.
12207
12208 2011-03-31 Michael Matz <matz@suse.de>
12209
12210 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
12211
12212 2011-03-31 Anatoly Sokolov <aesok@post.ru>
12213
12214 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12215 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12216 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12217 (h8300_mode_dependent_address_p): New function.
12218 (h8300_get_index): Make static.
12219
12220 2011-03-31 Jeff Law <law@redhat.com>
12221
12222 * reload1.c (elimination_effects): Fix typo in recent change.
12223
12224 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
12225 typo potentially leading to null pointer dereference.
12226
12227 * caller-save.c (new_saved_hard_reg): Eliminate return value.
12228 (setup_save_areas): Corresponding changes to avoid useless
12229 assignments.
12230
12231 * jump.c (reversed_comparison_code_parts): Avoid successive return
12232 statements when REVERSE_CONDITION is defined.
12233
12234 * expr.c (expand_assignment): Avoid useless assignments.
12235 (expand_expr_real_1): Likewise.
12236 (expand_expr_real_2): Avoid useless statements.
12237
12238 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12239
12240 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12241
12242 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12243 statements.
12244
12245 * stmt.c (expand_expr_stmt): Avoid useless assignment.
12246
12247 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12248
12249 PR target/47109
12250 * doc/tm.texi.in (TARGET_VERSION): Remove.
12251 * doc/tm.texi: Regenerate.
12252 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12253 * collect2.c (main): Don't use TARGET_VERSION.
12254 * mips-tdump.c (main): Don't use TARGET_VERSION.
12255 * mips-tfile.c (main): Don't use TARGET_VERSION.
12256 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12257 * config/rs6000/vxworksae.h: Remove.
12258 * config/alpha/alpha.h (TARGET_VERSION): Remove.
12259 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12260 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12261 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12262 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12263 * config/arm/arm.h (TARGET_VERSION): Remove.
12264 * config/arm/coff.h (TARGET_VERSION): Remove.
12265 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12266 * config/arm/elf.h (TARGET_VERSION): Remove.
12267 * config/arm/freebsd.h (TARGET_VERSION): Remove.
12268 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12269 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12270 * config/arm/pe.h (TARGET_VERSION): Remove.
12271 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12272 * config/arm/semi.h (TARGET_VERSION): Remove.
12273 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12274 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12275 * config/arm/vxworks.h (TARGET_VERSION): Remove.
12276 * config/avr/avr.h (TARGET_VERSION): Remove.
12277 * config/bfin/bfin.h (TARGET_VERSION): Remove.
12278 * config/fr30/fr30.h (TARGET_VERSION): Remove.
12279 * config/frv/frv.h (TARGET_VERSION): Remove.
12280 * config/h8300/h8300.h (TARGET_VERSION): Remove.
12281 * config/i386/cygwin.h (TARGET_VERSION): Remove.
12282 * config/i386/darwin.h (TARGET_VERSION): Remove.
12283 * config/i386/darwin64.h (TARGET_VERSION): Remove.
12284 * config/i386/djgpp.h (TARGET_VERSION): Remove.
12285 * config/i386/freebsd.h (TARGET_VERSION): Remove.
12286 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12287 * config/i386/gnu.h (TARGET_VERSION): Remove.
12288 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12289 * config/i386/i386elf.h (TARGET_VERSION): Remove.
12290 * config/i386/linux.h (TARGET_VERSION): Remove.
12291 * config/i386/linux64.h (TARGET_VERSION): Remove.
12292 * config/i386/lynx.h (TARGET_VERSION): Remove.
12293 * config/i386/mingw32.h (TARGET_VERSION): Remove.
12294 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12295 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12296 * config/i386/netware.h (TARGET_VERSION): Remove.
12297 * config/i386/nto.h (TARGET_VERSION): Remove.
12298 * config/i386/openbsd.h (TARGET_VERSION): Remove.
12299 * config/i386/vxworks.h (TARGET_VERSION): Remove.
12300 * config/ia64/elf.h (TARGET_VERSION): Remove.
12301 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12302 * config/ia64/hpux.h (TARGET_VERSION): Remove.
12303 * config/ia64/linux.h (TARGET_VERSION): Remove.
12304 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12305 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12306 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12307 * config/lm32/lm32.h (TARGET_VERSION): Remove.
12308 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12309 * config/m32c/m32c.h (TARGET_VERSION): Remove.
12310 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12311 * config/m32r/m32r.h (TARGET_VERSION): Remove.
12312 * config/m68k/linux.h (TARGET_VERSION): Remove.
12313 * config/m68k/m68k.h (TARGET_VERSION): Remove.
12314 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12315 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12316 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12317 * config/mep/mep.h (TARGET_VERSION): Remove.
12318 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12319 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12320 * config/mips/iris6.h (MACHINE_TYPE): Remove.
12321 * config/mips/linux.h (TARGET_VERSION): Remove.
12322 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12323 * config/mips/vxworks.h (TARGET_VERSION): Remove.
12324 * config/mmix/mmix.h (TARGET_VERSION): Remove.
12325 * config/mn10300/linux.h (TARGET_VERSION): Remove.
12326 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12327 * config/pa/pa.h (TARGET_VERSION): Remove.
12328 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12329 * config/picochip/picochip.h (TARGET_VERSION): Remove.
12330 * config/rs6000/aix.h (TARGET_VERSION): Remove.
12331 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12332 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12333 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12334 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12335 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12336 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12337 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12338 * config/rs6000/linux.h (TARGET_VERSION): Remove.
12339 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12340 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12341 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12342 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12343 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12344 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12345 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12346 * config/s390/linux.h (TARGET_VERSION): Remove.
12347 * config/s390/s390.h (TARGET_VERSION): Remove.
12348 * config/s390/tpf.h (TARGET_VERSION): Remove.
12349 * config/score/score.h (TARGET_VERSION): Remove.
12350 * config/sh/linux.h (TARGET_VERSION): Remove.
12351 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12352 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12353 * config/sh/sh.h (TARGET_VERSION): Remove.
12354 * config/sh/sh64.h (TARGET_VERSION): Remove.
12355 * config/sh/superh.h (TARGET_VERSION): Remove.
12356 * config/sh/vxworks.h (TARGET_VERSION): Remove.
12357 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12358 * config/sparc/linux.h (TARGET_VERSION): Remove.
12359 * config/sparc/linux64.h (TARGET_VERSION): Remove.
12360 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12361 TARGET_NAME32, TARGET_NAME): Remove.
12362 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12363 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12364 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12365 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12366 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12367 * config/spu/spu.h (TARGET_VERSION): Remove.
12368 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12369 * config/v850/v850.h (TARGET_VERSION): Remove.
12370 * config/vax/linux.h (TARGET_VERSION): Remove.
12371 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12372 * config/xtensa/elf.h (TARGET_VERSION): Remove.
12373 * config/xtensa/linux.h (TARGET_VERSION): Remove.
12374
12375 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12376
12377 PR target/48142
12378 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12379 frame-related from frame-unrelated adjustments to the stack pointer.
12380
12381 2011-03-31 Jakub Jelinek <jakub@redhat.com>
12382
12383 * common.opt (fdebug-types-section): Move earlier.
12384 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12385
12386 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
12387
12388 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12389 var.
12390
12391 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
12392
12393 * tree.h (CASE_CHAIN): Define.
12394 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12395 (gimple_redirect_edge_and_branch): Likewise.
12396
12397 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12398
12399 PR middle-end/48367
12400 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12401 calculation.
12402
12403 2011-03-30 Jeff Law <law@redhat.com>
12404
12405 * PR bootstrap/48371
12406 * reload1.c (reload): Fix botch in last change.
12407
12408 * reload.h (struct reload): Fix typo introduced in last change.
12409
12410 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12411
12412 * config/arm/arm.opt (mhard-float, msoft-float): Mark
12413 Undocumented. Remove help text.
12414 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12415 -mhard-float.
12416
12417 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12418
12419 * doc/options.texi (NegativeAlias): Document.
12420 (Alias): Mention NegativeAlias.
12421 * opt-functions.awk: Handle NegativeAlias.
12422 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
12423 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12424 * opts.h (CL_NEGATIVE_ALIAS): Define.
12425 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12426 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12427 OPT_mspe_.
12428 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12429 Alias entries.
12430 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12431 mno-spe and mno-isel instead of mspe=no and -misel=no.
12432
12433 2011-03-29 Mark Wielaard <mjw@redhat.com>
12434
12435 * common.opt (fdebug-types-section): New flag.
12436 * doc/invoke.texi: Document new -fno-debug-types-section flag.
12437 * dwarf2out.c (use_debug_types): New define.
12438 (struct die_struct): Mark die_id with GTY desc use_debug_types.
12439 (print_die): Guard output of type unit signatures using
12440 use_debug_types.
12441 (build_abbrev_table): Replace assert of dwarf_version >= 4
12442 with assert on use_debug_types.
12443 (size_of_die): Likewise.
12444 (unmark_dies): Likewise.
12445 (value_format): Decide AT_ref_external form on use_debug_types.
12446 (output_die): Replace dwarf_version version check guard with
12447 use_debug_types where appropriate.
12448 (modified_type_die): Likewise.
12449 (gen_reference_type_die): Likewise.
12450 (dwarf2out_start_source_file): Likewise.
12451 (dwarf2out_end_source_file): Likewise.
12452 (prune_unused_types_walk_attribs): Likewise.
12453 (dwarf2out_finish): Likewise.
12454
12455 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12456
12457 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12458
12459 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12460
12461 PR rtl-optimization/48332
12462 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12463 mode of input operand N and modeN to its actual mode.
12464
12465 2011-03-30 Jeff Law <law@redhat.com>
12466
12467 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12468 define accessor macro.
12469 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12470 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12471 (reg_equiv_init): Likewise.
12472 (reg_equivs_size): New variable.
12473 (reg_equiv_init_size): Remove.
12474 (allocate_initial_values): Move prototype to here from....
12475 * integrate.h (allocate_initial_values): Remove prototype.
12476 * integrate.c: Include reload.h.
12477 (allocate_initial_values): Corresponding changes.
12478 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12479 (fix_reg_equiv_init, no_equiv): Corresponding changes.
12480 (update_equiv_regs): Corresponding changes.
12481 (ira): Corresponding changes.
12482 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12483 (push_secondary_reload): Corresponding changes.
12484 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12485 (make_memloc, find_reloads_address): Corresponding changes.
12486 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12487 (find_reloads_address_1): Corresponding changes.
12488 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12489 (refers_to_regno_for_reload_p): Corresponding changes.
12490 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12491 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12492 * reload1.c: Include ggc.h.
12493 (grow_reg_equivs): New function.
12494 (replace_pseudos_in, reload): Corresponding changes.
12495 (calculate_needs_all_insns, alter_regs): Corresponding changes.
12496 (eliminate_regs_1, elimination_effects): Corresponding changes.
12497 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12498 (delete_output_reload): Likewise.
12499 * caller-save.c (mark_referenced_regs): Corresponding changes.
12500 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12501 * frv/predicates.md (frv_load_operand): Corresponding changes.
12502 * microblaze/microblaze.c (double_memory_operand): Corresponding
12503 changes.
12504 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12505 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12506 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12507 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12508 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12509 changes.
12510 * pa/pa.c (emit_move_sequence): Corresponding changes.
12511 * vax/vax.c (nonindexed_address_p): Corresponding changes.
12512
12513 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12514
12515 PR target/47551
12516 * config/arm/arm.c (coproc_secondary_reload_class): Handle
12517 structure modes. Don't check neon_vector_mem_operand for
12518 vector or structure modes.
12519
12520 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12521 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12522
12523 PR target/43590
12524 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12525 operand 1 and reshuffle the operands to match.
12526 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12527
12528 2011-03-30 Christian Schüler <cschueler@gmx.de>
12529
12530 PR driver/48208
12531 * config/c.opt (F): Added 'Driver' to -F option.
12532
12533 PR driver/48260
12534 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12535 handler function.
12536 * config/darwin.opt: Added '-arch' option.
12537
12538 2011-03-30 Nick Clifton <nickc@redhat.com>
12539
12540 * config/rx/rx.md: Add peepholes and patterns to combine
12541 extending loads and simple arithmetic instructions.
12542 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12543 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12544 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12545 modes to use pre-decrement and post-increment addressing.
12546 (rx_is_restricted_memory_address): Add range checking of REG+INT
12547 addresses.
12548 (rx_print_operand): Add support for %Q. Fix handling of %Q.
12549 (rx_memory_move_cost): Adjust cost of stores.
12550 (rx_adjust_insn_length): New function.
12551
12552 2011-03-30 Jakub Jelinek <jakub@redhat.com>
12553
12554 PR c/48305
12555 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12556 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12557 matching arg00/arg01 types.
12558
12559 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
12560
12561 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12562 last_location to UNKNOWN_LOCATION.
12563
12564 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
12565
12566 PR target/48349
12567 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12568 FLOAT_SSE_REGS.
12569
12570 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12571 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12572
12573 PR bootstrap/48337
12574 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12575 Init(PROCESSOR_V7).
12576 (sparc_cpu): Likewise.
12577 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12578 PROCESSOR_V7.
12579
12580 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12581
12582 PR target/48336
12583 PR middle-end/48342
12584 PR rtl-optimization/48345
12585 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12586 hard regs for given mode from profitable regs when doing secondary
12587 allocation.
12588
12589 2011-03-29 Jeff Law <law@redhat.com>
12590
12591 PR bootstrap/48327
12592 * tree-ssa-threadupdate.c (struct redirection_data): Remove
12593 do_not_duplicate field.
12594 (lookup_redirection_data): Corresponding changes.
12595 (create_duplicates): Always create a template block.
12596 (redirect_edges): Remove code which reused the original block
12597 when it was going to become unreachable code.
12598 (thread_block): Don't set do_not_duplicate field.
12599
12600 2011-03-29 Joseph Myers <joseph@codesourcery.com>
12601
12602 * lto-opts.c (register_user_option_p, lto_register_user_option):
12603 Make type argument unsigned.
12604 * lto-streamer.h (lto_register_user_option): Make type argument
12605 unsigned.
12606 * opth-gen.awk: Make CL_* macros unsigned.
12607 * opts-common.c (find_opt): Make lang_mask argument unsigned.
12608 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12609 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12610 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12611 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12612 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12613 (find_opt): Make lang_mask argument unsigned.
12614
12615 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12616
12617 PR rtl-optimization/48331
12618 PR rtl-optimization/48334
12619 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12620 for any used algorithm.
12621
12622 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12623
12624 * ira-conflicts.c (build_object_conflicts): Add unused attribute
12625 to parent_max.
12626
12627 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
12628
12629 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12630 (alpha_option_override): Don't set alpha_sr_alias_set.
12631 (emit_frame_store_1): Use gen_frame_mem rather than calling
12632 set_mem_alias_set.
12633 (alpha_expand_epilogue): Ditto.
12634
12635 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
12636
12637 PR tree-optimization/48290
12638 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12639 vectorization, check that relevant phis in the basic block after
12640 the inner loop are really inner loop's exit phis.
12641
12642 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
12643
12644 PR debug/48190
12645 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12646 (cached_dw_loc_list_def): New structure.
12647 (cached_dw_loc_list): New typedef.
12648 (cached_dw_loc_list_table): New variable.
12649 (cached_dw_loc_list_table_hash): New function.
12650 (cached_dw_loc_list_table_eq): Likewise.
12651 (add_location_or_const_value_attribute): Take a bool cache_p.
12652 Cache the list when the parameter is true.
12653 (gen_formal_parameter_die): Update caller.
12654 (gen_variable_die): Likewise.
12655 (dwarf2out_finish): Likewise.
12656 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12657 while generating debug info for the decl.
12658 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12659 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12660 (resolve_addr): Cache the result of resolving a chain of
12661 location lists.
12662
12663 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12664
12665 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12666 conflict object hard regset nodes have intersecting hard reg sets.
12667
12668 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12669 after regstat_init_n_sets_and_refs.
12670
12671 * ira.c: Add more comments at the top.
12672 (setup_stack_reg_pressure_class, setup_pressure_classes):
12673 Add comments how we compute the register pressure classes.
12674 (setup_allocno_and_important_classes): Add more comments.
12675 (setup_class_translate_array, reorder_important_classes)
12676 (setup_reg_class_relations): Add comments.
12677
12678 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12679 start of the file.
12680
12681 * ira-color.c: Add 2011 to the Copyright line.
12682 (assign_hard_reg): Add more comments.
12683 (improve_allocation): Ditto.
12684
12685 * ira-costs.c: Add 2011 to the Copyright line.
12686 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12687 comments.
12688 (setup_regno_cost_classes_by_mode): Ditto.
12689
12690 Initial patches from ira-improv branch:
12691
12692 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12693
12694 * ira-build.c (ira_create_object): Remove initialization of
12695 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12696 (ira_create_allocno): Remove initialization of
12697 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12698 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12699 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12700 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12701 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12702 Initialize ALLOCNO_ADD_DATA.
12703 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12704 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12705 ALLOCNO_REG.
12706 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12707 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12708
12709 * ira.c (ira_reallocate): Remove.
12710 (setup_pressure_classes): Call
12711 ira_init_register_move_cost_if_necessary. Use
12712 ira_register_move_cost instead of ira_get_register_move_cost.
12713 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12714 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12715
12716 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12717 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12718 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12719 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12720 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12721 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12722 Fix formatting.
12723 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12724 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12725 (struct allocno_color_data): New.
12726 (allocno_color_data_t): New typedef.
12727 (allocno_color_data): New definition.
12728 (ALLOCNO_COLOR_DATA): New macro.
12729 (struct object_color_data): New.
12730 (object_color_data_t): New typedef.
12731 (object_color_data): New definition.
12732 (OBJECT_COLOR_DATA): New macro.
12733 (update_copy_costs, calculate_allocno_spill_cost): Call
12734 ira_init_register_move_cost_if_necessary. Use
12735 ira_register_move_cost instead of ira_get_register_move_cost.
12736 (move_spill_restore, update_curr_costs): Ditto.
12737 (allocno_spill_priority): Make it inline.
12738 (color_pass): Allocate and free allocno_color_dat and object_color_data.
12739 (struct coalesce_data, coalesce_data_t): New.
12740 (allocno_coalesce_data): New definition.
12741 (ALLOCNO_COALESCE_DATA): New macro.
12742 (merge_allocnos, coalesced_allocno_conflict_p): Use
12743 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12744 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12745 (coalesce_allocnos): Ditto.
12746 (setup_coalesced_allocno_costs_and_nums): Ditto.
12747 (collect_spilled_coalesced_allocnos): Ditto.
12748 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12749 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12750 (coalesce_spill_slots): Ditto.
12751 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12752 free allocno_coalesce_data.
12753
12754 * ira-conflicts.c: Fix formatting.
12755 (process_regs_for_copy): Call
12756 ira_init_register_move_cost_if_necessary. Use
12757 ira_register_move_cost instead of ira_get_register_move_cost.
12758 (build_object_conflicts): Optimize.
12759
12760 * ira-costs.c (record_reg_classes): Optimize. Call
12761 ira_init_register_move_cost_if_necessary. Use
12762 ira_register_move_cost, ira_may_move_in_cost, and
12763 ira_may_move_out_cost instead of ira_get_register_move_cost and
12764 ira_get_may_move_cost.
12765 (record_address_regs): Ditto.
12766 (scan_one_insn): Optimize.
12767 (find_costs_and_classes): Optimize.
12768 (process_bb_node_for_hard_reg_moves): Call
12769 ira_init_register_move_cost_if_necessary. Use
12770 ira_register_move_cost instead of ira_get_register_move_cost.
12771
12772 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12773 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12774 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12775 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12776 definitions.
12777 (ira_initiate_emit_data, ira_finish_emit_data)
12778 (create_new_allocno): New functions.
12779 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12780 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12781 Use ira_register_move_cost instead of ira_get_register_move_cost.
12782
12783 * ira-int.h: Fix some comments.
12784 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12785 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12786 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12787 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12788 add_data.
12789 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12790 bitfield after mode. Make hard_regno a short int. Make
12791 hard_regno short. Remove first_coalesced_allocno and
12792 next_coalesced_allocno. Move mem_optimized_dest_p,
12793 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12794 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12795 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12796 temp, colorable_p. Add new member add_data.
12797 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12798 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12799 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12800 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12801 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12802 (ALLOCNO_ADD_DATA): New macro.
12803 (ira_emit_data_t): New typedef.
12804 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12805 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12806 from struct ira_allocno.
12807 (ALLOCNO_EMIT_DATA): New macro.
12808 (ira_allocno_emit_data, allocno_emit_reg): New.
12809 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12810 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12811 (OBJECT_ADD_DATA): New macro.
12812 (ira_reallocate): Remove.
12813 (ira_initiate_emit_data, ira_finish_emit_data): New.
12814 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12815 (ira_init_register_move_cost_if_necessary): New.
12816 (ira_object_conflict_iter_next): Merge into
12817 ira_object_conflict_iter_cond.
12818 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12819
12820 * ira-live.c (process_single_reg_class_operands): Call
12821 ira_init_register_move_cost_if_necessary. Use
12822 ira_register_move_cost instead of ira_get_register_move_cost.
12823
12824 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12825
12826 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12827
12828 * ira-costs.c: Fix formatting.
12829 (cost_classes, cost_classes_num): Remove.
12830 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12831 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12832 (cost_classes_del, cost_classes_htab): New.
12833 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12834 (initiate_regno_cost_classes, setup_cost_classes): New.
12835 (setup_regno_cost_classes_by_aclass): New.
12836 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12837 (record_reg_classes): Use regno_cost_classes instead of
12838 cost_classes. Move checking opposite operand up.
12839 (record_address_regs): Use regno_cost_classes
12840 instead of cost_classes.
12841 (scan_one_insn): Ditto. Use always general register.
12842 (print_allocno_costs): Use regno_cost_classes instead of
12843 cost_classes.
12844 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12845 (find_costs_and_classes): Set up cost classes for each registers.
12846 Use also their mode for this. Use regno_cost_classes instead of
12847 cost_classes.
12848 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12849 cost_classes.
12850 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12851 (ira_costs, ira_set_pseudo_classes): Call
12852 initiate_regno_cost_classes and finish_regno_cost_classes.
12853
12854 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12855
12856 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12857
12858 * target.def (ira_cover_classes): Remove.
12859
12860 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12861
12862 * doc/tm.texi.in: Ditto.
12863
12864 * ira-conflicts.c: Remove mentioning cover classes from the file.
12865 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
12866 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
12867
12868 * targhooks.c (default_ira_cover_classes): Remove.
12869
12870 * targhooks.h (default_ira_cover_classes): Ditto.
12871
12872 * haifa-sched.c: Remove mentioning cover classes from the file.
12873 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12874 ira_pressure_classes and ira_pressure_classes_num instead of
12875 ira_reg_class_cover_size and ira_reg_class_cover. Use
12876 sched_regno_pressure_class instead of sched_regno_cover_class.
12877 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12878 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12879
12880 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12881 classes from the file.
12882 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12883 (struct object_hard_regs, struct object_hard_regs_node): New.
12884 (struct ira_object): New members profitable_hard_regs,
12885 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12886 (struct ira_allocno): Rename cover_class to aclass. Rename
12887 cover_class_cost and updated_cover_class_cost to class_cost and
12888 updated_class_cost. Remove splay_removed_p and
12889 left_conflict_size. Add new members colorable_p.
12890 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12891 (ALLOCNO_COLORABLE_P): New macro.
12892 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12893 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12894 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12895 (OBJECT_...): Rename parameter C to O.
12896 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12897 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12898 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12899 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12900 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12901 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12902 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12903 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12904 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12905 x_ira_reg_class_subunion.
12906 (ira_max_memory_move_cost, ira_max_register_move_cost)
12907 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12908 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12909 (ira_important_class_nums, ira_reg_class_superunion): New macros.
12910 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12911 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12912 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12913 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12914 (ira_tune_allocno_costs_and_cover_classes): Rename to
12915 ira_tune_allocno_costs.
12916 (ira_debug_hard_regs_forest): New.
12917 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12918 (ira_object_conflict_iter_next): Fix comments.
12919 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12920 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12921 cover_class to aclass.
12922 (ira_allocate_and_accumulate_costs): Ditto.
12923 (ira_allocate_and_set_or_copy_costs): Ditto.
12924
12925 * opts.c (decode_options): Remove ira_cover_class check.
12926
12927 * ira-color.c: Remove mentioning cover classes from the file. Use
12928 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12929 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12930 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12931 (splay-tree.h): Remove include.
12932 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12933 before copy_freq_compare_func.
12934 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12935 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12936 New definitions.
12937 (hard_regs_roots, hard_regs_node_vec): Ditto.
12938 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12939 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12940 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12941 (create_new_object_hard_regs_node): Ditto.
12942 (add_new_object_hard_regs_node_to_forest): Ditto.
12943 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12944 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12945 Ditto.
12946 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12947 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12948 (remove_unused_object_hard_regs_nodes): Ditto.
12949 (enumerate_object_hard_regs_nodes): Ditto.
12950 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12951 (object_hard_regs_subnode_t): Ditto.
12952 (struct object_hard_regs_subnode): Ditto.
12953 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12954 (setup_object_hard_regs_subnode_index): Ditto.
12955 (get_object_hard_regs_subnodes_num): Ditto.
12956 (form_object_hard_regs_nodes_forest): Ditto.
12957 (finish_object_hard_regs_nodes_tree): Ditto.
12958 (finish_object_hard_regs_nodes_forest): Ditto.
12959 (allocnos_have_intersected_live_ranges_p): Rename to
12960 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12961 (pseudos_have_intersected_live_ranges_p): Rename to
12962 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12963 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12964 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12965 (update_copy_costs): Remove assert. Skip cost update if the hard
12966 reg does not belong the class.
12967 (assign_hard_reg): Process only profitable hard regs.
12968 (uncolorable_allocnos_num): Make it scalar.
12969 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12970 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12971 and ira_reg_class_max_nregs.
12972 (bucket_allocno_compare_func): Check frequency first.
12973 (sort_bucket): Add compare function as a parameter.
12974 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12975 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12976 (push_allocno_to_stack): Rewrite for checking new allocno
12977 colorability.
12978 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
12979 (push_only_colorable): Pass new parameter to sort_bucket.
12980 (push_allocno_to_spill): Remove.
12981 (allocno_spill_priority_compare): Make it inline and rewrite.
12982 (splay_tree_allocate, splay_tree_free): Remove.
12983 (allocno_spill_sort_compare): New function.
12984 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12985 build and use splay tree. Choose first allocno in uncolorable
12986 allocno bucket to spill. Remove setting spill cost.
12987 (all_conflicting_hard_regs): Remove.
12988 (setup_allocno_available_regs_num): Check only profitable hard
12989 regs. Print info about hard regs nodes.
12990 (setup_allocno_left_conflicts_size): Remove.
12991 (put_allocno_into_bucket): Don't call
12992 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
12993 (improve_allocation): New.
12994 (color_allocnos): Call setup_profitable_hard_regs,
12995 form_object_hard_regs_nodes_forest, improve_allocation,
12996 finish_object_hard_regs_nodes_forest. Setup spill cost.
12997 (print_loop_title): Use pressure classes.
12998 (color_allocnso): Ditto.
12999 (do_coloring): Remove allocation and freeing splay_tree_node_pool
13000 and allocnos_for_spilling.
13001 (ira_sort_regnos_for_alter_reg): Don't setup members
13002 {first,next}_coalesced_allocno.
13003 (color): Remove allocating and freeing removed_splay_allocno_vec.
13004 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
13005 prohibited_class_mode_regs.
13006
13007 * ira-lives.c: Remove mentioning cover classes from the file. Fix
13008 formatting.
13009 (update_allocno_pressure_excess_length): Use pressure classes.
13010 (inc_register_pressure, dec_register_pressure): Check for pressure
13011 class.
13012 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
13013 pressure class. Use ira_reg_class_nregs instead of
13014 ira_reg_class_max_nregs.
13015 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
13016 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
13017 (single_reg_class): Use ira_reg_class_nregs instead of
13018 ira_reg_class_max_nregs.
13019 (process_bb_node_lives): Use pressure classes.
13020
13021 * ira-emit.c: Remove mentioning cover classes from the file. Use
13022 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
13023 (change_loop): Use pressure classes.
13024 (modify_move_list): Call ira_set_allocno_class instead of
13025 ira_set_allocno_cover_class.
13026
13027 * ira-build.c: Remove mentioning cover classes from the file. Use
13028 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
13029 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
13030 ALLOCNO_UPDATED_CLASS_COST instead of
13031 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13032 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
13033 (ira_create_allocno): Remove initialization of
13034 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
13035 ALLOCNO_COLORABLE_P.
13036 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13037 Update conflict regs for the objects.
13038 (create_cap_allocno): Remove assert. Don't propagate
13039 ALLOCNO_AVAILABLE_REGS_NUM.
13040 (ira_free_allocno_costs): New function.
13041 (finish_allocno): Change a part of code into call of
13042 ira_free_allocno_costs.
13043 (low_pressure_loop_node_p): Use pressure classes.
13044 (object_range_compare_func): Don't compare classes.
13045 (setup_min_max_conflict_allocno_ids): Ditto.
13046
13047 * loop-invariant.c: Remove mentioning cover classes from the file.
13048 Use ira_pressure_classes and ira_pressure_classes_num instead of
13049 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
13050 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
13051 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13052 Use reg_allocno_class instead of reg_cover_class.
13053 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
13054 STACK_REG_COVER_CLASS.
13055 (get_regno_cover_class): Rename to get_regno_pressure_class.
13056 (move_loop_invariants): Initialize and finalize regstat.
13057
13058 * ira.c: Remove mentioning cover classes from the file. Add
13059 comments about coloring without cover classes. Use ALLOCNO_CLASS
13060 instead of ALLOCNO_COVER_CLASS. Fix formatting.
13061 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
13062 setup_class_subset_and_memory_move_costs.
13063 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
13064 (setup_cover_and_important_classes): Rename to
13065 setup_allocno_and_important_classes.
13066 (setup_class_translate_array): New.
13067 (setup_class_translate): Call it for allocno and pressure classes.
13068 (cover_class_order): Rename to allocno_class_order.
13069 (comp_reg_classes_func): Use ira_allocno_class_translate instead
13070 of ira_class_translate.
13071 (reorder_important_classes): Set up ira_important_class_nums.
13072 (setup_reg_class_relations): Set up ira_reg_class_superunion.
13073 (print_class_cover): Rename to print_classes. Add parameter.
13074 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13075 Print pressure classes too.
13076 (find_reg_class_closure): Rename to find_reg_classes. Don't call
13077 setup_reg_subclasses.
13078 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13079 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13080 (setup_prohibited_class_mode_regs): Use
13081 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
13082 (clarify_prohibited_class_mode_regs): New function.
13083 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
13084 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
13085 (ira_init_once): Initialize them.
13086 (free_register_move_costs): Process them.
13087 (ira_init): Move calls of find_reg_classes and
13088 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
13089 Call clarify_prohibited_class_mode_regs.
13090 (ira_no_alloc_reg): Remove.
13091 (too_high_register_pressure_p): Use pressure classes.
13092
13093 * sched-deps.c: Remove mentioning cover classes from the file.
13094 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13095 ira_pressure_classes and ira_pressure_classes_num instead of
13096 ira_reg_class_cover_size and ira_reg_class_cover.
13097 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
13098 sched_regno_pressure_class instead of sched_regno_cover_class.
13099 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
13100 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13101
13102 * ira.h: Add 2010 to Copyright.
13103 (ira_no_alloc_reg): Remove external.
13104 (struct target_ira): Rename x_ira_hard_regno_cover_class,
13105 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
13106 x_ira_class_translate to x_ira_hard_regno_allocno_class,
13107 x_ira_allocno_classes_num, x_ira_allocno_classes, and
13108 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
13109 x_ira_pressure_classes, x_ira_pressure_class_translate, and
13110 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
13111 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
13112 x_ira_no_alloc_regs.
13113 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13114 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
13115 ira_allocno_classes_num and ira_allocno_classes.
13116 (ira_class_translate): Rename to ira_allocno_class_translate.
13117 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
13118 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
13119 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13120 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
13121 (ira_no_alloc_regs): New.
13122
13123 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
13124 classes from the file. Use ALLOCNO_CLASS instead of
13125 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
13126 ALLOCNO_COVER_CLASS_COST.
13127 (regno_cover_class): Rename to regno_aclass.
13128 (record_reg_classes): Use ira_reg_class_subunion instead of
13129 ira_reg_class_union.
13130 (record_address_regs): Check overflow.
13131 (scan_one_insn): Ditto.
13132 (print_allocno_costs): Print total mem cost fore regional allocation.
13133 (print_pseudo_costs): Use REG_N_REFS.
13134 (find_costs_and_classes): Use classes intersected with them on the
13135 1st pass. Check overflow. Use ira_reg_class_subunion instead of
13136 ira_reg_class_union. Use ira_allocno_class_translate and
13137 regno_aclass instead of ira_class_translate and regno_cover_class.
13138 Modify code for finding regno_aclass. Setup preferred classes for
13139 the next pass.
13140 (setup_allocno_cover_class_and_costs): Rename to
13141 setup_allocno_class_and_costs. Use regno_aclass instead of
13142 regno_cover_class. Use ira_set_allocno_class instead of
13143 ira_set_allocno_cover_class.
13144 (init_costs, finish_costs): Use regno_aclass instead of
13145 regno_cover_class.
13146 (ira_costs): Use setup_allocno_class_and_costs instead of
13147 setup_allocno_cover_class_and_costs.
13148 (ira_tune_allocno_costs_and_cover_classes): Rename to
13149 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
13150 by processing objects. Use ira_reg_class_max_nregs instead of
13151 ira_reg_class_nregs.
13152
13153 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
13154
13155 * sched-int.h: Remove mentioning cover classes from the file.
13156 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
13157
13158 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
13159 classes from the file.
13160 (struct reg_pref): Rename coverclass into allocnoclass.
13161 (reg_cover_class): Rename to reg_allocno_class.
13162
13163 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
13164
13165 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
13166
13167 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
13168
13169 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
13170
13171 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
13172
13173 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
13174
13175 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
13176
13177 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
13178
13179 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
13180
13181 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
13182
13183 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
13184 (i386_ira_cover_classes): Ditto.
13185
13186 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
13187
13188 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
13189
13190 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
13191
13192 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
13193
13194 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
13195
13196 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
13197
13198 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
13199 (mips_ira_cover_classes): Ditto.
13200
13201 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
13202
13203 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
13204
13205 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
13206
13207 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13208
13209 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13210
13211 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13212 (IRA_COVER_CLASSES_VSX): Ditto.
13213
13214 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13215 (rs6000_ira_cover_classes): Ditto.
13216
13217 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13218
13219 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13220
13221 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13222
13223 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13224
13225 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13226
13227 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13228
13229 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13230
13231 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13232
13233 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13234
13235 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13236
13237 2011-03-29 Jakub Jelinek <jakub@redhat.com>
13238
13239 PR debug/48253
13240 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13241 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13242 dw_fde_unlikely_section_end_label, cold_in_std_section,
13243 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13244 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13245 fields.
13246 (output_fde): Use dw_fde_second_{begin,end} if second is
13247 true, otherwise dw_fde_{begin,end}.
13248 (output_call_frame_info): Test dw_fde_second_begin != NULL
13249 instead of dw_fde_switched_sections.
13250 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13251 fields, initialize new fields. Initialize in_std_section
13252 unconditionally from the first partition.
13253 (dwarf2out_end_epilogue): Don't override dw_fde_end when
13254 dw_fde_second_begin is non-NULL.
13255 (dwarf2out_switch_text_section): Stop initializing removed
13256 dw_fde_struct fields, initialize new fields, initialize
13257 also dw_fde_end here. Set dw_fde_switch_cfi even when
13258 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
13259 (struct var_loc_list_def): Add last_before_switch field.
13260 (arange_table, arange_table_allocated, arange_table_in_use,
13261 ARANGE_TABLE_INCREMENT, add_arange): Removed.
13262 (size_of_aranges): Count !in_std_section and !second_in_std_section
13263 hunks in fdes, instead of looking at arange_table_in_use.
13264 (output_aranges): Add aranges_length argument, don't call
13265 size_of_aranges here. Instead of using aranges_table*
13266 emit ranges for fdes when !in_std_section resp.
13267 !second_in_std_section.
13268 (dw_loc_list): Break ranges crossing section switch.
13269 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
13270 use dw_fde_second_end instead of dw_fde_end as end of last range.
13271 (gen_subprogram_die): Don't call add_arange. Use
13272 dw_fde_{begin,end} for first partition and if switched
13273 section dw_fde_second_{begin,end} for the second.
13274 (var_location_switch_text_section_1,
13275 var_location_switch_text_section): New functions.
13276 (dwarf2out_begin_function): Initialize cold_text_section even
13277 when function_section () isn't text_section.
13278 (prune_unused_types): Don't walk arange_table.
13279 (dwarf2out_finish): Don't needlessly test
13280 flag_reorder_blocks_and_partition when testing cold_text_section_used.
13281 If info_section_emitted, call size_of_aranges and if it indicates
13282 non-empty .debug_aranges, call output_aranges with the computed
13283 size. Stop using removed dw_fde_struct fields, use
13284 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13285 for second.
13286
13287 PR debug/48203
13288 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13289 create ENTRY_VALUE if incoming or address of incoming's MEM
13290 is a hard REG.
13291 * dwarf2out.c (mem_loc_descriptor): Don't emit
13292 DW_OP_GNU_entry_value of DW_OP_fbreg.
13293 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13294 on ENTRY_VALUE is able to find the canonical parameter VALUE.
13295 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13296 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13297 ENTRY_VALUE_EXPs.
13298 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13299 is a REG_P or MEM_P with REG_P address, compute hash directly
13300 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13301 (preserve_only_constants): Don't clear VALUES forwaring
13302 ENTRY_VALUE to some other VALUE.
13303
13304 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
13305
13306 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13307 instead of GEN_INT.
13308
13309 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13310
13311 * cfgexpand.c (expand_gimple_cond): Always set the source location and
13312 block before expanding the statement.
13313 (expand_gimple_stmt_1): Likewise. Set them here...
13314 (expand_gimple_stmt): ...and not here. Tidy.
13315 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13316 unknown.
13317
13318 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13319
13320 * Makefile.in: New rule for cprop.o.
13321 * gcse.c: Move constant/copy propagation to cprop.c.
13322 (compute_local_properties): Only handle expression tables.
13323 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13324 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13325 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13326 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13327 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13328 compute_cprop_data, find_used_regs, try_replace_reg,
13329 find_avail_set, cprop_jump, constprop_register, cprop_insn,
13330 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13331 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13332 find_bypass_set, reg_killed_on_edge, bypass_block,
13333 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13334 execute_rtl_cprop, pass_rtl_cprop): Move to...
13335 * cprop.c: ...here. New file, constant/copy propagation for RTL
13336 moved from gcse.c to here with minor cleanups in duplicated code.
13337
13338 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
13339
13340 * config/i386/i386.c (flag_opts): Fix a typo in
13341 -mavx256-split-unaligned-store.
13342
13343 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13344
13345 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13346 LIBCALL_VALUE): Remove macros.
13347 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13348 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13349 (h8300_function_value, h8300_libcall_value,
13350 h8300_function_value_regno_p): New functions.
13351
13352 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13353
13354 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13355
13356 2011-03-28 Jeff Law <law@redhat.com>
13357
13358 * tree-ssa-threadupdate.c (redirect_edges): Call
13359 create_edge_and_update_destination_phis as needed.
13360 (create_edge_and_update_destination_phis): Accept new BB argument.
13361 All callers updated.
13362 (thread_block): Do not update the profile when threading around
13363 intermediate blocks.
13364 (thread_single_edge): Likewise.
13365 (determine_bb_domination_status): If BB is not a successor of the
13366 loop header, return NONDOMINATING.
13367 (register_jump_thread): Note when we register a jump thread around
13368 an intermediate block.
13369 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13370 (thread_across_edge): Use it.
13371
13372 2011-03-28 Tristan Gingold <gingold@adacore.com>
13373
13374 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13375 when for_return is 2.
13376
13377 2011-03-28 Jeff Law <law@redhat.com>
13378
13379 * var-tracking.c (canonicalize_values_mark): Delete unused
13380 lhs assignment.
13381 (canonicalize_values_star, set_variable_part): Likewise.
13382 (clobber_variable_part, delete_variable_part): Likewise.
13383
13384 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13385
13386 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13387
13388 2011-03-28 Martin Jambor <mjambor@suse.cz>
13389
13390 * tree-inline.c (expand_call_inline): Do not check that destination
13391 node is analyzed.
13392 (optimize_inline_calls): Assert that destination node is analyzed.
13393 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13394 not call tree_lowering_passes.
13395 * cgraph.h (cgraph_analyze_function): Declare.
13396 * cgraphunit.c (cgraph_analyze_function): Make public.
13397
13398 2011-03-28 Joseph Myers <joseph@codesourcery.com>
13399
13400 * config/sparc/sparc-opts.h: New.
13401 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13402 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13403 (sparc_option_override): Store processor_type enumeration rather
13404 than string in cpu_default. Remove name and enumeration from
13405 cpu_table. Directly default -mcpu then default -mtune from -mcpu
13406 without using sparc_select. Use target_flags_explicit instead of
13407 fpu_option_set.
13408 * config/sparc/sparc.h (enum processor_type): Move to
13409 sparc-opts.h.
13410 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13411 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13412 HeaderInclude entry.
13413 (mcpu=, mtune=): Use Var and Enum.
13414 (sparc_processor_type): New Enum and EnumValue entries.
13415
13416 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13417 Iain Sandoe <iains@gcc.gnu.org>
13418
13419 PR target/48245
13420 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13421
13422 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13423
13424 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13425 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13426 Insert new statements at it in lieu of STMT.
13427 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13428 * tree-vect-stmts.c (vectorizable_store): Likewise.
13429 (vectorizable_load): Likewise.
13430
13431 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
13432
13433 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13434 (divtf3): Ditto.
13435 (multf3): Ditto.
13436 (subtf3): Ditto.
13437
13438 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13439
13440 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13441 unaligned 256bit load/store.
13442 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13443 (*avx_movdqu<avxmodesuffix>): Likewise.
13444
13445 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13446
13447 PR target/48288
13448 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13449 * config/pa/pa.md (iordi3): Use new predicate in expander.
13450 (iorsi3): Likewise.
13451
13452 2011-03-27 Anatoly Sokolov <aesok@post.ru>
13453
13454 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13455 FUNCTION_VALUE_REGNO_P): Remove macros.
13456 * config/mips/mips-protos.h (mips_function_value): Remove.
13457 * config/mips/mips.c (mips_function_value): Rename to...
13458 (mips_function_value_1): ... this. Make static. Handle receiving
13459 the function type in 'fn_decl_or_type' argument.
13460 (mips_function_value, mips_libcall_value,
13461 mips_function_value_regno_p): New function.
13462 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13463 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13464
13465 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13466
13467 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13468 and -mavx256-split-unaligned-store.
13469 (ix86_option_override_internal): Split 32-byte AVX unaligned
13470 load/store by default.
13471 (ix86_avx256_split_vector_move_misalign): New.
13472 (ix86_expand_vector_move_misalign): Use it.
13473
13474 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13475 -mavx256-split-unaligned-store.
13476
13477 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13478 256bit load/store. Generate unaligned store on misaligned memory
13479 operand.
13480 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13481 256bit load/store.
13482 (*avx_movdqu<avxmodesuffix>): Likewise.
13483
13484 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13485 -mavx256-split-unaligned-store.
13486
13487 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13488
13489 PR target/38598
13490 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13491 Update commentary.
13492
13493 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13494
13495 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13496 opno arguments with an expand_operand. Use create_input_operand.
13497 (mips_prepare_builtin_target): Delete.
13498 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13499 functions.
13500 (mips_expand_builtin_direct): Use create_output_operand and
13501 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
13502 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
13503 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13504
13505 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
13506
13507 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13508 function.
13509 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13510
13511 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13512
13513 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13514 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
13515 basic blocks and call commit_edge_insertions directly.
13516 (fixup_abnormal_edges): Move from here to...
13517 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
13518 on the edges and return whether some have actually been inserted.
13519 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13520 compensation code.
13521
13522 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
13523
13524 PR rtl-optimization/48144
13525 * sel-sched-ir.c (merge_history_vect): Factor out from ...
13526 (merge_expr_data): ... here.
13527 (av_set_intersect): Rename to av_set_code_motion_filter.
13528 Update all callers. Call merge_history_vect when an expression
13529 is found in both sets.
13530 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13531
13532 2011-03-26 Alan Modra <amodra@gmail.com>
13533
13534 * config/rs6000/predicates.md (word_offset_memref_op): Handle
13535 cmodel medium addresses.
13536 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13537 64-bit gpr loads and stores.
13538 (rs6000_secondary_reload_ppc64): New function.
13539 * config/rs6000/rs6000-protos.h: Declare it.
13540 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13541
13542 2011-03-26 Alan Modra <amodra@gmail.com>
13543
13544 PR target/47487
13545 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13546 GNU Go in traceback table.
13547
13548 2011-03-25 Richard Henderson <rth@redhat.com>
13549
13550 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13551 if there are exactly 6 operands.
13552 (set_storage_via_setmem): Similarly.
13553
13554 2011-03-25 Kai Tietz <ktietz@redhat.com>
13555
13556 * collect2.c (write_c_file_stat): Handle backslash
13557 as right-hand directory separator.
13558 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13559 checking just for slash.
13560 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13561 instead of checking for trailing slash.
13562 * gcc.c (record_temp_file): Use filename_cmp instead
13563 of strcmp.
13564 (do_spec_1): Likewise.
13565 (replace_outfile_spec_function): Likewise.
13566 (is_directory): Use filename_ncmp instead of strncmp.
13567 (print_multilib_info): Likewise.
13568 * gcov.c (find_source): Use filename_cmp instead
13569 instead of strcmp.
13570 (make_gcov_file_name): Fix order of slash/backslash
13571 checks.
13572 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13573 (add_standard_paths): Likewise.
13574 * mips-tfile.c (saber_stop): Handle backslash.
13575 * prefix.c (update_path): Use filename_ncmp instead of
13576 strncmp.
13577 * profile.c (output_location): Use filename_cmp instead
13578 of strcmp.
13579 * read-md.c (handle_toplevel_file): Handle backslash.
13580 * tlink.c (frob_extension): Likewise.
13581 * tree-cfg.c (same_line_p): Use filename_cmp instead of
13582 strcmp.
13583 * tree-dump.c (dequeue_and_dump): Handle backslash.
13584 * tree.c (get_file_function_name): Likewise.
13585 * gengtype.c (read_input_list): Likewise.
13586 (get_file_realbasename): Likewise.
13587 (get_output_file_with_visibility): Use filename_cmp
13588 instead of strcmp.
13589
13590 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
13591
13592 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13593 case to VFPv1.
13594
13595 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13596
13597 * fold-const.c (expr_location_or): New function.
13598 (fold_truth_not_expr): Call it.
13599
13600 2011-03-25 Jeff Law <law@redhat.com>
13601
13602 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13603 va_end.
13604 * c-family/c-common.c (def_fn_type): Likewise.
13605 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13606 * emit-rtl.c (gen_rtvec): Likewise.
13607 * lto/lto-lang.c (def_fn_type): Likewise.
13608
13609 2011-03-25 Richard Guenther <rguenther@suse.de>
13610
13611 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13612 also generate copies.
13613 (fini_copy_prop): Handle constant values properly.
13614
13615 2011-03-25 Jakub Jelinek <jakub@redhat.com>
13616
13617 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13618 mode size instead of bitsize with DWARF2_ADDR_SIZE.
13619 (hash_loc_operands, compare_loc_operands): Handle
13620 DW_OP_GNU_entry_value.
13621
13622 2011-03-25 Kai Tietz <ktietz@redhat.com>
13623
13624 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13625 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13626 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13627 comment and use macro TARGET_64BIT_MS_ABI instead.
13628 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13629 and change default behavior for 32-bit MS_ABI.
13630 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13631 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13632 32-bit, too.
13633 (ix86_cfun_abi): Likewise.
13634 (ix86_maybe_switch_abi): Adjust comment.
13635 (init_cumulative_args): Check for bit-ness in MS_ABI case.
13636 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13637 instead of checking for SYSV_ABI.
13638 (ix86_nsaved_sseregs): Likewise.
13639 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13640 to 16 bytes.
13641 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13642 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13643 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13644 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13645 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13646
13647 2011-03-25 Richard Guenther <rguenther@suse.de>
13648
13649 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13650 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13651 (verify_gimple): Remove.
13652 * tree-cfg.c (verify_gimple_call): Merge verification
13653 from verify_stmts.
13654 (verify_gimple_phi): Merge verification from verify_stmts.
13655 (verify_gimple_label): New function.
13656 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13657 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13658 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13659 (verify_stmts): Rename to verify_gimple_in_cfg.
13660 (verify_gimple_in_cfg): New function.
13661 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13662 * tree-ssa.c (verify_ssa): Likewise.
13663 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13664
13665 2011-03-25 Richard Guenther <rguenther@suse.de>
13666
13667 * passes.c (init_optimization_passes): Add FRE pass after
13668 early SRA.
13669
13670 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13671 Andrew Stubbs <ams@codesourcery.com>
13672
13673 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13674 for Cortex-A8.
13675 (arm_movdi_vfp_cortexa8): New pattern.
13676 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13677 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13678 instructions when tuning for Cortex-A8. Set attribute "arch".
13679 * config/arm/arm.md: Move include arm-tune.md up a bit.
13680 (define_attr "arch"): Add "onlya8" and "nota8" values.
13681 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13682
13683 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13684
13685 PR bootstrap/48282
13686 Revert:
13687 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13688
13689 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13690 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13691 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13692 * passes.c (init_optimization_passes): Move
13693 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13694
13695 2011-03-25 Kai Tietz <ktietz@redhat.com>
13696
13697 * c-typeck.c (comptypes_internal): Replace target
13698 hook call of comp_type_attributes by version in tree.c file.
13699 * gimple.c (gimple_types_compatible_p_1): Likewise.
13700 * tree-ssa.c (useless_type_conversion_p): Likewise.
13701 * tree.c (build_type_attribute_qual_variant): Likewise.
13702 (attribute_value_equal): New static helper function.
13703 (comp_type_attributes): New function.
13704 (merge_attributes): Use attribute_value_equal for comparison.
13705 (attribute_list_contained): Likewise.
13706 * tree.h (comp_type_attributes): New prototype.
13707
13708 2011-03-25 Richard Guenther <rguenther@suse.de>
13709
13710 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13711 of complex types at -O0.
13712 (verify_gimple_assign_binary): Likewise.
13713 (verify_gimple_assign_ternary): Likewise.
13714
13715 2011-03-24 Mark Wielaard <mjw@redhat.com>
13716
13717 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13718 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13719
13720 2011-03-24 Mark Wielaard <mjw@redhat.com>
13721
13722 PR debug/48041
13723 * dwarf2out.c (output_abbrev_section): Only write table when
13724 abbrev_die_table_in_use > 1.
13725
13726 2011-02-24 Richard Henderson <rth@redhat.com>
13727
13728 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13729 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13730 (alpha_expand_unaligned_load_words): Use extql.
13731 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13732 (emit_insxl): Handle all modes for consistency.
13733
13734 2011-02-24 Richard Henderson <rth@redhat.com>
13735
13736 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13737 (alpha_expand_unaligned_load): Likewise.
13738 (alpha_expand_unaligned_store): Likewise.
13739 (alpha_expand_unaligned_load_words): Likewise.
13740 (alpha_expand_unaligned_store_words): Likewise.
13741 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13742 (alpha_split_lock_test_and_set_12): Likewise.
13743 (print_operand, alpha_fold_builtin_extxx): Likewise.
13744 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13745 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13746 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13747 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13748 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13749 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13750 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13751 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13752 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13753 (extwl, extll, extql): Similarly.
13754 (inswh, inslh, insqh): Similarly.
13755 (mskbl, mskwl, mskll, mskql): Similarly.
13756 (mskwh, msklh, mskqh): Similarly.
13757
13758 2011-02-24 Richard Henderson <rth@redhat.com>
13759
13760 * config/alpha/alpha.md (attribute isa): Add er, ner.
13761 (attribute enabled): Handle them.
13762 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13763
13764 2011-02-24 Richard Henderson <rth@redhat.com>
13765
13766 * config/alpha/alpha.md (attribute isa): Add vms.
13767 (attribute enabled): Handle it.
13768 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13769 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13770 (*movtf): Rename from *movtf_internal for consistency.
13771 (*movsi): Merge with *movsi_nt_vms.
13772 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13773 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13774 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13775 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13776
13777 2011-02-24 Richard Henderson <rth@redhat.com>
13778
13779 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13780 (extendqisi2, extendhisi2): Likewise.
13781 (extendqidi2): Simplify BWX/non-BWX expansions.
13782 (extendhidi2): Similarly.
13783
13784 2011-02-24 Richard Henderson <rth@redhat.com>
13785
13786 * config/alpha/alpha.md (attribute isa): New.
13787 (attribute enabled): New.
13788 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13789 (zero_extendqisi2, zero_extendqidi2): Similarly.
13790 (zero_extendhisi2, zero_extendhidi2): Similarly.
13791 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13792
13793 2011-02-24 Richard Henderson <rth@redhat.com>
13794
13795 * config/alpha/predicates.md (input_operand): Revert last change;
13796 update comment to mention 32-bit VMS rather than Windows.
13797
13798 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13799
13800 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13801 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13802 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13803 * passes.c (init_optimization_passes): Move
13804 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13805
13806 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13807
13808 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13809
13810 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13811
13812 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13813 correctly.
13814
13815 2011-03-24 Jakub Jelinek <jakub@redhat.com>
13816
13817 PR debug/48204
13818 * simplify-rtx.c (simplify_const_unary_operation): Call
13819 real_convert when changing mode class with FLOAT_EXTEND.
13820
13821 2011-03-24 Nick Clifton <nickc@redhat.com>
13822
13823 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13824 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13825 * config/rx/rx.c (rx_option_override): Set align_jumps,
13826 align_loops and align_labels if not set by the user.
13827 (rx_align_for_label): New function.
13828 (rx_max_skip_for_label): New function.
13829 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13830 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13831 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13832 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13833 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13834
13835 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13836
13837 PR rtl-optimization/48263
13838 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13839 and original commutative_p handling. Use maybe_gen_insn.
13840
13841 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13842
13843 * reload.c (find_reloads_subreg_address): Add address_reloaded
13844 parameter and return true there if the full address has been
13845 reloaded.
13846 (find_reloads_toplev): Pass address_reloaded flag.
13847 (find_reloads_address_1): Don't use address_reloaded parameter.
13848
13849 2011-03-24 Jeff Law <law@redhat.com>
13850
13851 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13852 unused variable "ann".
13853 (remove_unused_locals): Likewise.
13854
13855 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13856 statement.
13857
13858 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13859 after it is freed.
13860
13861 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13862
13863 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13864 for invalid symbolic addresses.
13865 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13866 larl operands.
13867
13868 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13869
13870 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13871 the argument in calls to fold_truth_not_expr.
13872
13873 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13874
13875 * tree.c (record_node_allocation_statistics): New function.
13876 (make_node_stat, copy_node_stat, build_string): Call it.
13877 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13878 (build1_stat, build_omp_clause): Likewise.
13879
13880 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13881
13882 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13883 last commit.
13884
13885 2011-03-24 Richard Guenther <rguenther@suse.de>
13886
13887 PR tree-optimization/48271
13888 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13889 blocks that still exist.
13890
13891 2011-03-24 Richard Guenther <rguenther@suse.de>
13892
13893 PR tree-optimization/48270
13894 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13895 not free datarefs before ddrs.
13896
13897 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13898
13899 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13900 from the address built for a reference with variable offset.
13901
13902 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13903
13904 PR target/48237
13905 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13906 alternatives that can be handled with movq or movabsq insn.
13907 (*movdf_internal): Disable for !TARGET_64BIT.
13908 (*movdf_internal_nointeger): Ditto.
13909 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13910
13911 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13912
13913 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13914 (FUNCTION_ARG_ADVANCE): Likewise.
13915 * tm.texi.in: Change references to them to hook references.
13916 * tm.texi: Regenerate.
13917 * targhooks.c (default_function_arg): Eliminate check for target macro.
13918 (default_function_incoming_arg): Likewise.
13919 (default_function_arg_advance): Likewise.
13920 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13921 (function_arg_advance): Likewise.
13922 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13923
13924 2011-03-24 Richard Guenther <rguenther@suse.de>
13925
13926 PR middle-end/48269
13927 * tree-object-size.c (addr_object_size): Do not double-account
13928 for MEM_REF offsets.
13929
13930 2011-03-24 Diego Novillo <dnovillo@google.com>
13931
13932 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13933 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13934 (lto_input_data_block): Move from lto-opts.c. Make extern.
13935 Update all users.
13936 (lto_input_string): Rename from input_string. Make extern.
13937 Update all users.
13938 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13939 output_string_with_length.
13940 Output 0 to indicate a non-NULL string. Update all callers to
13941 not emit 0.
13942 (lto_output_string): Rename from output_string. Make extern.
13943 Update all users.
13944 (lto_output_decl_state_streams): Make extern.
13945 (lto_output_decl_state_refs): Make extern.
13946 * lto-streamer.h (lto_input_string): Declare.
13947 (lto_input_data_block): Declare.
13948 (lto_output_string): Declare.
13949 (lto_output_string_with_length): Declare.
13950 (lto_output_decl_state_streams): Declare.
13951 (lto_output_decl_state_refs): Declare.
13952
13953 2011-03-24 Richard Guenther <rguenther@suse.de>
13954
13955 PR tree-optimization/46562
13956 * tree.c (build_invariant_address): New function.
13957 * tree.h (build_invariant_address): Declare.
13958 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13959 a renamed function moved ...
13960 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13961 Take valueization callback parameter.
13962 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13963 * gimple-fold.h: New file.
13964 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13965 (ccp_fold, fold_const_aggregate_ref,
13966 fold_ctor_reference, fold_nonarray_ctor_reference,
13967 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13968 get_base_constructor): Move ...
13969 * gimple-fold.c: ... here.
13970 (gimple_fold_stmt_to_constant_1): New function
13971 split out from ccp_fold. Take a valueization callback parameter.
13972 Valueize all operands.
13973 (gimple_fold_stmt_to_constant): New wrapper function.
13974 (fold_const_aggregate_ref_1): New function split out from
13975 fold_const_aggregate_ref. Take a valueization callback parameter.
13976 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13977 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13978 invariant POINTER_PLUS_EXPRs to invariant form.
13979 (vn_valueize): New function.
13980 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13981 * tree-vrp.c (vrp_valueize): New function.
13982 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13983 to fold statements to constants.
13984 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13985 function declarations.
13986 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13987 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13988
13989 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13990
13991 * config/h8300/predicates.md (jump_address_operand): Fix register
13992 mode check.
13993
13994 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
13995
13996 * doc/invoke.texi (max-stores-to-sink): Document.
13997 * params.h (MAX_STORES_TO_SINK): Define.
13998 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13999 if either vectorization or if-conversion is disabled.
14000 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
14001 tree-vect-data-refs.c vect_equal_offsets.
14002 (dr_equal_offsets_p): New function.
14003 (find_data_references_in_bb): Remove static.
14004 * tree-data-ref.h (find_data_references_in_bb): Declare.
14005 (dr_equal_offsets_p): Likewise.
14006 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
14007 (vect_drs_dependent_in_basic_block): Update calls to
14008 vect_equal_offsets.
14009 (vect_check_interleaving): Likewise.
14010 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
14011 (cond_if_else_store_replacement): Rename to...
14012 (cond_if_else_store_replacement_1): ... this. Change arguments and
14013 documentation.
14014 (cond_if_else_store_replacement): New function.
14015 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
14016 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
14017
14018 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
14019
14020 PR target/46934
14021 * config/arm/arm.md (casesi): Use the gen_int_mode() function
14022 to subtract lower bound instead of GEN_INT().
14023
14024 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
14025
14026 PR other/48179
14027 PR other/48221
14028 PR other/48234
14029 * doc/extend.texi (Alignment): Move section to match order in TOC.
14030 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
14031 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
14032
14033 2011-03-23 Jeff Law <law@redhat.com>
14034
14035 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
14036 before removing the edge.
14037
14038 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
14039 it may have been freed by redirect_branch_edge or
14040 redirect_edge_succ_nodup.
14041
14042 2011-03-23 Richard Guenther <rguenther@suse.de>
14043
14044 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
14045 (check_va_list_escapes): Likewise.
14046 (check_all_va_list_escapes): Likewise.
14047
14048 2011-03-23 Richard Guenther <rguenther@suse.de>
14049
14050 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
14051 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
14052 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
14053 (alias.o): Likewise.
14054 (ipa-type-escape.o): Remove.
14055 (ipa-struct-reorg.o): Likewise.
14056 (GTFILES): Remove ipa-struct-reorg.c.
14057 * alias.c: Do not include ipa-type-escape.h.
14058 * tree-ssa-alias.c: Likewise.
14059 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
14060 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
14061 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
14062 and ipa-type-escape passes.
14063 * tree-pass.h (pass_ipa_type_escape): Remove.
14064 (pass_ipa_struct_reorg): Likewise.
14065 * ipa-struct-reorg.h: Remove.
14066 * ipa-struct-reorg.c: Likewise.
14067 * ipa-type-escape.h: Likewise.
14068 * ipa-type-escape.c: Likewise.
14069 * doc/invoke.texi (-fipa-struct-reorg): Remove.
14070 (--param struct-reorg-cold-struct-ratio): Likewise.
14071 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14072 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14073 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
14074
14075 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14076
14077 * config/s390/2084.md: Enable all insn reservations also for z9_ec
14078 cpu attribute value.
14079 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
14080 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
14081 * config/s390/s390.c (processor_flags_table): New constant array.
14082 (s390_handle_arch_option): Remove.
14083 (s390_handle_option): Remove s390_handle_arch_option invocations
14084 and OPT_mwarn_framesize_ handling.
14085 (s390_option_override): Remove s390_handle_arch_option invocation.
14086 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
14087 warnings.
14088 * config/s390/s390.md (cpu attribute): Add z9_ec value.
14089 * config/s390/s390.opt (s390_tune, s390_arch)
14090 (march=): Replace s390_arch_option enum and values with
14091 processor_type. Set variable name to s390_arch. Set
14092 initialization value.
14093 (mtune=): Replace s390_arch_option with processor_type. Set
14094 variable name to s390_tune. Set initialization value.
14095
14096 2011-03-23 Julian Brown <julian@codesourcery.com>
14097
14098 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
14099 accesses which are not naturally aligned.
14100
14101 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14102
14103 PR target/47553
14104 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
14105
14106 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14107
14108 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
14109 parameter from "int" to "enum insn_code".
14110 (expand_operand_type): New enum.
14111 (expand_operand): New structure.
14112 (create_expand_operand): New function.
14113 (create_fixed_operand, create_output_operand): Likewise
14114 (create_input_operand, create_convert_operand_to): Likewise.
14115 (create_convert_operand_from, create_address_operand): Likewise.
14116 (create_integer_operand): Likewise.
14117 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
14118 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14119 (expand_insn, expand_jump_insn): Likewise.
14120 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
14121 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
14122 (expand_movstr, expand_builtin___clear_cache): Likewise.
14123 (expand_builtin_lock_release): Likewise.
14124 * explow.c (allocate_dynamic_stack_space): Likewise.
14125 (probe_stack_range): Likewise. Allow check_stack to FAIL,
14126 and use the default handling in that case.
14127 * expmed.c (check_predicate_volatile_ok): Delete.
14128 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
14129 (emit_cstore): Likewise.
14130 * expr.c (emit_block_move_via_movmem): Likewise.
14131 (set_storage_via_setmem, expand_assignment): Likewise.
14132 (emit_storent_insn, try_casesi): Likewise.
14133 (emit_single_push_insn): Likewise. Allow the expansion to fail.
14134 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
14135 (expand_vec_shift_expr, expand_binop_directly): Likewise.
14136 (expand_twoval_unop, expand_twoval_binop): Likewise.
14137 (expand_unop_direct, emit_indirect_jump): Likewise.
14138 (emit_conditional_move, vector_compare_rtx): Likewise.
14139 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
14140 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
14141 (expand_sync_lock_test_and_set): Likewise.
14142 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
14143 (emit_unop_insn): Likewise.
14144 (expand_copysign_absneg): Change icode to an insn_code.
14145 (create_convert_operand_from_type): New function.
14146 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
14147 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14148 (expand_insn, expand_jump_insn): Likewise.
14149 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
14150 than const_int_operand for operand 2.
14151
14152 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14153
14154 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
14155 if possible.
14156
14157 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14158
14159 * emit-rtl.c (emit_pattern_before_noloc): New function.
14160 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
14161 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
14162 (emit_pattern_after_noloc): New function.
14163 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
14164 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
14165
14166 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14167
14168 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
14169 (__ffsDI2): Likewise.
14170
14171 2011-03-22 Richard Henderson <rth@redhat.com>
14172
14173 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
14174 of !TARGET_ABI_OPEN_VMS.
14175 (alpha_trampoline_init, alpha_start_function): Likewise.
14176 (alpha_expand_epilogue, alpha_file_start): Likewise.
14177 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
14178 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
14179 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
14180 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
14181 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
14182
14183 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14184
14185 * config/s390/s390-opts.h: New.
14186 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
14187 s390_arch_flags, s390_warn_framesize, s390_stack_size,
14188 s390_stack_guard): Remove.
14189 (s390_handle_arch_option): Return void. Take enum
14190 s390_arch_option value instead of string and searching array.
14191 (s390_handle_option): Don't assert that global structures are in
14192 use. Access variables via opts pointer. Use error_at. Don't use
14193 sscanf for -mstack-guard= or -mstack-size=. Update call to
14194 s390_handle_arch_option.
14195 (s390_option_override): Update call to s390_handle_arch_option.
14196 (s390_emit_prologue): Use %d format for s390_stack_size in
14197 diagnostic. Use %wd for HOST_WIDE_INT.
14198 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
14199 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
14200 * config/s390/s390.opt (config/s390/s390-opts.h): New
14201 HeaderInclude entry.
14202 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
14203 s390_arch_flags, s390_warn_framesize): New Variable entries.
14204 (s390_arch_option): New Enum and EnumValue entries.
14205 (march=): Use Enum instead of Var.
14206 (mstack-guard=, mstack-size=): Use UInteger and Var.
14207 (mtune=): Use Enum.
14208
14209 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14210
14211 * config/score/score.c (score_handle_option): Don't assert that
14212 global structures are in use. Access target_flags via opts
14213 pointer. Use value of -march= option to determine target_flags
14214 settings.
14215 * config/score/score.opt (march=): Use Enum.
14216 (score_arch): New Enum and EnumValue entries.
14217
14218 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14219
14220 * config/mep/mep.c (option_mtiny_specified): Remove.
14221 (mep_option_override): Move register handling for -mivc2 from
14222 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
14223 instead of option_mtiny_specified.
14224 (mep_handle_option): Access target_flags via opts pointer. Don't
14225 assert that global structures are in use. Defer part of -mivc2
14226 handling and move it to mep_option_override.
14227 * config/mep/mep.opt (IVC2): New Mask entry.
14228 (mivc2): Use Var and Defer instead of Mask.
14229
14230 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14231
14232 * config/v850/v850-opts.h: New.
14233 * config/v850/v850.c (small_memory): Replace with
14234 small_memory_physical_max array. Make that array static const.
14235 (v850_handle_memory_option): Take integer value of argument. Take
14236 gcc_options pointer, option text and location. Return void.
14237 Update for changes to small memory structures.
14238 (v850_handle_option): Access target_flags via opts pointer. Don't
14239 assert that global structures are in use. Update calls to
14240 v850_handle_memory_option.
14241 (v850_encode_data_area): Update references to small memory settings.
14242 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
14243 (enum small_memory_type): Move to v850-opts.h.
14244 * config/v850/v850.opt (config/v850/v850-opts.h): New
14245 HeaderInclude entry.
14246 (small_memory_max): New Variable entry.
14247 (msda): Replace by pair of options msda= and msda-. Use UInteger.
14248 (mtda, mzda): Likewise.
14249
14250 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14251
14252 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14253 pointer. Don't assert that global structures are in use.
14254
14255 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14256
14257 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14258 via opts pointer. Don't assert that global structures are in use.
14259
14260 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14261
14262 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14263 (munix=93): Use Var.
14264 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14265 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14266 * config/pa/pa-opts.h: New.
14267 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14268 (pa_handle_option): Don't assert that global structures are in
14269 use. Access target_flags via opts pointer. Don't handle
14270 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14271 OPT_munix_98 here.
14272 (pa_option_override): Handle deferred OPT_mfixed_range_.
14273
14274 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14275
14276 * config/mn10300/mn10300-opts.h: New.
14277 * config/mn10300/mn10300.c (mn10300_processor,
14278 mn10300_tune_string): Remove.
14279 (mn10300_handle_option): Don't assert that global structures are
14280 in use. Access mn10300_processor via opts pointer. Don't handle
14281 OPT_mtune_ here.
14282 * config/mn10300/mn10300.h (enum processor_type): Move to
14283 mn10300-opts.h.
14284 (mn10300_processor): Remove.
14285 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14286 HeaderInclude entry.
14287 (mn10300_processor): New Variable entry.
14288 (mtune=): Use Var.
14289
14290 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14291
14292 * config/microblaze/microblaze.c: Don't include opts.h.
14293 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14294 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14295 (mno-clearbss): Use Var and Warn.
14296
14297 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14298
14299 * config/m32r/m32r-opts.h: New.
14300 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14301 (m32r_handle_option): Don't assert that global structures are in
14302 use. Access target_flags and m32r_cache_flush_func via opts
14303 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
14304 OPT_mno_flush_trap here.
14305 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14306 include of m32r-opts.h.
14307 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14308 HeaderInclude entry.
14309 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14310 (mmodel=): Use Enum and Var.
14311 (m32r_model): New Enum and EnumValue entries.
14312 (mno-flush-trap): Use Var.
14313 (msdata=): Use Enum and Var.
14314 (m32r_sdata): New Enum and EnumValue entries.
14315
14316 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14317
14318 * config/m32c/m32c.c: Don't include opts.h.
14319 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14320 m32c_handle_option): Remove.
14321 (m32c_option_override): Check global_options_set.x_target_memregs
14322 instead of target_memregs_set.
14323 * config/m32c/m32c.h (target_memregs): Remove.
14324 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14325 variable.
14326
14327 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14328
14329 * config/iq2000/iq2000-opts.h: New.
14330 * config/iq2000/iq2000.c: Don't include opts.h.
14331 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14332 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14333 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14334 HeaderInclude entry.
14335 (iq2000_tune): New Variable entry.
14336 (march=): Add comment. Use Enum.
14337 (iq2000_arch): New Enum and EnumValue entries.
14338 (mcpu=): Use Enum and Var.
14339 (iq2000_tune): New Enum and EnumValue entries.
14340
14341 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14342
14343 * config/ia64/ia64-opts.h: New.
14344 * config/ia64/ia64.c (ia64_tune): Remove.
14345 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14346 here. Use error_at.
14347 (ia64_option_override): Handle deferred OPT_mfixed_range_.
14348 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14349 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14350 HeaderInclude entry.
14351 (ia64_tune): New Variable entry.
14352 (mfixed-range=): Use Defer and Var.
14353 (mtune=): Use Enum and Var.
14354 (ia64_tune): New Enum and EnumValue entries.
14355
14356 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14357
14358 * config/frv/frv-opts.h: New.
14359 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14360 frv-opts.h.
14361 (frv_cpu_type): Remove.
14362 * config/frv/frv.c: Don't include opts.h.
14363 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
14364 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
14365 (frv_cpu_type): New Variable entry.
14366 (frv_cpu): New Enum and EnumValue entries.
14367
14368 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14369
14370 * config/cris/cris.c (cris_handle_option): Access target_flags via
14371 opts pointer. Don't assert that global structures are in use.
14372 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14373 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14374
14375 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14376
14377 * config/bfin/bfin-opts.h: New.
14378 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14379 bfin_si_revision, bfin_workarounds): Remove.
14380 (bfin_cpus): Make static const.
14381 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14382 not bfin_lib_id_given.
14383 (bfin_handle_option): Don't set bfin_lib_id_given. Access
14384 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
14385 pointer. Use error_at. Don't assert that global structures are in use.
14386 * config/bfin/bfin.h: Include bfin-opts.h.
14387 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14388 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14389 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14390 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14391 entries.
14392
14393 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14394
14395 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14396 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14397 or -msoft-float here.
14398 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14399 -msoft-float and -mhard-float.
14400 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
14401 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14402 msoft-float.
14403 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14404 -msoft-float.
14405 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14406 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14407 not mhard-float.
14408 (LIBGCC_SPEC): Don't handle -msoft-float.
14409 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14410 -mhard-float.
14411 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14412 msoft-float.
14413 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14414 -mfloat-abi=*, not -msoft-float and -mhard-float.
14415 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14416 -msoft-float.
14417 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14418 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14419 mhard-float and msoft-float.
14420 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14421 mfloat-abi=soft in comments, not mhard-float and msoft-float.
14422 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14423 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14424 mhard-float.
14425 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14426 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14427 msoft-float.
14428 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14429 not mhard-float.
14430 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14431 not msoft-float.
14432
14433 2011-03-22 Richard Henderson <rth@redhat.com>
14434
14435 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14436 TARGET_ABI_WINDOWS_NT.
14437 (alpha_output_function_end_prologue): Likewise.
14438 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14439 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14440 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14441 (trap, *movsi_nt_vms): Likewise.
14442 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14443 (*tablejump_osf_nt_internal): Remove.
14444 * config/alpha/predicates.md (input_operand): Only test Pmode.
14445
14446 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14447
14448 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14449 via opts pointer. Use error_at. Don't assert that global
14450 structures are in use.
14451
14452 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14453
14454 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14455 (ix86_handle_option): Access ix86_isa_flags and
14456 ix86_isa_flags_explicit via opts pointer. Don't assert that
14457 global structures are in use.
14458 (ix86_function_specific_save, ix86_function_specific_restore):
14459 Update ix86_isa_flags_explicit field name.
14460 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14461 (ix86_isa_flags_explicit): Rename TargetSave entry to
14462 x_ix86_isa_flags_explicit.
14463
14464 2011-03-22 Richard Henderson <rth@redhat.com>
14465
14466 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14467 (alpha_option_override, direct_return): Likewise.
14468 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14469 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14470 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14471 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14472 (alpha_expand_epilogue, alpha_end_function): Likewise.
14473 (alpha_init_libfuncs): Likewise.
14474 (struct machine_function): Remove unicosmk members.
14475 (print_operand) ['t']: Remove.
14476 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14477 unicosmk_output_module_name, unicosmk_output_common,
14478 current_section_align, unicosmk_output_text_section_asm_op,
14479 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14480 unicosmk_section_type_flags, unicosmk_unique_section,
14481 unicosmk_asm_named_section, unicosmk_insert_attributes,
14482 unicosmk_output_align, unicosmk_defer_case_vector,
14483 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14484 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14485 unicosmk_output_ssib, unicosmk_add_call_info_word,
14486 unicosmk_extern_head, unicosmk_output_default_externs,
14487 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14488 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14489 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14490 * config/alpha/alpha-protos.h: Update.
14491 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14492 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14493 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14494 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14495 (*mulsi_se, mulvsi3): Likewise.
14496 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14497 (*divmodsi_internal, call, call_value, realign): Likewise.
14498 (moddi3, umoddi3): Likewise; remove duplicate expander.
14499 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14500 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14501 (*movdi_nofix): Remove r/U alternative.
14502 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14503 * config/alpha/constraints.md ("U"): Remove.
14504 * config/alpha/predicates.md (call_operand"): Don't test
14505 TARGET_ABI_UNICOSMK.
14506
14507 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14508
14509 * target.def (handle_option): Take gcc_options and
14510 cl_decoded_option pointers and location_t.
14511 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14512 * doc/tm.texi: Regenerate.
14513 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14514 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14515 * lto-opts.c (lto_reissue_options): Generate option structure for
14516 targetm.handle_option call.
14517 * opts.c (target_handle_option): Update call to
14518 targetm.handle_option. Remove assertions about values now passed
14519 down to hook.
14520 * targhooks.c (default_target_handle_option): New.
14521 * targhooks.h (default_target_handle_option): Declare.
14522 * config/alpha/alpha.c: Include opts.h.
14523 (alpha_handle_option): Update to new hook interface.
14524 * config/arm/arm.c: Include opts.h.
14525 (arm_handle_option): Update to new hook interface.
14526 * config/arm/t-arm (arm.o): Update dependencies.
14527 * config/bfin/bfin.c: Include opts.h.
14528 (bfin_handle_option): Update to new hook interface.
14529 * config/cris/cris.c: Include opts.h.
14530 (cris_handle_option): Update to new hook interface.
14531 * config/frv/frv.c: Include opts.h.
14532 (frv_handle_option): Update to new hook interface.
14533 * config/i386/i386.c: Include opts.h.
14534 (ix86_handle_option): Update to new hook interface.
14535 (ix86_valid_target_attribute_inner_p): Generate option structure
14536 for call to ix86_handle_option.
14537 * config/i386/t-i386 (i386.o): Update dependencies.
14538 * config/ia64/ia64.c: Include opts.h.
14539 (ia64_handle_option): Update to new hook interface.
14540 * config/ia64/t-ia64 (ia64.o): Update dependencies.
14541 * config/iq2000/iq2000.c: Include opts.h.
14542 (iq2000_handle_option): Update to new hook interface.
14543 * config/m32c/m32c.c: Include opts.h.
14544 (m32c_handle_option): Update to new hook interface.
14545 * config/m32r/m32r.c: Include opts.h.
14546 (m32r_handle_option): Update to new hook interface.
14547 * config/m68k/m68k.c: Include opts.h.
14548 (m68k_handle_option): Update to new hook interface.
14549 * config/mep/mep.c: Include opts.h.
14550 (mep_handle_option): Update to new hook interface.
14551 * config/microblaze/microblaze.c: Include opts.h.
14552 (microblaze_handle_option): Update to new hook interface.
14553 * config/mips/mips.c: Include opts.h.
14554 (mips_handle_option): Update to new hook interface.
14555 * config/mn10300/mn10300.c: Include opts.h.
14556 (mn10300_handle_option): Update to new hook interface.
14557 * config/pa/pa.c: Include opts.h.
14558 (pa_handle_option): Update to new hook interface.
14559 * config/pdp11/pdp11.c: Include opts.h.
14560 (pdp11_handle_option): Update to new hook interface.
14561 * config/rs6000/rs6000.c: Include opts.h.
14562 (rs6000_handle_option): Update to new hook interface.
14563 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14564 * config/rx/rx.c: Include opts.h.
14565 (rx_handle_option): Update to new hook interface.
14566 * config/s390/s390.c: Include opts.h.
14567 (s390_handle_option): Update to new hook interface.
14568 * config/score/score.c: Include opts.h.
14569 (score_handle_option): Update to new hook interface.
14570 * config/sh/sh.c: Include opts.h.
14571 (sh_handle_option): Update to new hook interface.
14572 * config/sparc/sparc.c: Include opts.h.
14573 (sparc_handle_option): Update to new hook interface.
14574 * config/v850/v850.c: Include opts.h.
14575 (v850_handle_option): Update to new hook interface.
14576
14577 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14578
14579 * gcc.c (driver_unknown_option_callback): Only permit and save
14580 unknown -Wno- options.
14581 (driver_wrong_lang_callback): Save options directly instead of via
14582 driver_unknown_option_callback.
14583
14584 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14585
14586 * combine.c (simplify_set): Try harder to find the best CC mode when
14587 simplifying a nested COMPARE on the RHS.
14588
14589 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14590
14591 * config/alpha/gnu.h: Remove.
14592 * config/arc: Remove directory.
14593 * config/arm/netbsd.h: Remove.
14594 * config/arm/t-pe: Remove.
14595 * config/crx: Remove directory.
14596 * config/i386/netbsd.h: Remove.
14597 * config/m68hc11: Remove directory.
14598 * config/m68k/uclinux-oldabi.h: Remove.
14599 * config/mcore/mcore-pe.h: Remove.
14600 * config/mcore/t-mcore-pe: Remove.
14601 * config/netbsd-aout.h: Remove.
14602 * config/rs6000/gnu.h: Remove.
14603 * config/sh/sh-symbian.h: Remove.
14604 * config/sh/symbian-base.c: Remove.
14605 * config/sh/symbian-c.c: Remove.
14606 * config/sh/symbian-cxx.c: Remove.
14607 * config/sh/symbian-post.h: Remove.
14608 * config/sh/symbian-pre.h: Remove.
14609 * config/sh/t-symbian: Remove.
14610 * config/svr3.h: Remove.
14611 * config/vax/netbsd.h: Remove.
14612 * config.build: Don't handle i[34567]86-*-pe.
14613 * config.gcc: Remove handling of deprecations for most deprecated
14614 targets.
14615 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14616 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14617 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14618 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14619 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14620 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14621 Remove cases.
14622 * config.host: Don't handle i[34567]86-*-pe.
14623 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14624 (ASM_SPEC32): Don't handle -mcall-gnu.
14625 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14626 -mcall-gnu.
14627 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14628 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14629 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14630 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14631 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14632 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14633 conditional on SYMBIAN.
14634 * configure.ac: Don't handle powerpc*-*-gnu*.
14635 * configure: Regenerate.
14636 * doc/extend.texi (interrupt attribute): Don't mention CRX.
14637 * doc/install-old.texi (m6811, m6812): Don't mention.
14638 * doc/install.texi (arc-*-elf*): Don't document multilib option.
14639 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14640 (m68k-uclinuxoldabi): Don't mention.
14641 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14642 Remove.
14643 (-mcall-gnu): Remove.
14644 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14645 families): Remove constraint documentation.
14646
14647 2011-03-22 Marius Strobl <marius@FreeBSD.org>
14648
14649 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14650 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14651 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14652
14653 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14654
14655 PR target/48226
14656 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14657 vector when peeking at the next token for vector, don't expand the
14658 keywords.
14659
14660 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
14661
14662 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14663 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14664 * config/avr/avr.c (init_cumulative_args)
14665 (avr_function_arg_advance): Use it.
14666 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14667 sibcall epilogues.
14668 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14669 (avr_function_ok_for_sibcall): ...this new function.
14670 (avr_lookup_function_attribute1): New static Function.
14671 (avr_naked_function_p, interrupt_function_p)
14672 (signal_function_p, avr_OS_task_function_p)
14673 (avr_OS_main_function_p): Use it.
14674 * config/avr/avr.md ("sibcall", "sibcall_value")
14675 ("sibcall_epilogue"): New expander.
14676 ("*call_insn", "*call_value_insn"): New insn.
14677 ("call_insn", "call_value_insn"): Remove
14678 ("call", "call_value", "epilogue"): Change expander to handle
14679 sibling calls.
14680
14681 2011-03-21 Nick Clifton <nickc@redhat.com>
14682
14683 * doc/invoke.texi (Overall Options): Move closing brace to end of
14684 options list.
14685 (Optimization Options): Add missing @gol.
14686 (Directory Options): Likewise.
14687 (i386 and x86-64 Options): Likewise.
14688 (RS6000 and PowerPC Options): Likewise.
14689 (i386 and x86-64 Windows Options): Likewise.
14690 (V850 Options): Add text missing from descriptions.
14691
14692 2011-03-22 Richard Henderson <rth@redhat.com>
14693
14694 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14695 (avr_incoming_return_addr_rtx): New.
14696 (emit_push_byte): New.
14697 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14698 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14699 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14700 (emit_pop_byte): New.
14701 (expand_epilogue): Use it. Pop frame pointer by bytes.
14702 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14703 (INCOMING_RETURN_ADDR_RTX): New.
14704 (INCOMING_FRAME_SP_OFFSET): New.
14705 (ARG_POINTER_CFA_OFFSET): New.
14706 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14707 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14708 (pophi): Remove.
14709
14710 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14711
14712 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14713
14714 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14715 (FUNCTION_ARG_ADVANCE): Likewise.
14716 * tm.texi.in: Change references to them to hook references.
14717 * tm.texi: Regenerate.
14718 * targhooks.c (default_function_arg): Eliminate check for target
14719 macro.
14720 (default_function_incoming_arg): Likewise.
14721 (default_function_arg_advance): Likewise.
14722 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14723 (function_arg_advance): Likewise.
14724 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14725
14726 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14727
14728 * tree.c (build_call_1): New function.
14729 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14730
14731 2011-03-22 Richard Guenther <rguenther@suse.de>
14732
14733 PR tree-optimization/48228
14734 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14735 for single-arg PHIs.
14736
14737 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
14738
14739 PR rtl-optimization/48143
14740 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14741 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14742 sse2_cvtps2pd): Likewise.
14743
14744 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14745
14746 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14747
14748 2011-03-22 Richard Guenther <rguenther@suse.de>
14749
14750 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14751 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14752 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14753 and REALIGN_LOAD_EXPR.
14754 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14755 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14756 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14757 DOT_PROD_EXPR case ...
14758 (expand_expr_real_2): ... here.
14759 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14760 and REALIGN_LOAD_EXPR.
14761 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14762 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14763 (vect_create_epilog_for_reduction): Likewise.
14764 (vectorizable_reduction): Likewise.
14765 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14766 * tree-vect-stmts.c (vectorizable_load): Likewise.
14767
14768 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14769
14770 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14771
14772 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14773
14774 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14775 handling for PLTOFF/GOTOFF.
14776
14777 2011-03-22 Nick Clifton <nickc@redhat.com>
14778
14779 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14780 trailing backslash from the end of the macro definition.
14781
14782 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14783
14784 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14785 and PLT unspecs.
14786
14787 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14788
14789 * expr.h (prepare_operand): Move to...
14790 * optabs.h (prepare_operand): ...here and change the insn code
14791 parameter from "int" to "enum insn_code".
14792 (insn_operand_matches): Declare.
14793 * expr.c (init_expr_target): Use insn_operand_matches.
14794 (compress_float_constant): Likewise.
14795 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14796 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14797 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14798 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14799 Likewise.
14800 (gen_cond_trap): Likewise.
14801 (prepare_operand): Likewise. Change icode to an insn_code.
14802 (insn_operand_matches): New function.
14803 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14804 * reload1.c (gen_reload): Likewise.
14805 * targhooks.c (default_secondary_reload): Likewise.
14806
14807 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14808
14809 * config/alpha/alpha.md (unspec): New define_c_enum.
14810 (unspecv): Ditto.
14811
14812 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14813
14814 PR debug/48214
14815 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14816 between a call and its CALL_ARG_LOCATION note.
14817
14818 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14819
14820 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14821
14822 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14823
14824 PR c/42544
14825 PR c/48197
14826 * c-common.c (shorten_compare): If primopN is first sign-extended
14827 to opN and then zero-extended to result type, set primopN to opN.
14828
14829 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14830
14831 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14832 for barrier handlers.
14833
14834 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14835
14836 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14837 UNSPEC constants to be in the unspec enumeration, and redefine
14838 all UNSPECV constants to be in the unspecv enumeration, so that
14839 dumps print which unspec/unspec_volatile this is.
14840 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14841 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14842 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14843 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14844 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14845
14846 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14847 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14848 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14849 * config/rs6000/sync.md (isync, lwsync): Ditto.
14850
14851 2011-03-21 Richard Guenther <rguenther@suse.de>
14852
14853 * params.def (lto-min-partition): Fix typo.
14854
14855 2011-03-21 Richard Guenther <rguenther@suse.de>
14856
14857 PR c/47939
14858 * c-decl.c (grokdeclarator): Drop to the main variant only
14859 for array types. Drop flag_gen_aux_info check.
14860
14861 2011-03-21 Richard Guenther <rguenther@suse.de>
14862
14863 PR translation/47911
14864 * params.def (lto-partitions): Fix typo.
14865 (lto-min-partition): Fix wording.
14866
14867 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
14868
14869 * config/rs6000/t-freebsd: Remove duplication from file.
14870
14871 2011-03-21 Richard Guenther <rguenther@suse.de>
14872
14873 PR middle-end/47661
14874 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14875
14876 2011-03-21 Richard Guenther <rguenther@suse.de>
14877
14878 PR lto/48210
14879 * params.def (lto-partitions): Require at least 1 partition.
14880
14881 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14882
14883 * gthr-solaris.h: Remove.
14884 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14885 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14886 (LIB_SPEC): Likewise.
14887 * config/sol2.opt (threads): Remove.
14888 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14889 (sparc*-*-solaris2*): Likewise.
14890 * configure.ac (enable_threads): Enable solaris support.
14891 * configure: Regenerate.
14892 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14893 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14894 solaris.
14895
14896 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14897
14898 * config.gcc: Obsolete *-*-solaris2.8*.
14899 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14900
14901 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14902
14903 PR bootstrap/48135
14904 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14905 reference. Solaris 8 perl works.
14906
14907 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14908
14909 PR bootstrap/48135
14910 * doc/install.texi (Prerequisites): Move jar etc. up.
14911 Explain support library version requirements.
14912
14913 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14914
14915 PR bootstrap/48135
14916 * doc/install.texi (Prerequisites): Move Perl to build
14917 requirements. Always necessary on Solaris 2 with Sun ld.
14918
14919 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14920
14921 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14922 binutils 2.21.
14923 (Specific, i?86-*-solaris2.[89]): Likewise.
14924 (Specific, i?86-*-solaris2.10): Likewise.
14925 (Specific, mips-sgi-irix6): Likewise.
14926 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14927 Update for binutils 2.21.
14928
14929 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14930
14931 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14932 Allow -fuse-linker-plugin for non-default plugin linker.
14933 * configure: Regenerate.
14934
14935 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14936
14937 PR bootstrap/48167
14938 * gengtype.c (files_rules): Added rule for cp/parser.h.
14939
14940 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14941
14942 PR target/48213
14943 * config/s390/s390.c (s390_delegitimize_address): Don't call
14944 lowpart_subreg if orig_x has BLKmode.
14945
14946 2011-03-21 Kai Tietz <ktietz@redhat.com>
14947
14948 PR target/12171
14949 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14950 * tree.h (attribute_spec): Add new member affects_type_identity.
14951 * attribs.c (empty_attribute_table): Adjust attribute_spec
14952 initializers.
14953 * config/alpha/alpha.c: Likewise.
14954 * config/arc/arc.c: Likewise.
14955 * config/arm/arm.c: Likewise.
14956 * config/avr/avr.c: Likewise.
14957 * config/bfin/bfin.c: Likewise.
14958 * config/crx/crx.c: Likewise.
14959 * config/darwin.h: Likewise.
14960 * config/h8300/h8300.c: Likewise.
14961 * config/i386/cygming.h: Likewise.
14962 * config/i386/i386.c: Likewise.
14963 * config/ia64/ia64.c: Likewise.
14964 * config/m32c/m32c.c: Likewise.
14965 * config/m32r/m32r.c: Likewise.
14966 * config/m68hc11/m68hc11.c: Likewise.
14967 * config/m68k/m68k.c: Likewise.
14968 * config/mcore/mcore.c: Likewise.
14969 * config/mep/mep.c: Likewise.
14970 * config/microblaze/microblaze.c: Likewise.
14971 * config/mips/mips.c: Likewise.
14972 * config/rs6000/rs6000.c: Likewise.
14973 * config/rx/rx.c: Likewise.
14974 * config/sh/sh.c: Likewise.
14975 * config/sol2.h: Likewise.
14976 * config/sparc/sparc.c: Likewise.
14977 * config/spu/spu.c: Likewise.
14978 * config/stormy16/stormy16.c: Likewise.
14979 * config/v850/v850.c: Likewise.
14980
14981 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14982
14983 * simplify-rtx.c (simplify_binary_operation_1): Handle
14984 (xor (and A B) C) case when B and C are both constants.
14985
14986 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14987
14988 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14989
14990 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14991
14992 PR bootstrap/48168
14993 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14994
14995 2011-03-20 Jakub Jelinek <jakub@redhat.com>
14996
14997 PR rtl-optimization/48156
14998 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14999 assume df and df_lr are not NULL.
15000
15001 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15002
15003 PR debug/48023
15004 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
15005 between a call and its CALL_ARG_LOCATION note.
15006
15007 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
15008
15009 PR debug/48178
15010 * config/sh/sh.c (find_barrier): Don't emit a constant pool
15011 between a call and its corresponding CALL_ARG_LOCATION note.
15012
15013 2011-03-19 Anatoly Sokolov <aesok@post.ru>
15014
15015 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
15016 instead of loop. Use HARD_REGISTER_NUM_P predicate.
15017 * haifa-sched.c (setup_ref_regs): Ditto.
15018 * caller-save.c (add_used_regs_1): Ditto.
15019 * dse.c (look_for_hardregs): Ditto.
15020 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
15021 * sched-rgn.c (check_live_1): Ditto.
15022
15023 2011-03-18 Joseph Myers <joseph@codesourcery.com>
15024
15025 * c-decl.c (diagnose_mismatched_decls): Give an error for
15026 redefining a typedef with variably modified type.
15027
15028 2011-03-18 Joseph Myers <joseph@codesourcery.com>
15029
15030 * c-decl.c (grokfield): Don't allow typedefs for structures or
15031 unions with no tag by default.
15032 * doc/extend.texi (Unnamed Fields): Update.
15033
15034 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
15035
15036 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
15037 Rewrite using indirect functions.
15038 (lwp_slwpcb): Ditto.
15039 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
15040 (avx_vinsertf128<mode>): Ditto.
15041
15042 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15043
15044 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
15045 unspecs.
15046
15047 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15048
15049 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
15050 splitting between a call and its corresponding CALL_ARG_LOCATION note.
15051
15052 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
15053
15054 PR rtl-optimization/48170
15055 * gcse.c (hoist_code): Remove bogus asserts.
15056
15057 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
15058
15059 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
15060 computation for prologue/epilogue.
15061
15062 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15063
15064 * Makefile.in (check-consistency): Remove.
15065
15066 2011-03-18 Jakub Jelinek <jakub@redhat.com>
15067
15068 PR debug/48176
15069 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
15070 arange_table_in_use is 0, but either text_section_used or
15071 cold_text_section_used is true. Don't call it if
15072 !info_section_emitted.
15073
15074 2011-03-18 Anatoly Sokolov <aesok@post.ru>
15075
15076 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
15077 FUNCTION_VALUE_REGNO_P): Remove.
15078 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
15079 Remove.
15080 * config/avr/avr.c (avr_ret_register): Make static inline.
15081 (avr_function_value_regno_p): New function.
15082 (avr_libcall_value): Make static. Add 'func' argument.
15083 (avr_function_value): Make static. Rename 'func' argument to
15084 'fn_decl_or_type', forward it to avr_libcall_value. Call
15085 avr_ret_register function instead of RET_REGISTER macro.
15086 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15087
15088 2011-03-18 Jason Merrill <jason@redhat.com>
15089
15090 PR c++/23372
15091 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
15092
15093 2011-03-18 Richard Guenther <rguenther@suse.de>
15094
15095 * doc/install.texi (--enable-gold): Remove.
15096 (--with-plugin-ld): Document.
15097 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
15098
15099 2011-03-18 Andrew Pinski <pinskia@gmail.com>
15100
15101 PR middle-end/47790
15102 * expr.c (optimize_bitfield_assignment_op): Revamp to work
15103 again after expansion changes.
15104
15105 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
15106
15107 * combine.c (try_combine): Do simplification only call of
15108 subst() on i2 even when i1 is present. Update comments.
15109
15110 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
15111
15112 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
15113 and UNSPEC_PCREL_SYMOFF.
15114
15115 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15116
15117 * config/s390/s390.md: Use define_c_enum for the unspec constant
15118 definitions.
15119
15120 2011-03-18 Richard Henderson <rth@redhat.com>
15121 Jakub Jelinek <jakub@redhat.com>
15122
15123 PR bootstrap/48161
15124 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
15125 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
15126
15127 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15128
15129 PR middle-end/47725
15130 * combine.c (cant_combine_insn_p): Don't check zero/sign
15131 extended hard registers.
15132
15133 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15134
15135 PR middle-end/47725
15136 * combine.c (cant_combine_insn_p): Check zero/sign extended
15137 hard registers.
15138
15139 2011-03-17 Anatoly Sokolov <aesok@post.ru>
15140
15141 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15142 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
15143 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
15144 Change return type to bool.
15145 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15146
15147 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15148
15149 PR debug/48163
15150 * var-tracking.c (prepare_call_arguments): If CALL target
15151 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
15152 pc instead of looking it up using cselib_lookup and use
15153 Pmode for it if x has VOIDmode.
15154 * dwarf2out.c (gen_subprogram_die): If also both first and
15155 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
15156
15157 PR debug/48163
15158 * function.c (assign_parms): For data.passed_pointer parms
15159 use MEM of data.entry_parm instead of data.entry_parm itself
15160 as DECL_INCOMING_RTL.
15161 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
15162 also when passed and declared mode is the same, DECL_RTL
15163 is a MEM with pseudo as address and DECL_INCOMING_RTL is
15164 a MEM too.
15165
15166 2011-03-16 Jeff Law <law@redhat.com>
15167
15168 PR rtl-optimization/37273
15169 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15170 handle them like argument loads from stack slots. Do not double
15171 count memory for memory constants and argument loads from stack slots.
15172
15173 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15174
15175 PR debug/48160
15176 * var-tracking.c (prepare_call_arguments): Check SUBREG.
15177
15178 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15179
15180 PR target/48171
15181 * config/i386/i386.opt: Add Save to -mavx and -mfma.
15182
15183 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15184
15185 PR bootstrap/48153
15186 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
15187 if dwarf_strict.
15188 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
15189 Clear call_arg_locations and call_arg_loc_last always.
15190
15191 PR middle-end/48152
15192 * var-tracking.c (prepare_call_arguments): If argument needs to be
15193 passed by reference, adjust argtype and mode.
15194
15195 2011-03-17 Richard Guenther <rguenther@suse.de>
15196
15197 PR middle-end/48134
15198 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
15199 a value make sure to fold the statement.
15200
15201 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
15202
15203 PR target/43872
15204 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
15205 return condition with !cfun->calls_alloca.
15206
15207 2011-03-17 Richard Guenther <rguenther@suse.de>
15208
15209 PR bootstrap/48148
15210 * lto-cgraph.c (input_overwrite_node): Clear the abstract
15211 origin for decls in other ltrans units.
15212 (input_varpool_node): Likewise.
15213
15214 2011-03-17 Richard Guenther <rguenther@suse.de>
15215
15216 PR middle-end/48165
15217 * tree-object-size.c (compute_object_offset): Properly return
15218 the offset operand of MEM_REFs as sizetype.
15219
15220 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15221
15222 PR rtl-optimization/48141
15223 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15224 * dse.c: Include params.h.
15225 (active_local_stores_len): New variable.
15226 (add_wild_read, dse_step1): Clear it when setting active_local_stores
15227 to NULL.
15228 (record_store, check_mem_read_rtx): Decrease it when removing
15229 from the chain.
15230 (scan_insn): Likewise. Increase it when adding to chain, if it
15231 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15232 set active_local_stores to NULL before the addition.
15233 * Makefile.in (dse.o): Depend on $(PARAMS_H).
15234
15235 PR rtl-optimization/48141
15236 * dse.c (record_store): If no positions are needed in an insn
15237 that cannot be deleted, at least unchain it from active_local_stores.
15238
15239 2011-03-16 Dodji Seketeli <dodji@redhat.com>
15240
15241 PR debug/47510
15242 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15243 (lookup_type_die_strip_naming_typedef): ... here.
15244 (get_context_die): Use it.
15245 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15246 the anonymous struct named by the naming typedef.
15247
15248 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
15249
15250 PR target/48154
15251 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15252 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15253
15254 2011-03-16 Jeff Law <law@redhat.com>
15255
15256 * tree-vrp.c (identify_jump_threads): Slightly simplify type
15257 check for operands of conditional. Allow type to be a pointer.
15258
15259 2011-03-16 Richard Guenther <rguenther@suse.de>
15260
15261 PR tree-optimization/48149
15262 * fold-const.c (fold_binary_loc): Fold
15263 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15264
15265 2011-03-16 Richard Guenther <rguenther@suse.de>
15266
15267 PR tree-optimization/26134
15268 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15269 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15270 (non_rewritable_mem_ref_base): Handle complex type component
15271 accesses, constrain offsets for vector and complex extracts
15272 more properly.
15273
15274 2011-03-16 Richard Guenther <rguenther@suse.de>
15275
15276 PR tree-optimization/48146
15277 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15278 operands avoiding the need for renaming.
15279
15280 2011-03-16 Richard Guenther <rguenther@suse.de>
15281
15282 * gimple-fold.c (maybe_fold_reference): Open-code relevant
15283 constant folding. Move MEM_REF canonicalization first.
15284 Rely on fold_const_aggregate_ref for initializer folding.
15285 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15286
15287 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15288
15289 PR middle-end/48136
15290 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15291 arg0/arg1 or their arguments are always fold converted to matching
15292 types.
15293
15294 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15295 to nargs.
15296
15297 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15298
15299 PR lto/46944
15300 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15301 Handle in-tree gold.
15302 (ld_vers): Extract binutils version for gold.
15303 (gcc_cv_ld_hidden): Handle gold here.
15304 (gcc_cv_lto_plugin): Determine level of linker plugin support.
15305 * configure: Regenerate.
15306 * config.in: Regenerate.
15307 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15308 -fuse-linker-plugin otherwise.
15309 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
15310 (LINK_COMMAND_SPEC): Use it.
15311 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15312
15313 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15314
15315 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15316 * calls.c: Remove debug.h include.
15317 (emit_call_1): Don't call virtual_call_token debug hook.
15318 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15319 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15320 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15321 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15322 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15323 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15324 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15325 dwarf2out_virtual_call): Remove.
15326 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15327 copy_call_info and virtual_call hooks.
15328 (dwarf2out_init): Don't initialize vcall_insn_table,
15329 debug_dcall_section and debug_vcall_section.
15330 (prune_unused_types): Don't mark nodes from dcall_table.
15331 (dwarf2out_finish): Don't output dcall or vcall tables.
15332 * final.c (final_scan_insn): Don't call direct_call or
15333 virtual_call debug hooks.
15334 * debug.h (struct gcc_debug_hooks): Remove direct_call,
15335 virtual_call_token, copy_call_info and virtual_call hooks.
15336 (debug_nothing_uid): Remove prototype.
15337 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15338 copy_call_info and virtual_call hooks.
15339 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15340 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15341 * debug.c (do_nothing_debug_hooks): Likewise.
15342 (debug_nothing_uid): Remove.
15343 * doc/invoke.texi (-fenable-icf-debug): Remove.
15344 * common.opt (-fenable-icf-debug): Likewise.
15345
15346 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15347 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15348 call's MEM. Handle functions returning aggregate through a hidden
15349 first pointer. For virtual calls add clobbered pc to call arguments
15350 chain.
15351 * dwarf2out.c (gen_subprogram_die): Emit
15352 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15353 can't be emitted.
15354
15355 PR debug/45882
15356 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15357 * rtl.h (ENTRY_VALUE_EXP): Define.
15358 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15359 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15360 * print-rtl.c (print_rtx): Likewise.
15361 * gengtype.c (adjust_field_rtx_def): Likewise.
15362 * var-tracking.c (vt_add_function_parameter): Adjust
15363 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15364 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15365 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15366 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15367 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15368
15369 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15370 Call var_location debug hook even on CALL_INSNs.
15371 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15372 * rtl.def (ENTRY_VALUE): New.
15373 * dwarf2out.c: Include cfglayout.h.
15374 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15375 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15376 (struct call_arg_loc_node): New type.
15377 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15378 tail_call_site_count): New variables.
15379 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15380 DW_TAG_GNU_call_site_parameter.
15381 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15382 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15383 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15384 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15385 and DW_AT_GNU_all_source_call_sites.
15386 (mem_loc_descriptor): Handle ENTRY_VALUE.
15387 (add_src_coords_attributes): Don't add enything if
15388 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15389 (dwarf2out_abstract_function): Save and clear call_arg_location,
15390 call_site_count and tail_call_site_count around dwarf2out_decl call.
15391 (gen_call_site_die): New function.
15392 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15393 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15394 (dwarf2out_function_decl): Clear call_arg_locations,
15395 call_arg_loc_last, set call_site_count and tail_call_site_count
15396 to -1 and free block_map.
15397 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15398 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
15399 followed by any real instructions.
15400 (dwarf2out_begin_function): Set call_site_count and
15401 tail_call_site_count to 0.
15402 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15403 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15404 attempt to force a DIE for it and worst case remove the attribute.
15405 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15406 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15407 the decl itself.
15408 * var-tracking.c: Include tm_p.h.
15409 (vt_stack_adjustments): For calls call note_register_arguments.
15410 (argument_reg_set): New variable.
15411 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15412 ensure the VALUE is resolved.
15413 (call_arguments): New variable.
15414 (prepare_call_arguments): New function.
15415 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15416 (struct expand_loc_callback_data): Add ignore_cur_loc field.
15417 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15418 always use the best expression.
15419 (vt_expand_loc): Add ignore_cur_loc argument.
15420 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15421 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15422 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15423 note for all calls.
15424 (vt_add_function_parameter): Use cselib_lookup_from_insn.
15425 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15426 argument. Don't call cselib_preserve_only_values and
15427 cselib_reset_table.
15428 (note_register_arguments): New function.
15429 (vt_initialize): Compute argument_reg_set. Call
15430 vt_add_function_parameters before processing basic blocks instead of
15431 afterwards. For calls call prepare_call_arguments before calling
15432 cselib_process_insn.
15433 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15434 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15435 (var-tracking.o): Depend on $(TM_P_H).
15436 * cfglayout.h (insn_scope): New prototype.
15437 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15438 * cfglayout.c (insn_scope): No longer static.
15439 * insn-notes.def (CALL_ARG_LOCATION): New.
15440 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15441 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15442 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15443 nothing for DECL_EXTERNAL BLOCK_VARS.
15444
15445 2011-03-16 Alan Modra <amodra@gmail.com>
15446
15447 PR target/45844
15448 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15449 create invalid offset address for vsx splat insn.
15450 * config/rs6000/predicates.md (splat_input_operand): New.
15451 * config/rs6000/vsx.md (vsx_splat_*): Use it.
15452
15453 2011-03-15 Xinliang David Li <davidxl@google.com>
15454
15455 PR c/47837
15456 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15457 (normalize_preds): New function.
15458 (is_use_properly_guarded): Normalize def predicates.
15459
15460 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15461
15462 PR target/46788
15463 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15464 in the output template.
15465
15466 2011-03-15 Richard Guenther <rguenther@suse.de>
15467
15468 PR middle-end/47650
15469 * tree-pretty-print.c (dump_function_declaration): Properly
15470 dump unprototyped and varargs function types.
15471
15472 2011-03-15 Richard Guenther <rguenther@suse.de>
15473
15474 PR tree-optimization/13954
15475 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15476 and friends.
15477
15478 2011-03-15 Richard Guenther <rguenther@suse.de>
15479
15480 PR tree-optimization/48037
15481 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15482 selects into BIT_FIELD_REFs.
15483 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15484 vector select.
15485
15486 2011-03-15 Jakub Jelinek <jakub@redhat.com>
15487
15488 PR tree-optimization/48129
15489 * builtins.c (fold_builtin_snprintf): Convert to type of
15490 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15491 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15492
15493 2011-03-15 Richard Guenther <rguenther@suse.de>
15494
15495 PR tree-optimization/41490
15496 * tree-ssa-dce.c (propagate_necessity): Handle returns without
15497 value but with VUSE.
15498 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15499 return statements.
15500 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15501 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15502 * tree-tailcall.c (find_tail_calls): Ignore returns.
15503
15504 2011-03-15 Richard Guenther <rguenther@suse.de>
15505
15506 PR middle-end/48031
15507 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15508 or variable-indexed array accesses when in gimple form.
15509
15510 2011-03-15 Richard Guenther <rguenther@suse.de>
15511
15512 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15513
15514 2011-03-15 Alan Modra <amodra@gmail.com>
15515
15516 PR target/48032
15517 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15518 presume symbol_refs without a symbol_ref_decl are suitably
15519 aligned, nor other trees we may see here. Handle anchor symbols.
15520 (legitimate_constant_pool_address_p): Comment. Add mode param.
15521 Check cmodel=medium addresses. Adjust all calls.
15522 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15523 creating cmodel=medium optimized access to locals.
15524 * config/rs6000/constraints.md (R): Pass QImode to
15525 legitimate_constant_pool_address_p.
15526 * config/rs6000/predicates.md (input_operand): Pass mode to
15527 legitimate_constant_pool_address_p.
15528 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15529 Update prototype.
15530
15531 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15532
15533 PR target/48053
15534 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15535 64-bit constants being loaded into registers other than GPRs such
15536 as loading 0 into a VSX register.
15537
15538 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15539
15540 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15541
15542 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15543
15544 PR middle-end/47917
15545 * builtins.c (fold_builtin_snprintf): New function.
15546 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15547 (fold_builtin_4): Likewise.
15548
15549 PR middle-end/38878
15550 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15551 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
15552 and C - X == X also strip nops from +/-/p+ operand.
15553 When optimizing -X == C, fold C to arg0's type.
15554
15555 PR debug/47946
15556 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15557 emit it as add_AT_int instead of add_AT_unsigned.
15558
15559 2011-03-14 Tom Tromey <tromey@redhat.com>
15560
15561 * unwind-dw2.c: Include sys/sdt.h if it exists.
15562 (_Unwind_DebugHook): Use STAP_PROBE2.
15563 * config.in, configure: Rebuild.
15564 * configure.ac: Check for sys/sdt.h.
15565
15566 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
15567
15568 * config/i386/i386.md (ROUND_FLOOR): New constant.
15569 (ROUND_CEIL): Ditto.
15570 (ROUND_TRUNC): Ditto.
15571 (ROUND_MXCSR): Ditto.
15572 (ROUND_NO_EXC): Ditto.
15573 (rint<mode>2): Use new defines instead of numerical constants.
15574 (floor<mode>2): Ditto.
15575 (ceil<mode>2): Ditto.
15576 (btrunc<mode>2): Ditto.
15577 * config/i386/i386-builtin-types.def: Define ROUND function type
15578 aliases.
15579 * config/i386/i386.c (enum ix86_builtins): Add
15580 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15581 (struct builtin_description): Add
15582 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15583 (ix86_expand_sse_round): New static function.
15584 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15585 function types.
15586 (ix86_builtin_vectorized_function): Handle
15587 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15588
15589 2011-03-14 Tom Tromey <tromey@redhat.com>
15590
15591 * c-parser.c (c_parser_asm_string_literal): Clear
15592 warn_overlength_strings.
15593
15594 2011-03-14 Tom Tromey <tromey@redhat.com>
15595
15596 * c-parser.c (disable_extension_diagnostics): Save
15597 warn_overlength_strings.
15598 (restore_extension_diagnostics): Restore warn_overlength_strings.
15599
15600 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15601
15602 * BASE-VER: Change to 4.7.0.
15603
15604 2011-03-14 Richard Guenther <rguenther@suse.de>
15605
15606 PR middle-end/48098
15607 * tree.c (build_vector_from_val): Adjust assert to requirements
15608 and reality.
15609
15610 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15611
15612 PR bootstrap/48102
15613 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15614
15615 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
15616
15617 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15618 terms of target_flags_explicit. Adjust copyright year.
15619
15620 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15621 * config/rs6000/t-freebsd: New file. Add override for
15622 LIB2FUNCS_EXTRA.
15623
15624 2011-03-13 Chris Demetriou <cgd@google.com>
15625
15626 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15627 (-fno-diagnostics-show-option): this, to reflect current default.
15628 (-Werror=): Update text about -fno-diagnostics-show-option.
15629
15630 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
15631
15632 PR target/48053
15633 * config/rs6000/predicates.md (easy_vector_constant_add_self,
15634 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15635 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15636 mode is not V2DImode or V2DFmode.
15637 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15638 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15639 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15640 registers to 0.
15641 (movdi_internal64): Likewise.
15642
15643 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
15644
15645 PR tree-optimization/47127
15646 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15647 parameter.
15648 (set_cloog_options): Same.
15649 (scop_to_clast): Same.
15650 (print_clast_stmt): Do not call cloog_state_malloc and
15651 cloog_state_free.
15652 (print_generated_program): Same.
15653 (gloog): Same.
15654 * graphite-clast-to-gimple.h (cloog_state): Declared.
15655 (scop_to_clast): Adjust declaration.
15656 * graphite.c (cloog_state): Defined here.
15657 (graphite_initialize): Call cloog_state_malloc.
15658 (graphite_finalize): Call cloog_state_free.
15659
15660 2011-03-11 Jason Merrill <jason@redhat.com>
15661
15662 * attribs.c (lookup_attribute_spec): Take const_tree.
15663 * tree.h: Adjust.
15664
15665 2011-03-11 Joseph Myers <joseph@codesourcery.com>
15666
15667 * config/sparc/sparc.c (sparc_option_override): Use
15668 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15669
15670 2011-03-11 Richard Guenther <rguenther@suse.de>
15671
15672 PR tree-optimization/48067
15673 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15674 multiplication result will be only used once on the target
15675 stmt.
15676
15677 2011-03-11 Richard Guenther <rguenther@suse.de>
15678
15679 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15680
15681 2011-03-11 Richard Guenther <rguenther@suse.de>
15682
15683 PR lto/48073
15684 * tree.c (find_decls_types_r): Do not walk types only reachable
15685 from IDENTIFIER_NODEs.
15686
15687 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15688
15689 PR middle-end/48044
15690 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15691 all vnode->force_output nodes as needed.
15692
15693 2011-03-11 Jason Merrill <jason@redhat.com>
15694
15695 PR c++/48069
15696 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15697 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15698
15699 2011-03-11 Martin Jambor <mjambor@suse.cz>
15700
15701 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15702 cgraph_node.
15703
15704 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15705
15706 PR tree-optimization/48063
15707 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15708 inline functions called once if !tree_can_inline_p (node->callers).
15709
15710 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
15711
15712 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15713 extra_objs.
15714 * config/score/score3.c: Delete.
15715 * config/score/score3.h: Delete.
15716 * config/score/mul-div.S: Delete.
15717 * config/score/sfp-machine.h: Add new file.
15718 * config/score/constraints.md: Add new file.
15719 * config/score/t-score-softfp: Add new file.
15720 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15721 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15722 (score7_extra_constraint): Delete.
15723 (score7_option_override): Remove unused code.
15724 * config/score/score.c: Remove score3 and score5 define and code.
15725 * config/score/score.h: Remove score3 and score5 define and code.
15726 * config/score/score.md: Remove score3 template and unusual insn.
15727 * config/score/score.opt: Remove score3 and score5 options.
15728
15729 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15730
15731 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15732 when _HPUX_SOURCE is defined.
15733 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15734
15735 2011-03-10 Jason Merrill <jason@redhat.com>
15736
15737 PR c++/48029
15738 * stor-layout.c (layout_type): Don't set structural equality
15739 on arrays of incomplete type.
15740 * tree.c (type_hash_eq): Handle comparing them properly.
15741
15742 2011-03-10 Jakub Jelinek <jakub@redhat.com>
15743
15744 PR debug/48043
15745 * config/s390/s390.c (s390_delegitimize_address): Make sure the
15746 result mode matches original rtl mode.
15747
15748 2011-03-10 Nick Clifton <nickc@redhat.com>
15749
15750 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15751 (andsi3, andsi3_flags): Fix timings for three operand alternative.
15752
15753 2011-03-09 Jakub Jelinek <jakub@redhat.com>
15754
15755 PR rtl-optimization/47866
15756 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15757 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15758 if target wasn't scalar.
15759 * function.c (assign_stack_temp_for_type): Assert that neither
15760 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15761 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15762 macro.
15763 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15764
15765 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15766
15767 * config/s390/s390-protos.h (s390_label_align): New prototype.
15768 * config/s390/s390.c (s390_label_align): New function.
15769 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15770
15771 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15772
15773 PR target/47755
15774 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15775 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15776 (output_vec_const_move): Ditto.
15777
15778 2011-03-08 Anatoly Sokolov <aesok@post.ru>
15779
15780 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15781 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15782 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15783 Change 'rclass' argument and result type to reg_class_t.
15784 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15785
15786 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
15787
15788 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15789 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15790 (TARGET_MEMORY_MOVE_COST): Define.
15791 (avr_register_move_cost, avr_memory_move_cost): New Functions.
15792
15793 2011-03-08 Jakub Jelinek <jakub@redhat.com>
15794
15795 PR debug/47881
15796 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15797 removed anything.
15798
15799 PR tree-optimization/48022
15800 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15801 for EQ/NE_EXPR.
15802
15803 2011-03-07 Jakub Jelinek <jakub@redhat.com>
15804
15805 PR debug/47991
15806 * var-tracking.c (find_use_val): Return NULL for
15807 cui->sets && cui->store_p BLKmode MEMs.
15808
15809 2011-03-07 Anatoly Sokolov <aesok@post.ru>
15810
15811 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15812 Remove.
15813 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15814 xstormy16_print_operand_address): Remove.
15815 * config/stormy16/stormy16.c (xstormy16_print_operand,
15816 xstormy16_print_operand_address): Make static.
15817 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15818
15819 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
15820
15821 PR target/47862
15822 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15823 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15824 before definition.
15825
15826 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
15827
15828 PR bootstrap/48000
15829 * cfgloopmanip.c (fix_bb_placements): Return immediately
15830 if FROM is BASE_LOOP's header.
15831
15832 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15833
15834 * gimplify.c (gimplify_function_tree): Fix building calls
15835 to __builtin_return_address.
15836
15837 2011-03-07 Alan Modra <amodra@gmail.com>
15838
15839 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15840 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15841 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15842 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15843 return_mode args.
15844 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15845 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15846 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15847 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15848 * config/rs6000/rs6000.c
15849 (rs6000_elf_end_indicate_exec_stack): Rename to..
15850 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15851 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15852 (rs6000_file_start): ..here.
15853 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15854 file scope variables.
15855 (call_ABI_of_interest): New function.
15856 (init_cumulative_args): Set above vars when function return value
15857 is a float, vector, or small struct.
15858 (rs6000_function_arg_advance_1): Likewise for function args.
15859 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15860 references float args.
15861
15862 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15863
15864 * doc/cfg.texi: Remove "See" before @ref.
15865 * doc/invoke.texi: Likewise.
15866
15867 2011-03-05 Jason Merrill <jason@redhat.com>
15868
15869 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15870
15871 2011-03-05 Anthony Green <green@moxielogic.com>
15872
15873 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15874
15875 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
15876
15877 PR rtl-optimization/47899
15878 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15879 to flow_loop_nested_p when moving the loop upward.
15880
15881 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
15882
15883 PR target/47719
15884 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15885
15886 2011-03-05 Jakub Jelinek <jakub@redhat.com>
15887
15888 PR tree-optimization/47967
15889 * ipa-cp.c (build_const_val): Return NULL instead of creating
15890 VIEW_CONVERT_EXPR for mismatching sizes.
15891 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15892 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15893 give up on versioning.
15894
15895 2011-03-05 Alan Modra <amodra@gmail.com>
15896
15897 PR target/47986
15898 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15899 full cmodel medium/large lo_sum + high addresses.
15900
15901 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15902
15903 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15904 pool references in UNSPEC_LTREL_OFFSET.
15905
15906 2011-03-04 Jan Hubicka <jh@suse.cz>
15907
15908 PR lto/47497
15909 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15910 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15911 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15912 Add node pointers.
15913 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15914 cgraph_add_thunk): Add node pointers.
15915 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15916 associated to right node.
15917 (input_node): Update use of cgraph_same_body_alias
15918 and cgraph_add_thunk.
15919
15920 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15921
15922 * config/i386/i386.opt (mprefer-avx128): New flag.
15923 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15924 modes when the flag -mprefer-avx128 is on.
15925
15926 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15927
15928 * dwarf2out.c (compare_loc_operands): Fix address handling.
15929
15930 2011-03-04 Alan Modra <amodra@gmail.com>
15931
15932 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15933
15934 2011-03-04 Richard Guenther <rguenther@suse.de>
15935
15936 PR middle-end/47968
15937 * expmed.c (extract_bit_field_1): Prefer vector modes that
15938 vec_extract patterns can handle.
15939
15940 2011-03-04 Richard Guenther <rguenther@suse.de>
15941
15942 PR middle-end/47975
15943 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15944
15945 2011-03-04 Richard Henderson <rth@redhat.com>
15946
15947 * explow.c (emit_stack_save): Remove 'after' parameter.
15948 (emit_stack_restore): Likewise.
15949 * expr.h: Update to match.
15950 * builtins.c, calls.c, stmt.c: Likewise.
15951 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15952 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15953 * function.c (expand_function_end): Insert the emit_stack_save
15954 sequence before parm_birth_insn instead of after.
15955
15956 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
15957
15958 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15959 (ssse3_pmaddubsw128): Ditto.
15960 (ssse3_pmaddubsw): Ditto.
15961
15962 2011-03-03 Steve Ellcey <sje@cup.hp.com>
15963
15964 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15965
15966 2011-03-03 Jakub Jelinek <jakub@redhat.com>
15967
15968 PR c/47963
15969 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15970 on TYPE_SIZE_UNIT if it is a DECL.
15971
15972 PR debug/47283
15973 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15974 first operand is not is_gimple_mem_ref_addr, try to fold it.
15975 If the operand still isn't is_gimple_mem_ref_addr, clear
15976 MEM_EXPR on op0.
15977
15978 2011-03-03 Richard Guenther <rguenther@suse.de>
15979
15980 PR middle-end/47283
15981 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15982 match comment.
15983 (refs_may_alias_p_1): For release branches return true if
15984 we are confused by our input.
15985
15986 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15987
15988 * config/s390/s390.c (s390_function_value): Rename to ...
15989 (s390_function_and_libcall_value): ... this.
15990 (s390_function_value): New function.
15991 (s390_libcall_value): New function.
15992 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15993 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15994 target macro definitions.
15995 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15996
15997 2011-03-02 Joseph Myers <joseph@codesourcery.com>
15998
15999 * config/i386/freebsd64.h (CC1_SPEC): Define.
16000 * config/i386/linux64.h (CC1_SPEC): Define.
16001 * config/i386/x86-64.h (CC1_SPEC): Don't define.
16002
16003 2011-03-02 Anatoly Sokolov <aesok@post.ru>
16004
16005 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16006 Remove.
16007 * config/stormy16/stormy16.c: Include reload.h.
16008 (xstormy16_memory_move_cost): New function.
16009 (TARGET_MEMORY_MOVE_COST): Define.
16010
16011 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
16012
16013 PR rtl-optimization/47925
16014 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
16015 with side effects. Remove the more-specific check for volatile asms.
16016
16017 2011-03-02 Alan Modra <amodra@gmail.com>
16018
16019 PR target/47935
16020 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
16021 toc relative addresses for valid offsets.
16022
16023 2011-03-01 Richard Guenther <rguenther@suse.de>
16024
16025 PR tree-optimization/47890
16026 * tree-vect-loop.c (get_initial_def_for_induction): Set
16027 related stmt properly.
16028
16029 2011-03-01 Richard Guenther <rguenther@suse.de>
16030
16031 PR lto/47924
16032 * lto-streamer.c (lto_record_common_node): Also register
16033 the canonical type.
16034
16035 2011-03-01 Richard Guenther <rguenther@suse.de>
16036
16037 PR lto/46911
16038 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16039 Do not stream DECL_ABSTRACT_ORIGIN.
16040 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16041 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16042 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16043 Do not stream DECL_ABSTRACT_ORIGIN.
16044 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16045 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16046
16047 2011-02-28 Anatoly Sokolov <aesok@post.ru>
16048
16049 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
16050 FUNCTION_VALUE_REGNO_P): Remove.
16051 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
16052 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
16053 Add 'outgoing' argument.
16054 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
16055 function.
16056 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16057 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16058
16059 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
16060
16061 PR debug/28047
16062 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
16063 (lookup_filename): Likewise.
16064 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
16065
16066 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
16067 Jakub Jelinek <jakub@redhat.com>
16068
16069 PR middle-end/47893
16070 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
16071 (assign_stack_local_1): Change last argument type to int.
16072 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
16073 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
16074 don't record padding space into frame_space_list nor use those areas.
16075 (assign_stack_local): Adjust caller.
16076 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
16077 of assign_stack_local, pass 0 as last argument.
16078 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
16079 callers.
16080
16081 2011-02-28 Jakub Jelinek <jakub@redhat.com>
16082
16083 PR debug/47283
16084 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
16085 Use target address_mode and pointer_mode hooks instead of hardcoded
16086 Pmode and ptr_mode. Handle some simple cases of extending if
16087 POINTERS_EXTEND_UNSIGNED < 0.
16088 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
16089 Call convert_debug_memory_address.
16090 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
16091 convert_debug_memory_address.
16092
16093 PR middle-end/46790
16094 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
16095 * configure: Regenerated.
16096 * config.in: Regenerated.
16097 * varasm.c (default_function_section): Return NULL
16098 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
16099
16100 2011-02-28 Martin Jambor <mjambor@suse.cz>
16101
16102 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
16103 the description to match the printed values.
16104
16105 2011-02-28 Richard Guenther <rguenther@suse.de>
16106
16107 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
16108 of the copied scope tree.
16109
16110 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16111
16112 * doc/extend.texi (Function Attributes): Avoid deeply (and
16113 wrongly) nested tables.
16114
16115 2011-02-27 Jakub Jelinek <jakub@redhat.com>
16116
16117 PR middle-end/47903
16118 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
16119 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
16120 r isn't op0 nor op1.
16121
16122 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
16123
16124 * config/avr/avr.md: Remove magic comment for emacs.
16125
16126 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
16127
16128 PR target/45261
16129 * config/avr/avr.c (avr_option_override): Use error on bad options.
16130 (avr_help): New function.
16131 (TARGET_HELP): Define.
16132
16133 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
16134
16135 PR target/42240
16136 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
16137 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
16138
16139 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
16140
16141 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
16142 (ARM Options): Ditto.
16143 (i386 and x86-64 Options): Ditto.
16144 (RX Options): Ditto.
16145 (SPARC Options): Ditto.
16146
16147 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
16148
16149 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
16150 FreeBSD 6 and later. Generally use cpu generic.
16151
16152 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16153
16154 * doc/cpp.texi: Update copyright years.
16155
16156 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
16157
16158 PR target/46898
16159 * config/lm32/lm32.md (ashrsi3): Added needed variable.
16160
16161 2011-02-25 Jon Beniston <jon@beniston.com>
16162
16163 PR target/46898
16164 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
16165 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
16166 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
16167 (lm32_block_move_inline): Add type cast to remove warning.
16168 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
16169 (gen_int_relational): Move declarations to start of function.
16170
16171 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
16172
16173 PR tree-optimization/45470
16174 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
16175 can throw internally only.
16176 * tree-vect-stmts.c (vectorizable_call): Likewise.
16177
16178 2011-02-24 Anatoly Sokolov <aesok@post.ru>
16179
16180 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
16181 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16182 * config/stormy16/stormy16-protos.h
16183 (xstormy16_preferred_reload_class): Remove.
16184 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
16185 static. Change 'rclass' argument and return type to reg_class_t.
16186 (TARGET_PREFERRED_RELOAD_CLASS,
16187 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16188
16189 2011-02-24 Richard Guenther <rguenther@suse.de>
16190
16191 * lto-streamer-in.c (input_bb): Do not find referenced vars
16192 in debug statements.
16193
16194 2011-02-23 Jason Merrill <jason@redhat.com>
16195
16196 * common.opt (fabi-version): Document v5 and v6.
16197
16198 2011-02-23 Richard Guenther <rguenther@suse.de>
16199
16200 PR tree-optimization/47849
16201 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
16202
16203 2011-02-23 Jie Zhang <jie@codesourcery.com>
16204
16205 * opts-common.c (decode_cmdline_option): Print empty string
16206 argument as "" in decoded->orig_option_with_args_text.
16207 * gcc.c (execute): Print empty string argument as ""
16208 in the verbose output.
16209 (do_spec_1): Keep empty string argument.
16210
16211 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
16212
16213 * config.gcc: Declare score-* and crx-* obsolete.
16214
16215 2011-02-23 Jie Zhang <jie@codesourcery.com>
16216
16217 PR rtl-optimization/47763
16218 * web.c (web_main): Ignore naked clobber when replacing register.
16219
16220 2011-02-22 Anatoly Sokolov <aesok@post.ru>
16221
16222 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16223 Remove.
16224
16225 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
16226
16227 PR doc/47848
16228 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16229
16230 2011-02-22 Mike Stump <mikestump@comcast.net>
16231
16232 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16233 assembler.
16234 * configure: Regenerate.
16235
16236 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
16237
16238 PR rtl-optimization/46002
16239 * ira-color.c (update_copy_costs): Change class intersection
16240 test to reg_class_contents[] test of 'hard_regno'.
16241
16242 2011-02-21 Joseph Myers <joseph@codesourcery.com>
16243
16244 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16245 than Driver option.
16246 * config/hpux11.opt (mt): Likewise.
16247 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16248 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16249 * config/vax/elf.opt (mno-asm-pic): Likewise.
16250 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16251
16252 2011-02-21 Mike Stump <mikestump@comcast.net>
16253
16254 PR target/47822
16255 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16256 tree so we can get save the type.
16257 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16258 for CFString instead of trying to use past the end of the builtins.
16259 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16260 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16261 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16262 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16263 Rename to darwin_builtin_cfstring.
16264 (darwin_init_cfstring_builtins): Return the built type.
16265
16266 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
16267
16268 PR target/47840
16269 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16270 (_mm256_insert_epi64): Use _mm_insert_epi64.
16271
16272 2011-02-21 Anatoly Sokolov <aesok@post.ru>
16273
16274 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16275 * config/stormy16/stormy16-protos.h
16276 (xstormy16_mode_dependent_address_p): Remove.
16277 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16278 Make static. Change return type to bool. Change argument type to
16279 const_rtx. Remove dead code.
16280 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16281
16282 2011-02-21 Richard Guenther <rguenther@suse.de>
16283
16284 PR lto/47820
16285 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16286 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16287 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16288 TUs context.
16289 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16290 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16291
16292 2011-02-20 Richard Guenther <rguenther@suse.de>
16293
16294 PR lto/47822
16295 * tree.c (free_lang_data_in_decl): Clean builtins from
16296 the TU decl BLOCK_VARS.
16297
16298 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
16299
16300 PR debug/47620
16301 PR debug/47630
16302 * haifa-sched.c (fix_tick_ready): Skip tick computation
16303 for debug insns.
16304
16305 2011-02-19 Richard Guenther <rguenther@suse.de>
16306
16307 PR lto/47647
16308 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16309 Remove lazy BLOCK_VARS streaming.
16310 (lto_input_ts_block_tree_pointers): Likewise.
16311 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16312
16313 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16314
16315 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16316
16317 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16318
16319 * config/i386/biarch32.h, config/i386/mach.h,
16320 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16321
16322 2011-02-19 Jakub Jelinek <jakub@redhat.com>
16323
16324 PR target/47800
16325 * config/i386/i386.md (peephole2 for shift and plus): Use
16326 operands[1] original mode in the first insn.
16327
16328 2011-02-18 Mike Stump <mikestump@comcast.net>
16329
16330 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16331
16332 2011-02-18 Jan Hubicka <jh@suse.cz>
16333
16334 PR middle-end/47788
16335 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16336 to zero when the function is not inlinable at all.
16337
16338 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16339
16340 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16341 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16342 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16343 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16344 * config/pa/t-pa64: Likewise.
16345 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16346
16347 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16348
16349 PR driver/47787
16350 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16351
16352 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16353
16354 PR target/47792
16355 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16356
16357 2011-02-18 Anatoly Sokolov <aesok@post.ru>
16358
16359 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16360 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16361 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16362 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16363 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16364 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16365 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16366 m32r_load_postinc_p, m32r_store_preinc_predec_p,
16367 m32r_legitimate_address_p): New functions.
16368 * config/m32r/constraints.md (constraint "S"): Don't use
16369 STORE_PREINC_PREDEC_P.
16370 (constraint "U"): Don't use LOAD_POSTINC_P.
16371
16372 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
16373
16374 PR rtl-optimization/46178
16375 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16376 compute ira_hard_regno_cover_class[].
16377
16378 2011-02-18 Richard Guenther <rguenther@suse.de>
16379
16380 PR lto/47798
16381 * lto-streamer.h (lto_global_var_decls): Declare.
16382 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16383 statics for global var processing.
16384
16385 2011-02-18 Richard Guenther <rguenther@suse.de>
16386
16387 PR tree-optimization/47737
16388 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16389 edge dominance check.
16390
16391 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16392
16393 PR debug/47780
16394 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16395 avoid invalid rtx sharing.
16396
16397 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
16398
16399 * doc/cpp.texi (Obsolete Features): Add background on the
16400 origin of assertions.
16401
16402 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
16403
16404 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
16405 objc_abi == 2.
16406 * config/darwin.c (output_objc_section_asm_op): Added support for
16407 ABI v1 and v2.
16408 (is_objc_metadata): New.
16409 (darwin_objc2_section): New.
16410 (darwin_objc1_section): New.
16411 (machopic_select_section): Added support for ABI v1 and v2.
16412 (darwin_emit_objc_zeroed): New.
16413 (darwin_output_aligned_bss): Detect objc metadata and treat it
16414 appropriately.
16415 (darwin_asm_output_aligned_decl_common): Same.
16416 (darwin_asm_output_aligned_decl_local): Same.
16417 * config/darwin-sections.def: Updated for ABI v1 and v2.
16418 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16419 compiling Objective-C code for the NeXT runtime, default to using
16420 ABI version 0 for 32-bit, and version 2 for 64-bit.
16421
16422 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16423
16424 * common.opt (optimize_fast): New Variable.
16425 * opts.c (default_options_optimization): Use opts->x_optimize_fast
16426 instead of local variable ofast.
16427
16428 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
16429
16430 * doc/invoke.texi (fobjc-abi-version): Documented.
16431 (fobjc-nilcheck): Documented.
16432 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16433 version.
16434
16435 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16436
16437 PR driver/47390
16438 * common.opt (export-dynamic): New Driver option.
16439 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16440
16441 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16442
16443 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16444
16445 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
16446 Jan Hubicka <jh@suse.cz>
16447
16448 PR debug/47106
16449 PR debug/47402
16450 * cfgexpand.c (account_used_vars_for_block): Remove.
16451 (estimated_stack_frame_size): Use referenced vars.
16452 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16453 that were referenced in the original function. Test src_fn
16454 rather than cfun. Drop redundant get_var_ann.
16455 (setup_one_parameter): Drop redundant get_var_ann.
16456 (declare_return_variable): Likewise.
16457 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16458 (copy_arguments_for_versioning): Drop redundant get_var_ann.
16459 * ipa-inline.c (compute_inline_parameters): Do not compute
16460 disregard_inline_limits here.
16461 (compute_inlinable_for_current, pass_inlinable): New.
16462 (pass_inline_parameters): Require PROP_referenced_vars.
16463 * cgraphunit.c (cgraph_process_new_functions): Don't run
16464 compute_inline_parameters explicitly unless function is in SSA form.
16465 (cgraph_analyze_function): Set .disregard_inline_limits.
16466 * tree-sra.c (convert_callers): Compute inliner parameters
16467 only for functions already in SSA form.
16468
16469 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16470
16471 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16472 -mlittle-endian-data.
16473
16474 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16475
16476 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16477 -mno-fpu, not -fpu and -no-fpu.
16478 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16479 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16480
16481 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
16482
16483 PR target/43653
16484 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16485 input reload with PLUS RTX.
16486
16487 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16488
16489 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16490 of InverseVar(MDMX).
16491
16492 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16493
16494 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16495 --m4-340.
16496
16497 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16498
16499 * config/mn10300/mn10300.opt (mno-crt0): New.
16500
16501 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16502
16503 * config/m68k/uclinux.opt (static-libc): New Driver option.
16504
16505 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16506
16507 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16508
16509 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16510
16511 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16512 %{muser-extend-enabled}.
16513
16514 2011-02-16 Richard Guenther <rguenther@suse.de>
16515
16516 PR tree-optimization/47738
16517 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16518 the TODO from tree_predictive_commoning.
16519
16520 2011-02-15 Jeff Law <law@redhat.com>
16521
16522 Revert
16523 2011-01-25 Jeff Law <law@redhat.com>
16524
16525 PR rtl-optimization/37273
16526 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16527 handle them like argument loads from stack slots. Do not double
16528 count memory for memory constants and argument loads from stack slots.
16529
16530 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16531
16532 PR middle-end/47725
16533 * combine.c (cant_combine_insn_p): Revert the last change.
16534
16535 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16536
16537 PR target/47755
16538 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16539 mode for vector constants. Remove code that checks for TImode.
16540
16541 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16542
16543 PR debug/47106
16544 PR debug/47402
16545 * cgraph.h (compute_inline_parameters): Return void.
16546 * ipa-inline.c (compute_inline_parameters): Adjust.
16547
16548 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16549
16550 PR debug/47106
16551 PR debug/47402
16552 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16553 rather than decl.
16554 * cfgexpand.c (estimated_stack_frame_size): Likewise.
16555 * ipa-inline.c (compute_inline_parameters): Adjust.
16556
16557 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16558
16559 PR debug/47106
16560 PR debug/47402
16561 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16562 Adjust all users. Pass FN to...
16563 * tree-flow-inline.h (first_referenced_var): ... this. Add
16564 fn argument.
16565 * ipa-struct-reorg.c: Adjust.
16566 * tree-dfa.c: Adjust.
16567 * tree-into-ssa.c: Adjust.
16568 * tree-sra.c: Adjust.
16569 * tree-ssa-alias.c: Adjust.
16570 * tree-ssa-live.c: Adjust.
16571 * tree-ssa.c: Adjust.
16572 * tree-ssanames.c: Adjust.
16573 * tree-tailcall.c: Adjust.
16574
16575 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16576
16577 PR debug/47106
16578 PR debug/47402
16579 * tree-flow.h (referenced_var_lookup): Add fn parameter.
16580 Adjust all callers.
16581 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16582 * tree-flow-inline.h: Adjust.
16583 * gimple-pretty-print.c: Adjust.
16584 * tree-into-ssa.c: Adjust.
16585 * tree-ssa.c: Adjust.
16586 * cfgexpand.c: Adjust.
16587
16588 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16589
16590 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16591 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16592 (EXTRA_CONSTRAINT): Delete.
16593 * config/iq2000/constraints.md: New file.
16594 * config/iq2000/iq2000.md: Include it.
16595 (define_insn ""): Delete.
16596 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16597 unsupported constraint letters from patterns.
16598 (call_value, call_value_internal1): Likewise.
16599 (call_value_multiple_internal1): Likewise.
16600
16601 2011-02-15 Nick Clifton <nickc@redhat.com>
16602
16603 * config/mn10300/mn10300.c: Include tm-constrs.h.
16604 (struct liw_data): New data structure describing an LIW candidate
16605 instruction.
16606 (extract_bundle): Use struct liw_data. Allow small integer
16607 operands for some instructions.
16608 (check_liw_constraints): Use struct liw_data. Remove swapped
16609 parameter. Add comments describing the checks. Fix bug when
16610 assigning the source of liw1 to the source of liw2.
16611 (liw_candidate): Delete. Code moved into extract_bundle.
16612 (mn10300_bundle_liw): Use struct liw_data. Check constraints
16613 before swapping.
16614 * config/mn10300/predicates.md (liw_operand): New predicate.
16615 Allows registers and small integer constants.
16616 * config/mn10300/constraints.md (O): New constraint. Accetps
16617 integers in the range -8 to +7 inclusive.
16618 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16619 for moving a small integer into a register. Give this alternative
16620 LIW attributes.
16621 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16622 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16623 using the J,K,L and M constraints,
16624 (liw): Remove SI mode on second operands to allow for HI and QI
16625 mode values.
16626 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
16627 instruction.
16628
16629 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16630
16631 PR middle-end/47725
16632 * combine.c (cant_combine_insn_p): Check zero/sign extended
16633 hard registers.
16634
16635 2011-02-15 Richard Guenther <rguenther@suse.de>
16636
16637 PR tree-optimization/47743
16638 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16639 for a non-type-compatible VN lookup bail out.
16640
16641 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16642
16643 * config/fr30/constraints.md: New file.
16644 * config/fr30/fr30.md: Include it.
16645 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16646 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16647 (EXTRA_CONSTRAINT): Delete.
16648
16649 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16650
16651 * config/frv/constraints.md: New file.
16652 * config/frv/predicates.md: Include it.
16653 * config/frv/frv.c (reg_class_from_letter): Delete.
16654 (frv_option_override): Don't initialize it.
16655 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16656 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16657 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16658 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16659 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16660 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16661 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16662 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16663 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16664 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16665 (REG_CLASS_FROM_CONSTRAINT): Delete.
16666
16667 2011-02-15 Jakub Jelinek <jakub@redhat.com>
16668
16669 PR middle-end/47581
16670 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16671 if frame size is 0 in a leaf function.
16672
16673 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16674
16675 PR pch/14940
16676 * config/alpha/host-osf.c: New file.
16677 * config/alpha/x-osf: New file.
16678 * config.host (alpha*-dec-osf*): Use it.
16679
16680 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16681
16682 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16683 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16684 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16685 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16686 type to const_rtx.
16687 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16688
16689 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16690
16691 * config/stormy16/constraints.md: New file.
16692 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16693 Use satisfies_constraint_Q and satisfies_constraint_R.
16694 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16695 Delete.
16696 (xstormy16_legitiamte_address_p): Declare.
16697 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16698 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16699 (EXTRA_CONSTRAINT): Delete.
16700 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16701 Un-staticize.
16702 (xstormy16_extra_constraint_p): Delete.
16703
16704 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16705
16706 PR tree-optimization/46494
16707 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16708 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16709 (pass_rtl_loop_done): Add TODO_verify_flow.
16710 * fwprop.c (pass_rtl_fwprop): Likewise.
16711 * modulo-sched.c (pass_sms): Likewise.
16712 * tree-ssa-dom.c (pass_dominator): Likewise.
16713 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16714 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16715 (pass_tree_loop_done): Likewise.
16716 * tree-ssa-pre.c (execute_pre): Likewise.
16717 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16718 * tree-ssa-sink.c (pass_sink_code): Likewise.
16719 * tree-vrp.c (pass_vrp): Likewise.
16720
16721 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16722
16723 * config/v850/constraints.md: New file.
16724 * config/v850/v850.md: Include it.
16725 * config/v850/predicates.md (reg_or_0_operand): Use
16726 satisfies_constraint_G.
16727 (special_symbolref_operand): Use satisfies_constraint_K.
16728 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16729 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16730 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16731 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16732 (EXTRA_CONSTRAINT): Delete.
16733 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16734 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16735 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16736
16737 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16738
16739 PR target/47696
16740 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16741 description.
16742
16743 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16744
16745 * config/mcore/constraints.md: New file.
16746 * config/mcore/mcore.md: Include it.
16747 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16748 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16749 (REG_CLASS_FROM_LETTER): Delete.
16750 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16751 insn_const_int_ok_for_constraint.
16752 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16753 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16754 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16755 (EXTRA_CONSTRAINT): Delete.
16756
16757 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16758
16759 PR ada/41929
16760 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16761 (IS_SIGHANDLER): Define.
16762 (sparc64_is_sighandler): New function, split off from
16763 sparc64_fallback_frame_state.
16764 (sparc_is_sighandler): New function, split off from
16765 sparc_fallback_frame_state.
16766 (sparc64_fallback_frame_state): Merge with ...
16767 (sparc_fallback_frame_state): ... this into ...
16768 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16769 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16770 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16771 stack instead of hardcoded offsets.
16772
16773 2011-02-14 Andriy Gapon <avg@freebsd.org>
16774
16775 PR target/45808
16776 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16777
16778 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16779
16780 * configure: Regenerate.
16781
16782 2011-02-12 Joseph Myers <joseph@codesourcery.com>
16783
16784 PR driver/45731
16785 * gcc.c (asm_options): Correct spec matching --target-help.
16786
16787 2011-02-12 Martin Jambor <mjambor@suse.cz>
16788
16789 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16790 to gimple call error.
16791
16792 2011-02-12 Mike Stump <mikestump@comcast.net>
16793
16794 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16795 comments in backslash regions.
16796
16797 2011-02-12 Mike Stump <mikestump@comcast.net>
16798 Jakub Jelinek <jakub@redhat.com>
16799 Iain Sandoe <iains@gcc.gnu.org>
16800
16801 PR target/47324
16802 * dwarf2out.c (output_cfa_loc): When required, apply the
16803 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16804 (output_loc_sequence): Likewise.
16805 (output_loc_operands_raw): Likewise.
16806 (output_loc_sequence_raw): Likewise.
16807 (output_cfa_loc): Likewise.
16808 (output_loc_list): Suppress register number adjustment when
16809 calling output_loc_sequence()
16810 (output_die): Likewise.
16811
16812 2011-02-12 Anatoly Sokolov <aesok@post.ru>
16813
16814 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16815 Remove macros.
16816 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16817 xtensa_memory_move_cost): New functions.
16818 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16819
16820 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
16821
16822 PR lto/47225
16823 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16824 in the current directory.
16825 * configure: Rebuilt.
16826
16827 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16828
16829 * config/darwin.c (darwin_override_options): Add a hunk missed
16830 from the commit of r168571. Trim comment line lengths and
16831 correct indents of the preceding block.
16832
16833 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16834
16835 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16836 the switch.
16837
16838 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16839
16840 * common.opt (nostartfiles): New Driver option.
16841
16842 2011-02-11 Xinliang David Li <davidxl@google.com>
16843
16844 PR tree-optimization/47707
16845 * tree-chrec.c (convert_affine_scev): Keep type precision.
16846
16847 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16848
16849 PR tree-optimization/47420
16850 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16851
16852 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
16853
16854 PR rtl-optimization/47614
16855 * rtl.h (check_for_inc_dec): Declare.
16856 * dse.c (check_for_inc_dec): Externalize...
16857 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16858 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16859
16860 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16861
16862 PR driver/47678
16863 * gcc.c (main): Do not compile inputs if there were errors in
16864 option handling.
16865 * opts-common.c (read_cmdline_option): Check for wrong language
16866 after other error checks.
16867
16868 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16869
16870 * cgraph.c: Fix comment typos.
16871 * cgraph.h: Likewise.
16872 * cgraphunit.c: Likewise.
16873 * ipa-cp.c: Likewise.
16874 * ipa-inline.c: Likewise.
16875 * ipa-prop.c: Likewise.
16876 * ipa-pure-const.c: Likewise.
16877 * ipa-ref.c: Likewise.
16878 * ipa-reference.c: Likewise.
16879
16880 2011-02-11 Jakub Jelinek <jakub@redhat.com>
16881
16882 PR debug/47684
16883 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16884
16885 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16886
16887 PR testsuite/47400
16888 * doc/sourcebuild.texi (Require Support): Document
16889 dg-require-ascii-locale.
16890
16891 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16892
16893 * doc/lto.texi (Write summary): Fix missing parentheses.
16894
16895 2011-02-10 DJ Delorie <dj@redhat.com>
16896
16897 * config/m32c/m32c.c (m32c_option_override): Disable
16898 -fcombine-stack-adjustments until flag value tracking and compare
16899 optimization can be rewritten.
16900
16901 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16902
16903 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16904 PROCESSOR_POWER7.
16905 (PROCESSOR_DEFAULT64): Likewise.
16906
16907 2011-02-10 Richard Henderson <rth@redhat.com>
16908
16909 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16910 change from 2011-02-03.
16911 * config/rx/rx.c (flags_from_code): Likewise.
16912 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16913 is valid, n/pz otherwise.
16914 (rx_select_cc_mode): Return CCmode if Y is not zero.
16915
16916 2011-02-10 Richard Guenther <rguenther@suse.de>
16917
16918 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16919
16920 2011-02-10 Richard Guenther <rguenther@suse.de>
16921
16922 PR tree-optimization/47677
16923 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16924
16925 2011-02-10 Jakub Jelinek <jakub@redhat.com>
16926
16927 PR target/47665
16928 * combine.c (make_compound_operation): Only change shifts into
16929 multiplication for SCALAR_INT_MODE_P.
16930
16931 2011-02-10 Jie Zhang <jie@codesourcery.com>
16932
16933 PR testsuite/47622
16934 Revert
16935 2011-02-05 Jie Zhang <jie@codesourcery.com>
16936 PR debug/42631
16937 * web.c (entry_register): Don't clobber the number of the
16938 first uninitialized reference in used[].
16939
16940 2011-02-09 Richard Guenther <rguenther@suse.de>
16941
16942 PR tree-optimization/47664
16943 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16944 all edges again.
16945
16946 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
16947
16948 PR target/46481
16949 PR target/47032
16950 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16951 PROCESSOR_POWER7.
16952 (PROCESSOR_DEFAULT64): Same.
16953 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16954
16955 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16956
16957 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16958
16959 2011-02-09 Martin Jambor <mjambor@suse.cz>
16960
16961 PR middle-end/45505
16962 * tree-sra.c (struct access): New flags grp_scalar_read and
16963 grp_scalar_write. Changed description of assignment read and write
16964 flags.
16965 (dump_access): Dump new flags, reorder all of them.
16966 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16967 to detect multiple scalar reads.
16968 (analyze_access_subtree): Use the new scalar read write flags instead
16969 of the old flags. Adjusted comments.
16970
16971 2011-02-08 DJ Delorie <dj@redhat.com>
16972
16973 PR target/47548
16974 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16975 patterns.
16976
16977 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16978
16979 * config/m68k/uclinux.opt: New.
16980 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16981
16982 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16983
16984 * config/cris/elf.opt (sim): New Driver option.
16985
16986 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16987
16988 * config/xtensa/elf.opt: New.
16989 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16990
16991 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16992
16993 * config/vax/elf.opt: New.
16994 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16995
16996 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16997
16998 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16999
17000 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17001
17002 * config/gnu-user.opt: New.
17003 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
17004 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
17005 *-*-uclinux*): Use gnu-user.opt.
17006
17007 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
17008
17009 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
17010 * config/i386/gnu.h (CPP_SPEC): Likewise.
17011
17012 2011-02-08 Ian Lance Taylor <iant@google.com>
17013
17014 * common.opt (fcx-limited-range): Add SetByCombined flag.
17015 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
17016 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
17017 (fassociative-math, freciprocal-math): Likewise.
17018 (funsafe-math-optimizations): Likewise.
17019 * opth-gen.awk: Handle SetByCombined.
17020 * optc-gen.awk: Likewise.
17021 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
17022 (set_unsafe_math_optimizations_flags): Likewise.
17023 * doc/options.texi (Option properties): Document SetByCombined.
17024
17025 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17026
17027 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
17028 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
17029 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
17030 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
17031 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
17032
17033 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
17034
17035 PR tree-optimization/46834
17036 PR tree-optimization/46994
17037 PR tree-optimization/46995
17038 * graphite-sese-to-poly.c (used_outside_reduction): New.
17039 (detect_commutative_reduction): Call used_outside_reduction.
17040 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
17041 translate_scalar_reduction_to_array only when at least one
17042 loop-phi/close-phi tuple has been detected.
17043
17044 2011-02-08 Richard Guenther <rguenther@suse.de>
17045
17046 PR middle-end/47639
17047 * tree-vect-generic.c (expand_vector_operations_1): Update
17048 stmts here ...
17049 (expand_vector_operations): ... not here. Cleanup EH info
17050 and the CFG if required.
17051
17052 2011-02-08 Richard Guenther <rguenther@suse.de>
17053
17054 PR tree-optimization/47641
17055 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
17056 require type compatibility.
17057
17058 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17059
17060 * gimple-low.c (lower_function_body): Don't remove the location of
17061 the return statement here.
17062 (lower_gimple_return): Do it here instead but only if the return
17063 statement is actually used twice.
17064
17065 2011-02-08 Richard Guenther <rguenther@suse.de>
17066
17067 PR tree-optimization/47632
17068 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
17069 unused up_to_stmt parameter, return whether cfg-cleanup is
17070 necessary, remove EH info properly.
17071 (forward_propagate_into_gimple_cond): Adjust caller.
17072 (forward_propagate_into_cond): Likewise.
17073 (forward_propagate_comparison): Likewise.
17074 (tree_ssa_forward_propagate_single_use_vars): Make
17075 forward_propagate_comparison case similar to the two others.
17076
17077 2011-02-08 Nick Clifton <nickc@redhat.com>
17078
17079 * config/mn10300/mn10300.opt (mliw): New command line option.
17080 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
17081 (liw_bundling): New automaton.
17082 (liw): New attribute.
17083 (liw_op): New attribute.
17084 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
17085 (movsi_internal): Add LIW attributes.
17086 (andsi3): Likewise.
17087 (iorsi3): Likewise.
17088 (xorsi3): Likewise.
17089 (addsi3): Separate register and immediate alternatives.
17090 Add LIW attributes.
17091 (subsi3): Likewise.
17092 (cmpsi): Likewise.
17093 (aslsi3): Likewise.
17094 (lshrsi3): Likewise.
17095 (ashrsi3): Likewise.
17096 (liw): New pattern.
17097 * config/mn10300/mn10300.c (liw_op_names): New
17098 (mn10300_print_operand): Handle 'W' operand descriptor.
17099 (extract_bundle): New function.
17100 (check_liw_constraints): New function.
17101 (liw_candidate): New function.
17102 (mn10300_bundle_liw): New function.
17103 (mn10300_reorg): New function.
17104 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17105 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
17106 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
17107 __LIW__ or __NO_LIW__.
17108 * doc/invoke.texi: Describe the -mliw command line option.
17109
17110 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17111
17112 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
17113 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17114 pthread_mutex_unlock): Remove.
17115 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
17116 * config/pa/t-pa64: Likewise.
17117 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
17118 shared libc if not linking against libpthread.
17119 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17120
17121 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
17122
17123 PR target/47558
17124 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
17125 on 10.6 and later to ensure that we always use the unwinder from
17126 the system. Only add -no_compact_unwind when tarteting darwin
17127 10.6 or later.
17128
17129 2011-02-07 Steve Ellcey <sje@cup.hp.com>
17130
17131 PR target/46997
17132 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
17133 (vec_interleave_lowv2sf): Ditto.
17134 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
17135 (vec_extract_oddv2sf): Ditto.
17136
17137 2011-02-07 Mike Stump <mikestump@comcast.net>
17138
17139 PR target/42333
17140 Add __ieee_divdc3 entry point.
17141 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
17142 entry point.
17143 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
17144 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
17145 * config/darwin.c (darwin_rename_builtins): Add.
17146 * config/darwin-protos.h (darwin_rename_builtins): Add.
17147
17148 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
17149
17150 PR target/47636
17151 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
17152 for the condition.
17153
17154 2011-02-07 Mike Stump <mikestump@comcast.net>
17155
17156 * config/darwin.opt (mmacosx-version-min): Update default OS version.
17157
17158 2011-02-07 Denis Chertykov <chertykov@gmail.com>
17159
17160 PR target/47534
17161 * config/avr/libgcc.S (exit): Move .endfunc
17162
17163 2011-02-07 Richard Guenther <rguenther@suse.de>
17164
17165 PR tree-optimization/47615
17166 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
17167 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
17168 (run_scc_vn): Initialize it.
17169 (visit_reference_op_load): Use it.
17170 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
17171
17172 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17173
17174 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
17175 DImode trapping arithmetic libfuncs.
17176
17177 2011-02-07 Richard Guenther <rguenther@suse.de>
17178
17179 PR tree-optimization/47621
17180 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
17181 two duplicates ...
17182 (execute_update_addresses_taken): ... here. Make it more
17183 conservative in what we accept.
17184
17185 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17186
17187 * config/sparc/freebsd.h (ASM_SPEC): Define.
17188 * config/sparc/vxworks.h (ASM_SPEC): Define.
17189
17190 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17191
17192 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17193
17194 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
17195
17196 * doc/invoke.texi: Remove reference to compiler internals from
17197 user documentation.
17198
17199 * reg-notes.def: Remove REG_VALUE_PROFILE.
17200 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
17201
17202 2011-02-05 Jakub Jelinek <jakub@redhat.com>
17203
17204 PR middle-end/47610
17205 * varasm.c (default_section_type_flags): If decl is NULL,
17206 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
17207
17208 2011-02-05 Jie Zhang <jie@codesourcery.com>
17209
17210 PR debug/42631
17211 * web.c (entry_register): Don't clobber the number of the
17212 first uninitialized reference in used[].
17213
17214 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
17215
17216 PR tree-optimization/46194
17217 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17218 (build_classic_dist_vector_1): Do not represent classic distance
17219 vectors when the access functions are variating in different loops.
17220
17221 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17222
17223 * config/mips/iris6.opt: New.
17224 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17225
17226 2011-02-04 Richard Henderson <rth@redhat.com>
17227 Steve Ellcey <sje@cup.hp.com>
17228
17229 PR target/46997
17230 * config/ia64/predicates.md (mux1_brcst_element): New.
17231 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17232 * config/ia64/ia64.c (ia64_unpack_assemble): New.
17233 (ia64_unpack_sign): New.
17234 (ia64_expand_unpack): Rewrite using new routines.
17235 (ia64_expand_widen_sum): Ditto.
17236 (ia64_expand_dot_prod_v8qi): Ditto.
17237 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17238 routines, add endian check.
17239 (pmpy2_even): Rename from pmpy2_r, add endian check.
17240 (pmpy2_odd): Rename from pmpy2_l, add endian check.
17241 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17242 (vec_widen_smult_hi_v4hi): Ditto.
17243 (vec_widen_umult_lo_v4hi): Ditto.
17244 (vec_widen_umult_hi_v4hi): Ditto.
17245 (mulv2si3): Change endian checks.
17246 (sdot_prodv4hi): Rewrite with new calls.
17247 (udot_prodv4hi): New.
17248 (vec_pack_ssat_v4hi): Add endian check.
17249 (vec_pack_usat_v4hi): Ditto.
17250 (vec_pack_ssat_v2si): Ditto.
17251 (max1_even): Rename from max1_r, add endian check.
17252 (max1_odd): Rename from max1_l, add endian check.
17253 (*mux1_rev): Format change.
17254 (*mux1_mix): Ditto.
17255 (*mux1_shuf): Ditto.
17256 (*mux1_alt): Ditto.
17257 (*mux1_brcst_v8qi): Use new predicate.
17258 (vec_extract_evenv8qi): Remove endian check.
17259 (vec_extract_oddv8qi): Ditto.
17260 (vec_interleave_lowv4hi): Format change.
17261 (vec_interleave_highv4hi): Ditto.
17262 (mix2_even): Rename from mix2_r, add endian check.
17263 (mix2_odd): Rename from mux2_l, add endian check.
17264 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17265 (vec_extract_evenodd_helper): Format change.
17266 (vec_extract_evenv4hi): Remove endian check.
17267 (vec_extract_oddv4hi): Remove endian check.
17268 (vec_interleave_lowv2si): Format change.
17269 (vec_interleave_highv2si): Format change.
17270 (vec_initv2si): Remove endian check.
17271 (vecinit_v2si): Add endian check.
17272 (reduc_splus_v2sf): Add endian check.
17273 (reduc_smax_v2sf): Ditto.
17274 (reduc_smin_v2sf): Ditto.
17275 (vec_initv2sf): Remove endian check.
17276 (fpack): Add endian check.
17277 (fswap): Add endian check.
17278 (vec_interleave_highv2sf): Add endian check.
17279 (vec_interleave_lowv2sf): Add endian check.
17280 (fmix_lr): Add endian check.
17281 (vec_setv2sf): Format change.
17282 (*vec_extractv2sf_0_be): Use shift to extract operand.
17283 (*vec_extractv2sf_1_be): New.
17284 (vec_pack_trunc_v4hi): Add endian check.
17285 (vec_pack_trunc_v2si): Format change.
17286
17287 2011-02-04 Jakub Jelinek <jakub@redhat.com>
17288
17289 PR inline-asm/23200
17290 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
17291 do bb, locus and block comparison and disallow loads if it is not set.
17292 (stmt_is_replaceable_p): New function.
17293 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17294 callers.
17295 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17296 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17297 SSA_NAME_DEF_STMT.
17298 * tree-flow.h (stmt_is_replaceable_p): New prototype.
17299
17300 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17301
17302 * config/rs6000/xilinx.opt: New.
17303 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17304
17305 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17306
17307 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17308
17309 2011-02-03 Anatoly Sokolov <aesok@post.ru>
17310
17311 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17312 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17313 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17314 secondary_reload_info, xtensa_secondary_reload): Remove.
17315 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17316 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17317 (xtensa_preferred_reload_class): Make static. Change return and
17318 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17319 Use CONST_DOUBLE_P predicate.
17320 (xtensa_preferred_output_reload_class): New function.
17321 (xtensa_secondary_reload): Make static.
17322
17323 2011-02-03 Joseph Myers <joseph@codesourcery.com>
17324
17325 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17326 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17327 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17328
17329 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17330
17331 PR middle-end/31490
17332 * output.h (SECTION_RELRO): Define.
17333 (SECTION_MACH_DEP): Adjust.
17334 (get_variable_section): New prototype.
17335 * varpool.c (varpool_finalize_named_section_flags): New function.
17336 (varpool_assemble_pending_decls): Call it.
17337 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17338 * cgraphunit.c (cgraph_output_in_order): Call
17339 varpool_finalize_named_section_flags.
17340 * varasm.c (get_section): Allow section flags conflicts between
17341 relro and read-only sections if the section hasn't been declared yet.
17342 Set SECTION_OVERRIDE after diagnosing section type conflict.
17343 (get_variable_section): No longer static.
17344 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17345 readonly sections that need relocations.
17346 (decl_readonly_section_1): New function.
17347 (decl_readonly_section): Use it.
17348
17349 Revert:
17350 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
17351 Steve Ellcey <sje@cup.hp.com>
17352
17353 PR middle-end/31490
17354 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17355 if section attribute used.
17356
17357 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17358
17359 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17360 * config/darwin.c (SECTION_NO_ANCHOR): Define.
17361 (darwin_init_sections): Remove assertion.
17362
17363 2011-02-03 Nick Clifton <nickc@redhat.com>
17364
17365 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17366 lt and ge.
17367 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
17368 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17369 instead of "n" and "pz".
17370 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17371 CC_FLAG_S.
17372
17373 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17374
17375 PR target/47312
17376 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17377 fma, expand FMA_EXPR as fma{,f,l} call.
17378
17379 PR lto/47274
17380 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17381 copy them into a unsigned char variable and pass address of it to
17382 lto_output_data_stream.
17383
17384 PR target/47564
17385 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17386 around backend_init_target and lang_dependent_init_target calls.
17387 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17388 (verify_cgraph_node): Don't call set_cfun here. Use
17389 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17390 Set error_found for incorrectly represented calls to thunks.
17391
17392 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17393
17394 PR debug/43092
17395 PR rtl-optimization/43494
17396 * rtl.h (for_each_inc_dec_fn): New type.
17397 (for_each_inc_dec): Declare.
17398 * rtlanal.c (struct for_each_inc_dec_ops): New type.
17399 (for_each_inc_dec_find_inc_dec): New fn.
17400 (for_each_inc_dec_find_mem): New fn.
17401 (for_each_inc_dec): New fn.
17402 * dse.c (struct insn_size): Remove.
17403 (replace_inc_dec, replace_inc_dec_mem): Remove.
17404 (emit_inc_dec_insn_before): New fn.
17405 (check_for_inc_dec): Use it, along with for_each_inc_dec.
17406 (canon_address): Pass mem modes to cselib_lookup.
17407 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
17408 (cselib_lookup_from_insn): Likewise.
17409 (cselib_subst_to_values): Likewise.
17410 * cselib.c (find_slot_memmode): New var.
17411 (cselib_find_slot): New fn. Use it instead of
17412 htab_find_slot_with_hash everywhere.
17413 (entry_and_rtx_equal_p): Use find_slot_memmode.
17414 (autoinc_split): New fn.
17415 (rtx_equal_for_cselib_p): Rename and implement in terms of...
17416 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
17417 Deal with autoinc. Special-case recursion into MEMs.
17418 (cselib_hash_rtx): Likewise.
17419 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
17420 address and MEM modes.
17421 (cselib_subst_to_values): Add memmode, pass it on.
17422 Deal with autoinc.
17423 (cselib_lookup): Add memmode argument, pass it on.
17424 (cselib_lookup_from_insn): Add memmode.
17425 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17426 (struct cselib_record_autoinc_data): New.
17427 (cselib_record_autoinc_cb): New fn.
17428 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
17429 mode to cselib_lookup. Reset autoinced REGs here instead of...
17430 (cselib_process_insn): ... here.
17431 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17432 to cselib_lookup.
17433 (add_uses): Likewise, also to cselib_subst_to_values.
17434 (add_stores): Likewise.
17435 * sched-deps.c (add_insn_mem_dependence): Pass mode to
17436 cselib_subst_to_values.
17437 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
17438 * gcse.c (do_local_cprop): Adjusted.
17439 * postreload.c (reload_cse_simplify_set): Adjusted.
17440 (reload_cse_simplify_operands): Adjusted.
17441 * sel-sched-dump (debug_mem_addr_value): Pass mode.
17442
17443 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17444
17445 PR tree-optimization/45122
17446 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17447 unsafe assumptions when there's more than one loop exit.
17448
17449 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17450
17451 PR target/47272
17452 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17453 Document using vector double with the load/store builtins, and
17454 that the load/store builtins always use Altivec instructions.
17455
17456 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17457 to use altivec memory instructions, even on VSX.
17458 (vector_altivec_store_<mode>): Ditto.
17459
17460 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17461 function.
17462
17463 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17464 V2DF, V2DI support to load/store overloaded builtins.
17465
17466 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17467 altivec load/store builtins for V2DF/V2DI types.
17468
17469 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17470 set avoid indexed addresses on power6 if -maltivec.
17471 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17472 vector_altivec_load/vector_altivec_store builtins.
17473 (altivec_expand_st_builtin): Ditto.
17474 (altivec_expand_builtin): Add VSX memory builtins.
17475 (rs6000_init_builtins): Add V2DI types to internal types.
17476 (altivec_init_builtins): Add support for V2DF/V2DI altivec
17477 load/store builtins.
17478 (rs6000_address_for_altivec): Insure memory address is appropriate
17479 for Altivec.
17480
17481 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17482 vec_vsx_ld and vec_vsx_st.
17483 (vsx_store_<mode>): Ditto.
17484
17485 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17486 variables to hold long long types for VSX vector memory builtins.
17487 (RS6000_BTI_unsigned_long_long): Ditto.
17488 (long_long_integer_type_internal_node): Ditti.
17489 (long_long_unsigned_type_internal_node): Ditti.
17490
17491 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17492 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17493 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17494
17495 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17496 short cuts.
17497 (vec_vsx_st): Ditto.
17498
17499 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17500
17501 * config/pa/pa-hpux10.opt: New.
17502 * config/hpux11.opt (pthread): New Driver option.
17503 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17504 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17505
17506 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17507
17508 * config/ia64/vms.opt: New.
17509 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17510
17511 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17512
17513 PR target/47580
17514 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17515 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17516 generator functions.
17517 (vsx_floatuns<VSi><mode>2): Ditto.
17518 (vsx_fix_trunc<mode><VSi>2): Ditto.
17519 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17520
17521 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17522
17523 * config/i386/djgpp.opt (posix): New Driver option.
17524
17525 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
17526
17527 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17528 Move to the unsupported targets list.
17529
17530 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
17531
17532 PR rtl-optimization/47525
17533 * df-scan.c: Update copyright years.
17534 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17535 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17536
17537 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17538
17539 * config/i386/sysv4.h (TARGET_VERSION): Remove.
17540 (SUBTARGET_RETURN_IN_MEMORY): Remove.
17541 (ASM_OUTPUT_ASCII): Remove.
17542 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17543
17544 2011-02-02 Jeff Law <law@redhat.com>
17545
17546 PR middle-end/47543
17547 * reload.c (find_reloads_address): Handle reg+d address where both
17548 components are invalid by reloading the entire address.
17549
17550 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17551 Richard Guenther <rguenther@suse.de>
17552
17553 PR tree-optimization/40979
17554 PR bootstrap/47044
17555 * passes.c (init_optimization_passes): After LIM call copy_prop
17556 and DCE to clean up.
17557 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17558
17559 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17560
17561 PR tree-optimization/47576
17562 PR tree-optimization/47555
17563 * doc/invoke.texi (scev-max-expr-complexity): Documented.
17564 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17565 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17566 * tree-scalar-evolution.c (follow_ssa_edge): Use
17567 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17568
17569 2011-02-02 Richard Guenther <rguenther@suse.de>
17570
17571 PR tree-optimization/47566
17572 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17573
17574 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17575
17576 PR debug/47106
17577 PR debug/47402
17578 * tree-inline.c (declare_return_variable): Remove unused caller
17579 variable.
17580
17581 PR debug/47106
17582 PR debug/47402
17583 * tree-flow-inline.h (clear_is_used, is_used_p): New.
17584 * cfgexpand.c (account_used_vars_for_block): Use them.
17585 * tree-nrv.c (tree_nrv): Likewise.
17586 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17587 (dump_scope_block): Likewise.
17588 (remove_unused_locals): Likewise.
17589
17590 PR debug/47106
17591 PR debug/47402
17592 * tree-inline.c (declare_return_variable): Add result decl to
17593 local decls only once.
17594 * gimple-low.c (record_vars_into): Mark newly-created variables
17595 as referenced.
17596
17597 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17598
17599 PR debug/47498
17600 PR debug/47501
17601 PR debug/45136
17602 PR debug/45130
17603 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17604 debug insns.
17605 (no_real_insns_p, schedule_block, set_priorities): Drop special
17606 treatment of boundary debug insns.
17607 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17608 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17609 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17610 (BOUNDARY_DEBUG_INSN_P): Likewise.
17611 (SCHEDULE_DEBUG_INSN_P): Likewise.
17612 * sched-rgn.c (init_ready_list): Drop special treatment of
17613 boundary debug insns.
17614 * final.c (rest_of_clean_state): Clear notes' BB.
17615
17616 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17617
17618 * config/openbsd.opt (assert=): New Driver option.
17619
17620 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17621
17622 * config/i386/nto.opt: New.
17623 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17624
17625 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17626
17627 * config/i386/netware.opt: New.
17628 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17629
17630 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17631
17632 * config/interix.opt (posix): New Driver option.
17633
17634 2011-02-01 DJ Delorie <dj@redhat.com>
17635
17636 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17637
17638 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17639 class for A0/A1.
17640
17641 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
17642
17643 PR tree-optimization/47561
17644 * toplev.c (process_options): Print the Graphite flags. Add
17645 flag_loop_flatten to the list of options requiring Graphite.
17646
17647 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17648
17649 * config/i386/cygming.opt (posix): New Driver option.
17650
17651 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17652
17653 * config/arm/vxworks.opt: New.
17654 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17655
17656 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17657
17658 * config/alpha/elf.opt: New.
17659 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17660 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17661
17662 2011-02-01 Richard Guenther <rguenther@suse.de>
17663
17664 PR tree-optimization/47559
17665 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17666 store-motion on references that can throw.
17667
17668 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17669
17670 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17671 * tree-pass.h (TDF_CSELIB): New macro.
17672 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17673 cselib_lookup): Check for it rather than for TDF_DETAILS.
17674
17675 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17676
17677 PR driver/47547
17678 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17679 is HOST_BIT_BUCKET.
17680
17681 * opts.c (finish_options): Don't add x_aux_base_name if it is
17682 HOST_BIT_BUCKET.
17683
17684 2011-02-01 Richard Guenther <rguenther@suse.de>
17685
17686 PR tree-optimization/47555
17687 Revert
17688 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17689
17690 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17691
17692 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17693
17694 PR gcc/46692
17695 * config/lm32/t-lm32: Add multilib for all CPU options.
17696
17697 2011-02-01 Richard Guenther <rguenther@suse.de>
17698
17699 PR tree-optimization/47541
17700 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17701 sure to have a field at offset zero.
17702
17703 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17704
17705 * config/arc/arc.opt (EB, EL): New Driver options.
17706
17707 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17708
17709 * config/alpha/osf5.opt: New.
17710 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17711
17712 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17713
17714 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17715
17716 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17717
17718 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17719 -floop-interchange.
17720 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17721 is an alias of -floop-interchange and that it requires the
17722 Graphite infrastructure.
17723 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17724 flag_loop_interchange based on the value of flag_tree_loop_linear.
17725
17726 2011-01-31 Jakub Jelinek <jakub@redhat.com>
17727 Richard Guenther <rguenther@suse.de>
17728
17729 PR tree-optimization/47538
17730 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17731 type instead of r1type, except for comparisons. For right
17732 shifts and comparisons punt if there are mismatches in
17733 sizetype vs. non-sizetype types.
17734
17735 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17736
17737 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17738 avx_runtime.
17739
17740 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17741
17742 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17743 version number.
17744 * configure: Regenerate.
17745
17746 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17747
17748 * configure.ac (gcc_cv_ld_static_option): Define.
17749 (gcc_cv_ld_dynamic_option): Define.
17750 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17751 instead.
17752 (HAVE_LD_STATIC_DYNAMIC): Update message.
17753 (LD_STATIC_OPTION): Define.
17754 (LD_DYNAMIC_OPTION): Define.
17755 * configure: Regenerate.
17756 * config.in: Regenerate.
17757 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17758 HAVE_LD_STATIC_DYNAMIC]: Use them.
17759
17760 2011-01-31 Nick Clifton <nickc@redhat.com>
17761
17762 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17763 registers inside interrupt handlers if the handler is not a leaf
17764 function.
17765
17766 2011-01-31 Nick Clifton <nickc@redhat.com>
17767
17768 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17769 reg_renumber returning an INVALID_REGNUM.
17770
17771 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17772
17773 PR libgcj/44341
17774 * doc/install.texi: Document host options discarded when cross
17775 configuring target libraries.
17776
17777 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17778
17779 Reverted:
17780 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17781 PR debug/45136
17782 PR debug/45130
17783 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17784 debug insns.
17785 (no_real_insns_p, schedule_block, set_priorities): Drop special
17786 treatment of boundary debug insns.
17787 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17788 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17789 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17790 (BOUNDARY_DEBUG_INSN_P): Likewise.
17791 (SCHEDULE_DEBUG_INSN_P): Likewise.
17792 * sched-rgn.c (init_ready_list): Drop special treatment of
17793 boundary debug insns.
17794 * final.c (rest_of_clean-state): Clear notes' BB.
17795
17796 2011-01-31 Alan Modra <amodra@gmail.com>
17797
17798 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17799 toc relative expressions as we do in print_operand_address.
17800
17801 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
17802
17803 * doc/extend.texi: Follow spelling conventions.
17804 * doc/invoke.texi: Fix a typo.
17805
17806 2011-01-30 Joseph Myers <joseph@codesourcery.com>
17807
17808 * config/hpux11.opt: New.
17809 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17810 ia64*-*-hpux*): Use hpux11.opt.
17811
17812 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
17813
17814 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17815 to tmake_file.
17816
17817 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17818
17819 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17820 support sites.
17821
17822 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17823
17824 * doc/install.texi (Binaries): Remove outdated reference for
17825 Motorola 68HC11/68HC12 downloads.
17826
17827 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17828
17829 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17830 Drepper's paper.
17831
17832 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17833
17834 PR bootstrap/47147
17835 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17836 used by NetBSD.
17837
17838 2011-01-28 Ahmad Sharif <asharif@google.com>
17839
17840 * value-prof.c (check_counter): Corrected error message.
17841
17842 2011-01-29 Jie Zhang <jie@codesourcery.com>
17843
17844 * config/arm/arm.c (arm_legitimize_reload_address): New.
17845 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17846 arm_legitimize_reload_address.
17847 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17848
17849 2011-01-28 Ian Lance Taylor <iant@google.com>
17850
17851 * godump.c (go_define): Ignore macros whose definitions include
17852 two adjacent operands.
17853
17854 2011-01-28 Jakub Jelinek <jakub@redhat.com>
17855
17856 PR target/42894
17857 * varasm.c (force_const_mem): Store copy of x in desc->constant
17858 instead of x itself.
17859 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17860 itself into REG_EQUAL note.
17861
17862 2011-01-28 Joseph Myers <joseph@codesourcery.com>
17863
17864 * config/freebsd.opt (posix, rdynamic): New Driver options.
17865
17866 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17867
17868 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17869 -Bstatic/-Bdynamic.
17870 * configure: Regenerate.
17871
17872 2011-01-27 Joseph Myers <joseph@codesourcery.com>
17873
17874 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17875 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17876
17877 2011-01-27 Anatoly Sokolov <aesok@post.ru>
17878
17879 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17880 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17881 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17882 (s390_preferred_reload_class): Make static. Change return and
17883 'rclass' argument type to reg_class_t.
17884
17885 2011-01-27 Jan Hubicka <jh@suse.cz>
17886
17887 PR middle-end/46949
17888 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17889 (process_function_and_variable_attributes): Check defined weakrefs.
17890
17891 2011-01-27 Martin Jambor <mjambor@suse.cz>
17892
17893 PR tree-optimization/47228
17894 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17895 build_ref_for_offset.
17896
17897 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17898
17899 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17900
17901 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
17902
17903 PR rtl-optimization/46856
17904 * postreload.c (reload_combine_recognize_const_pattern): Do not
17905 separate cc0 setter and user on cc0 targets.
17906
17907 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17908
17909 PR c/43082
17910 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17911 passed a VOID_TYPE expression, immediately emit an error and
17912 return error_mark_node.
17913
17914 2011-01-26 Jeff Law <law@redhat.com>
17915
17916 PR rtl-optimization/47464
17917 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17918 rather than may_trap_p as needed.
17919
17920 2011-01-26 DJ Delorie <dj@redhat.com>
17921
17922 PR rtl-optimization/46878
17923 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17924 setter/user dependency as well.
17925
17926 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17927
17928 PR rtl-optimization/44469
17929 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17930 after removing trivially dead basic blocks.
17931
17932 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17933
17934 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17935 * config/frv/frv.h (LINK_SPEC): Likewise.
17936 * config/i386/netware.h (LINK_SPEC): Likewise.
17937 * config/m68k/linux.h (ASM_SPEC): Likewise.
17938 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17939 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17940 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17941 * config/sparc/linux.h (ASM_SPEC): Likewise.
17942 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17943 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17944
17945 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17946
17947 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17948 * config/frv/frv.h (ASM_SPEC): Likewise.
17949 * config/m68k/linux.h (ASM_SPEC): Likewise.
17950 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17951 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17952 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17953 * config/sparc/linux.h (ASM_SPEC): Likewise.
17954 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17955 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17956
17957 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17958
17959 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17960 * config/frv/frv.h (LINK_SPEC): Likewise.
17961 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17962
17963 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17964
17965 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17966 * config/frv/frv.h (ASM_SPEC): Likewise.
17967 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17968 * config/m68k/linux.h (ASM_SPEC): Likewise.
17969 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17970 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17971 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17972 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17973 * config/sparc/linux.h (ASM_SPEC): Likewise.
17974 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17975 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17976 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17977
17978 2011-01-26 Steve Ellcey <sje@cup.hp.com>
17979
17980 PR target/46997
17981 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17982 (*mux2): Ditto.
17983 (vec_extract_evenodd_help): Ditto.
17984 (vec_extract_evenv4hi): Ditto.
17985 (vec_extract_oddv4hi): Ditto.
17986 (vec_interleave_lowv2si): Ditto.
17987 (vec_interleave_highv2si): Ditto.
17988 (vec_extract_evenv2si): Ditto.
17989 (vec_extract_oddv2si: Ditto.
17990 (vec_pack_trunc_v2si): Ditto.
17991
17992 2011-01-22 Jan Hubicka <jh@suse.cz>
17993
17994 PR target/47237
17995 * cgraph.h (cgraph_local_info): New field can_change_signature.
17996 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17997 signature can change.
17998 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17999 can change.
18000 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
18001 (cgraph_function_versioning): We can not change signature of functions
18002 that don't allow that.
18003 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
18004 (lto_input_node): Likewise.
18005 * ipa-inline.c (compute_inline_parameters): Compute
18006 local.can_change_signature.
18007 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
18008 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
18009 functions that can not change signature.
18010 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
18011 init_cumulative_args): Do not use local calling conventions
18012 for functions that can not change signature.
18013
18014 2011-01-22 Jan Hubicka <jh@suse.cz>
18015
18016 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
18017
18018 2011-01-26 Richard Guenther <rguenther@suse.de>
18019
18020 PR tree-optimization/47190
18021 * cgraphunit.c (process_common_attributes): New function.
18022 (process_function_and_variable_attributes): Use it.
18023
18024 2011-01-26 Richard Guenther <rguenther@suse.de>
18025
18026 PR lto/47423
18027 * cgraphbuild.c (record_eh_tables): Record reference to personality
18028 function.
18029
18030 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
18031
18032 PR debug/45454
18033 * sel-sched.c (moveup_expr): Don't let debug insns prevent
18034 non-debug insns from moving up.
18035
18036 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18037
18038 PR target/40125
18039 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
18040 t-dlldir{,-x} fragment for build and add it to tmake_file.
18041 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
18042 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
18043 * config/i386/t-dlldir: New file.
18044 (SHLIB_DLLDIR): Define.
18045 * config/i386/t-dlldir-x: New file.
18046 (SHLIB_DLLDIR): Define.
18047 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
18048 (SHLIB_INSTALL): Use it.
18049
18050 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
18051
18052 PR target/47246
18053 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
18054 lower bound of the allowed Thumb-2 coprocessor load/store
18055 index range to -256. Add explaining comment.
18056
18057 2011-01-25 Ian Lance Taylor <iant@google.com>
18058
18059 * godump.c (go_define): Improve lexing of macro expansion to only
18060 accept expressions which match Go spec.
18061
18062 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18063
18064 PR c++/43601
18065 * tree.c (handle_dll_attribute): Handle it.
18066 * doc/extend.texi (@item dllexport): Mention it.
18067 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
18068
18069 2011-01-25 Ian Lance Taylor <iant@google.com>
18070
18071 PR tree-optimization/26854
18072 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
18073 (decl_jump_unsafe): Move higher in file, with no other change.
18074 (bind): Set has_jump_unsafe_decl if appropriate.
18075 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
18076 (check_earlier_gotos): Likewise.
18077 (c_check_switch_jump_warnings): Likewise.
18078
18079 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
18080
18081 * doc/invoke.texi (Warning Options): Add missing hyphen.
18082 (-fprofile-dir): Minor grammatical fixes.
18083 (-fbranch-probabilities): Likewise.
18084
18085 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18086
18087 PR debug/45136
18088 PR debug/45130
18089 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18090 debug insns.
18091 (no_real_insns_p, schedule_block, set_priorities): Drop special
18092 treatment of boundary debug insns.
18093 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18094 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18095 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18096 (BOUNDARY_DEBUG_INSN_P): Likewise.
18097 (SCHEDULE_DEBUG_INSN_P): Likewise.
18098 * sched-rgn.c (init_ready_list): Drop special treatment of
18099 boundary debug insns.
18100 * final.c (rest_of_clean-state): Clear notes' BB.
18101
18102 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18103
18104 * Makefile.in (LAMBDA_H): Removed.
18105 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
18106 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
18107 lambda-trans.o, and tree-loop-linear.o.
18108 (lto-symtab.o): Remove dependence on LAMBDA_H.
18109 (tree-loop-linear.o): Remove rule.
18110 (lambda-mat.o): Same.
18111 (lambda-trans.o): Same.
18112 (lambda-code.o): Same.
18113 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
18114 (tree-vect-slp.o): Same.
18115 * hwint.h (gcd): Moved here.
18116 (least_common_multiple): Same.
18117 * lambda-code.c: Removed.
18118 * lambda-mat.c: Removed.
18119 * lambda-trans.c: Removed.
18120 * lambda.h: Removed.
18121 * tree-loop-linear.c: Removed.
18122 * lto-symtab.c: Do not include lambda.h.
18123 * omega.c (gcd): Removed.
18124 * passes.c (init_optimization_passes): Remove pass_linear_transform.
18125 * tree-data-ref.c (print_lambda_vector): Moved here.
18126 (lambda_vector_copy): Same.
18127 (lambda_matrix_copy): Same.
18128 (lambda_matrix_id): Same.
18129 (lambda_vector_first_nz): Same.
18130 (lambda_matrix_row_add): Same.
18131 (lambda_matrix_row_exchange): Same.
18132 (lambda_vector_mult_const): Same.
18133 (lambda_vector_negate): Same.
18134 (lambda_matrix_row_negate): Same.
18135 (lambda_vector_equal): Same.
18136 (lambda_matrix_right_hermite): Same.
18137 * tree-data-ref.h: Do not include lambda.h.
18138 (lambda_vector): Moved here.
18139 (lambda_matrix): Same.
18140 (dependence_level): Same.
18141 (lambda_transform_legal_p): Removed declaration.
18142 (lambda_collect_parameters): Same.
18143 (lambda_compute_access_matrices): Same.
18144 (lambda_vector_gcd): Same.
18145 (lambda_vector_new): Same.
18146 (lambda_vector_clear): Same.
18147 (lambda_vector_lexico_pos): Same.
18148 (lambda_vector_zerop): Same.
18149 (lambda_matrix_new): Same.
18150 * tree-flow.h (least_common_multiple): Removed declaration.
18151 * tree-parloops.c (lambda_trans_matrix): Moved here.
18152 (LTM_MATRIX): Same.
18153 (LTM_ROWSIZE): Same.
18154 (LTM_COLSIZE): Same.
18155 (LTM_DENOMINATOR): Same.
18156 (lambda_trans_matrix_new): Same.
18157 (lambda_matrix_vector_mult): Same.
18158 (lambda_transform_legal_p): Same.
18159 * tree-pass.h (pass_linear_transform): Removed declaration.
18160 * tree-ssa-loop.c (tree_linear_transform): Removed.
18161 (gate_tree_linear_transform): Removed.
18162 (pass_linear_transform): Removed.
18163 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
18164 flag_loop_interchange.
18165
18166 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18167
18168 PR tree-optimization/47265
18169 PR tree-optimization/47443
18170 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
18171 if name still has some uses.
18172
18173 2011-01-25 Martin Jambor <mjambor@suse.cz>
18174
18175 PR tree-optimization/47382
18176 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
18177 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
18178
18179 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
18180
18181 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
18182 sjlj_except_unwind_info.
18183
18184 2011-01-25 Richard Guenther <rguenther@suse.de>
18185
18186 PR tree-optimization/47426
18187 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
18188 visible functions results escape.
18189
18190 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18191
18192 PR target/45701
18193 * config/arm/arm.c (any_sibcall_uses_r3): New function.
18194 (arm_get_frame_offsets): Use it.
18195
18196 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18197 Jakub Jelinek <jakub@redhat.com>
18198
18199 PR tree-optimization/47271
18200 * tree-if-conv.c (bb_postdominates_preds): New.
18201 (if_convertible_bb_p): Call bb_postdominates_preds.
18202 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
18203 (predicate_scalar_phi): Call bb_postdominates_preds.
18204
18205 2011-01-25 Nick Clifton <nickc@redhat.com>
18206
18207 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
18208 * config/rx/rx.c (rx_function_value): Likewise.
18209 (rx_promote_function_mode): Likewise.
18210 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18211 in order to make it legitimate.
18212 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18213 make sure that the first operand is the same as the result register.
18214 (addsi3_unspec): Delete.
18215 (subdi3): Do not accept immediate operands.
18216 (subdi3_internal): Likewise.
18217
18218 2011-01-25 Jeff Law <law@redhat.com>
18219
18220 PR rtl-optimization/37273
18221 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18222 handle them like argument loads from stack slots. Do not double
18223 count memory for memory constants and argument loads from stack slots.
18224
18225 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18226
18227 PR tree-optimization/47427
18228 PR tree-optimization/47428
18229 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18230 coalesce if the new root var would be TREE_READONLY.
18231
18232 2011-01-25 Richard Guenther <rguenther@suse.de>
18233
18234 PR middle-end/47414
18235 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18236 correct type for TBAA.
18237
18238 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18239
18240 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18241 (close_phi_written_to_memory): Call for_each_index with
18242 dr_indices_valid_in_loop.
18243
18244 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18245
18246 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18247 when it is initialized.
18248
18249 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18250
18251 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18252 call to graphite_find_data_references_in_stmt.
18253 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18254 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
18255 call to graphite_find_data_references_in_stmt.
18256 (analyze_drs_in_stmts): Same.
18257 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18258 in which the scalar analysis of indices is performed.
18259 (create_data_ref): Same. Update call to dr_analyze_indices.
18260 (find_data_references_in_stmt): Update call to create_data_ref.
18261 (graphite_find_data_references_in_stmt): Same.
18262 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18263 declaration.
18264 (create_data_ref): Same.
18265 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18266 call to create_data_ref.
18267
18268 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18269
18270 * graphite-sese-to-poly.c (build_poly_scop): Move
18271 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18272
18273 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18274
18275 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18276 VAR_DECL, PARM_DECL, and RESULT_DECL.
18277
18278 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18279
18280 * graphite-dependences.c (reduction_dr_1): Allow several reductions
18281 in a reduction PBB.
18282 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18283 that have already been marked as PBB_IS_REDUCTION.
18284
18285 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18286
18287 * graphite-scop-detection.c (same_close_phi_node): New.
18288 (remove_duplicate_close_phi): New.
18289 (make_close_phi_nodes_unique): New.
18290 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18291
18292 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18293
18294 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18295 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18296 of both data references to be the same.
18297
18298 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18299
18300 * graphite-dependences.c (build_lexicographical_constraint): Remove
18301 the gdim parameter.
18302 (build_lexicographical_constraint): Adjust call to
18303 ppl_powerset_is_empty.
18304 (dependence_polyhedron): Same.
18305 (graphite_legal_transform_dr): Same.
18306 (graphite_carried_dependence_level_k): Same.
18307 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18308 parameter.
18309 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18310
18311 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18312
18313 * graphite-sese-to-poly.c
18314 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18315 (close_phi_written_to_memory): New.
18316 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18317 and unshare_expr.
18318
18319 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18320
18321 * doc/install.texi: Update the expected version number of PPL to 0.11.
18322 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18323 #if PPL_VERSION_MINOR < 11.
18324
18325 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18326
18327 * graphite-dependences.c: Include graphite-cloog-util.h.
18328 (new_poly_ddr): Inlined into dependence_polyhedron.
18329 (free_poly_ddr): Moved close by new_poly_ddr.
18330 (dependence_polyhedron_1): Renamed dependence_polyhedron.
18331 Early return NULL when ppl_powerset_is_empty returns true.
18332 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
18333 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
18334 (graphite_legal_transform_dr): Call new_poly_ddr.
18335 (graphite_carried_dependence_level_k): Same.
18336 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
18337 (dot_transformed_deps_stmt_1): Removed.
18338 (dot_deps_stmt_1): Call dot_deps_stmt_2.
18339 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
18340 (dot_deps_1): Call dot_deps_2.
18341 * Makefile.in (graphite-dependences.o): Add missing dependence on
18342 graphite-cloog-util.h.
18343
18344 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18345
18346 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18347 (build_lexicographical_constraint): Same.
18348 (dependence_polyhedron_1): Same.
18349 (graphite_legal_transform_dr): Same.
18350 (graphite_carried_dependence_level_k): Same.
18351 * graphite-ppl.c (ppl_powerset_is_empty): New.
18352 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18353 * tree-data-ref.c (dump_data_reference): Print the basic block index.
18354
18355 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18356
18357 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18358 the "a followed by b" relation and document it.
18359
18360 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18361
18362 * graphite-dependences.c (build_lexicographical_constraint): Stop the
18363 iteration when the bag of constraints is empty.
18364
18365 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18366
18367 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18368
18369 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18370
18371 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18372 nest and two loop depths as parameters.
18373 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18374 lst_perfect_nestify.
18375
18376 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18377
18378 * graphite-dependences.c (print_pddr): Call
18379 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18380
18381 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18382
18383 * graphite-ppl.c (debug_gmp_value): New.
18384 * graphite-ppl.h (debug_gmp_value): Declared.
18385
18386 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
18387
18388 * doc/install.texi: Document availability of cloog-0.16.
18389
18390 2011-01-25 Vladimir Kargov <kargov@gmail.com>
18391
18392 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18393 invalid postdominance info.
18394
18395 2011-01-24 Jan Hubicka <jh@suse.cz>
18396
18397 PR c/21659
18398 * doc/extend.texi (weak pragma): Drop claim that it must
18399 appear before definition.
18400 * varasm.c (merge_weak, declare_weak): Only sanity check
18401 that DECL is not output at a time it is declared weak.
18402
18403 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
18404
18405 * machmode.def: Fixed comments.
18406
18407 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
18408
18409 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18410
18411 2011-01-24 Paul Koning <ni1d@arrl.net>
18412
18413 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
18414 WORDS_BIG_ENDIAN.
18415
18416 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
18417
18418 PR target/46519
18419 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18420 (block_info): Add scanned and prev.
18421 (move_or_delete_vzeroupper_2): Return if the basic block
18422 has been scanned and the upper 128bit state is unchanged
18423 from the last scan.
18424 (move_or_delete_vzeroupper_1): Return true if the exit
18425 state is changed.
18426 (move_or_delete_vzeroupper): Visit basic blocks using the
18427 work-list based algorithm based on vt_find_locations in
18428 var-tracking.c.
18429
18430 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18431
18432 2011-01-24 Nick Clifton <nickc@redhat.com>
18433
18434 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18435 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18436 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
18437 then define __v850e1__.
18438 * doc/invoke.texi: Document -mv850es.
18439
18440 2011-01-24 Richard Henderson <rth@redhat.com>
18441
18442 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18443 compound unordered comparisons.
18444 * config/rx/rx.c (rx_split_fp_compare): Remove.
18445 * config/rx/rx-protos.h: Update.
18446 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18447 (cbranchsf4): Don't call rx_split_fp_compare.
18448 (*cbranchsf4): Use rx_split_cbranch.
18449 (*cmpsf): Don't accept "i" constraint.
18450 (*conditional_branch): Only valid after reload.
18451 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
18452
18453 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18454
18455 PR target/47385
18456 * config/rs6000/altivec.md (vector constant splitters): Add
18457 support for creating vector single precision constants if -mvsx is
18458 used and we would create the constant using Altivec primitives.
18459
18460 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
18461 Richard Sandiford <rdsandiford@googlemail.com>
18462
18463 PR rtl-optimization/47166
18464 * reload1.c (emit_reload_insns): Disable the spill_reg_store
18465 mechanism for PRE_MODIFY and POST_MODIFY.
18466 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18467 reloadreg.
18468
18469 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
18470
18471 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18472
18473 2011-01-22 Jan Hubicka <jh@suse.cz>
18474
18475 PR lto/47333
18476 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18477
18478 2011-01-22 Jan Hubicka <jh@suse.cz>
18479
18480 PR tree-optimization/43884
18481 PR lto/44334
18482 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18483 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18484
18485 2011-01-22 Anatoly Sokolov <aesok@post.ru>
18486
18487 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18488 * config/s390/s390.c (s390_register_move_cost,
18489 s390_memory_move_cost): New.
18490 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18491
18492 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18493
18494 PR middle-end/47401
18495 * except.c (sjlj_assign_call_site_values): Move setting the
18496 crtl->uses_eh_lsda flag to ...
18497 (sjlj_mark_call_sites): ... here.
18498 (sjlj_emit_function_enter): Support NULL dispatch label.
18499 (sjlj_build_landing_pads): In a function with no landing pads
18500 that still has must-not-throw regions, generate code to register
18501 a personality function with empty LSDA.
18502
18503 2011-01-21 Richard Henderson <rth@redhat.com>
18504
18505 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18506
18507 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18508
18509 * compare-elim.c: New file.
18510 * Makefile.in (OBJS-common): Add it.
18511 (compare-elim.o): New.
18512 * common.opt (fcompare-elim): New.
18513 * opts.c (default_options_table): Add OPT_fcompare_elim.
18514 * tree-pass.h (pass_compare_elim_after_reload): New.
18515 * passes.c (init_optimization_passes): Add it.
18516 * recog.h: Protect against re-inclusion.
18517 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18518 * doc/invoke.texi (-fcompare-elim): Document it.
18519 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18520 * doc/tm.texi: Rebuild.
18521
18522 2011-01-22 Nick Clifton <nickc@redhat.com>
18523
18524 * config/rx/rx.md (cstoresf4): Pass comparison operator to
18525 rx_split_fp_compare.
18526
18527 2011-01-22 Nick Clifton <nickc@redhat.com>
18528
18529 * config/rx/rx.md (UNSPEC_CONST): New.
18530 (deallocate_and_return): Wrap the amount popped off the stack in
18531 an UNSPEC_CONST in order to stop it being rejected by
18532 -mmax-constant-size.
18533 (pop_and_return): Add a "(return)" rtx.
18534 (call): Drop the immediate operand.
18535 (call_internal): Likewise.
18536 (call_value): Likewise.
18537 (call_value_internal): Likewise.
18538 (sibcall_internal): Likewise.
18539 (sibcall_value_internal): Likewise.
18540 (sibcall): Likewise. Generate an explicit call using
18541 sibcall_internal.
18542 (sibcall_value): Likewise.
18543 (mov<>): FAIL if a constant operand is not legitimate.
18544 (addsi3_unpsec): New pattern.
18545
18546 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18547 (ok_for_max_constant): New function.
18548 (gen_safe_add): New function.
18549 (rx_expand_prologue): Use gen_safe_add.
18550 (rx_expand_epilogue): Likewise.
18551 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
18552 UNSPEC CONSTs.
18553
18554 2011-01-21 Jeff Law <law@redhat.com>
18555
18556 PR tree-optimization/47053
18557 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18558 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18559 statements are deleted.
18560 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
18561 is nonempty, then purge dead edges and cleanup the CFG.
18562
18563 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18564
18565 PR debug/47402
18566 Temporarily revert:
18567 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18568 PR debug/47106
18569 * tree-dfa.c (create_var_ann): Mark variable as used.
18570
18571 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18572
18573 PR middle-end/45566
18574 * except.c (convert_to_eh_region_ranges): Emit queued no-region
18575 notes from other section in hot/cold partitioning even if
18576 last_action is -3. Increment call_site_base.
18577
18578 PR rtl-optimization/47366
18579 * fwprop.c (forward_propagate_into): Return bool. If
18580 any changes are made, -fnon-call-exceptions is used and
18581 REG_EH_REGION note is present, call purge_dead_edges
18582 and return true if it purged anything.
18583 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18584 any EH edges were purged.
18585
18586 2011-01-21 Jeff Law <law@redhat.com>
18587
18588 PR rtl-optimization/41619
18589 * caller-save.c (setup_save_areas): Break out code to determine
18590 which hard regs are live across calls by examining the reload chains
18591 so that it is always used.
18592 Eliminate code which checked REG_N_CALLS_CROSSED.
18593
18594 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18595
18596 PR tree-optimization/47355
18597 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18598 NOP has non-debug uses beyond PHIs in new_bb.
18599
18600 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18601
18602 PR debug/47106
18603 * cfgexpand.c (account_used_vars_for_block): Only account vars
18604 that are annotated as used.
18605 (estimated_stack_frame_size): Don't set TREE_USED.
18606 * tree-dfa.c (create_var_ann): Mark variable as used.
18607
18608 2011-01-21 Richard Guenther <rguenther@suse.de>
18609
18610 PR middle-end/47395
18611 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18612
18613 2011-01-21 Richard Guenther <rguenther@suse.de>
18614
18615 PR tree-optimization/47365
18616 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18617 (vn_reference_lookup_pieces): Adjust.
18618 (vn_reference_lookup): Likewise.
18619 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18620 (vn_reference_lookup_3): Only look through kills if in
18621 VN_WALKREWRITE mode.
18622 (vn_reference_lookup_pieces): Adjust.
18623 (vn_reference_lookup): Likewise.
18624 (visit_reference_op_load): Likewise.
18625 (visit_reference_op_store): Likewise.
18626 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18627 (compute_avail): Likewise.
18628 (eliminate): Likewise.
18629
18630 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18631
18632 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18633 DECL_IGNORED_P non-reg vars if they are used.
18634
18635 PR tree-optimization/47391
18636 * varpool.c (const_value_known_p): Return false if
18637 decl is volatile.
18638
18639 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
18640
18641 PR bootstrap/47215
18642 * config/i386/i386.c (ix86_local_alignment): Handle
18643 case for va_list_type_node is nil.
18644 (ix86_canonical_va_list_type): Likewise.
18645
18646 2011-01-21 Alan Modra <amodra@gmail.com>
18647
18648 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18649 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18650
18651 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18652
18653 * config/arm/arm.md (define_attr type): Rename f_load
18654 and f_store to f_fpa_load and f_fpa_store. Update.
18655 (write_conflict): Deal with rename fallout.
18656 (*push_fp_multi): Likewise.
18657 * config/arm/fpa.md (f_load): Use f_fpa_load.
18658 (f_store): Use f_fpa_store.
18659 (*movsf_fpa): Likewise.
18660 (*movdf_fpa): Likewise.
18661 (*movxf_fpa): Likewise.
18662 (*thumb2_movsf_fpa): Likewise.
18663 (*thumb2_movdf_fpa): Likewise.
18664 (*thumb2_movxf_fpa): Likewise.
18665 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18666 f_loadd and f_stored.
18667 (*thumb2_movdi_vfp): Likewise.
18668 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18669 (*thumb2_movsi_vfp): Likewise.
18670 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18671 Use f_loads instead of f_load.
18672 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18673
18674 2011-01-20 Anatoly Sokolov <aesok@post.ru>
18675
18676 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18677 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18678 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18679 (xtensa_mode_dependent_address_p): New function.
18680 (constantpool_address_p): Make static. Change return type to bool.
18681 Change argument type to const_rtx. Use CONST_INT_P predicate.
18682
18683 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
18684
18685 PR debug/46583
18686 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18687
18688 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18689
18690 PR debug/47283
18691 * cfgexpand.c (expand_debug_expr): Instead of generating
18692 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18693 etc. handling.
18694
18695 2011-01-20 Richard Guenther <rguenther@suse.de>
18696
18697 PR middle-end/47370
18698 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18699 the pointer operand of MEM_REFs.
18700
18701 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18702
18703 PR tree-optimization/46130
18704 * ipa-split.c (consider_split): If return_bb contains non-virtual
18705 PHIs other than for retval or if split_function would not adjust it,
18706 refuse to split.
18707
18708 2011-01-20 Richard Guenther <rguenther@suse.de>
18709
18710 PR tree-optimization/47167
18711 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18712 Revert previous change, only avoid enumeral type changes.
18713
18714 2011-01-19 Mike Stump <mikestump@comcast.net>
18715
18716 * doc/tm.texi.in (BRANCH_COST): Englishify.
18717 * doc/tm.texi (BRANCH_COST): Likewise.
18718
18719 2011-01-19 Dodji Seketeli <dodji@redhat.com>
18720
18721 PR c++/47291
18722 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18723 (gen_scheduled_generic_parms_dies): New functions.
18724 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18725 generation for the end of CU compilation.
18726 (dwarf2out_finish): Generate template parameters DIEs here.
18727
18728 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18729
18730 PR debug/46240
18731 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18732 debug bind stmt on merge edges.
18733
18734 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18735
18736 PR debug/47079
18737 PR debug/46724
18738 * function.c (instantiate_expr): Instantiate incoming rtl of
18739 implicit arguments, and recurse on VALUE_EXPRs.
18740 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18741 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18742
18743 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18744
18745 * c-parser.c (c_parser_for_statement): Initialize
18746 collection_expression.
18747
18748 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18749
18750 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18751
18752 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18753
18754 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18755 (LINK_SHLIB_SPEC): Don't use %(link_path).
18756 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18757
18758 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18759
18760 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18761 (NO_SHARED_LIB_SUPPORT): Remove.
18762 (LINK_SHLIB_SPEC): Remove one conditional definition.
18763
18764 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18765
18766 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18767 %{call_shared}.
18768 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18769 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18770 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18771 %{call_shared} and conditionals on these options not being passed.
18772 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18773 %{call_shared}.
18774
18775 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18776
18777 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18778 simplify.
18779
18780 * ipa-split.c: Spelling fixes.
18781
18782 2011-01-19 Richard Henderson <rth@redhat.com>
18783
18784 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18785 (*mulsi3): Likewise.
18786
18787 * longlong.h [__mn10300__] (count_leading_zeros): New.
18788 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18789 [__mn10300__] (add_ssaaaa, subddmmss): New.
18790 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18791 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18792
18793 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18794
18795 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18796
18797 2011-01-19 Richard Henderson <rth@redhat.com>
18798
18799 * config/mn10300/mn10300.md (addsi3_flags): New.
18800 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18801 (subsi3_flags, subc_internal, subdi3): New.
18802 (subdi3_internal, *subdi3_degenerate): New.
18803 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18804
18805 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18806 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18807 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18808 * config/mn10300/mn10300-protos.h: Update.
18809 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18810 (return_ret): Likewise. Rename from return_internal_regs.
18811 (return_internal): Remove.
18812
18813 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18814 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18815 (mn10300_legitimate_constant_p): Likewise.
18816 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18817 (mn10300_frame_size): New.
18818 (mn10300_expand_prologue): Use it.
18819 (mn10300_expand_epilogue): Likewise.
18820 (mn10300_initial_offset): Likewise.
18821 * config/mn10300/mn10300-protos.h: Update.
18822 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18823 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18824 (prologue, epilogue, return_internal): Tidy output code.
18825 (mn10300_store_multiple_operation, return): Likewise.
18826 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18827 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18828 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18829 (load_pic, am33_load_pic): New.
18830 (mn10300_load_pic0, mn10300_load_pic1): New.
18831
18832 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18833 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18834 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18835 (cc_flags_for_mode, cc_flags_for_code): New.
18836 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18837 overflow flag is not valid. Validate that the flags we need
18838 for the comparison are valid.
18839 (mn10300_output_cmp): Remove.
18840 (mn10300_output_add): New.
18841 (mn10300_select_cc_mode): Use cc_flags_for_code.
18842 (mn10300_split_cbranch): New.
18843 (mn10300_match_ccmode): New.
18844 (mn10300_split_and_operand_count): New.
18845 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18846 to the function.
18847 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18848 (addsi3): ... here. Use mn10300_output_add.
18849 (*addsi3_flags): New.
18850 (*am33_subsi3, *mn10300_subsi3): Merge...
18851 (subsi3): ... here. Use attribute isa.
18852 (*subsi3_flags): New.
18853 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18854 when possible.
18855 (*am33_andsi3, *mn10300_andsi3): Merge...
18856 (andsi3): ... here.
18857 (*andsi3_flags): New.
18858 (andsi3 splitters): New.
18859 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18860 (iorsi3): ... here.
18861 (*iorsi3_flags): New.
18862 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18863 (xorsi3): ... here.
18864 (*xorsi3_flags): New.
18865 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18866 (one_cmplsi2): ... here.
18867 (*one_cmplsi2_flags): New.
18868 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18869 instead of "dax" in constraints. Use mn10300_split_cbranch.
18870 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18871 use matching constraints to eliminate a self-comparison.
18872 (*integer_conditional_branch): Rename from integer_conditional_branch.
18873 Use int_mode_flags to match CC_REG.
18874 (*cbranchsi4_btst, *btstsi): New.
18875 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18876 mn10300_split_cbranch.
18877 (*am33_cmpsf): Rename from am33_cmpsf.
18878 (*float_conditional_branch): Rename from float_conditional_branch.
18879 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18880 (zero_extendqisi2): ... here.
18881 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18882 (zero_extendhisi2): ... here.
18883 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18884 (extendqisi2): ... here.
18885 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18886 (extendhisi2): ... here.
18887 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18888 (ashlsi3): ... here.
18889 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18890 (lshrsi3): ... here.
18891 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18892 (ashrsi3): ... here.
18893 (consecutive add peephole): Remove.
18894 * config/mn10300/predicates.md (label_ref_operand): New.
18895 (int_mode_flags): New.
18896 (CCZN_comparison_operator): New.
18897
18898 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18899 (throughput_42_latency_43): New reservation.
18900 (mulsidi3, umulsidi3): New expanders.
18901 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18902 the MDR register to allocation; separately allocate the low and
18903 high parts of the DImode result.
18904 (umulsidi3_internal): Similarly.
18905 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18906 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18907 (udivsi3, umodsi3): Remove.
18908 (udivmodsi4, divmodsi4): New expanders.
18909 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18910 (*divmodsi4): Simiarly.
18911 (ext_internal): New.
18912
18913 * config/mn10300/constraints.md ("z"): New constraint.
18914 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18915 (FIXED_REGISTERS): Don't fix MDR.
18916 (CALL_USED_REGSITERS): Reformat nicely.
18917 (REG_ALLOC_ORDER): Add MDR.
18918 (enum regclass): Add MDR_REGS.
18919 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18920 (IRA_COVER_CLASSES): Add MDR_REGS.
18921 (REGNO_REG_CLASS): Handle MDR_REG.
18922 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18923 (mn10300_register_move_cost): Likewise.
18924 * config/mn10300/mn10300.md (MDR_REG): New.
18925 (*movsi_internal): Handle moves to/from MDR_REGS.
18926
18927 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18928 POST_MODIFY.
18929 (mn10300_secondary_reload): Tidy combination reload classes.
18930 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18931 addresses for AM33. Allow symbolic offsets for reg+imm.
18932 (mn10300_regno_in_class_p): New.
18933 (mn10300_legitimize_reload_address): New.
18934 * config/mn10300/mn10300.h (enum reg_class): Remove
18935 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18936 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18937 SP_OR_GENERAL_REGS.
18938 (REG_CLASS_NAMES): Update to match.
18939 (REG_CLASS_CONTENTS): Likewise.
18940 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18941 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18942 (REGNO_IN_RANGE_P): Remove.
18943 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18944 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18945 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18946 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18947 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18948 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18949 (REGNO_GENERAL_P): New.
18950 (HAVE_POST_MODIFY_DISP): New.
18951 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18952 (LEGITIMIZE_RELOAD_ADDRESS): New.
18953 * config/mn10300/mn10300-protos.h: Update.
18954
18955 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18956 DATA_REGS for AM33 stack-pointer destination.
18957 (mn10300_preferred_output_reload_class): Likewise.
18958 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18959 into a form appropriate for ...
18960 (TARGET_SECONDARY_RELOAD): New.
18961 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18962 * config/mn10300/mn10300-protos.h: Update.
18963 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18964 reload_insi; use the "A" constraint for the scratch; handle AM33
18965 moves of sp to non-address registers.
18966
18967 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18968 (*movqi_internal): ... here.
18969 (*am33_movhi, *mn10300_movhi): Merge into...
18970 (*movhi_internal): ... here.
18971 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18972 as the source/destination of moves from/to SP.
18973 (movsf): Only allow for AM33-2.
18974 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18975 any integer constant constraint. Only allow for AM33-2. Tidy
18976 all of the alternative outputs.
18977 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18978 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18979 for MN103.
18980 (udivsi3, umodsi3): New patterns for MN103 only.
18981
18982 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
18983
18984 * doc/tm.texi.in: Spell out that a lack of register class unions
18985 can lead to ICEs.
18986 * doc/tm.texi: Regenerate.
18987
18988 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18989
18990 PR rtl-optimization/47337
18991 * dce.c (check_argument_store): New function.
18992 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18993
18994 PR tree-optimization/47290
18995 * tree-eh.c (infinite_empty_loop_p): New function.
18996 (cleanup_empty_eh): Use it.
18997
18998 2011-01-18 Steve Ellcey <sje@cup.hp.com>
18999
19000 PR target/46997
19001 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
19002 (a64_expand_widen_sum): Ditto.
19003 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
19004 (vec_extract_evenodd_help): Ditto.
19005 (vec_extract_evenv4hi): Ditto.
19006 (vec_extract_oddv4hi): Ditto.
19007 (vec_extract_evenv2si): Ditto.
19008 (vec_extract_oddv2si): Ditto.
19009 (vec_extract_evenv2sf): Ditto.
19010 (vec_extract_oddv2sf): Ditto.
19011 (vec_pack_trunc_v4hi: Ditto.
19012 (vec_pack_trunc_v2si): Ditto.
19013 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
19014 (vec_interleave_highv8qi): Ditto.
19015 (mix1_r): Ditto.
19016 (vec_extract_oddv8qi): Ditto.
19017 (vec_interleave_lowv4hi): Ditto.
19018 (vec_interleave_highv4hi): Ditto.
19019 (vec_interleave_lowv2si): Ditto.
19020 (vec_interleave_highv2si): Ditto.
19021
19022 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19023
19024 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
19025 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
19026 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
19027 (pa_c_mode_for_suffix): New.
19028 (TARGET_EXPAND_BUILTIN): Define.
19029 (TARGET_C_MODE_FOR_SUFFIX): Define.
19030 (pa_builtins): Define.
19031 (pa_init_builtins): Register __float128 type and init new support
19032 builtins.
19033 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
19034 * config/pa/quadlib.c (_U_Qfcopysign): New.
19035
19036 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
19037
19038 PR middle-end/46894
19039 * explow.c (allocate_dynamic_stack_space): Do not assume more than
19040 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
19041 are defined.
19042
19043 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19044
19045 PR tree-optimization/47179
19046 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
19047 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
19048
19049 2011-01-18 Richard Guenther <rguenther@suse.de>
19050
19051 PR rtl-optimization/47216
19052 * emit-rtl.c: Include tree-flow.h.
19053 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
19054 of replicating it with different semantics.
19055 * Makefile.in (emit-rtl.o): Adjust.
19056
19057 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19058
19059 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
19060 (cortex_a9_dp): Handle neon types correctly.
19061
19062 2011-01-18 Jakub Jelinek <jakub@redhat.com>
19063
19064 PR rtl-optimization/47299
19065 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
19066 subtarget. Use normal multiplication if both operands are constants.
19067 * expmed.c (expand_widening_mult): Don't try to optimize constant
19068 multiplication if op0 has VOIDmode. Convert op1 constant to mode
19069 before using it.
19070
19071 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19072
19073 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
19074 spacing after 'e.g.', typos, comma, hyphenation.
19075
19076 2011-01-17 Richard Henderson <rth@redhat.com>
19077
19078 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
19079 (rx_restricted_mem_operand): New.
19080 (rx_shift_operand): Use register_operand.
19081 (rx_source_operand, rx_compare_operand): Likewise.
19082 * config/rx/rx.md (addsi3_flags): New expander.
19083 (adddi3): Rewrite as expander.
19084 (adc_internal, *adc_flags, adddi3_internal): New patterns.
19085 (subsi3_flags): New expander.
19086 (subdi3): Rewrite as expander.
19087 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
19088
19089 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
19090 (rx_init_builtins): Remove sat builtin.
19091 (rx_expand_builtin): Likewise.
19092 * config/rx/rx.md (ssaddsi3): New.
19093 (*sat): Rename from sat. Represent the CC_REG input.
19094
19095 * config/rx/predicates.md (rshift_operator): New.
19096 * config/rx/rx.c (rx_expand_insv): Remove.
19097 * config/rx/rx-protos.h: Update.
19098 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
19099 operand to the canonical position.
19100 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
19101 (*bitclr, *bitclr_in_memory): Similarly.
19102 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
19103 (insv): Retain the zero_extract in the expansion.
19104
19105 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
19106 (bswaphi2, bitinvert, revw): Likewise.
19107
19108 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
19109 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
19110 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
19111 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
19112 (bitset, bitset_in_memory): Likewise.
19113 (bitinvert, bitinvert_in_memory): Likewise.
19114 (bitclr, bitclr_in_memory): Likewise.
19115 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
19116 (rx_strend, rx_cmpstrn): Likewise.
19117 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
19118 (bitop peep2 patterns): Remove.
19119
19120 * config/rx/rx.c (rx_match_ccmode): New.
19121 * config/rx/rx-protos.h: Update.
19122 * config/rx/rx.md (abssi2): Clobber, don't set flags.
19123 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
19124 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
19125 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
19126 (fix_truncsfsi2, floatsisf2): Likewise.
19127 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
19128 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
19129 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
19130 (*subsi3_flags, *xorsi3_flags): New.
19131
19132 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
19133
19134 * config/rx/rx.c (rx_print_operand): Remove workaround for
19135 unsplit comparison operations.
19136
19137 * config/rx/rx.md (movsicc): Split after reload.
19138 (*movsicc): Merge *movsieq and *movsine via match_operator.
19139 (*stcc): New pattern.
19140
19141 * config/rx/rx.c (rx_float_compare_mode): Remove.
19142 * config/rx/rx.h (rx_float_compare_mode): Remove.
19143 * config/rx/rx.md (cstoresi4): Split after reload.
19144 (*sccc): New pattern.
19145
19146 * config/rx/predicates.md (label_ref_operand): New.
19147 (rx_z_comparison_operator): New.
19148 (rx_zs_comparison_operator): New.
19149 (rx_fp_comparison_operator): New.
19150 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
19151 Validate that the flags are set properly for the comparison.
19152 (rx_gen_cond_branch_template): Remove.
19153 (rx_cc_modes_compatible): Remove.
19154 (mode_from_flags): New.
19155 (flags_from_code): Rename from flags_needed_for_conditional.
19156 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
19157 (rx_select_cc_mode): Likewise.
19158 (rx_split_fp_compare): New.
19159 (rx_split_cbranch): New.
19160 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
19161 (*cbranchsi4): Use match_operator and rx_split_cbranch.
19162 (*cbranchsf4): Similarly.
19163 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
19164 match_operator and rx_split_cbranch.
19165 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
19166 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
19167 (*cmpsi): Rename from cmpsi.
19168 (*tstsi): Rename from tstsi.
19169 (*cmpsf): Rename from cmpsf; use CC_Fmode.
19170 (*conditional_branch): Rename from conditional_branch.
19171 (*reveresed_conditional_branch): Remove.
19172 (b<code>): Remove expander.
19173 * config/rx/rx-protos.h: Update.
19174
19175 * config/rx/rx.c (rx_compare_redundant): Remove.
19176 * config/rx/rx.md (cmpsi): Don't use it.
19177 * config/rx/rx-protos.h: Update.
19178
19179 * config/rx/rx-modes.def (CC_F): New mode.
19180 * config/rx/rx.c (rx_select_cc_mode): New.
19181 * config/rx/rx.h (SELECT_CC_MODE): Use it.
19182 * config/rx/rx-protos.h: Update.
19183
19184 2011-01-17 Richard Henderson <rth@redhat.com>
19185
19186 * except.c (dump_eh_tree): Fix stray ; after for statement.
19187
19188 2011-01-17 Richard Guenther <rguenther@suse.de>
19189
19190 PR tree-optimization/47313
19191 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
19192 handling before copying the body. Properly deal with
19193 by-reference result in SSA form.
19194
19195 2011-01-17 Ian Lance Taylor <iant@google.com>
19196
19197 PR target/47219
19198 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
19199 (struct_value_alias_set): Don't define.
19200 (sparc_option_override): Don't set sparc_sr_alias_set and
19201 struct_value_alias_set.
19202 (save_or_restore_regs): Use gen_frame_mem rather than calling
19203 set_mem_alias_set.
19204 (sparc_struct_value_rtx): Likewise.
19205
19206 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
19207
19208 PR target/47318
19209 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
19210 (_mm_maskstore_pd): Likewise.
19211 (_mm_maskload_ps): Likewise.
19212 (_mm_maskstore_ps): Likewise.
19213 (_mm256_maskload_pd): Change mask to __m256i.
19214 (_mm256_maskstore_pd): Likewise.
19215 (_mm256_maskload_ps): Likewise.
19216 (_mm256_maskstore_ps): Likewise.
19217
19218 * config/i386/i386-builtin-types.def: Updated.
19219 (ix86_expand_special_args_builtin): Likewise.
19220
19221 * config/i386/i386.c (bdesc_special_args): Update
19222 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19223 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19224 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19225 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19226
19227 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19228 Use <avxpermvecmode> on mask register.
19229 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19230
19231 2011-01-17 Olivier Hainque <hainque@adacore.com>
19232 Michael Haubenwallner <michael.haubenwallner@salomon.at>
19233 Eric Botcazou <ebotcazou@adacore.com>
19234
19235 PR target/46655
19236 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19237 if <= USHRT_MAX in 32-bit mode.
19238
19239 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19240
19241 * doc/install.texi (Configuration, Specific): Wrap long
19242 lines in examples. Allow line wrapping in long options
19243 and URLs where beneficial for PDF output.
19244
19245 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
19246
19247 * config/mips/mips.c (mips_classify_symbol): Don't return
19248 SYMBOL_PC_RELATIVE for nonlocal labels.
19249
19250 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
19251
19252 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19253
19254 2011-01-15 Jan Hubicka <jh@suse.cz>
19255
19256 PR tree-optimization/47276
19257 * ipa.c (function_and_variable_visibility): Do not try to mark alias
19258 declarations as needed.
19259
19260 2011-01-15 Martin Jambor <mjambor@suse.cz>
19261
19262 * common.opt (fdevirtualize): New flag.
19263 * doc/invoke.texi (Option Summary): Document it.
19264 * opts.c (default_options_table): Add devirtualize flag.
19265 * ipa-prop.c (detect_type_change): Return immediately if
19266 devirtualize flag is not set.
19267 (detect_type_change_ssa): Likewise.
19268 (compute_known_type_jump_func): Likewise.
19269 (ipa_analyze_virtual_call_uses): Likewise.
19270
19271 2011-01-14 Martin Jambor <mjambor@suse.cz>
19272
19273 PR tree-optimization/45934
19274 PR tree-optimization/46302
19275 * ipa-prop.c (type_change_info): New type.
19276 (stmt_may_be_vtbl_ptr_store): New function.
19277 (check_stmt_for_type_change): Likewise.
19278 (detect_type_change): Likewise.
19279 (detect_type_change_ssa): Likewise.
19280 (compute_complex_assign_jump_func): Check for dynamic type change.
19281 (compute_complex_ancestor_jump_func): Likewise.
19282 (compute_known_type_jump_func): Likewise.
19283 (compute_scalar_jump_functions): Likewise.
19284 (ipa_analyze_virtual_call_uses): Likewise.
19285 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19286
19287 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19288
19289 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19290 * config/i386/i386.opt (msse5): New Alias.
19291
19292 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19293
19294 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19295 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19296 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19297 * config/sparc/sparc.h (CC1_SPEC): Likewise.
19298
19299 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19300
19301 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19302 -mcpu options.
19303 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19304 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19305 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19306 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19307 Likewise.
19308 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19309
19310 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19311
19312 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
19313
19314 2011-01-14 Mike Stump <mikestump@comcast.net>
19315
19316 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19317 * config/fr30/fr30.md: Likweise
19318 (movsi_push): Likewise.
19319 (movsi_pop): Likewise.
19320 (enter_func): Likewise.
19321 * config/moxie/moxie.md (movsi_push): Likewise.
19322 (movsi_pop): Likewise.
19323
19324 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19325
19326 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19327 %{no_archive} %{exact_version}.
19328 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19329 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19330 %{no_archive} %{exact_version}.
19331 * config/mips/openbsd.h (LINK_SPEC): Likewise.
19332 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19333 * config/mips/vxworks.h: Likewise.
19334
19335 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19336
19337 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19338
19339 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19340
19341 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19342 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19343
19344 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19345
19346 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19347 -nodefaultlib.
19348
19349 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19350
19351 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19352 for mcpu not cpu.
19353 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19354 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19355 not cpu.
19356 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19357 Don't handle -shlib.
19358
19359 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19360
19361 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19362 (CC1_SPEC): Don't handle -profile.
19363
19364 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19365
19366 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19367 * config/mips/mips.h (CC1_SPEC): Likewise.
19368
19369 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19370
19371 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19372 * config/mips/mips.h (CC1_SPEC): Likewise.
19373
19374 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19375
19376 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19377 * config/m32r/linux.h (LINK_SPEC): Likewise.
19378 * config/mips/linux.h (LINK_SPEC): Likewise.
19379 * config/mips/linux64.h (LINK_SPEC): Likewise.
19380 * config/sparc/linux.h (LINK_SPEC): Likewise.
19381 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19382 LINK_SPEC): Likewise.
19383 * config/xtensa/linux.h (LINK_SPEC): Likewise.
19384
19385 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19386
19387 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19388 %{version:-v}.
19389 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19390
19391 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19392
19393 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19394 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19395
19396 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19397
19398 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19399
19400 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19401
19402 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19403 supports -Bstatic/-Bdynamic.
19404 * configure: Regenerate.
19405
19406 2011-01-14 Jan Hubicka <jh@suse.cz>
19407 Jack Howarth <howarth@bromo.med.uc.edu>
19408
19409 PR target/46037
19410 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19411 when checking debug_info_level. Test write_symbols instead of
19412 debug_hooks->var_location when setting flag_var_tracking_uninit.
19413
19414 2011-01-14 Richard Guenther <rguenther@suse.de>
19415
19416 PR tree-optimization/47179
19417 * target.def (ref_may_alias_errno): New target hook.
19418 * targhooks.h (default_ref_may_alias_errno): Declare.
19419 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19420 (default_ref_may_alias_errno): New function.
19421 * target.h (struct ao_ref_s): Declare.
19422 * tree-ssa-alias.c: Include target.h.
19423 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19424 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19425 (targhooks.o): Likewise.
19426 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19427 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19428
19429 2011-01-14 Richard Guenther <rguenther@suse.de>
19430
19431 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
19432
19433 2011-01-14 Richard Guenther <rguenther@suse.de>
19434
19435 PR tree-optimization/47280
19436 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19437 return CFG changes.
19438 (tree_ssa_forward_propagate_single_use_vars): Deal with
19439 CFG changes from associate_plusminus.
19440
19441 2011-01-14 Richard Guenther <rguenther@suse.de>
19442
19443 PR middle-end/47281
19444 Revert
19445 2011-01-11 Richard Guenther <rguenther@suse.de>
19446
19447 PR tree-optimization/46076
19448 * tree-ssa.c (useless_type_conversion_p): Conversions from
19449 unprototyped to empty argument list function types are useless.
19450
19451 2011-01-14 Richard Guenther <rguenther@suse.de>
19452
19453 PR tree-optimization/47286
19454 * tree-ssa-structalias.c (new_var_info): Register variables are global.
19455
19456 2011-01-14 Martin Jambor <mjambor@suse.cz>
19457
19458 PR middle-end/46823
19459 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19460
19461 2011-01-13 Anatoly Sokolov <aesok@post.ru>
19462
19463 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19464 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19465 * config/xtensa/xtensa.c (xtensa_libcall_value,
19466 xtensa_function_value_regno_p): New functions.
19467 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19468
19469 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
19470
19471 PR c++/47213
19472 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19473 PE specific hook.
19474 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19475 New function prototype.
19476 * config/i386/winnt.c (i386_pe_assemble_visibility):
19477 Warn only if attribute was specified by user.
19478
19479 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19480
19481 PR target/47251
19482 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19483 floating point.
19484 (floatunsdidf2_fcfidu): Ditto.
19485
19486 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19487
19488 * config/s390/s390.c (print_operand_address): Replace 'error' with
19489 'output_operand_lossage'.
19490 (print_operand): Likewise.
19491
19492 2011-01-13 Jeff Law <law@redhat.com>
19493
19494 PR rtl-optimization/39077
19495 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19496 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19497 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19498 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19499 * gcse.c (prune_insertions_deletions): New function.
19500 (compute_pre_data): Use it.
19501
19502 2011-01-13 Dodji Seketeli <dodji@redhat.com>
19503
19504 PR debug/PR46973
19505 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19506 static function.
19507 (prune_unused_types_mark): Use it.
19508
19509 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
19510
19511 PR rtl-optimization/45352
19512 * sel-sched.c: Update copyright years.
19513 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19514 in the advancing loop when we have issued issue_rate insns.
19515
19516 2011-01-12 Richard Henderson <rth@redhat.com>
19517
19518 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19519 (TARGET_MD_ASM_CLOBBERS): New.
19520
19521 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19522 (TARGET_DELEGITIMIZE_ADDRESS): New.
19523
19524 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19525 (clzsi2, *bsch): New patterns.
19526
19527 * config/mn10300/mn10300.md (INT): New mode iterator.
19528 (*mov<INT>_clr): New pattern, and peep2 to generate it.
19529
19530 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19531 flag_split_wide_types.
19532
19533 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19534 (mn10300_trampoline_init): Rewrite without a template, an immediate
19535 load and a direct branch.
19536 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19537
19538 2011-01-12 Anatoly Sokolov <aesok@post.ru>
19539
19540 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19541 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19542 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19543 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19544
19545 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
19546
19547 PR debug/47209
19548 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19549 of type.
19550
19551 2011-01-12 Jan Hubicka <jh@suse.cz>
19552
19553 PR driver/47244
19554 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19555 (PLUGIN_COND_CLOSE): New macro.
19556 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19557
19558 2011-01-12 Richard Guenther <rguenther@suse.de>
19559
19560 PR lto/47259
19561 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19562 register variables in a MEM_REF.
19563
19564 2011-01-12 Joseph Myers <joseph@codesourcery.com>
19565
19566 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19567 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19568 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19569 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19570 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19571 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19572 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19573 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19574 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19575 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19576 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19577 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19578 * config/gnu-user.h: New. Copied from linux.h.
19579 (LINUX_TARGET_STARTFILE_SPEC): Rename to
19580 GNU_USER_TARGET_STARTFILE_SPEC.
19581 (LINUX_TARGET_ENDFILE_SPEC): Rename to
19582 GNU_USER_TARGET_ENDFILE_SPEC.
19583 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19584 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19585 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19586 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19587 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19588 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19589 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19590 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19591 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19592 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19593 * config/arm/linux-eabi.h (CC1_SPEC): Use
19594 GNU_USER_TARGET_CC1_SPEC.
19595 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19596 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19597 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19598 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19599 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19600 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19601 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19602 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19603
19604 2011-01-12 Richard Guenther <rguenther@suse.de>
19605
19606 PR other/46946
19607 * doc/invoke.texi (ffast-math): Document it is turned on
19608 with -Ofast.
19609
19610 2011-01-12 Jan Hubicka <jh@suse.cz>
19611
19612 PR tree-optimization/47233
19613 * opts.c (common_handle_option): Disable ipa-reference with profile
19614 feedback.
19615
19616 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19617
19618 * c-parser.c (c_parser_objc_at_property_declaration): Improved
19619 error message.
19620
19621 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19622
19623 * c-parser.c (c_lex_one_token): Updated and reindented some
19624 comments. No changes in code.
19625
19626 2011-01-11 Ian Lance Taylor <iant@google.com>
19627
19628 * godump.c (go_output_var): Don't output the variable if there is
19629 already a type with the same name.
19630
19631 2011-01-11 Ian Lance Taylor <iant@google.com>
19632
19633 * godump.c (go_format_type): Don't generate float80.
19634
19635 2011-01-11 Richard Henderson <rth@redhat.com>
19636
19637 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19638 declaration. Rewrite for both speed and size.
19639 (mn10300_address_cost_1): Remove.
19640 (mn10300_register_move_cost): New.
19641 (mn10300_memory_move_cost): New.
19642 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
19643 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
19644 extensions, shifts, BSWAP, CLZ.
19645 (mn10300_wide_const_load_uses_clr): Remove.
19646 (TARGET_REGISTER_MOVE_COST): New.
19647 (TARGET_MEMORY_MOVE_COST): New.
19648 * config/mn10300/mn10300-protos.h: Update.
19649 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19650
19651 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19652 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19653 * config/mn10300/mn10300-protos.h: Update.
19654 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19655 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19656 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19657 (*test_int_bitfield, *test_byte_bitfield): Remove.
19658 (*bit_test, *subreg_bit_test): Remove.
19659 * config/mn10300/predicates.md (const_8bit_operand): Remove.
19660
19661 * config/mn10300/constraints.md ("c"): Rename from "A".
19662 ("A", "D"): New constraint letters.
19663 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19664 (fmssf4, fnmasf4, fnmssf4): Likewise.
19665
19666 * config/mn10300/mn10300.md (isa): New attribute.
19667 (enabled): New attribute.
19668
19669 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19670 (abssf2, negsf2): Define only for hardware fp.
19671 (sqrtsf2): Reformat.
19672 (addsf3, subsf3, mulsf3): Merge expander and insn.
19673
19674 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19675 (DEBUGGER_AUTO_OFFSET): Remove.
19676 (DEBUGGER_ARG_OFFSET): Remove.
19677
19678 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19679 Emit register stores with the same offsets as the hardware.
19680 (mn10300_store_multiple_operation): Don't check that the register
19681 save offsets are monotonic.
19682 * config/mn10300/mn10300-protos.h: Update.
19683
19684 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19685
19686 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19687 in terms of the value on the stack, not the MDR register.
19688
19689 2011-01-11 Jan Hubicka <jh@suse.cz>
19690
19691 PR lto/45721
19692 PR lto/45375
19693 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19694 (symbol_alias_set_destroy, symbol_alias_set_contains,
19695 propagate_aliases_backward): Declare.
19696 * lto-streamer-out.c (struct sets): New sturcture.
19697 (trivally_defined_alias): New function.
19698 (output_alias_pair_p): Rewrite.
19699 (output_unreferenced_globals): Fix output of alias pairs.
19700 (produce_symtab): Likewise.
19701 * ipa.c (function_and_variable_visibility): Set weak alias destination
19702 as needed in lto.
19703 * varasm.c (symbol_alias_set_t): Remove.
19704 (symbol_alias_set_destroy): Export.
19705 (propagate_aliases_forward, propagate_aliases_backward): New functions
19706 based on ...
19707 (compute_visible_aliases): ... this one; remove.
19708 (trivially_visible_alias): New
19709 (trivially_defined_alias): New.
19710 (remove_unreachable_alias_pairs): Rewrite.
19711 (finish_aliases_1): Reorganize code checking if alias is defined.
19712 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19713 in LTO mode.
19714
19715 2011-01-11 Richard Guenther <rguenther@suse.de>
19716
19717 PR tree-optimization/46076
19718 * tree-ssa.c (useless_type_conversion_p): Conversions from
19719 unprototyped to empty argument list function types are useless.
19720
19721 2011-01-11 Richard Guenther <rguenther@suse.de>
19722
19723 PR middle-end/45235
19724 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19725 volatile MEMs as MEM_READONLY_P.
19726
19727 2011-01-11 Richard Guenther <rguenther@suse.de>
19728
19729 PR tree-optimization/47239
19730 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19731
19732 2011-01-11 Jeff Law <law@redhat.com>
19733
19734 PR tree-optimization/47086
19735 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19736 IVs from statements that might throw.
19737
19738 2011-01-10 Jan Hubicka <jh@suse.cz>
19739
19740 PR lto/45375
19741 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19742
19743 2011-01-10 Jan Hubicka <jh@suse.cz>
19744
19745 PR lto/45375
19746 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19747 when correcting profile.
19748
19749 2011-01-10 Jan Hubicka <jh@suse.cz>
19750
19751 PR lto/46083
19752 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19753 DECL_FINI_PRIORITY.
19754 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19755 Restore DECL_FINI_PRIORITY.
19756
19757 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19758
19759 * doc/gimple.texi: Fix quoting of multi-word return values in
19760 @deftypefn statements. Ensure presence of return value. Wrap
19761 overlong @deftypefn lines.
19762 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19763 descriptions of removed functions.
19764 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19765 of multi-word return value in @deftypefn statement.
19766
19767 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19768
19769 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19770 (Conditional Expressions, Logical Operators)
19771 (Statement and operand traversals): Do not indent smallexample
19772 code. Fix duplicate function argument in example.
19773
19774 2011-01-10 Jeff Law <law@redhat.com>
19775
19776 PR tree-optimization/47141
19777 * ipa-split.c (split_function): Handle case where we are
19778 returning a value and the return block has a virtual operand phi.
19779
19780 2011-01-10 Jan Hubicka <jh@suse.cz>
19781
19782 PR tree-optimization/47234
19783 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19784 (pass_feedback_split_functions): Declare.
19785 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19786 tree-profile.
19787 * ipa-split.c (gate_split_functions): Update comments; disable
19788 split-functions for profile_arc_flag and branch_probabilities.
19789 (gate_feedback_split_functions): New function.
19790 (execute_feedback_split_functions): New function.
19791 (pass_feedback_split_functions): New global var.
19792
19793 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19794
19795 PR lto/46760
19796 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19797 calling gimple_call_set_cannot_inline.
19798
19799 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19800
19801 * config/darwin-sections.def: Remove unused section.
19802
19803 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19804
19805 PR c++/47218
19806 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19807
19808 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19809
19810 PR objc/47232
19811 * c-parser.c (c_parser_declaration_or_fndef): Improved
19812 error message.
19813
19814 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
19815
19816 * config/i386/winnt.c (i386_pe_start_function): Make sure
19817 to switch back to function's section.
19818
19819 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19820
19821 PR gcc/46902
19822 PR testsuite/46912
19823 * plugin.c: Move include of dlfcn.h from here...
19824 * system.h: ... to here.
19825
19826 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19827
19828 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19829 file name.
19830 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19831 two extra empty pages in PDF output.
19832
19833 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19834
19835 PR objc/47078
19836 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19837 for error recovery purposes behave as if it was not specified so
19838 that the default type is usd.
19839
19840 2011-01-07 Jan Hubicka <jh@suse.cz>
19841
19842 PR tree-optmization/46469
19843 * ipa.c (function_and_variable_visibility): Clear needed flags on
19844 nodes with external decls; handle weakrefs merging correctly.
19845
19846 2011-01-07 Joseph Myers <joseph@codesourcery.com>
19847
19848 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19849 not false.
19850
19851 2011-01-07 Jan Hubicka <jh@suse.cz>
19852
19853 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19854 and no longer claim that gold is required for linker plugin.
19855 * configure: Regenerate.
19856 * gcc.c (PLUGIN_COND): New macro.
19857 (LINK_COMMAND_SPEC): Use it.
19858 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19859 * config.in (HAVE_LTO_PLUGIN): New.
19860 * configure.ac (--with-lto-plugin): New parameter; autodetect
19861 HAVE_LTO_PLUGIN.
19862
19863 2011-01-07 Jan Hubicka <jh@suse.cz>
19864
19865 PR tree-optimization/46367
19866 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19867 when we can update original.
19868 (cgraph_mark_inline_edge): Sanity check.
19869 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19870
19871 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19872
19873 * config/spu/spu.h (ASM_COMMENT_START): Define.
19874
19875 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19876
19877 PR driver/42445
19878 * gcc.c (%>S): New.
19879 (SWITCH_KEEP_FOR_GCC): Likewise.
19880 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19881 (do_spec_1): Handle "%>".
19882
19883 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19884
19885 2011-01-07 Jakub Jelinek <jakub@redhat.com>
19886
19887 PR target/47201
19888 * config/i386/i386.c (ix86_delegitimize_address): If
19889 simplify_gen_subreg fails, return orig_x.
19890
19891 PR bootstrap/47187
19892 * value-prof.c (gimple_stringop_fixed_value): Handle
19893 lhs of the call properly.
19894
19895 2011-01-07 Jan Hubicka <jh@suse.cz>
19896
19897 PR lto/45375
19898 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19899
19900 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19901
19902 * target.def (function_switched_text_sections): New hook.
19903 * doc/tm.texi: Regenerated.
19904 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19905 * final.c (default_function_switched_text_sections): New.
19906 (final_scan_insn): Call function_switched_text_sections when a
19907 mid-function section change occurs.
19908 * output.h (default_function_switched_text_sections): Declare.
19909 * config/darwin-protos.h (darwin_function_switched_text_sections):
19910 Likewise.
19911 * config/darwin.c (darwin_function_switched_text_sections): New.
19912 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19913
19914 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19915
19916 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19917 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19918 the secondary code fragment when outputting for DWARF == 2.
19919
19920 2011-01-07 Anatoly Sokolov <aesok@post.ru>
19921
19922 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19923 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19924 Remove.
19925 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19926 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19927
19928 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19929
19930 PR debug/46704
19931 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19932 when it is not empty.
19933
19934 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
19935
19936 Bobcat Enablement
19937 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19938 (case ${target}): Add btver1.
19939 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19940 -march=native recognize btver1 processors.
19941 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19942 btver1 def_and_undef
19943 * config/i386/i386.c (struct processor_costs btver1_cost): New
19944 btver1 cost table.
19945 (m_BTVER1): New definition.
19946 (m_AMD_MULTIPLE): Includes m_BTVER1.
19947 (initial_ix86_tune_features): Add btver1 tune.
19948 (processor_target_table): Add btver1 entry.
19949 (static const char *const cpu_names): Add btver1 entry.
19950 (software_prefetching_beneficial_p): Add btver1.
19951 (ix86_option_override_internal): Add btver1 instruction sets.
19952 (ix86_issue_rate): Add btver1.
19953 (ix86_adjust_cost): Add btver1.
19954 * config/i386/i386.h (TARGET_BTVER1): New definition.
19955 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19956 (enum processor_type): Add PROCESSOR_BTVER1.
19957 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19958
19959 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19960
19961 PR target/43309
19962 * config/i386/i386.c (legitimize_tls_address)
19963 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19964 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19965 (tls_initial_exec_64_sun): New pattern.
19966
19967 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19968
19969 * doc/invoke.texi (Overall Options): Improve wording and markup
19970 of the description of -wrapper.
19971
19972 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19973
19974 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19975 rdynamic, threads): New Driver options.
19976
19977 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19978
19979 PR target/38118
19980 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19981 if coming from .tdata.
19982 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19983
19984 2011-01-06 Jan Hubicka <jh@suse.cz>
19985
19986 PR lto/47188
19987 * collect2.c (main): Do not enable LTOmode when plugin is active.
19988
19989 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19990
19991 PR other/45915
19992 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19993 --version output if supported.
19994 * configure: Regenerate.
19995
19996 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19997
19998 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19999 Driver options.
20000
20001 2011-01-06 Jakub Jelinek <jakub@redhat.com>
20002
20003 PR c/47150
20004 * c-convert.c (convert): When converting a complex expression
20005 other than COMPLEX_EXPR to a different complex type, ensure
20006 c_save_expr is called instead of save_expr, unless in_late_binary_op.
20007 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
20008 when converting COMPLEX_TYPE.
20009
20010 2011-01-06 Ira Rosen <irar@il.ibm.com>
20011
20012 PR tree-optimization/47139
20013 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
20014 only the last reduction value is used outside the loop. Update
20015 documentation.
20016
20017 2011-01-05 Joseph Myers <joseph@codesourcery.com>
20018
20019 * config/rtems.opt: New.
20020 * config.gcc (*-*-rtems*): Use rtems.opt.
20021
20022 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
20023
20024 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
20025 processors do not support 3DNow instructions.
20026
20027 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20028
20029 * config/spu/spu.c (spu_option_override): Set parameter
20030 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
20031
20032 2011-01-05 Jan Hubicka <jh@suse.cz>
20033
20034 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
20035 at the command line.
20036
20037 2011-01-05 Martin Jambor <mjambor@suse.cz>
20038
20039 PR lto/47162
20040 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
20041 deltas on streamed outgoing edges.
20042 (output_node_opt_summary): Output info for outgoing edges only when
20043 the node is in new parameter set.
20044 (output_cgraph_opt_summary): New parameter set, passed to the two
20045 aforementioned functions. Update its forward declaration and its
20046 callee too.
20047
20048 2011-01-05 Tom Tromey <tromey@redhat.com>
20049
20050 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
20051 operator to c_finish_omp_atomic.
20052 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
20053 (build_unary_op): Update.
20054 (build_modify_expr): Update.
20055 (build_asm_expr): Update.
20056
20057 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20058
20059 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
20060 newly inserted insns.
20061 (pad_bb): Likewise.
20062 (spu_emit_branch_hint): Likewise.
20063 (insert_hbrp_for_ilb_runout): Likewise.
20064 (spu_machine_dependent_reorg): Call df_finish_pass after
20065 schedule_insns returns.
20066
20067 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20068
20069 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
20070
20071 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
20072
20073 PR tree-optimization/47005
20074 * tree-sra.c (struct access): Add 'non_addressable' bit.
20075 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
20076 (decide_one_param_reduction): Return 0 if the parameter is passed by
20077 reference and one of the accesses in the group is non_addressable.
20078
20079 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20080
20081 PR tree-optimization/47056
20082 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
20083 (mark_load): Likewise. Handle FUNCTION_DECL specially.
20084 (mark_store): Likewise. Pass STMT to ipa_record_reference.
20085
20086 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20087
20088 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
20089 initializer. Skip view conversions from aggregate types.
20090
20091 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
20092
20093 PR bootstrap/47055
20094 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
20095
20096 2011-01-04 Philipp Thomas <pth@suse.de>
20097
20098 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
20099 obvious typo.
20100
20101 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20102
20103 * function.c (thread_prologue_and_epilogue_insns): Do not crash
20104 on empty epilogue sequences.
20105
20106 2011-01-04 Joseph Myers <joseph@codesourcery.com>
20107
20108 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
20109 non-static): New Driver options.
20110
20111 2011-01-04 Jie Zhang <jie@codesourcery.com>
20112
20113 PR driver/47137
20114 * gcc.c (default_compilers[]): Set combinable field to 0
20115 for all assembly languages.
20116
20117 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
20118
20119 * config/mips/loongson3a.md: New file.
20120 * config/mips/mips.md: Include loongson3a.md.
20121 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
20122 TUNE_LOONGSON_3A.
20123
20124 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
20125
20126 PR middle-end/47017
20127 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
20128 instead of convert_memory_address_addr_space on the base expression.
20129
20130 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20131
20132 * config/spu/spu.c (spu_option_override): Update error text
20133 for bad -march= / -mtune= values.
20134
20135 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20136
20137 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
20138 if branch-hint optimization will be performed.
20139
20140 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20141
20142 PR tree-optimization/47148
20143 * ipa-split.c (split_function): Convert arguments to
20144 DECL_ARG_TYPE if possible.
20145
20146 PR tree-optimization/47155
20147 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
20148 when computing uns.
20149
20150 PR rtl-optimization/47157
20151 * combine.c (try_combine): If undobuf.other_insn becomes
20152 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
20153 and set *new_direct_jump_p too.
20154
20155 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
20156
20157 PR tree-optimization/47021
20158 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
20159
20160 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20161
20162 * gcc.c (process_command): Update copyright notice dates.
20163 * gcov.c (print_version): Likewise.
20164 * gcov-dump.c (print_version): Likewise.
20165 * mips-tfile.c (main): Likewise.
20166 * mips-tdump.c (main): Likewise.
20167
20168 2011-01-03 Martin Jambor <mjambor@suse.cz>
20169
20170 PR tree-optimization/46801
20171 * tree-sra.c (type_internals_preclude_sra_p): Check whether
20172 aggregate fields start at byte boundary instead of the bit-field flag.
20173
20174 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
20175
20176 PR driver/47137
20177 * gcc.c (main): Revert revision 168407.
20178
20179 2011-01-03 Martin Jambor <mjambor@suse.cz>
20180
20181 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
20182
20183 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20184
20185 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
20186 vector optab to expand vector/scalar shift, update gimple to vector.
20187
20188 2011-01-03 Martin Jambor <mjambor@suse.cz>
20189
20190 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
20191 a thunk.
20192
20193 2011-01-03 Martin Jambor <mjambor@suse.cz>
20194
20195 PR tree-optimization/46984
20196 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
20197 HOST_WIDE_INT.
20198 (cgraph_create_indirect_edge): Fixed line length.
20199 (cgraph_indirect_call_info): Declare.
20200 (cgraph_make_edge_direct) Update declaration.
20201 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
20202 (cgraph_create_indirect_edge): Use it.
20203 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
20204 callees.
20205 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
20206 the new thunk_delta representation.
20207 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20208 HOST_WIDE_INT.
20209 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20210 (ipa_read_indirect_edge_info): Likewise.
20211 * lto-cgraph.c (output_edge_opt_summary): New function.
20212 (output_node_opt_summary): Call it on all outgoing edges.
20213 (input_edge_opt_summary): New function.
20214 (input_node_opt_summary): Call it on all outgoing edges.
20215
20216 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
20217
20218 PR driver/47137
20219 * gcc.c (main): Don't check have_o when settting combine_inputs.
20220
20221 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
20222
20223 * regrename.c: Add general comment describing the pass.
20224 (struct du_head): Remove 'length' field.
20225 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20226 (regrename_optimize): Do not sort chains. Rework comments, add others.
20227 Force renaming to the preferred class (if any) in the first pass and do
20228 not consider registers that belong to it in the second pass.
20229 (create_new_chain): Do not set 'length' field.
20230 (scan_rtx_reg): Likewise.
20231
20232 2011-01-02 Jakub Jelinek <jakub@redhat.com>
20233
20234 PR tree-optimization/47140
20235 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20236 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20237 to bit_value_binop.
20238
20239 PR rtl-optimization/47028
20240 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20241 parm_birth_insn instead of at the beginning of first bb.
20242
20243 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
20244
20245 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20246 Remove the word "see" before "@pxref".
20247 * doc/rtl.texi: Remove the word "see" before "@pxref".
20248
20249 2011-01-01 Jan Hubicka <jh@suse.cz>
20250
20251 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20252 memory.
20253
20254 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
20255
20256 PR target/38662
20257 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20258
20259 \f
20260 Copyright (C) 2011 Free Software Foundation, Inc.
20261
20262 Copying and distribution of this file, with or without modification,
20263 are permitted in any medium without royalty provided the copyright
20264 notice and this notice are preserved.