OSDN Git Service

PR tree-optimization/49610
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
2
3         PR tree-optimization/49610
4         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
5         a basic block.
6
7 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8             Olivier Hainque  <hainque@adacore.com>
9             Nicolas Setton  <setton@adacore.com>
10
11         * tree.h (TYPE_ARTIFICIAL): New flag.
12         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
13         the DIE of the type if it is artificial.
14         (gen_array_type_die): Likewise.
15         (gen_enumeration_type_die): Likewise.
16         (gen_struct_or_union_type_die): Likewise.
17         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
18         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
19
20 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
21
22         * tree-object-size.c (pass_through_call): Handle
23         BUILT_IN_ASSUME_ALIGNED.
24
25 2011-07-01  Martin Jambor  <mjambor@suse.cz>
26
27         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
28
29 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
30
31         PR middle-end/48016
32         * explow.c (update_nonlocal_goto_save_area): Use proper mode
33         for stack save area.
34         * function.c (expand_function_start): Likewise.
35
36 2011-07-01  Richard Guenther  <rguenther@suse.de>
37
38         PR middle-end/49596
39         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
40         may have unknown refs.
41
42 2011-07-01  Kai Tietz  <ktietz@redhat.com>
43
44         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
45
46 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
47
48         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
49         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
50         (Specific, mips-sgi-irix6): Likewise.
51
52 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
53
54         PR libmudflap/49549
55         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
56
57 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
58
59         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
60         [idx]= and [idx1 ... idx2]= before initializers if needed for
61         array initializers.
62
63 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
64
65         * config.gcc (score-*-elf): Remove score7.o.
66         * config/score/t-score-elf: Likewise.
67         * config/score/score.c: Merge score7 to score.c and
68         remove forwarding functions.
69         * config/score/score7.c: Deleted.
70         * config/score/score7.h: Deleted.
71
72 2011-07-01  Richard Guenther  <rguenther@suse.de>
73
74         PR tree-optimization/49603
75         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
76         assert.
77
78 2011-06-30  Martin Jambor  <mjambor@suse.cz>
79
80         * tree-sra.c (struct access): Rename total_scalarization to
81         grp_total_scalarization
82         (completely_scalarize_var): New function.
83         (sort_and_splice_var_accesses): Set total_scalarization in the
84         representative access.
85         (analyze_access_subtree): Propagate total scalarization accross the
86         tree, no holes in totally scalarized trees, simplify coverage
87         computation.
88         (analyze_all_variable_accesses): Call completely_scalarize_var instead
89         of completely_scalarize_record.
90
91 2011-06-30  Richard Henderson  <rth@redhat.com>
92
93         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
94         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
95         * config/i386/i386.c: Don't include dwarf2out.h.
96         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
97         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
98         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
99         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
100         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
101
102 2011-06-30  Richard Henderson  <rth@redhat.com>
103
104         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
105         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
106         * final.c (final_scan_insn): Look for it, and invoke
107         dwarf2out_frame_debug before the insn if found.
108
109 2011-06-30  Richard Henderson  <rth@redhat.com>
110
111         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
112         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
113
114 2011-06-30  Richard Henderson  <rth@redhat.com>
115
116         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
117         Define a vector of this type.
118         (regs_saved_in_regs): Use a VEC.
119         (num_regs_saved_in_regs): Remove.
120         (compare_reg_or_pc): New.
121         (record_reg_saved_in_reg): Split out from...
122         (dwarf2out_flush_queued_reg_saves): ... here.
123         (clobbers_queued_reg_save): Update for VEC.
124         (reg_saved_in): Likewise.
125         (dwarf2out_frame_debug_init): Likewise.
126         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
127         (dwarf2out_frame_debug_cfa_register): Likewise.
128
129 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
130
131         PR tree-optimization/49572
132         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
133         type of the RHS instead of that of the LHS for the expression type.
134
135 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
136
137         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
138         unconditionally.
139
140 2011-06-30  Richard Guenther  <rguenther@suse.de>
141
142         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
143         * tree-ssa-structalias.c (create_variable_info_for): Do not
144         add initial constraints for non-var-decls.  Properly handle
145         globals in other ltrans partitions.
146         (intra_create_variable_infos): Manually create constraints for
147         the fake no-alias parameter.
148         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
149         and assert there are no clones.
150
151 2011-06-30  Richard Guenther  <rguenther@suse.de>
152
153         PR tree-optimization/46787
154         * tree-data-ref.c (dr_address_invariant_p): Remove.
155         (find_data_references_in_stmt): Invariant accesses are ok now.
156         * tree-vect-stmts.c (vectorizable_load): Handle invariant
157         loads.
158         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
159         invariant loads.
160
161 2011-06-30  Martin Jambor  <mjambor@suse.cz>
162
163         PR tree-optimization/49094
164         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
165         (build_accesses_from_assign): Use it.
166
167 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
168
169         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
170         handling of BUILT_IN_ASSUME_ALIGNED.
171
172         PR debug/49364
173         * dwarf2out.c (output_abbrev_section): Don't return early
174         if abbrev_die_table_in_use is 1.
175         (dwarf2out_finish): Instead don't call output_abbrev_section
176         nor emit abbrev_section_label in that case.
177
178 2011-06-30  Nick Clifton  <nickc@redhat.com>
179
180         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
181         for the V850E.
182
183 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
184
185         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
186         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
187
188 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
189
190         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
191         both pattern and original statements if necessary.
192         (vect_transform_loop): Likewise.
193         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
194         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
195         Mark the pattern statement only if the original statement doesn't
196         have its own uses.
197         (process_use): Call vect_mark_relevant with additional parameter.
198         (vect_mark_stmts_to_be_vectorized): Likewise.
199         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
200         (vect_analyze_stmt): Handle both pattern and original statements
201         if necessary.
202         (vect_transform_stmt): Don't store vectorized pattern statement
203         in the original statement.
204         (vect_is_simple_use_1): Use related pattern statement only if the
205         original statement is irrelevant.
206         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
207
208 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
209
210         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
211         option.
212         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
213         entry.
214         (TARGET_AVX128_OPTIMAL): New definition.
215         * config/i386/i386.c (initial_ix86_tune_features): Initialize
216         X86_TUNE_AVX128_OPTIMAL entry.
217         (ix86_option_override_internal): Enable the generation
218         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
219         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
220         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
221
222 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
223
224         PR tree-optimization/49539
225         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
226         names by means of stmt_references_abnormal_ssa_name.
227         (associate_plusminus): Call can_propagate_from before propagating
228         from definition statements.
229         (ssa_forward_propagate_and_combine): Remove superfluous newline.
230
231 2011-06-29  Richard Guenther  <rguenther@suse.de>
232
233         * doc/invoke.texi: Document -scev dump modifier.
234         * tree-pass.h (TDF_SCEV): New dump flag.
235         * tree-dump.c (dump_option_value_in): Add scev.
236         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
237         * tree-scalar-evolution.c: Likewise.
238
239 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
240
241         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
242         (cxa_type_match): Correct declaration.
243         (__gnu_unwind_pr_common): Reconstruct
244         additional indirection when __cxa_type_match returns
245         succeeded_with_ptr_to_base.
246
247 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
248
249         PR rtl-optimization/49114
250         * reload.c (struct replacement): Remove SUBREG_LOC member.
251         (push_reload): Do not set it.
252         (push_replacement): Likewise.
253         (subst_reload): Remove dead code.
254         (copy_replacements): Remove assertion.
255         (copy_replacements_1): Do not handle SUBREG_LOC.
256         (move_replacements): Likewise.
257         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
258         Detect subregs via recursive descent instead of via SUBREG_LOC.
259
260 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
261         
262         * config/avr/avr.c (avr_encode_section_info): Dispatch to
263         default_encode_section_info.
264
265 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
266
267         PR tree-optimization/49545
268         * builtins.c (get_object_alignment_1): Update function comment.
269         Do not use DECL_ALIGN for functions, but test
270         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
271         * fold-const.c (get_pointer_modulus_and_residue): Don't check
272         for functions here.
273         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
274
275 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
276
277         PR debug/49567
278         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up
279         for non-MODE_INT modes instead of asserting the mode has MODE_INT
280         class.
281
282 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
283         
284         PR target/34734
285         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning 
286         about uninitialized data attributed 'progmem' from here...
287         (avr_encode_section_info): ...to this new function.
288         (TARGET_ENCODE_SECTION_INFO): New define.
289         (avr_section_type_flags): For data in ".progmem.data", remove
290         section flag SECTION_WRITE.
291
292 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
293         
294         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
295         _xmulhisi3_exit.
296         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
297         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
298         (__umulhisi3): Ditto.
299         * config/avr/avr.md (mulhisi3): New insn expender.
300         (umulhisi3): New insn expender.
301         (*mulhisi3_call): New insn.
302         (*umulhisi3_call): New insn.
303
304 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
305
306         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
307
308 2011-06-28  Richard Henderson  <rth@redhat.com>
309
310         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
311         all code and arguments that handled pushes.  Update all callers.
312
313 2011-06-28  Richard Henderson  <rth@redhat.com>
314
315         * config/arm/arm.c (arm_output_function_prologue): Don't call
316         thumb1_output_function_prologue.
317         (arm_expand_prologue): Avoid dead store.
318         (number_of_first_bit_set): Use ctz_hwi.
319         (thumb1_emit_multi_reg_push): New.
320         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
321         to emit the entire prologue as rtl.
322         (thumb1_output_interwork): Split out from
323         thumb1_output_function_prologue.
324         (thumb1_output_function_prologue): Remove.
325         (arm_attr_length_push_multi): Handle thumb1.
326         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
327         (prologue_thumb1_interwork): New.
328         (*push_multi): Allow thumb1; use push_mult_memory_operand.
329         * config/arm/predicates.md (push_mult_memory_operand): New.
330
331 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
332
333         * config/sparc/sync.md (*stbar): Delete.
334         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
335
336 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
337
338         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
339
340 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
341
342         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
343         (TARGET_64BIT_DEFAULT): Define.
344         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
345         of tm_file.
346         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
347
348 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
349
350         * common.opt (in_lto_p): New Variable entry.
351         * flags.h (in_lto_p): Move to common.opt.
352         * gcc.c: Include params.h.
353         (set_option_handlers): Also use common_handle_option and
354         target_handle_option.
355         (main): Call global_init_params, finish_params and
356         init_options_struct.
357         * opts.c (debug_type_names): Move from toplev.c.
358         (print_filtered_help): Access quiet_flag through opts pointer.
359         (common_handle_option): Return early in the driver for some
360         options.  Access in_lto_p, dwarf_version and
361         warn_maybe_uninitialized through opts pointer.
362         * toplev.c (in_lto_p): Move to common.opt.
363         (debug_type_names): Move to opts.c.
364         * Makefile.in (OBJS): Remove opts.o.
365         (OBJS-libcommon-target): Add opts.o.
366         (gcc.o): Update dependencies.
367
368 2011-06-28  Kai Tietz  <ktietz@redhat.com>
369
370         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve
371         type sinking.
372
373 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
374
375         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
376         with '=' constraint modifier.
377         (*divdf3_vfp): Likewise.
378         ("*mulsf3_vfp"): Likewise.
379         ("*muldf3_vfp"): Likewise.
380         ("*mulsf3negsf_vfp"): Likewise.
381         ("*muldf3negdf_vfp"): Likewise.
382
383 2011-06-28  Nick Clifton  <nickc@redhat.com>
384
385         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
386         relaxation when performing an incremental link.
387
388 2011-06-28  Kai Tietz  <ktietz@redhat.com>
389
390         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
391         within BB from last to first.
392
393 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
394
395         * genattr-common.c: New.  Based on genattr.c.
396         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
397         (MOSTLYCLEANFILES): Add insn-attr-common.h.
398         (opts.o): Update dependencies.
399         (.PRECIOUS): Add insn-attr-common.h.
400         (simple_rtl_generated_h): Add insn-attr-common.h.
401         (build/genattr-common.o): New.
402         (genprogrtl): Add attr-common.
403         * genattr.c (main): Include insn-attr-common.h.  Don't generate
404         definitions of DELAY_SLOTS or INSN_SCHEDULING.
405         * opts.c: Include insn-attr-common.h instead of rtl.h and
406         insn-attr.h.
407
408 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
409
410         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
411         avr-*-* and avr-*-rtems* targets.
412
413         * config/avr/elf.h: New file.
414         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
415         (TARGET_ASM_SELECT_SECTION): Define.
416         (INIT_SECTION_ASM_OP): Undefine.
417         (FINI_SECTION_ASM_OP): Undefine.
418         (READONLY_DATA_SECTION_ASM_OP): Undefine.
419         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
420         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
421         * config/avr/avr.h:
422         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
423         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
424         (MAX_OFILE_ALIGNMENT): Move to elf.h.
425         (STRING_LIMIT): Move to elf.h.
426         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
427         (ASM_DECLARE_OBJECT_NAME): Remove.
428         (ESCAPES): Remove.
429         (ASM_OUTPUT_SKIP): Remove.
430         (DWARF2_DEBUGGING_INFO): Remove.
431         (OBJECT_FORMAT_ELF): Remove.
432         (USER_LABEL_PREFIX): Remove.
433         (ASM_OUTPUT_EXTERNAL): Remove.
434         (ASM_OUTPUT_ASCII): Remove.
435         (TYPE_ASM_OP): Remove.
436         (SIZE_ASM_OP): Remove.
437         (WEAK_ASM_OP): Remove.
438         (STRING_ASM_OP): Remove.
439         (SET_ASM_OP): Remove.
440         (ASM_WEAKEN_LABEL): Remove.
441         (TYPE_OPERAND_FMT): Remove.
442         (ASM_DECLARE_FUNCTION_SIZE): Remove.
443         (ASM_FINISH_DECLARE_OBJECT): Remove.
444         (NO_DOLLAR_IN_LABEL): Remove.
445         (ASM_GENERATE_INTERNAL_LABEL): Remove.
446         (ASM_OUTPUT_CASE_LABEL): Remove.
447         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
448         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
449         (gas_output_ascii): Remove.
450         (gas_output_limited_string): Remove.
451         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
452         * config/avr/avr-protos.h
453         (gas_output_ascii): Remove prototye.
454         (gas_output_limited_string): Remove prototype.
455
456 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
457
458         PR target/48637
459         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
460         asm operands.
461
462 2011-06-27  Jan Hubicka  <jh@suse.cz>
463
464         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
465         node instead of references in node.
466
467 2011-06-27  Richard Henderson  <rth@redhat.com>
468
469         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
470         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
471         inside ifdef.
472
473 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
474
475         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
476
477         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
478         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
479         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
480         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
481         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
482         (evaluate_stmt, execute_fold_all_builtins): Handle
483         BUILT_IN_ASSUME_ALIGNED.
484         * tree-ssa-dce.c (propagate_necessity): Likewise.
485         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
486         call_may_clobber_ref_p_1): Likewise.
487         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
488         (expand_builtin_assume_aligned): New function.
489         * doc/extend.texi (__builtin_assume_aligned): Document.
490
491         PR debug/49544
492         * cselib.c (promote_debug_loc): If cselib_preserve_constants
493         and l has two DEBUG_INSN owned locs instead of just one, adjust
494         the second location's setting_insn too.
495
496 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
497
498         PR libmudflap/38738
499         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
500
501 2011-06-27  Nick Clifton  <nickc@redhat.com>
502
503         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
504         convert bit position of highest bit set into a count of the high
505         zero bits.
506
507 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
508
509         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
510
511 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
512
513         PR lto/48492
514         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
515         to a NULL parent.
516
517 2011-06-27  Richard Guenther  <rguenther@suse.de>
518
519         PR tree-optimization/49394
520         * passes.c (execute_one_pass): Restore current_pass after
521         applying IPA transforms.
522
523 2011-06-27  Kai Tietz  <ktietz@redhat.com>
524
525         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
526         out of type precision after operation.
527         (find_bswap): Take for limit value the integer auto-
528         promotion into account.
529
530 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
531
532         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
533         forward scan as well.
534
535 2011-06-27  Tristan Gingold  <gingold@adacore.com>
536
537         PR target/44241
538         * config/vms/vms-protos.h: New file.
539         * config/vms/vms-crtlmap.map: New file.
540         * config/vms/vms.c: New file.
541         * config/vms/make-crtlmap.awk: New file.
542         * config/vms/vms-crtl.h: File removed.
543         * config/vms/vms-crtl-64.h: File removed.
544         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
545         * config/alpha/vms64.h: Do not include vms-crtl-64.h
546         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
547         clear some builtins on VMS.  Calls vms_patch_builtins.
548         (avms_asm_output_external): Remove.
549         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
550         (struct crtl_name_spec): Remove
551         (DO_CTRL_NAMES): Remove.
552         * config/ia64/vms.h (struct crtl_name_spec): Remove
553         (DO_CTRL_NAMES): Remove.
554         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
555         clear some builtins on VMS.  Calls vms_patch_builtins.
556         (ia64_asm_output_external): Remove DO_CRTL_NAME.
557         * config/ia64/vms64.h: Do not include vms-crtl-64.h
558         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
559         tm_p_file.
560
561 2011-06-27  Tristan Gingold  <gingold@adacore.com>
562
563         * config/alpha/alpha.c (alpha_end_function): Always generate .end
564         directive on VMS.
565
566 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
567
568         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
569         the function receives nonlocal gotos.
570
571 2011-06-27  Richard Guenther  <rguenther@suse.de>
572
573         PR tree-optimization/49536
574         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
575         For non-scalar inner types use a scalar type according to
576         the scalar inner mode.
577
578 2011-06-27  Richard Guenther  <rguenther@suse.de>
579
580         PR tree-optimization/49365
581         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
582
583 2011-06-27  Richard Guenther  <rguenther@suse.de>
584
585         PR tree-optimization/49169
586         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
587         the alignment of function decls.
588
589 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
590
591         PR target/47997
592         * config/darwin.c (darwin_mergeable_string_section): Place string
593         constants in '.cstring' rather than '.const' when CF/NSStrings are
594         active.
595
596 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
597
598         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
599         (emit_save_register_window): Likewise.
600         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
601         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
602         Swap back %o7/%i7 in register naming.
603
604 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
605
606         PR driver/49371
607         * config/darwin.c (darwin_override_options): Improve warning when
608         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
609         is given with fpie/fPIE.
610         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
611         * config/darwin9.h (PIE_SPEC): New.
612
613 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
614
615         * timevar.c (timevar_print): Increase width for display of timevar
616         name.
617
618 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
619
620         PR c++/46400
621         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
622         instead of TYPE_CHAIN for chain_next for types.
623
624 2011-06-24  Richard Henderson  <rth@redhat.com>
625
626         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
627         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
628         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
629         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
630         (sparc_flat_expand_prologue): Emit individual instructions
631         instead of one of the above.
632
633 2011-06-24  Easwaran Raman  <eraman@google.com>
634
635         PR rtl-optimization/49429
636         PR target/49454
637         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
638         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
639         used to copy y into x.
640         * calls.c (initialize_argument_information): Mark
641         an argument addressable if it is passed by invisible reference.
642         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
643         if it is passed by reference.
644
645 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
646
647         PR rtl-optimization/49504
648         * rtlanal.c (nonzero_bits1): Properly handle addition or
649         subtraction of a pointer in Pmode if pointers extend unsigned.
650         (num_sign_bit_copies1): Likewise.
651
652 2011-06-24  Martin Jambor  <mjambor@suse.cz>
653
654         PR tree-optimizations/49516
655         * tree-sra.c (sra_modify_assign): Choose the safe path for
656         aggregate copies if we also did scalar replacements.
657
658 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
659
660         PR target/49335
661         * config/arm/predicates.md (add_operator): New.
662         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
663         in Thumb2.
664
665 2011-06-24  Andi Kleen  <ak@linux.intel.com>
666
667         * tree-sra.c (type_internals_preclude_sra_p): Add msg
668         parameter. Split up ifs and report reason in *msg.
669         (reject): Add.
670         (find_var_candiate): Add msg variable.
671         Split up ifs and report reason to reject.
672         (find_param_candidates): Add msg variable.
673         Pass msg to type_internals_preclude_sra_p.
674
675 2011-06-23  Jeff Law  <law@redhat.com>
676
677         PR middle-end/48770
678         * reload.h (reload): Change to return a bool.
679         * ira.c (ira): If requested by reload, run a fast DCE pass after
680         reload has completed.  Fix comment typo.
681         * reload1.c (need_dce): New file scoped static.
682         (reload): Set reload_completed here.  Return whether or not a DCE
683         pass after reload is needed.
684         (delete_dead_insn): Set need_dce as needed.
685
686         PR middle-end/49465
687         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
688         to detect threading through joiner block.  If there was already
689         an edge to the new target, then do not change the PHI nodes.
690
691 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
692
693         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
694         get_pointer_alignment to see if base isn't sufficiently aligned.
695
696 2011-06-23  Jan Hubicka  <jh@suse.cz>
697
698         PR tree-optimize/49373
699         * tree-pass.h (all_late_ipa_passes): Declare.
700         * cgraphunit.c (init_lowered_empty_function): Fix properties.
701         (cgraph_optimize): Execute late passes; remove unreachable funcions
702         after materialization.
703         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
704         LTOing.
705         * passes.c (all_late_ipa_passes): Declare.
706         (dump_passes, register_pass): Handle late ipa passes.
707         (init_optimization_passes): Move ipa_pta to late passes; schedule
708         fixup_cfg at beggining of all_passes.
709         (apply_ipa_transforms): New function.
710         (execute_one_pass): When doing simple ipa pass, apply all transforms.
711
712 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
713
714         * params.c: Include common/common-target.h.  Don't include tm.h.
715         (lang_independent_params): Move from toplev.c.
716         (global_init_params): New.
717         * params.h (global_init_params): Declare.
718         * target.def (default_params): Move to common-target.def.
719         * toplev.c (lang_independent_options): Remove.
720         (lang_independent_params): Move to params.c.
721         (general_init): Use global_init_params.
722         * common/common-target.def (option_default_params): Move from
723         target.def.
724         * common/config/ia64/ia64-common.c: Include params.h.
725         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
726         from ia64.c.
727         * common/config/rs6000/rs6000-common.c: Include params.h.
728         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
729         from rs6000.c.
730         * common/config/sh/sh-common.c: Include params.h.
731         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
732         from sh.c.
733         * common/config/spu/spu-common.c: Include params.h.
734         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
735         from spu.c.
736         * config/ia64/ia64.c (ia64_option_default_params,
737         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
738         * config/rs6000/rs6000.c (rs6000_option_default_params,
739         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
740         * config/sh/sh.c (sh_option_default_params,
741         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
742         * config/spu/spu.c (spu_option_default_params,
743         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
744         * Makefile.in (OBJS): Remove params.o.
745         (OBJS-libcommon-target): Add params.o.
746         (params.o, $(common_out_object_file)): Update dependencies.
747         * doc/tm.texi: Regenerate.
748
749 2011-06-23  Alan Modra  <amodra@gmail.com>
750
751         PR bootstrap/49383
752         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
753         invocation for 2011-06-09 changes.
754
755 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
756
757         PR libgomp/49490
758         * omp-low.c (expand_omp_for_static_nochunk): Only
759         use n ceil/ nthreads size for the first
760         n % nthreads threads in the team instead of
761         all threads except for the last few ones which
762         get less work or none at all.
763
764         PR debug/49496
765         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
766         uses.
767
768 2011-06-22  Richard Guenther  <rguenther@suse.de>
769
770         PR tree-optimization/49493
771         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
772         Refer to the alias target of variables.
773         (associate_varinfo_to_alias_1): Remove.
774         (ipa_pta_execute): Do not associate aliases with anything.
775         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
776         (cgraph_function_node): Likewise.
777         (cgraph_function_or_thunk_node): Likewise.
778         (varpool_variable_node): Likewise.
779
780 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
781
782         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
783         typo.
784         * config.gcc (arm*-*-linux*): Default to gnu tls.
785         (arm*-*-*): Add --with-tls option.
786         (all_defaults): Add 'tls'.
787
788 2011-06-22  Richard Henderson  <rth@redhat.com>
789
790         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
791         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
792         (dwarf2out_frame_debug_cfa_window_save): Rename from
793         dwarf2out_window_save; make static.
794         * tree.h (dwarf2out_window_save): Don't declare.
795
796         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
797         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
798         (emit_save_register_window): Rename from gen_save_register_window;
799         emit the insn and add REG_CFA_* notes.
800         (sparc_expand_prologue): Update to match.
801         * config/sparc/sparc.md (save_register_window_1): Simplify from
802         save_register_window<P:mode>.
803
804 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
805
806         PR target/49497
807         * config/i386/i386.md (*lea_general_2): Always allow SImode.
808         (*lea_general_2_zext): Likewise.
809         (imul to lea peepholes): Use const359_operand and check
810         TARGET_PARTIAL_REG_STALL.
811
812         * config/i386/predicates.md (const359_operand): New.
813
814 2011-06-22  Michael Matz  <matz@suse.de>
815
816         * cgraphunit.c (assemble_thunk): Use correct return type.
817
818 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
819         Dmitry Melnik  <dm@ispras.ru>
820
821         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
822         (neon_output_shift_immediate): Ditto.
823         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
824         prototype.
825         (neon_output_shift_immediate): Ditto.
826         * config/arm/neon.md (vashl<mode>3): Modified constraint.
827         (vashr<mode>3_imm): New insn pattern.
828         (vlshr<mode>3_imm): Ditto.
829         (vashr<mode>3): Modified constraint.
830         (vlshr<mode>3): Ditto.
831         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
832         predicate.
833         (imm_for_neon_rshift_operand): Ditto.
834         (imm_lshift_or_reg_neon): Ditto.
835         (imm_rshift_or_reg_neon): Ditto.
836
837         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
838
839 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
840
841         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
842         builtin calls even if likelyvalue is not CONSTANT.
843         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
844         Return get_value_for_expr of first operand
845         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
846         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
847         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
848         their non-checking counterparts.
849         (call_may_clobber_ref_p_1): Likewise.
850         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
851         like their non-checking counterparts.
852         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
853         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
854         like their non-checking counterparts.
855         (find_func_clobbers): Likewise.
856         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
857         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
858
859         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
860         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
861         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
862         of base type reference as argument.
863         (resolve_addr_in_expr): Likewise.  Fix keep computation.
864         (convert_descriptor_to_signed): Renamed to...
865         (convert_descriptor_to_mode): ... this.  For wider types convert
866         to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
867         untyped.
868         (typed_binop): New function.
869         (scompare_loc_descriptor, ucompare_loc_descriptor,
870         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
871         default to unsigned type instead of signed.
872
873         PR debug/47858
874         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
875         (gimple_build_debug_source_bind_stat): New prototype.
876         (gimple_build_debug_source_bind): Define.
877         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
878         gimple_debug_source_bind_get_value,
879         gimple_debug_source_bind_get_value_ptr,
880         gimple_debug_source_bind_set_var,
881         gimple_debug_source_bind_set_value): New inlines.
882         * gimple.c (gimple_build_debug_source_bind_stat): New function.
883         * gimple-pretty-print.c (dump_gimple_debug): Handle
884         GIMPLE_DEBUG_SOURCE_BIND.
885         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
886         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
887         * tree-parloops.c (eliminate_local_variables,
888         separate_decls_in_region): Likewise.
889         (separate_decls_in_region_debug): Renamed from
890         separate_decls_in_region_debug_bind.  Handle
891         gimple_debug_source_bind_p.
892         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
893         prototypes.
894         (DECL_HAS_DEBUG_ARGS_P): Define.
895         (struct tree_function_decl): Add has_debug_args_flag field.
896         * tree.c (debug_args_for_decl): New variable.
897         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
898         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
899         (rewrite_debug_stmt_uses): New function.
900         (rewrite_stmt): Use it to rewrite debug stmt uses.
901         * rtl.def (DEBUG_PARAMETER_REF): New.
902         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
903         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
904         DEBUG_PARAMETER_REF.
905         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
906         * print-rtl.c (print_rtx): Likewise.
907         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
908         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
909         debug stmts in the first bb.
910         * tree-inline.c (remap_ssa_name): If remapping default def
911         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
912         a source bind debug stmt.
913         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
914         (maybe_move_debug_stmts_to_successors): Likewise.
915         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
916         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
917         debug args vector from old_decl to new_decl.
918         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
919         or modified parameters, add debug bind stmts before call
920         setting DEBUG_EXPR_DECL which is remembered in debug args
921         vector.
922         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
923         on DECL_DEBUG_EXPRs from debug args vector.
924         (expand_debug_source_expr): New function.
925         (expand_debug_locations): Use it for source bind insns.
926         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
927         * var-tracking.c (prepare_call_arguments): Add debug args
928         to call_arguments if any.
929         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
930         output_loc_operands, output_loc_operands_raw,
931         resolve_addr_in_expr, compare_loc_operands): Handle
932         DW_OP_GNU_parameter_ref.
933         (get_ref_die_offset, parameter_ref_descriptor): New functions.
934         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
935         (gen_subprogram_die): Handle parameters identified by
936         DEBUG_PARAMETER_REF.
937
938 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
939
940         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
941         * doc/install.texi (Configuration): Document --with-tls.
942         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
943         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
944         (arm_tls_descseq_addr): New.
945         (legitimize_tls_address): Add tlsdesc support.
946         (arm_cannot_copy_insn_p): Check for tlscall.
947         (arm_emit_tls_decoration): Likewise.
948         * config/arm/arm.h (TARGET_GNU2_TLS): New.
949         (OPTION_DEFAULT_SPECS): Add with-tls support.
950         * config/arm/arm.md (R1_REGNUM): Define.
951         (tlscall): New.
952         * config/arm/arm.opt (tls_type): New enumeration type and values.
953         (mtls-dialect): New switch.
954         * config/arm/arm-opts.h (enum tls_type): New.
955
956 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
957
958         * attribs.c (register_attribute): Added assert to check that all
959         attribute specs are registered with a name that is not empty and
960         does not start with '_'.
961         (decl_attributes): Avoid the lookup of the "naked" attribute spec
962         if the function has no attributes.
963         * tree.c (is_attribute_with_length_p): Removed.
964         (is_attribute_p): Removed.
965         (private_is_attribute_p): New.  
966         (private_lookup_attribute): New.
967         (lookup_attribute): Removed.
968         (lookup_ident_attribute): New.
969         (remove_attribute): Require the first argument to be in the form
970         'text', not '__text__'.  Updated asserts.
971         (merge_attributes): Use lookup_ident_attributes instead of
972         lookup_attribute.
973         (merge_dllimport_decl_attributes): Use remove_attribute.
974         (attribute_list_contained): Likewise.
975         (attribute_list_equal): Immediately return 1 if the arguments are
976         identical pointers.
977         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
978         'int'.  Require the first argument to be in the form 'text', not
979         '__text__'.  Require the second argument to be an identifier.
980         (lookup_attribute): Made inline.  Require the first argument to be
981         in the form 'text', not '__text__'.
982         (private_is_attribute_p, private_lookup_attribute): New.
983         Updated comments.
984         
985 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
986
987         * builtins.c: Add sync_ or SYNC__ to builtin names.
988         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
989         * omp-low.c: Add sync_ or SYNC__ to builtin names.
990
991 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
992
993         PR target/33049
994         * config/avr/avr.md (extzv): New expander.
995         (*extzv): New insn.
996         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
997         * config/avr/constraints.md (C04): New constraint.
998         * doc/md.texi (Machine Constraints): Document it.
999
1000 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
1001
1002         PR middle-end/49489
1003         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
1004         unsignedp argument instead of 1 for clrsb_optab.
1005         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
1006         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
1007         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
1008         * optabs.c (widen_leading): Call widen_operand and expand_unop
1009         with 0 as unsignedp argument instead of 1 for clrsb_optab.
1010         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
1011
1012 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
1013
1014         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
1015
1016 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
1017
1018         * gensupport.c (add_define_attr): New static function.
1019         (is_predicable): Allow multi-alternative lists for the "predicable"
1020         attribute.
1021         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1022         (process_one_cond_exec): Call alter_attrs_for_insn.
1023         * doc/md.texi (Defining Attributes): Mention some standard names.
1024         (Conditional Execution): Update documentation for "predicable".
1025
1026         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1027         __builtin_clrsbll): Document.
1028         * doc/rtl.texi (clrsb): New entry.
1029         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
1030         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
1031         (expand_unop): Handle clrsb_optab.
1032         (init_optabs): Initialize it.
1033         * optabs.h (enum optab_index): New entry OTI_clrsb.
1034         (clrsb_optab): Define.
1035         * genopinit.c (optabs): Add an entry for it.
1036         * builtins.c (expand_builtin): Handle clrsb builtin functions.
1037         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1038         BUILT_IN_CLRSBLL): New.
1039         * rtl.def (CLRSB): New code.
1040         * dwarf2out.c (mem_loc_descriptor): Handle it.
1041         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1042         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1043         and popcount.
1044         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1045         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1046         (__ctzDI2): Move declaration.
1047         * config/bfin/bfin.md (clrsbsi2): New expander.
1048         (signbitssi2): Use the CLRSB rtx.
1049         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
1050         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1051
1052 2011-06-21  Richard Guenther  <rguenther@suse.de>
1053
1054         * ipa-inline-transform.c (inline_transform): Fix previous change.
1055
1056 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
1057
1058         PR tree-optimization/49478
1059         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1060         with constant operand.
1061
1062 2011-06-21  Richard Guenther  <rguenther@suse.de>
1063
1064         * ipa-inline-transform.c (inline_transform): Fix typo.
1065
1066 2011-06-21  Richard Guenther  <rguenther@suse.de>
1067
1068         PR tree-optimization/49483
1069         * tree-vect-stmts.c (vectorizable_assignment): Also handle
1070         VIEW_CONVERT_EXPR conversions.
1071
1072 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
1073
1074         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1075         * config/avr/avr-tables.opt: New file (generated).
1076         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1077         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1078         avr-mcus.def.
1079         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1080         (avr_option_override): Don't process -mmcu= argument here.  Set
1081         avr_current_device using avr_mcu_index.
1082         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1083         * config/avr/avr.opt (mmcu=): Use Enum.
1084         * config/avr/t-avr (avr-devices.o): Update dependencies.
1085         ($(srcdir)/config/avr/avr-tables.opt): New.
1086         * target.def (help): Remove.
1087         * doc/tm.texi.in (TARGET_HELP): Remove.
1088         * doc/tm.texi: Regenerate.
1089         * opts.c: Don't include target.h.
1090         (common_handle_option): Don't call targetm.help.
1091         * system.h (TARGET_HELP): Poison.
1092         * Makefile.in (opts.o): Update dependencies.
1093
1094 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1095
1096         * config/usegld.h: New file.
1097         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1098         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
1099         (LIB_SPEC): Likewise.  Search /lib.
1100         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1101         (RDYNAMIC_SPEC): Handle GNU ld.
1102         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1103         Define.
1104         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1105         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1106         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1107         (STACK_CHECK_STATIC_BUILTIN): Define.
1108         * config/sol2.opt (compat-bsd): Remove.
1109         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1110         * config/sol2-bi.h: New file.
1111         * config/sol2-gld.h: Remove.
1112         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1113         (NO_DBX_BNSYM_ENSYM): Remove.
1114         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1115         (STACK_CHECK_STATIC_BUILTIN): Remove.
1116         Test USE_GLD instead of TARGET_GNU_LD.
1117         * config/i386/sol2-10.h: Rename to ...
1118         * config/i386/sol2-bi.h .. this.
1119         (SUBTARGET_EXTRA_SPECS): Redefine.
1120         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1121         (MULTILIB_DEFAULTS): Remove.
1122         (DEFAULT_ARCH32_P): Define.
1123         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1124         (ARCH64_SUBDIR): Define.
1125         Test USE_GLD instead of TARGET_GNU_LD.
1126         (I386_EMULATION): Rename to ...
1127         (ARCH32_EMULATION): ... this.
1128         (X86_64_EMULATION): Rename to ...
1129         (ARCH64_EMULATION): ... this.
1130         (TARGET_LD_EMULATION): Remove.
1131         (LINK_ARCH_SPEC): Remove.
1132         * config/i386/sol2-gas.h: Remove.
1133         * config/i386/t-sol2-10: Rename to ...
1134         * config/i386/t-sol2-64: ... this.
1135         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1136         (AS_SPARC64_FLAG): Define.
1137         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1138         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1139         depending on TARGET_CPU_DEFAULT.
1140         (CPP_CPU_SPEC): Redefine.
1141         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1142         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1143         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1144         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1145         ASM_ARCH_DEFAULT_SPEC): Redefine.
1146         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1147         LINK_ARCH_DEFAULT_SPEC.
1148         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1149         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1150         (ARCH64_SUBDIR): Define.
1151         (LINK_ARCH64_SPEC): Redefine.
1152         (CC1_SPEC): Redefine.
1153         (OPTION_DEFAULT_SPECS): Redefine.
1154         (MULTILIB_DEFAULTS): Define.
1155         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1156         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1157         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1158         (NO_DBX_BNSYM_ENSYM): Remove.
1159         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1160         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1161         (TARGET_ASM_NAMED_SECTION): Likewise.
1162         (STACK_CHECK_STATIC_BUILTIN): Remove.
1163         * config/sparc/sol2-bi.h: Remove.
1164         * config/sparc/sol2-gas-bi.h: Remove.
1165         * config/sparc/sol2-gas.h: Remove.
1166         * config/sparc/sol2-gld-bi.h: Remove.
1167         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1168         common parts ...
1169         (*-*-solaris2*): ... here.
1170
1171 2011-06-21  Christian Bruel  <christian.bruel@st.com>
1172
1173         PR other/43564
1174         * ipa-inline.c (can_inline_edge_p): Check
1175         !DECL_DISREGARD_INLINE_LIMITS.
1176
1177 2011-06-21  Christian Bruel  <christian.bruel@st.com>
1178
1179         PR middle-end/49139
1180         * cgraphunit.c (process_function_and_variable_attributes): warn when
1181         always_inline functions that are not inline.
1182         * ipa-inline-transform.c (inline_transform): Always call
1183         optimize_inline.
1184         * tree-inline.c (tree_inlinable_function_p): Use error instead
1185         of sorry.
1186         (expand_call_inline): Likewise.
1187
1188 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
1189
1190         * Makefile.in (dg_target_exps): Set.
1191         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1192         instead of 7, try to divide it more evenly.
1193
1194 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
1195
1196         PR target/49089
1197         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1198         (avx256_split_unaligned_store): New definition.
1199         (ix86_option_override_internal): Enable avx256 unaligned load/store
1200         splitting only when avx256_split_unaligned_load/store is set.
1201
1202 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
1203
1204         * regrename.c (scan_rtx_reg): Handle the case where we write to an
1205         open chain in a smaller mode without failing the entire block.
1206
1207 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1208
1209         PR middle-end/47725
1210         * combine.c (cant_combine_insn_p): Don't check zero/sign
1211         extended hard registers.
1212
1213 2011-06-21  Alan Modra  <amodra@gmail.com>
1214
1215         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1216         CONST high part large-toc address.
1217         (rs6000_tls_referenced_p): Make static.
1218         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1219
1220 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1221
1222         PR middle-end/47725
1223         * combine.c (cant_combine_insn_p): Check zero/sign extended
1224         hard registers.
1225
1226 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1227
1228         PR target/49385
1229         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1230         one of the operands is a register.
1231
1232 2011-06-20  Kai Tietz  <ktietz@redhat.com>
1233
1234         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1235         operations in combination with binary and.
1236
1237 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
1238
1239         * regrename.c (do_replace): Don't update notes.
1240
1241 2011-06-20  Alan Modra  <amodra@gmail.com>
1242
1243         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1244         of toc-relative address in CONST.
1245         (rs6000_delegitimize_address): Recognize changed address.
1246         (rs6000_legitimize_reload_address): Likewise.
1247         (rs6000_emit_move): Don't force these constants to memory.
1248         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1249         toc-relative address in CONST.
1250         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1251         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1252
1253 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1254
1255         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
1256         (count_trailing_zeros): Likewise.
1257
1258 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1259
1260         PR other/49325
1261         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1262         .init_array can be used with .ctors on targets.
1263         * configure: Regenerated.
1264
1265 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
1266
1267         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1268         if the element type is volatile.
1269
1270 2011-06-18  Jan Hubicka  <jh@suse.cz>
1271
1272         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1273         extra name aliases.
1274         (lto_symtab_resolve_can_prevail_p): Likewise.
1275         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1276         * cgraphbuild.c (record_reference): Remove extra body alias code.
1277         (mark_load): Likewise.
1278         (mark_store): Likewise.
1279         * cgraph.h (varpool_node): Remove extra_name filed;
1280         add alias_of and extraname_alias.
1281         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1282         (varpool_alias_aliased_node): New inline function.
1283         (varpool_variable_node): New function.
1284         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1285         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1286         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1287         (input_varpool_node): Likewise.
1288         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1289         (varpool_externally_visible_p): Remove extra body alias code.
1290         (function_and_variable_visibility): Likewise.
1291         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1292         (ipa_pta_execute): Use it.
1293         * varpool.c (varpool_remove_node): Remove extra name alias code.
1294         (varpool_mark_needed_node): Likewise.
1295         (varpool_analyze_pending_decls): Analyze aliases.
1296         (assemble_aliases): New functoin.
1297         (varpool_assemble_decl): Use it.
1298         (varpool_create_variable_alias): New function.
1299         (varpool_extra_name_alias): Rewrite.
1300         (varpool_for_node_and_aliases): New function.
1301
1302 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
1303
1304         PR target/49411
1305         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1306         last_arg_constant and last argument doesn't match its predicate,
1307         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1308         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1309         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1310         spelling of error message.
1311         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1312         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1313         const_0_to_255_operand instead of const_int_operand.
1314
1315         Revert:
1316         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1317
1318         * config/i386/sse.md (blendbits): Remove mode attribute.
1319         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1320         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1321         Check integer value of operand 3 in insn constraint.
1322
1323 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
1324
1325         PR rtl-optimization/48542
1326         * reload.c (find_equiv_reg): Stop looking when finding a
1327         setjmp-type call.
1328         * reload1.c (reload_as_needed): Invalidate all reload
1329         registers when crossing a setjmp-type call.
1330
1331 2011-06-16  Jeff Law  <law@redhat.com>
1332
1333         * tree-ssa-threadupdate.c (struct redirection_data): New field
1334         intermediate_edge.
1335         (THREAD_TARGET2): Define.
1336         (redirection_data_eq): Also check that the intermediate edge is equal.
1337         (lookup_redirection_data): Drop useless argument.  Extract the
1338         outgoing_edge and intermediate edge from E.  Callers updated.
1339         (copy_phi_args, update_destination_phis): New functions.
1340         (fix_duplicate_block_edges): Likewise.
1341         (create_edge_and_update_destination_phis): Duplicate all the edges
1342         hung off e->aux.  Use copy_phi_args.
1343         (create_duplicates): Use fix_duplicate_block_edges.
1344         (fixup_template_block): Likewise.
1345         (redirect_edges): If necessary, redirect the joiner block's incoming
1346         edge to the duplicate of the joiner block.
1347         (thread_block): Don't muck up loops when threading through a joiner
1348         block.
1349         (thread_through_loop_header): Handle threading through a joiner block.
1350         (mark_threaded_blocks, register_jump_thread): Likewise.
1351         * tree-flow.h (register_jump_thread): Add new argument.  Callers
1352         updated.
1353         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1354         (thread_across_edge): Handle threading through a joiner block.
1355
1356 2011-06-16  Martin Jambor  <mjambor@suse.cz>
1357
1358         PR tree-optimization/49343
1359         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1360         calculate offset, provide 2nd operand for the new COMPONENT_REF.
1361
1362 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
1363
1364         * config/darwin-protos.h (machopic_select_rtx_section): Move to
1365         inside RTX_CODE ifdef.
1366
1367 2011-06-16  Tom de Vries  <tom@codesourcery.com>
1368
1369         PR target/45098
1370         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1371         Disallow NULL pointer for pointer arithmetic.
1372
1373 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1374
1375         PR target/49398
1376         Revert.
1377         2011-06-10  Wei Guozhi  <carrot@google.com>
1378
1379         PR target/45335
1380         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1381         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1382         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1383         related peephole2.
1384         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1385         related peephole2.
1386         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1387         (arm_legitimate_ldrd_p): New prototype.
1388         (arm_output_ldrd): New prototype.
1389         * config/arm/arm.c (arm_check_ldrd_operands): New function.
1390         (arm_legitimate_ldrd_p): New function.
1391         (arm_output_ldrd): New function.
1392
1393 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
1394
1395         PR middle-end/46500
1396         * doc/tm.texi.in: Update Copyright date.
1397         * doc/tm.texi: Regenerate.
1398         * targhooks.c (default_setup_incoming_varargs): Replace
1399         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1400         (default_pretend_outgoing_varargs_named): Likewise.
1401         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1402         (hook_callee_copies_named): Likewise.
1403         (default_function_arg_advance): Likewise.
1404         (default_function_arg): Likewise.
1405         (default_function_incoming_arg): Likewise.
1406         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1407         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1408         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1409         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1410         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1411         * targhooks.h (default_setup_incoming_varargs): Likewise.
1412         (default_pretend_outgoing_varargs_named): Likewise.
1413         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1414         (hook_callee_copies_named): Likewise.
1415         (default_function_arg_advance): Likewise.
1416         (default_function_arg): Likewise.
1417         (default_function_incoming_arg): Likewise.
1418         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1419         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1420         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1421         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1422         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1423         * target.def (pass_by_reference): Likewise.
1424         (setup_incoming_varargs, strict_argument_naming): Likewise.
1425         (pretend_outgoing_varargs_named, callee_copies): Likewise.
1426         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1427         (function_incoming_arg): Likewise.
1428         * target.h: Don't include "tm.h" .
1429         (cumulative_args_t): New typedef.
1430         [GCC_TM_H] (get_cumulative_args): New static inline function.
1431         [GCC_TM_H] (pack_cumulative_args): Likewise.
1432         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1433         argument type with cumulative_args_t.
1434         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1435         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1436         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1437         (frv_arg_partial_bytes, frv_function_arg): Likewise.
1438         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1439         (frv_function_arg_1): Likewise.
1440         * config/s390/s390.c (s390_pass_by_reference): Likewise.
1441         (s390_function_arg_advance, s390_function_arg): Likewise.
1442         * config/m32c/m32c.c (m32c_function_arg): Likewise.
1443         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1444         (m32c_strict_argument_naming): Likewise.
1445         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1446         (spu_function_arg_advance): Likewise.
1447         (spu_setup_incoming_varargs): Likewise.  Make static.
1448         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1449         Remove prototype.
1450         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1451         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1452         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1453         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1454         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1455         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1456         (mep_pass_by_reference, mep_function_arg): Likewise.
1457         (mep_function_arg_advance): Likewise.
1458         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1459         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1460         (m32r_function_arg, m32r_function_arg_advance): Likewise.
1461         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1462         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1463         (ix86_function_arg, ix86_pass_by_reference): Likewise.
1464         (ix86_setup_incoming_varargs): Likewise.
1465         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1466         (sh_strict_argument_naming): Likewise.
1467         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1468         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1469         (sh_function_arg_advance, sh_function_arg): Likewise.
1470         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1471         (pdp11_function_arg_advance): Likewise.
1472         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1473         Likewise.
1474         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1475         * config/avr/avr.c (avr_function_arg): Likewise.
1476         (avr_function_arg_advance): Likewise.
1477         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1478         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1479         (xtensa_function_arg_1): Likewise.
1480         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1481         Likewise.
1482         (xstormy16_function_arg): Likewise.
1483         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1484         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1485         (fr30_function_arg_advance): Likewise.
1486         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1487         (lm32_function_arg, lm32_function_arg_advance): Likewise.
1488         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1489         (moxie_function_arg, moxie_function_arg_advance): Likewise.
1490         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1491         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1492         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1493         (cris_function_arg, cris_function_incoming_arg): Likewise.
1494         (cris_function_arg_advance, cris_function_arg_1): Likewise.
1495         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1496         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1497         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1498         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1499         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1500         (mn10300_arg_partial_bytes): Likewise.
1501         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1502         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1503         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1504         (ia64_function_arg_1): Likewise.
1505         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1506         (m68k_function_arg): Likewise.
1507         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1508         (rs6000_function_arg, setup_incoming_varargs): Likewise.
1509         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1510         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1511         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1512         (picochip_arg_advance): Likewise.
1513         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1514         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1515         (mcore_function_arg_advance): Likewise.
1516         * config/score/score.c (score_pass_by_reference): Likewise.
1517         (score_function_arg_advance): Likewise.
1518         (score_arg_partial_bytes): Likewise.  Make static.
1519         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1520         * config/arm/arm.c (arm_arg_partial_bytes): Replace
1521         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1522         (arm_function_arg, arm_function_arg_advance): Likewise.
1523         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1524         * config/pa/pa.c (pa_pass_by_reference): Likewise.
1525         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1526         (pa_function_arg): Likewise.
1527         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1528         (mips_function_arg, mips_function_arg_advance): Likewise.
1529         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1530         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1531         * config/vax/vax.c (vax_function_arg): Likewise.
1532         (vax_function_arg_advance): Likewise.
1533         * config/h8300/h8300.c (h8300_function_arg): Likewise.
1534         (h8300_function_arg_advance): Likewise.
1535         * config/v850/v850.c (v850_pass_by_reference): Likewise.
1536         (v850_strict_argument_naming, v850_function_arg): Likewise.
1537         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1538         (v850_setup_incoming_varargs): Likewise.
1539         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1540         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1541         (mmix_function_arg, mmix_pass_by_reference): Likewise.
1542         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1543         with const void *.
1544         * config/bfin/bfin.c (setup_incoming_varargs): Replace
1545         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1546         (bfin_function_arg_advance, bfin_function_arg): Likewise.
1547         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1548         * calls.c (emit_call_1): Change type of args_so_far to
1549         cumulative_args_t.  Changed all callers.
1550         (initialize_argument_information): Likewise.
1551         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1552         * dse.c (get_call_args): Likewise.
1553         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1554         * function.c (pass_by_reference, reference_callee_copied): Likewise.
1555         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1556         New member args_so_far_v.  Changed all users.
1557         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1558         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1559         * config/mips/mips.c (mips_output_args_xfer): Likewise.
1560         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1561         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1562         * config/microblaze/microblaze.c (microblaze_expand_prologue):
1563         Likewise.
1564         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1565         m32r_pass_by_reference.
1566
1567 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
1568
1569         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1570         argument to be a VEC of statements.
1571         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1572         assert that pattern statements have to have their vector type set.
1573         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1574         Change the first argument to be a VEC of statements.  Update
1575         documentation.
1576         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1577         (vect_handle_widen_mult_by_const): New function.
1578         (vect_recog_widen_mult_pattern):  Change the first argument to be a
1579         VEC of statements.  Update documentation.  Check that the constant is
1580         INTEGER_CST.  Support multiplication by a constant that fits an
1581         intermediate type - call vect_handle_widen_mult_by_const.
1582         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1583         call.  Handle additional pattern statements if necessary.
1584
1585 2011-06-16  Nick Clifton  <nickc@redhat.com>
1586
1587         PR target/49427
1588         * config.gcc: Set cpu_type to v850 for any V850 architecture.
1589         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1590         md_file, extra_modes, out_file and extra_options are these are all
1591         deduced from cpu_type.
1592
1593 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1594
1595         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1596         truncation mask to 63.
1597
1598 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1599
1600         PR target/49313
1601         PR target/29524
1602         * longlong.h: Add AVR support:
1603         (count_leading_zeros): New macro.
1604         (count_trailing_zeros): New macro.
1605         (COUNT_LEADING_ZEROS_0): New macro.
1606         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1607         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1608         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1609         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1610         (LIB2FUNCS_EXCLUDE): Add _clz.
1611         * config/avr/libgcc.S (XCALL): Move up in file.
1612         (XJMP): New C Macro.
1613         (DEFUN): New asm macro.
1614         (ENDF): New asm macro.
1615         (__ffssi2): New function.
1616         (__ffshi2): New function.
1617         (__loop_ffsqi2): New function.
1618         (__ctzsi2): New function.
1619         (__ctzhi2): New function.
1620         (__clzdi2): New function.
1621         (__clzsi2): New function.
1622         (__clzhi2): New function.
1623         (__paritydi2): New function.
1624         (__paritysi2): New function.
1625         (__parityhi2): New function.
1626         (__parityqi2): New function.
1627         (__popcounthi2): New function.
1628         (__popcountsi2): New function.
1629         (__popcountdi2): New function.
1630         (__popcountqi2): New function.
1631         (__bswapsi2): New function.
1632         (__bswapdi2): New function.
1633         (__ashldi3): New function.
1634         (__ashrdi3): New function.
1635         (__lshrdi3): New function.
1636         Fix suspicous lines.
1637
1638 2011-06-16  Richard Guenther  <rguenther@suse.de>
1639
1640         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1641         the same as x != 0.
1642         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1643         to (bool) X & 1.
1644         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1645         equality compares against zero for the lower bit.
1646
1647 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
1648
1649         PR tree-optimization/49419
1650         * tree-vrp.c (execute_vrp): Call init_range_assertions
1651         before estimate_numbers_of_iterations, call
1652         free_number_of_iterations_estimates before calling
1653         remove_range_assertions.
1654
1655 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1656
1657         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1658         (struct partial_schedule): Add rows_length field.
1659         (verify_partial_schedule): Check rows_length.
1660         (ps_insert_empty_row): Handle rows_length.
1661         (create_partial_schedule): Likewise.
1662         (free_partial_schedule): Likewise.
1663         (reset_partial_schedule): Likewise.
1664         (create_ps_insn): Remove rest_count argument.
1665         (remove_node_from_ps): Update rows_length.
1666         (add_node_to_ps): Update rows_length and call create_ps_insn
1667         without passing row_rest_count.
1668         (rotate_partial_schedule): Update rows_length.
1669
1670 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1671
1672         * ddg.c (add_intra_loop_mem_dep): New function.
1673         (build_intra_loop_deps): Call it.
1674
1675 2011-06-13  Jeff Law  <law@redhat.com>
1676
1677         * df-problems.c (df_lr_local_compute): Manually CSE
1678         PIC_OFFSET_TABLE_REGNUM.
1679         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1680         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1681
1682 2011-06-13  Jan Hubicka  <jh@suse.cz>
1683
1684         * cgraphunit.c (handle_alias_pairs): New function.
1685         (cgraph_finalize_compilation_unit): Use it.
1686         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1687         as externally visible.
1688
1689 2011-06-15  Richard Guenther  <rguenther@suse.de>
1690
1691         * expr.c (expand_expr_real_2): Reduce all integral types to
1692         bitfield precision.
1693         (expand_expr_real_1): Likewise.
1694
1695 2011-06-15  Martin Jambor  <mjambor@suse.cz>
1696
1697         PR tree-optimization/48613
1698         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1699         ipa_node_params_vector is NULL.
1700
1701 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
1702
1703         PR debug/49382
1704         * dwarf2out.c (dw_loc_list_node): Add force field.
1705         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1706         location in the list, even if it is modified before first real insn.
1707         (output_loc_list): Emit empty ranges with force flag set.
1708         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1709
1710 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
1711
1712         PR target/49349
1713         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1714         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
1715         above a fence.  Update comments.
1716         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1717         placed just above it.  Do not allow NULL place_to_insert.
1718
1719 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
1720
1721         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1722         (slpeel_tree_peel_loop_to_edge): Don't call
1723         remove_dead_stmts_from_loop.
1724         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1725         remove irrelevant pattern statements.  For irrelevant statements
1726         check if it is the last statement of a detected pattern, use
1727         corresponding pattern statement instead.
1728         (destroy_loop_vec_info): No need to remove pattern statements,
1729         only free stmt_vec_info.
1730         (vect_transform_loop): For irrelevant statements check if it is
1731         the last statement of a detected pattern, use corresponding
1732         pattern statement instead.
1733         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1734         pattern statements.  Set basic block for the new statement.
1735         (vect_pattern_recog): Update documentation.
1736         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1737         operands of pattern statements.
1738         (vectorizable_call): Fix printing.  In case of a pattern statement
1739         use the lhs of the original statement when creating a dummy
1740         statement to replace the original call.
1741         (vect_analyze_stmt): For irrelevant statements check if it is
1742         the last statement of a detected pattern, use corresponding
1743         pattern statement instead.
1744         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1745         statements use gsi of the original statement.
1746
1747 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1748
1749         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1750         common/common-target-def.h.
1751         * target.def (default_target_flags, handle_option,
1752         supports_split_stack, optimization_table, init_struct,
1753         except_unwind_info, unwind_tables_default, have_named_sections):
1754         Move to common/common-target.def.
1755         * target.h (enum opt_levels, struct default_options): Move to
1756         common/common-target.h.
1757         * targhooks.c (default_except_unwind_info,
1758         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1759         default_target_handle_option, empty_optimization_table): Move to
1760         common/common-targhooks.c.
1761         * targhooks.h (default_except_unwind_info,
1762         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1763         default_target_handle_option, empty_optimization_table): Move to
1764         common/common-targhooks.h.
1765         * common/common-target-def.h: Include common/common-targhooks.h.
1766         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1767         defined.
1768         * common/common-target.def (handle_option, option_init_struct,
1769         option_optimization_table, default_target_flags,
1770         except_unwind_info, supports_split_stack, unwind_tables_default,
1771         have_named_sections): Move from target.def.
1772         (HOOK_PREFIX): Undefine at end of file.
1773         * common/common-target.h: Include input.h.
1774         (enum opt_levels, struct default_options): Move from target.h.
1775         * common/common-targhooks.c, common/common-targhooks.h: New.
1776         * config.gcc (target_has_targetm_common): Default to yes.
1777         (moxie*): Set target_has_targetm_common=no.
1778         (hppa*-*-*): Don't set target_has_targetm_common=yes.
1779         * doc/tm.texi: Regenerate.
1780         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1781         (C_TARGET_DEF_H): Add common/common-targhooks.h.
1782         (GCC_OBJS): Remove vec.o.
1783         (OBJS): Remove hooks.o and vec.o.
1784         (OBJS-libcommon-target): Add vec.o, hooks.o and
1785         common/common-targhooks.o.
1786         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1787         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1788         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1789         cfglayout.o, $(out_object_file), $(common_out_object_file)):
1790         Update dependencies.
1791         (common/common-targhooks.o): New.
1792         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
1793         * common/config/pa/pa-common.c: Include more headers.  Take
1794         copyright dates from pa.c.
1795         (pa_option_optimization_table, pa_handle_option,
1796         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1797         TARGET_HANDLE_OPTION): Move from pa.c.
1798         * common/config/alpha/alpha-common.c,
1799         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1800         common/config/bfin/bfin-common.c,
1801         common/config/cris/cris-common.c,
1802         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1803         common/config/h8300/h8300-common.c,
1804         common/config/i386/i386-common.c,
1805         common/config/ia64/ia64-common.c,
1806         common/config/iq2000/iq2000-common.c,
1807         common/config/lm32/lm32-common.c,
1808         common/config/m32c/m32c-common.c,
1809         common/config/m32r/m32r-common.c,
1810         common/config/m68k/m68k-common.c,
1811         common/config/mcore/mcore-common.c,
1812         common/config/mep/mep-common.c,
1813         common/config/microblaze/microblaze-common.c,
1814         common/config/mips/mips-common.c,
1815         common/config/mmix/mmix-common.c,
1816         common/config/mn10300/mn10300-common.c,
1817         common/config/pdp11/pdp11-common.c,
1818         common/config/picochip/picochip-common.c,
1819         common/config/rs6000/rs6000-common.c,
1820         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1821         common/config/score/score-common.c, common/config/sh/sh-common.c,
1822         common/config/sparc/sparc-common.c,
1823         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1824         common/config/vax/vax-common.c,
1825         common/config/xstormy16/xstormy16-common.c,
1826         common/config/xtensa/xtensa-common.c: New.
1827         * config/alpha/alpha.c: Include common/common-target.h.
1828         (alpha_option_optimization_table, alpha_handle_option,
1829         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1830         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1831         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1832         * config/arm/arm.c (arm_option_optimization_table,
1833         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1834         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1835         arm-common.c.
1836         * config/avr/avr.c (avr_option_optimization_table,
1837         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1838         to avr-common.c.
1839         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1840         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1841         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1842         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1843         * config/cris/cris.c (cris_option_optimization_table,
1844         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1845         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1846         cris-common.c.
1847         * config/fr30/fr30.c (fr30_option_optimization_table,
1848         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1849         to fr30-common.c.
1850         * config/frv/frv.c (frv_option_optimization_table,
1851         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1852         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1853         * config/h8300/h8300.c (h8300_option_optimization_table,
1854         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1855         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1856         * config/i386/i386-protos.h (ix86_handle_option): Declare.
1857         * config/i386/i386.c: Include common/common-target.h.
1858         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1859         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1860         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1861         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1862         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1863         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1864         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1865         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1866         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1867         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1868         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1869         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1870         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1871         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1872         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1873         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1874         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1875         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1876         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1877         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1878         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1879         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1880         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1881         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1882         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1883         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1884         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1885         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1886         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1887         ix86_option_optimization_table, ix86_option_init_struct,
1888         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1889         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1890         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1891         i386-common.c.
1892         * config/i386/t-i386 (i386.o): Update dependencies.
1893         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1894         * config/ia64/ia64.c (ia64_option_optimization_table,
1895         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1896         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1897         ia64_handle_option): Move to ia64-common.c.
1898         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1899         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1900         * config/lm32/lm32.c (lm32_option_optimization_table,
1901         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1902         to lm32-common.c.
1903         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1904         m32c-common.c.
1905         * config/m32r/m32r.c (m32r_option_optimization_table,
1906         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1907         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1908         m32r_handle_option): Move to m32r-common.c.
1909         (m32r_memory_move_cost): Remove comment referring to
1910         TARGET_HANDLE_OPTION.
1911         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1912         Move to m68k-common.c.
1913         * config/mcore/mcore.c (mcore_option_optimization_table,
1914         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1915         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1916         * config/mep/mep.c (mep_option_optimization_table,
1917         mep_handle_option, TARGET_HANDLE_OPTION,
1918         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1919         Move to mep-common.c.
1920         * config/microblaze/microblaze.c
1921         (microblaze_option_optimization_table,
1922         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1923         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1924         * config/mips/mips.c (mips_handle_option,
1925         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1926         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1927         mips-common.c.
1928         * config/mmix/mmix.c (mmix_option_optimization_table,
1929         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1930         Move to mmix-common.c.
1931         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1932         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1933         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1934         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1935         * config/pa/pa.c: Include common/common-target.h.
1936         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1937         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1938         pa_handle_option): Move to pa-common.c.
1939         (pa_option_override): Use targetm_common.except_unwind_info.
1940         (pa_asm_output_mi_thunk, pa_function_section): Use
1941         targetm_common.have_named_sections.
1942         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1943         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1944         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1945         pdp11_handle_option, pdp11_option_init_struct): Move to
1946         pdp11-common.c.
1947         * config/picochip/picochip.c (picochip_option_optimization_table,
1948         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1949         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1950         * config/rs6000/rs6000.c: Include common/common-target.h.
1951         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1952         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1953         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1954         rs6000_handle_option): Move to rs6000-common.c.
1955         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1956         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1957         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1958         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1959         * config/s390/s390.c (processor_flags_table,
1960         s390_option_optimization_table, s390_option_init_struct,
1961         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1962         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1963         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1964         * config/s390/s390.h (processor_flags_table): Declare.
1965         * config/score/score.c (score_option_optimization_table,
1966         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1967         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1968         score_handle_option): Move to score-common.c.
1969         * config/sh/sh.c (sh_option_optimization_table,
1970         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1971         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1972         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1973         * config/sparc/sparc.c: Include common/common-target.h.
1974         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1975         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1976         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1977         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1978         spu_option_init_struct): Move to spu-common.c.
1979         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1980         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1981         * config/v850/v850.c (small_memory_physical_max,
1982         v850_handle_memory_optionn v850_handle_option,
1983         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1984         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1985         v850-common.c.
1986         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1987         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1988         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1989         Move to xtensa-common.c.
1990         * cfglayout.c: Include common/common-target.h.
1991         (fixup_reorder_chain): Use targetm_common.have_named_sections.
1992         * cfgrtl.c: Include common/common-target.h.
1993         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1994         targetm_common.have_named_sections.
1995         * dbxout.c: Include common/common-target.h.
1996         (dbxout_function_end): Use targetm_common.have_named_sections.
1997         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1998         targetm_common.except_unwind_info.
1999         * dwarf2out.c: Include common/common-target.h.
2000         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2001         dwarf2out_begin_prologue, dwarf2out_frame_init,
2002         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
2003         targetm_common.except_unwind_info.
2004         * except.c: Include common/common-target.h.
2005         (init_eh, finish_eh_generation,
2006         output_one_function_exception_table): Use
2007         targetm_common.except_unwind_info.
2008         (switch_to_exception_section): Use targetm_common.have_named_sections.
2009         * explow.c: Include common/common-target.h.
2010         * expr.c: Include common/common-target.h.
2011         (build_personality_function): Use targetm_common.except_unwind_info.
2012         * function.c: Include common/common-target.h.
2013         (expand_function_end): Use targetm_common.except_unwind_info.
2014         * haifa-sched.c: Include common/common-target.h.
2015         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
2016         * lto-opts.c: Include common/common-target.h instead of target.h.
2017         (lto_reissue_options): Use targetm_common.handle_option.
2018         * opts.c: Include common/common-target.h.
2019         (target_handle_option): Use targetm_common.handle_option.
2020         (init_options_struct): Update comment referring to
2021         targetm.target_option.optimization.  Use
2022         targetm_common.default_target_flags,
2023         targetm_common.unwind_tables_default and
2024         targetm_common.option_init_struct.
2025         (default_options_optimization): Use
2026         targetm_common.option_optimization_table.
2027         (finish_options): Use targetm_common.except_unwind_info,
2028         targetm_common.unwind_tables_default,
2029         targetm_common.have_named_sections and
2030         targetm_common.supports_split_stack.
2031         * toplev.c: Include common/common-target.h.
2032         (process_options): Use targetm_common.have_named_sections.
2033         * tree-tailcall.c: Include common/common-target.h.
2034         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
2035         * tree.c: Include common/common-target.h.
2036         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
2037         * varasm.c: Include common/common-target.h.
2038         (resolve_unique_section, hot_function_section,
2039         default_function_section): Use targetm_common.have_named_sections.
2040
2041 2011-06-14  Easwaran Raman  <eraman@google.com>
2042
2043         PR rtl-optimization/44194
2044         * dse.c: Include tree-flow.h
2045         (insn_info): Add new field non_frame_wild_read.
2046         (group_info): Add new fields escaped_n and escaped_p.
2047         (kill_on_calls): New variable.
2048         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2049         (dse_step0): Initialize kill_on_calls.
2050         (can_escape): New function.
2051         (set_usage_bits): Add additional parameter; record information
2052         about escaped locations.
2053         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
2054         (dse_step2_nospill): Set kill_on_calls based on
2055         group->escaped_n and group->escaped_n.
2056         (add_wild_read): Refactor into...
2057         (reset_active_stores): ... New function, and
2058         (free_read_records): ... New function.
2059         (add_non_frame_wild_read): New function.
2060         (scan_insn): Call add_non_frame_wild_read on non-const calls.
2061         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2062         (dse_step5_nospill): Call scan_reads_nospill for instructions
2063         marked as non_frame_wild_read.
2064         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2065
2066 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
2067
2068         * common/common-target-def.h, common/common-target.def,
2069         common/common-target.h, common/config/default-common.c,
2070         common/config/pa/pa-common.c: New files.
2071         * Makefile.in (common_out_file, common_out_object_file,
2072         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2073         (OBJS-libcommon-target): Include $(common_out_object_file).
2074         (prefix.o): Update dependencies.
2075         ($(common_out_object_file), common/common-target-hooks-def.h,
2076         s-common-target-hooks-def-h): New.
2077         (s-tm-texi): Also check timestamp on common-target.def.
2078         (build/genhooks.o): Update dependencies.
2079         * config.gcc (common_out_file, target_has_targetm_common): Define.
2080         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2081         TARGET_ALWAYS_STRIP_DOTDOT.
2082         * configure.ac (common_out_object_file): Define.
2083         (common_out_file, common_out_object_file): Substitute.
2084         (common): Create directory.
2085         * configure: Regenerate.
2086         * doc/tm.texi.in (targetm_common): Document.
2087         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2088         * doc/tm.texi: Regenerate.
2089         * genhooks.c (hook_array): Also include common/common-target.def.
2090         * prefix.c (tm.h): Don't include.
2091         (common/common-target.h): Include.
2092         (ALWAYS_STRIP_DOTDOT): Don't define.
2093         (update_path): Use targetm_common.always_strip_dotdot instead of
2094         ALWAYS_STRIP_DOTDOT.
2095         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2096
2097 2011-06-14  David Li  <davidxl@google.com>
2098
2099         * passes.c (execute_function_todo): Remove TODO_dump_func.
2100         (execute_one_pass): Remove TODO_dump_func.
2101         (execute_function_dump): New function.
2102         * tree-vrp.c: Remove TODO_dump_func.
2103         * regrename.c: Remove TODO_dump_func.
2104         * fwprop.c: Remove TODO_dump_func.
2105         * tree-into-ssa.c: Remove TODO_dump_func.
2106         * tree-complex.c: Remove TODO_dump_func.
2107         * tracer.c: Remove TODO_dump_func.
2108         * tree-loop-distribution.c: Remove TODO_dump_func.
2109         * postreload-gcse.c: Remove TODO_dump_func.
2110         * postreload.c: Remove TODO_dump_func.
2111         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2112         * tree-tailcall.c: Remove TODO_dump_func.
2113         * ipa-cp.c: Remove TODO_dump_func.
2114         * final.c: Remove TODO_dump_func.
2115         * tree-emutls.c: Remove TODO_dump_func.
2116         * omp-low.c: Remove TODO_dump_func.
2117         * tree-ssa-dse.c: Remove TODO_dump_func.
2118         * tree-ssa-uncprop.c: Remove TODO_dump_func.
2119         * auto-inc-dec.c: Remove TODO_dump_func.
2120         * reorg.c: Remove TODO_dump_func.
2121         * tree-ssa-copyrename.c: Remove TODO_dump_func.
2122         * tree-ssa-ccp.c: Remove TODO_dump_func.
2123         * compare-elim.c: Remove TODO_dump_func.
2124         * mode-switching.c: Remove TODO_dump_func.
2125         * modulo-sched.c: Remove TODO_dump_func.
2126         * tree-call-cdce.c: Remove TODO_dump_func.
2127         * cse.c: Remove TODO_dump_func.
2128         * web.c: Remove TODO_dump_func.
2129         * tree-stdarg.c: Remove TODO_dump_func.
2130         * lto-streamer-out.c: Remove TODO_dump_func.
2131         * tree-ssa-math-opts.c: Remove TODO_dump_func.
2132         * tree-ssa-dom.c: Remove TODO_dump_func.
2133         * tree-nrv.c: Remove TODO_dump_func.
2134         * loop-init.c: Remove TODO_dump_func.
2135         * gimple-low.c: Remove TODO_dump_func.
2136         * ipa-inline.c: Remove TODO_dump_func.
2137         * tree-ssa-sink.c: Remove TODO_dump_func.
2138         * jump.c: Remove TODO_dump_func.
2139         * ifcvt.c: Remove TODO_dump_func.
2140         * tree-ssa-loop.c: Remove TODO_dump_func.
2141         * recog.c: Remove TODO_dump_func.
2142         * dse.c: Remove TODO_dump_func.
2143         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2144         * matrix-reorg.c: Remove TODO_dump_func.
2145         * tree-eh.c: Remove TODO_dump_func.
2146         * regmove.c: Remove TODO_dump_func.
2147         * function.c: Remove TODO_dump_func.
2148         * tree-vectorizer.c: Remove TODO_dump_func.
2149         * ipa-split.c: Remove TODO_dump_func.
2150         * gcse.c: Remove TODO_dump_func.
2151         * tree-if-conv.c: Remove TODO_dump_func.
2152         * init-regs.c: Remove TODO_dump_func.
2153         * tree-ssa-phiopt.c: Remove TODO_dump_func.
2154         * implicit-zee.c: Remove TODO_dump_func.
2155         * lower-subreg.c: Remove TODO_dump_func.
2156         * bt-load.c: Remove TODO_dump_func.
2157         * tree-dfa.c: Remove TODO_dump_func.
2158         * except.c: Remove TODO_dump_func.
2159         * emit-rtl.c: Remove TODO_dump_func.
2160         * store-motion.c: Remove TODO_dump_func.
2161         * cfgexpand.c: Remove TODO_dump_func.
2162         * tree-cfgcleanup.c: Remove TODO_dump_func.
2163         * cfgcleanup.c: Remove TODO_dump_func.
2164         * tree-ssa-pre.c: Remove TODO_dump_func.
2165         * tree-sra.c: Remove TODO_dump_func.
2166         * tree-mudflap.c: Remove TODO_dump_func.
2167         * tree-ssa-copy.c: Remove TODO_dump_func.
2168         * cfglayout.c: Remove TODO_dump_func.
2169         * tree-ssa-forwprop.c: Remove TODO_dump_func.
2170         * tree-ssa-dce.c: Remove TODO_dump_func.
2171         * ira.c: Remove TODO_dump_func.
2172         * tree-ssa.c: Remove TODO_dump_func.
2173         * integrate.c: Remove TODO_dump_func.
2174         * tree-optimize.c: Remove TODO_dump_func.
2175         * tree-ssa-phiprop.c: Remove TODO_dump_func.
2176         * tree-object-size.c: Remove TODO_dump_func.
2177         * combine.c: Remove TODO_dump_func.
2178         * bb-reorder.c: Remove TODO_dump_func.
2179         * cprop.c: Remove TODO_dump_func.
2180         * var-tracking.c: Remove TODO_dump_func.
2181         * tree-profile.c: Remove TODO_dump_func.
2182         * tree-vect-generic.c: Remove TODO_dump_func.
2183         * reg-stack.c: Remove TODO_dump_func.
2184         * sched-rgn.c: Remove TODO_dump_func.
2185         * tree-ssa-structalias.c: Remove TODO_dump_func.
2186         * tree-switch-conversion.c: Remove TODO_dump_func.
2187         * tree-cfg.c: Remove TODO_dump_func.
2188         * tree-ssa-reassoc.c: Remove TODO_dump_func.
2189         * combine-stack-adj.c: Remove TODO_dump_func.
2190         * dce.c: Remove TODO_dump_func.
2191         * tree-ssanames.c: Remove TODO_dump_func.
2192         * regcprop.c: Remove TODO_dump_func.
2193
2194 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2195
2196         PR middle-end/47364
2197         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2198         and properly handle result not in Pmode.
2199
2200 2011-06-14  Robert Millan  <rmh@gnu.org>
2201
2202         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2203         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2204         `config/linux.h'.
2205
2206         * config/i386/kfreebsd-gnu64.h: New file.
2207         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2208         with `i386/kfreebsd-gnu64.h'.
2209
2210         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2211         (GNU_USER_LINK_EMULATION64): New macros.
2212         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2213         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2214         of hardcoding `elf_i386' and `elf_x86_64'.
2215
2216 2011-06-14  Nick Clifton  <nickc@redhat.com>
2217
2218         PR target/49403
2219         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2220
2221         PR target/49402
2222         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2223
2224 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
2225
2226         PR fortran/49103
2227         * tree.h (DECL_NONSHAREABLE): Define.
2228         (struct tree_decl_common): Change decl_common_unused to
2229         decl_nonshareable_flag.
2230         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2231         Ignore vars with DECL_NONSHAREABLE bit set.
2232         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2233         on stores to automatic aggregate vars.
2234
2235         PR rtl-optimization/49390
2236         Revert:
2237         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
2238
2239         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2240         MEM_ALIAS_SET.
2241
2242 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
2243             Tom de Vries  <tom@codesourcery.com>
2244
2245         PR target/45098
2246         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2247         Document changed semantics.
2248         (max_stmt_executions, max_stmt_executions_int): Declare.
2249         * tree-data-ref.c (estimated_loop_iterations)
2250         (estimated_loop_iterations_int): Move functions...
2251         * tree-ssa-loop-niter.c (estimated_loop_iterations)
2252         (estimated_loop_iterations_int): here.
2253         (record_estimate): Change nb_iterations_upper_bound and
2254         nb_iterations_estimate semantics.
2255         (max_stmt_executions, max_stmt_executions_int): New function.
2256         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2257         (max_stmt_executions_tree): this.
2258         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2259         estimated_loop_iterations_tree.
2260         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2261         max_stmt_executions_int instead of estimated_loop_iterations_int.
2262         * predict.c (predict_loops): Idem.
2263         * tree-parloops.c (parallelize_loops): Idem.
2264         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2265         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2266         (init_omega_for_ddr_1): Idem.
2267         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2268         (loop_prefetch_arrays): Idem
2269         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2270         max_stmt_executions instead of estimated_loop_iterations.
2271         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2272         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2273         instead of nb_iterations_upper_bound.
2274
2275 2011-06-13  Jan Hubicka  <jh@suse.cz>
2276
2277         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2278
2279 2011-06-14  Richard Henderson  <rth@redhat.com>
2280
2281         PR debug/48459
2282         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2283         (based_loc_descr): Assert it's true.
2284         (compute_frame_pointer_to_fb_displacement): Set it, rather than
2285         aborting immediately.
2286
2287 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
2288             Mingfeng Wu  <mingfeng@faraday-tech.com>
2289
2290         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2291
2292 2011-06-13  Jan Hubicka  <jh@suse.cz>
2293
2294         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2295
2296 2011-06-13  Jan Hubicka  <jh@suse.cz>
2297
2298         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2299         similarly to DECL_COMDAT.
2300         * cgraphunit.c (cgraph_analyze_function): Likewise.
2301         * ipa.c (function_and_variable_visibility): Likewise.
2302
2303 2011-06-13  Jan Hubicka  <jh@suse.cz>
2304
2305         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2306         BINFO_VIRTUALS when streaming for ltrans unit.
2307
2308 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
2309
2310         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2311         (movdi_internal64): Same.
2312
2313 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
2314
2315         PR target/44618
2316         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2317         a set of similar patterns, where the MATCH_OPERAND for the function
2318         argument is replaced with individual references to hardware registers.
2319         (save_fpregs_<mode>): Ditto
2320         (restore_gpregs_<mode>): Ditto
2321         (return_and_restore_gpregs_<mode>): Ditto
2322         (return_and_restore_fpregs_<mode>): Ditto
2323         (return_and_restore_fpregs_aix_<mode>): Ditto
2324
2325 2011-06-13  Jan Hubicka  <jh@suse.cz>
2326
2327         * ipa-utils.c (postorder_stack): New structure.
2328         (ipa_reverse_postorder): Handle aliases.
2329
2330 2011-06-13  Jan Hubicka  <jh@suse.cz>
2331
2332         * ipa-inline.c (reset_edge_caches): Walk aliases.
2333         (update_caller_keys): Do not test inlinability of aliases.
2334         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2335         (do_estimate_growth): Fix typo.
2336
2337 2011-06-13  Jan Hubicka  <jh@suse.cz>
2338
2339         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2340         (can_remove_node_now_p): ... here; handle same comdat groups.
2341         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2342         (inline_call): Update use of can_remove_node_now_p.
2343
2344 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2345
2346         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2347         condition to disallow non-identical memory locations.
2348         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2349         preference to bit manipulation instructions.
2350
2351 2011-06-13  Jan Hubicka  <jh@suse.cz>
2352
2353         * cgraph.c (cgraph_for_node_thunks_and_aliases,
2354         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2355         (nonremovable_p): New function.
2356         (cgraph_can_remove_if_no_direct_calls_p): New function.
2357         (used_from_object_file_p): New functoin.
2358         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2359         references from aliases.
2360         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2361         * ipa-inline.c (check_caller_edge): New function.
2362         (want_inline_function_called_once_p): Use it; accept aliases called
2363         once, too.
2364         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2365
2366 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2367
2368         PR target/48454
2369         * config/arm/neon.md (vec_pack_trunc): Set the lengths
2370         correctly for the case with Quad vectors.
2371
2372 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
2373            Ira Rosen  <ira.rosen@linaro.org>
2374
2375         PR tree-optimization/49352
2376         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2377         all, make sure loop_use_stmt after the loop is a def stmt of a used
2378         SSA_NAME that is the only one defined inside of the loop.  Don't
2379         check for COND_EXPR and GIMPLE_BINARY_RHS.
2380         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2381         check_reduction is true.
2382
2383 2011-06-11  Jan Hubicka  <jh@suse.cz>
2384
2385         PR middle-end/49373
2386         * ipa.c (cgraph_externally_visible_p): Check resolution info.
2387
2388 2011-06-11  Jan Hubicka  <jh@suse.cz>
2389
2390         PR middle-end/48836
2391         * ipa-inline-transform.c: Include tree-pass.h
2392         (inline_transform): Set TODO_update_ssa_only_virtuals.
2393         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2394
2395 2011-06-11  Jan Hubicka  <jh@suse.cz>
2396
2397         PR middle-end/49378
2398         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2399         aliases and thunks.
2400
2401 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
2402
2403         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2404         Take number of iterations to peel into account for equally frequent
2405         misalignment values.
2406
2407 2011-06-11  Jan Hubicka  <jh@suse.cz>
2408
2409         * lto-streamer-out.c (produce_symtab): Stream out the newly
2410         represented aliases.
2411
2412 2011-06-11  Jan Hubicka  <jh@suse.cz>
2413
2414         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2415         varying args.
2416         (ipa_update_after_lto_read): Likewise.
2417         (ipa_write_node_info): Do not sream call_with_var_arguments.
2418         (ipa_read_node_info): Likewise.
2419
2420 2011-06-11  Jan Hubicka  <jh@suse.cz>
2421
2422         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2423
2424 2011-06-11  Jan Hubicka  <jh@suse.cz>
2425
2426         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2427         (lto_symtab_resolve_can_prevail_p): Likewise.
2428         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2429         * cgraph.c (same_body_aliases_done): New global var.
2430         (cgraph_same_body_alias_1): Rename to ...
2431         (cgraph_create_function_alias): ... this one; reorg to new
2432         representation.
2433         (cgraph_same_body_alias): Use cgraph_create_function_alias;
2434         record references when asked to.
2435         (cgraph_add_thunk): Fix formating.
2436         (cgraph_get_node): Kill same body alias code.
2437         (cgraph_node_for_asm): Likewise.
2438         (cgraph_remove_same_body_alias): Remove.
2439         (cgraph_remove_node): Kill same body alias code.
2440         (cgraph_mark_address_taken_node): Mark also the aliased function
2441         as having address taken.
2442         (dump_cgraph_node): Dump same body aliases.
2443         (cgraph_for_node_thunks_and_aliases): Update for new alias
2444         representation.
2445         (cgraph_for_node_and_aliases): Likewise.
2446         * cgraph.h (same_body): Kll pointer.
2447         (same_body_alias): Update comment.
2448         (same_body_aliases_done): Declare.
2449         (cgraph_remove_same_body_alias): Remove declaration.
2450         (cgraph_create_function_alias): Declare.
2451         (cgraph_process_same_body_aliases): Declare.
2452         (cgraph_function_with_gimple_body_p): Check for alias.
2453         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2454         (cgraph_alias_aliased_node): New function.
2455         (cgraph_function_node): Update for new aliases.
2456         (cgraph_function_or_thunk_node): Likewise.
2457         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2458         (inline_call): Remove dead aliases.
2459         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2460         name hack for same body aliases.
2461         (clone_of_p): Look through aliases.
2462         (verify_cgraph_node): Verify aliases.
2463         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2464         (cgraph_process_same_body_aliases): New function.
2465         (process_function_and_variable_attributes): Disable weakref warning on
2466         alias.
2467         (cgraph_analyze_functions): Handle aliases.
2468         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2469         (assemble_thunks): Rename to ...
2470         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2471         (cgraph_expand_function): Remove alias output code.
2472         (cgraph_output_in_order): Skip aliases.
2473         (cgraph_preserve_function_body_p): Aliases don't need preserving.
2474         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2475         (ipa_record_reference): Do not assert on alias references.
2476         (ipa_ref_has_aliases_p): New function.
2477         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2478         (ipa_ref_has_aliases_p): Declare.
2479         * lto-cgraph.c (lto_output_node): Handle aliases.
2480         (input_node): Likewise.
2481         * lto-streamer-out.c (lto_output): Skip aliases.
2482         (produce_symtab): Kill same_body_alias code.
2483         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2484         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2485         * ipa-inline.c (update_caller_keys): Walk aliases.
2486         (inline_small_functions): Fix thinko in previous patch.
2487         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2488         (function_and_variable_visibility): Do not walk same body aliases.
2489         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2490         (ipa_pta_execute): Use it.
2491
2492 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2493
2494         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2495         (*vec_dupv2df): Rename from vec_dupv2df.
2496         (vec_dupv2df): New expander.
2497
2498 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2499
2500         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2501
2502 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2503
2504         * config/i386/i386.md: Use default value in "isa" attribute.
2505         * config/i386/sse.md: Ditto.
2506         * config/i386/mmx.md: Ditto.
2507
2508 2011-06-10  Wei Guozhi  <carrot@google.com>
2509
2510         PR target/45335
2511         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2512         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2513         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2514         related peephole2.
2515         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2516         related peephole2.
2517         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2518         (arm_legitimate_ldrd_p): New prototype.
2519         (arm_output_ldrd): New prototype.
2520         * config/arm/arm.c (arm_check_ldrd_operands): New function.
2521         (arm_legitimate_ldrd_p): New function.
2522         (arm_output_ldrd): New function.
2523
2524 2011-06-10  David Li  <davidxl@google.com>
2525
2526         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2527         * passes.c (passr_eq): New function.
2528         (create_pass_tab): New function.
2529         (pass_traverse): New function.
2530         (dump_one_pass): New function.
2531         (dump_pass_list): New function.
2532         (dump_passes): New function.
2533
2534 2011-06-10  Jan Hubicka  <jh@suse.cz>
2535
2536         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2537         setting the nothrow flag.
2538         * ipa-reference.c (propagate): Skip aliases.
2539         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2540         (propagate_nothrow): Skip aliases; do not update cgraph.
2541         (local_pure_const): Do not update cgraph.
2542         * tree-profile.c (tree_profiling): Do fixup_cfg.
2543
2544 2011-06-10  Jan Hubicka  <jh@suse.cz>
2545
2546         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2547         (cgraph_local_node_p): ... here; handle aliases.
2548         (has_addr_references_p): Break out from ...;
2549         (cgraph_remove_unreachable_nodes) ... here.
2550
2551 2011-06-10  Jan Hubicka  <jh@suse.cz>
2552
2553         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2554         * common.opt (flag_inline_functions_called_once): Do not
2555         initialize to 1.
2556
2557 2011-06-10  Jan Hubicka  <jh@suse.cz>
2558
2559         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2560         (ipcp_initialize_node_lattices): Do not deal with aliases;
2561         Do not try to propagate through thunks.
2562         (ipcp_change_tops_to_bottom): Do not deal with aliases.
2563
2564 2011-06-10  Jan Hubicka  <jh@suse.cz>
2565
2566         * ipa-prop.c (ipa_write_node_info): Stream jump functions
2567         for indirect calls.
2568         (ipa_read_node_info): Likewise.
2569
2570 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2571
2572         PR lto/49302
2573         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2574         (build_and_insert_call): Likewise.
2575         (build_and_insert_ref): New.
2576         (gimple_expand_builtin_pow): Minor cleanup.
2577         (gimple_expand_builtin_cabs): New.
2578         (execute_cse_sincos): Add case for BUILT_IN_CABS.
2579
2580 2011-06-10  Jan Hubicka  <jh@suse.cz>
2581
2582         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2583         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2584         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2585         (ipcp_propagate_stage): Skip aliases when propagating.
2586         (ipcp_need_redirect_p): Skip aliases.
2587         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2588         collect_callers_of_node.
2589         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2590         for aliases.
2591         (ipa_compute_jump_functions): Look through aliases.
2592
2593 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2594
2595         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2596
2597 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2598
2599         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2600         Adjust comments.
2601         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2602
2603 2011-06-10  Jan Hubicka  <jh@suse.cz>
2604
2605         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2606         Update call of gimple_get_virt_method_for_binfo.
2607         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2608         refuse_thunks parameter.
2609         (gimple_fold_call): Update.
2610         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2611
2612 2011-06-10  Jan Hubicka  <jh@suse.cz>
2613
2614         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2615         (not_all_callers_have_enough_arguments_p): ... this one; turn into
2616         worker for cgraph_for_node_and_aliases.
2617         (convert_callers_for_node): Break out from ...
2618         (convert_callers): ... here.
2619         (modify_function): Use collect_callers_of_node.
2620         (ipa_early_sra): Use cgraph_for_node_and_aliases.
2621
2622 2011-06-10  Richard Guenther  <rguenther@suse.de>
2623
2624         PR tree-optimization/49361
2625         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2626         when not already in gimple form.
2627
2628 2011-06-10  Richard Guenther  <rguenther@suse.de>
2629
2630         PR bootstrap/49344
2631         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2632         FOR_EACH_PHI_OR_STMT_USE.
2633
2634 2011-06-10  Jan Hubicka  <jh@suse.cz>
2635
2636         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2637         (clone_inlined_nodes): ... here.
2638         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2639         to real destination prior inlining.
2640         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2641         can_early_inline_edge_p, want_early_inline_function_p,
2642         want_early_inline_function_p, want_inline_small_function_p,
2643         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2644         edge_badness, update_all_callee_keys, lookup_recursive_calls,
2645         add_new_edges_to_heap, inline_small_functions, flatten_function,
2646         inline_always_inline_functions, early_inline_small_functions): Use
2647         cgraph_function_or_thunk_node.
2648         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2649         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2650         (do_estimate_edge_growth_1): Break out from ...
2651         (do_estimate_growth) ... here; walk aliases.
2652         (inline_generate_summary): Skip aliases.
2653
2654 2011-06-10  Richard Guenther  <rguenther@suse.de>
2655
2656         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2657         forward when combining, visit inserted stmts when a stmt was changed.
2658
2659 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
2660
2661         * tree.h (error_operand_p): Add.
2662         * dbxout.c (dbxout_type_fields): Use the latter.
2663         * c-decl.c (add_stmt): Likewise.
2664         * gimplify.c (omp_add_variable, omp_notice_variable,
2665         gimplify_scan_omp_clauses): Likewise.
2666
2667 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
2668
2669         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2670         when a value is actually passed in regs.
2671
2672 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
2673             Laurent Rougé  <laurent.rouge@menta.fr>
2674
2675         * doc/invoke.texi (SPARC options): Add -mflat.
2676         * config/sparc/sparc.opt: Likewise.
2677         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2678         (sparc_flat_expand_prologue): Declare.
2679         (sparc_flat_expand_epilogue): Likewise.
2680         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2681         (CPP_ENDIAN_SPEC): Replace with...
2682         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
2683         (CPP_SPEC): Adjust to above change.
2684         (EXTRA_SPECS): Likewise.
2685         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2686         (INCOMING_REGNO): Likewise.
2687         (OUTGOING_REGNO): Likewise.
2688         (LOCAL_REGNO): Likewise.
2689         (SETUP_FRAME_ADDRESSES): Likewise.
2690         (FIXED_REGISTERS): Set 0 for %fp.
2691         (CALL_USED_REGISTERS): Likewise.
2692         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2693         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2694         (RETURN_ADDR_REGNUM): Define.
2695         (RETURN_ADDR_RTX): Use it.
2696         (INCOMING_RETURN_ADDR_REGNUM): Define.
2697         (INCOMING_RETURN_ADDR_RTX): Use it.
2698         (DWARF_FRAME_RETURN_COLUMN): Likewise.
2699         (EH_RETURN_REGNUM): Define.
2700         (EH_RETURN_STACKADJ_RTX): Use it.
2701         (EH_RETURN_HANDLER_RTX): Delete.
2702         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2703         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2704         Delete.
2705         (struct machine_function): Add frame_size, apparent_frame_size,
2706         frame_base_reg, frame_base_offset, n_global_fp_regs and
2707         save_local_in_regs_p fields.
2708         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2709         sparc_frame_base_offset, sparc_n_global_fp_regs,
2710         sparc_save_local_in_regs_p): New macros.
2711         (sparc_option_override): Error out if -fcall-saved-REG is specified
2712         for Out registers.
2713         (eligible_for_restore_insn): Fix formatting.
2714         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
2715         (eligible_for_sibcall_delay): Likewise.
2716         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2717         (sparc_legitimate_address_p): Adjust to above change.
2718         (save_global_or_fp_reg_p): New predicate.
2719         (return_addr_reg_needed_p): Likewise.
2720         (save_local_or_in_reg_p): Likewise.
2721         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
2722         (SORR_SAVE, SORR_RESTORE): Delete.
2723         (sorr_pred_t): New typedef.
2724         (sorr_act_t): New enum.
2725         (save_or_restore_regs): Rename to...
2726         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
2727         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2728         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
2729         mechanism.  Add CFI information for double-word saves in 32-bit mode.
2730         (emit_adjust_base_to_offset): New function extracted from...
2731         (emit_save_or_restore_regs): ...this.  Rename the rest to...
2732         (emit_save_or_restore_regs_global_fp_regs): ...this.
2733         (emit_save_or_restore_regs_local_in_regs): New function.
2734         (gen_create_flat_frame_[123]): New functions.
2735         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
2736         (sparc_flat_expand_prologue): New function.
2737         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2738         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
2739         (sparc_flat_expand_epilogue): New function.
2740         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2741         (output_return): Likewise.
2742         (output_sibcall): Likewise.
2743         (sparc_output_mi_thunk): Likewise.
2744         (sparc_frame_pointer_required): Likewise.
2745         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2746         function optimization.
2747         * config/sparc/sparc.md (flat): New attribute.
2748         (prologue): Add TARGET_FLAT handling.
2749         (save_register_window): Disable if TARGET_FLAT.
2750         (create_flat_frame_[123]): New patterns.
2751         (epilogue): Add TARGET_FLAT handling.
2752         (sibcall_epilogue): Likewise.
2753         (eh_return): New expander.
2754         (eh_return_internal): New insn and splitter.
2755         (return_internal): Add TARGET_FLAT handling.
2756         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2757         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2758         (nonlocal_goto): Add TARGET_FLAT handling.
2759         * config/sparc/t-elf: Add -mflat multilib.
2760         * config/sparc/t-leon: Likewise.
2761
2762 2011-06-10  Jan Hubicka  <jh@suse.cz>
2763
2764         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2765         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2766         (self_recursive_p): Use cgraph_function_node.
2767         (propagate_pure_const): Likewise.
2768         (propagate_nothrow): Likewise.
2769         * ipa-reference.c (ipa_reference_get_not_read_global): Use
2770         cgraph_function_node.
2771         (propagate_bits): Likewise.
2772         (propagate): Likewise.
2773
2774 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2775             Richard Earnshaw  <rearnsha@arm.com>
2776
2777         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2778         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2779         (*thumb2_movdi_vfp): Delete.
2780         (*arm_movdi_vfp_cortexa8): Delete.
2781         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2782         (*movdi_vfp_cortexa8): Likewise.
2783
2784 2011-06-10  Richard Guenther  <rguenther@suse.de>
2785
2786         * stor-layout.c (initialize_sizetypes): Give names to all
2787         sizetype kinds.
2788
2789 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
2790
2791         PR tree-optimization/49318
2792         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2793         irrelevant pattern statements.
2794
2795 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2796
2797         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2798
2799         PR bootstrap/49354
2800         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2801         to last assignment.
2802
2803 2011-06-09  Jan Hubicka  <jh@suse.cz>
2804
2805         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2806         do not recompute reachable flag.
2807         (cgraph_finalize_function, cgraph_analyze_functions): Set
2808         redefined_extern_inline here.
2809
2810 2011-06-09  Jan Hubicka  <jh@suse.cz>
2811
2812         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2813         (cgraph_only_called_directly_p): ... this one; bring offline.
2814         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2815         varpool_used_from_object_file_p): Drop names from the declaratoin.
2816         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2817         collect_callers_of_node): New.
2818         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2819         (cgraph_edge_recursive_p): Use cgraph_function_node.
2820         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2821         (cgraph_node_cannot_be_local_p_1): Break out from ...
2822         (cgraph_node_can_be_local_p): ... here; walk aliases.
2823         (cgraph_for_node_thunks_and_aliases): New function.
2824         (cgraph_for_node_and_aliases): New function.
2825         (cgraph_make_node_local_1): Break out from ...
2826         (cgraph_make_node_local) ... here; use
2827         cgraph_for_node_thunks_and_aliases.
2828         (cgraph_set_nothrow_flag_1): Break out from ...
2829         (cgraph_set_nothrow_flag) ... here;
2830         use cgraph_for_node_thunks_and_aliases.
2831         (cgraph_set_const_flag_1): Break out from ...
2832         (cgraph_set_const_flag) ... here;
2833         use cgraph_for_node_thunks_and_aliases.
2834         (cgraph_set_pure_flag_1): Break out from ...
2835         (cgraph_set_pure_flag) ... here;
2836         use cgraph_for_node_thunks_and_aliases.
2837         (cgraph_propagate_frequency_1): Break out from ...
2838         (cgraph_propagate_frequency) ... here; use
2839         cgraph_for_node_thunks_and_aliases.
2840         (cgraph_used_from_object_file_p): Do not care about aliases.
2841         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2842         New functions.
2843         (collect_callers_of_node_1, collect_callers_of_node): New functions.
2844
2845 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2846
2847         PR rtl-optimization/49154
2848         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2849         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2850         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2851         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2852         * config/cris/cris.h (cris_register_move_cost): Remove
2853         !TARGET_V32 code.  Tweak comments.
2854
2855 2011-06-09  Jan Hubicka  <jh@suse.cz>
2856
2857         * cgraphbuild.c (record_eh_tables): Mark personality function as having
2858         address taken.
2859
2860 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2861
2862         PR rtl-optimization/49154
2863         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2864         is a matching slot in the hashtable, assign it to classes_ptr.
2865
2866         PR rtl-optimization/49154
2867         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2868         register classes.
2869         * doc/tm.texi: Regenerate.
2870
2871 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2872
2873         PR target/49307
2874         * config/sh/sh.md (UNSPEC_CHKADD): New.
2875         (chk_guard_add): New define_insn_and_split.
2876         (symGOT_load): Use chk_guard_add instead of blockage.
2877
2878 2011-06-09  Kai Tietz  <ktietz@redhat.com>
2879
2880         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2881
2882 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2883
2884         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2885
2886 2011-06-09  Wei Guozhi  <carrot@google.com>
2887
2888         PR target/46975
2889         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2890         (peephole2 for conditional move): Generate 16 bit instructions.
2891
2892 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
2893
2894         * config/i386/i386.md (*movdi_internal_rex64): Merge
2895         alternatives 6 and 8.
2896
2897 2011-06-09  David Li  <davidxl@google.com>
2898
2899         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2900         * passes.c (passr_eq): New function.
2901         (create_pass_tab): New function.
2902         (pass_traverse): New function.
2903         (dump_one_pass): New function.
2904         (dump_pass_list): New function.
2905         (dump_passes): New function.
2906
2907 2011-06-09  David Li  <davidxl@google.com>
2908
2909         * tree-complex.c (tree_lower_complex): Gate cleanup.
2910         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2911         (execute_optimize_stdarg): Ditto.
2912         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2913         (execute_cleanup_eh_1): Ditto.
2914         (execute_cleanup_eh): Ditto.
2915         * gcse.c (gate_rtl_pre): Ditto.
2916         (execute_rtl_pre): Ditto.
2917         * except.c (finish_eh_generation): Ditto.
2918         (convert_to_eh_region_ranges): Ditto.
2919         * cprop.c (one_cprop_pass): Ditto.
2920
2921 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
2922
2923         PR target/48673
2924         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2925         in all basic blocks.
2926
2927 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2928
2929         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2930         (HAVE_ENABLE_EXECUTE_STACK): Define.
2931         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2932         (HAVE_ENABLE_EXECUTE_STACK): Define.
2933         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2934         (HAVE_ENABLE_EXECUTE_STACK): Define.
2935         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2936         (ENABLE_EXECUTE_STACK): Remove.
2937         (HAVE_ENABLE_EXECUTE_STACK): Define.
2938         [IN_LIBGCC2]: Don't include <windows.h>.
2939         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2940         (HAVE_ENABLE_EXECUTE_STACK): Define.
2941         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2942         (HAVE_ENABLE_EXECUTE_STACK): Define.
2943         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2944         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2945         (HAVE_ENABLE_EXECUTE_STACK): Define.
2946         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2947         (HAVE_ENABLE_EXECUTE_STACK): Define.
2948         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2949         (HAVE_ENABLE_EXECUTE_STACK): Define.
2950         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2951         (HAVE_ENABLE_EXECUTE_STACK): Define.
2952         * config/alpha/alpha.c (alpha_trampoline_init): Test
2953         HAVE_ENABLE_EXECUTE_STACK.
2954         * config/i386/i386.c (ix86_trampoline_init): Likewise.
2955         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2956         (sparc64_initialize_trampoline): Likewise.
2957         * libgcc2.c [L_enable_execute_stack]: Remove.
2958         * system.h (ENABLE_EXECUTE_STACK): Poison.
2959         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2960         * doc/tm.texi: Regenerate.
2961         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2962
2963 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
2964
2965         PR middle-end/49308
2966         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2967         variable.  After resetting and rescanning insn continue with previous
2968         statement.
2969
2970 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2971
2972         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2973         (gcc_cv_ld_hidden): Likewise.
2974         * configure: Regenerate.
2975         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2976         (ix86_stack_protect_fail): Mark unused.
2977         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2978         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2979         [TARGET_MACHO]: Don't define.
2980         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2981         (TARGET_STACK_PROTECT_FAIL): Likewise.
2982         (rs6000_stack_protect_fail): Mark unused.
2983         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2984         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
2985
2986 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2987
2988         * varasm.c (get_section): Print location of other conflict
2989         for section conflicts.
2990
2991 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2992
2993         * config/i386/driver-i386.c (host_detect_local_cpu):
2994         Add model 0x2d Intel CPU.
2995
2996 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2997
2998         * reginfo.c (global_regs_decl): Add.
2999         (globalize_reg): Add decl parameter. Compute location.  Pass location
3000         to warnings and add inform. Store decl in global_regs_decl.
3001         * rtl.h (globalize_reg): Update prototype.
3002         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
3003
3004 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
3005
3006         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
3007
3008 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
3009
3010         PR target/49305
3011         * config/sh/predicates.md (general_movsrc_operand): Check
3012         mode for memory with indexed address for QI and HImode.
3013         (general_movdst_operand): Likewise.
3014
3015 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
3016
3017         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
3018
3019 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
3020
3021         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3022         (num_ssa_operands): Likewise.
3023         (op_iter_init_phiuse): Forward-declare.
3024         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3025
3026 2011-06-08  Nick Clifton  <nickc@redhat.com>
3027
3028         * doc/invoke.texi (ARM Options): Update description of
3029         -mthumb-interwork.
3030
3031 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
3032
3033         * config/i386/driver-i386.c (host_detect_local_cpu): Support
3034         unknown Intel family 0x6 CPUs.
3035
3036 2011-06-08  Martin Jambor  <mjambor@suse.cz>
3037
3038         * tree-sra.c (mark_rw_status): Removed.
3039         (analyze_access_subtree): New parameter parent instead of
3040         mark_read and mark_write, propagate from that.
3041
3042 2011-06-08  Julian Brown  <julian@codesourcery.com>
3043
3044         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3045         for double-precision helper functions in hard-float mode if only
3046         single-precision arithmetic is supported in hardware.
3047
3048 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
3049
3050         PR rtl-optimization/49303
3051         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
3052         code_motion_path_driver returned 0 or 1.
3053         (sel_region_finish): Clear h_d_i_d.
3054
3055 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
3056
3057         * config/sh/sh.c (prepare_move_operands): Set pic register
3058         appropriately for global and local dynamic tls models even
3059         if flag_pic is unset.
3060
3061 2011-06-07  Jason Merrill  <jason@redhat.com>
3062
3063         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3064
3065 2011-06-07  Xinliang David Li  <davidxl@google.com>
3066         * passes.c (enable_disable_pass): Handle assembler name.
3067         (is_pass_explicitly_enabled_or_disabled): Ditto.
3068
3069 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3070
3071         PR tree-optimization/48497
3072         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3073
3074 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3075
3076         PR tree-optimization/46728
3077         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3078         to use gimple_val_nonnegative_real_p.
3079         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3080         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3081
3082 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
3083
3084         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3085
3086 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
3087
3088         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3089         constant vectors.
3090
3091 2011-06-07  Richard Guenther  <rguenther@suse.de>
3092
3093         * stor-layout.c (initialize_sizetypes): Initialize all
3094         sizetypes based on target definitions.
3095         (set_sizetype): Remove.
3096         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3097         * tree.h (set_sizetype): Remove.
3098
3099 2011-06-07  Nick Clifton  <nickc@redhat.com>
3100
3101         * config.gcc: Unify V850 architecture options and add support for
3102         newer V850 architectures.
3103         * config/v850/t-v850e: Delete.
3104
3105 2011-06-07  Richard Guenther  <rguenther@suse.de>
3106
3107         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3108         Call set_sizetype from here.
3109
3110 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
3111
3112         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3113         (*maddhisi4tb, *maddhisi4tt): New define_insns.
3114
3115 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
3116             Andrew Stubbs  <ams@codesourcery.com>
3117
3118         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3119         multiplies.
3120         * doc/md.texi (Canonicalization of Instructions): Document widening
3121         multiply canonicalization.
3122
3123 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
3124
3125         PR gcov-profile/49299
3126         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
3127
3128 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
3129
3130         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3131         a pointer.
3132         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3133         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3134         vect_recog_pow_pattern): Likewise.
3135         (vect_pattern_recog_1): Remove declaration.
3136         (widened_name_p): Remove declaration.  Add new argument to specify
3137         whether to check that both types are either signed or unsigned.
3138         (vect_recog_widen_mult_pattern): Update documentation.  Handle
3139         unsigned patterns and multiplication by constants.
3140         (vect_pattern_recog_1): Update vect_recog_func references.  Use
3141         statement information from the statement returned from pattern
3142         detection functions.
3143         (vect_pattern_recog): Update vect_recog_func reference.
3144         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3145         multiplication by a constant use the type of the other operand.
3146
3147 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
3148
3149         PR rtl-optimization/49145
3150         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3151
3152 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
3153
3154         PR debug/49262
3155         * dwarf2out.c (native_encode_initializer): Decrement count in each
3156         iteration.
3157
3158         PR debug/49294
3159         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3160         non-MODE_INT modes.
3161
3162         PR c++/49264
3163         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3164         if stmt folded into nothing.
3165         * tree-inline.c (fold_marked_statements): If a builtin at the end of
3166         a bb folded into nothing, just update cgraph edges and move to next bb.
3167         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3168         to be NULL.  Don't compute count and frequency if new_call is NULL.
3169
3170 2011-06-04  Diego Novillo  <dnovillo@google.com>
3171
3172         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3173         (cgraph.o): Likewise.
3174         (cgraphunit.o): Likewise.
3175         * cgraphunit.c: Include lto-streamer.h
3176         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3177         if LTO is enabled.
3178         * lto-streamer-in.c (unpack_value_fields): Call
3179         streamer_hooks.unpack_value_fields if set.
3180         (lto_materialize_tree): For unhandled nodes, first try to
3181         call lto_streamer_hooks.alloc_tree, if it exists.
3182         (lto_input_ts_decl_common_tree_pointers): Move reading of
3183         DECL_INITIAL to lto_streamer_read_tree.
3184         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3185         (lto_streamer_read_tree): New.
3186         (lto_reader_init): Rename from lto_init_reader.
3187         Move initialization code to lto/lto.c.
3188         * lto-streamer-out.c (pack_value_fields): Call
3189         streamer_hooks.pack_value_fields if set.
3190         (lto_output_tree_ref): For tree nodes that are not normally indexable,
3191         call streamer_hooks.indexable_with_decls_p before giving up.
3192         (lto_output_ts_decl_common_tree_pointers): Move handling
3193         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3194         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3195         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
3196         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
3197         (lto_streamer_write_tree): New.
3198         (lto_output): Call lto_streamer_init directly.
3199         (lto_writer_init): Remove.
3200         * lto-streamer.c (streamer_hooks): New.
3201         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3202         instead of lto_preload_common_nodes.
3203         (lto_is_streamable): Move from lto-streamer.h
3204         (lto_streamer_hooks_init): New.
3205         (streamer_hooks): New.
3206         (streamer_hooks_init): New.
3207         * lto-streamer.h (struct output_block): Forward declare.
3208         (struct lto_input_block): Likewise.
3209         (struct data_in): Likewise.
3210         (struct bitpack_d): Likewise.
3211         (struct streamer_hooks): Declare.
3212         (streamer_hooks): Declare.
3213         (lto_streamer_hooks_init): Declare.
3214         (lto_streamer_write_tree): Declare.
3215         (lto_streamer_read_tree): Declare.
3216         (streamer_hooks_init): Declare.
3217         (lto_is_streamable): Move to lto-streamer.c
3218
3219 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3220
3221         * longlong.h (smul_ppmm): The resulting register pair contains the
3222         higher order word first.
3223
3224 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3225
3226         PR tree-optimization/46728
3227         * builtins.c (powi_table): Remove.
3228         (powi_lookup_cost): Remove.
3229         (powi_cost): Remove.
3230         (expand_powi_1): Remove.
3231         (expand_powi): Remove.
3232         (expand_builtin_pow_root): Remove.
3233         (expand_builtin_pow): Remove.
3234         (expand_builtin_powi): Eliminate handling of constant exponent.
3235         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
3236
3237 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3238
3239         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3240
3241 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3242
3243         * dce.c (reset_unmarked_insns_debug_uses): New.
3244         (delete_unmarked_insns): Skip debug insns.
3245         (prescan_insns_for_dce): Likewise.
3246         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3247         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3248         active reg can be found.
3249         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
3250         (convert_regs_1): Use it.
3251
3252 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3253
3254         * tree-pretty-print.c (dump_function_header): Add flags.
3255         Don't dump decl_uid with nouid.
3256         * tree-pretty-print.h (dump_function_header): Adjust.
3257         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3258         * passes.c (pass_init_dump_file): Pass dump_flags on.
3259         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3260
3261 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3262
3263         PR bootstrap/49270
3264         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3265
3266 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
3267
3268         PR tree-optimization/49243
3269         * calls.c (setjmp_call_p): Also check if fndecl has the
3270         returns_twice attribute.
3271
3272 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3273
3274         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3275         -ffast-math etc.
3276
3277 2011-06-06  Richard Henderson  <rth@redhat.com>
3278             Georg-Johann Lay  <avr@gjlay.de>
3279
3280         PR target/42210
3281         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3282         New predicates.
3283         * config/avr/avr.md ("insv"): New insn expander.
3284         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3285         "*insv.not.io", "*insv.reg"): New insns.
3286
3287 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
3288
3289         PR target/49285
3290         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3291         to nonimmediate_operand from memory_operand for the operand that is to
3292         be forced to memory by the expander.  Lose the constraints.
3293
3294 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
3295
3296         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3297         EH return when delayed branches are disabled.
3298
3299 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
3300
3301         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3302         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
3303         calculation.
3304         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3305         Simplify MODE_V1DF and MODE_V2SF handling.
3306         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3307         Simplify MODE_SF handling.
3308
3309 2011-06-04  Jan Hubicka  <jh@suse.cz>
3310
3311         PR tree-optimization/48893
3312         PR tree-optimization/49091
3313         PR tree-optimization/49179
3314         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3315         Bounds check.
3316
3317 2011-06-04  Jan Hubicka  <jh@suse.cz>
3318
3319         PR lto/48954
3320         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3321         bitmaps.
3322
3323 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
3324
3325         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3326
3327 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
3328
3329         PR target/49281
3330         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3331         to be strictly smaller than 1 << shiftcount.
3332
3333 2011-06-04  Jan Hubicka  <jh@suse.cz>
3334
3335         PR tree-optimize/48929
3336         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3337         of empty predicate.
3338
3339 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
3340
3341         PR debug/48333
3342         * calls.c (emit_call_1): Prefer the __builtin declaration of
3343         builtin functions.
3344
3345 2011-06-03   Diego Novillo  <dnovillo@google.com>
3346
3347         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3348         (lto_input_tree_pointers): Likewise.
3349         * lto-streamer-out.c (pack_value_fields): Likewise.
3350         (lto_output_tree_pointers): Likewise.
3351         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3352         and OPTIMIZATION_NODE.
3353
3354 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3355
3356         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3357         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3358         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3359         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3360         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3361         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3362         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3363         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3364         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3365         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3366         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3367         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3368         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3369         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3370         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3371         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3372         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3373         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3374         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3375         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3376         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3377         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3378         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3379         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3380         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3381         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3382         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3383         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3384         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3385         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3386         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3387         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3388         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3389         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3390         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3391         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3392         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3393         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3394         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3395         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3396         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3397         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3398         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3399         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3400         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3401         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3402         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3403         * system.h (MD_UNWIND_SUPPORT): Poison.
3404         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3405         * doc/tm.texi: Regenerate.
3406         * unwind-dw2.c: Include md-unwind-support.h instead of
3407         MD_UNWIND_SUPPORT.
3408         * config/ia64/unwind-ia64.c: Likewise.
3409         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3410
3411 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
3412
3413         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3414
3415 2011-06-03  Richard Henderson  <rth@redhat.com>
3416             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3417
3418         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3419         (sigill_hdlr): Correct insn, insn size.
3420         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3421
3422 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3423
3424         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3425         t-slibgcc-dummy.
3426         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3427         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3428         * config/mips/t-iris: Remove.
3429         * config/mips/t-irix6: New file.
3430         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3431
3432 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3433
3434         * Makefile.in (LIB2ADDEHDEP): Remove.
3435         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3436         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3437         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3438         * config/t-darwin (LIB2ADDEHDEP): Remove.
3439         * config/t-freebsd (LIB2ADDEHDEP): Remove.
3440         * config/t-linux (LIB2ADDEHDEP): Remove.
3441
3442 2011-06-03  Diego Novillo  <dnovillo@google.com>
3443
3444         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3445         (lto_register_var_decl_in_symtab): Likewise.
3446         (lto_register_function_decl_in_symtab): Likewise.
3447         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3448         logic to uniquify_nodes.
3449
3450 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3451
3452         * config/alpha/t-osf5: Remove.
3453         * config/alpha/t-osf-pthread: Remove.
3454         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3455         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3456
3457 2011-06-03  Julian Brown  <julian@codesourcery.com>
3458
3459         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3460         (strongarm1110): Use strongarm tuning.
3461         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3462         * config/arm/arm.c (arm_strongarm_tune): New.
3463         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3464         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3465         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3466         setting, using previous defaults or 1 for Cortex-A5.
3467         (arm_option_override): Set max_insns_skipped from current tuning.
3468
3469 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
3470
3471         * doc/install.texi (Options specification): Document --with-specs.
3472
3473 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3474
3475         * config/arm/neon.md (orndi3_neon): Actually split it.
3476
3477 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3478
3479         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3480         * var-tracking.c (reverse_op): Limite recurse depth to 5.
3481
3482 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3483
3484         PR debug/47590
3485         * target.def (delay_sched2, delay_vartrack): New.
3486         * doc/tm.texi.in: Update.
3487         * doc/tm.texi: Rebuild.
3488         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3489         * var-tracking.c (gate_handle_var_tracking): Likewise.
3490         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3491         (bfin_flag_var_tracking): Drop.
3492         (output_file_start): Don't save and override flag_var_tracking.
3493         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3494         (bfin_reorg): Test original variables.
3495         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3496         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3497         (ia64_flag_var_tracking): Drop.
3498         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3499         (ia64_file_start): Don't save and override flag_var_tracking.
3500         (ia64_override_options_after_change): Ditto
3501         flag_schedule_insns_after_reload.
3502         (ia64_reorg): Test original variables.
3503         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3504         (picochip_flag_var_tracking): Drop.
3505         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3506         (picochip_option_override): Don't save and override
3507         flag_schedule_insns_after_reload.
3508         (picochip_asm_file_start): Ditto flag_var_tracking.
3509         (picochip_reorg): Test original variables.
3510         * config/spu/spu.c (spu_flag_var_tracking): Drop.
3511         (TARGET_DELAY_VARTRACK): Define.
3512         (spu_var_tracking): New.
3513         (spu_machine_dependent_reorg): Call it.
3514         (asm_file_start): Don't save and override flag_var_tracking.
3515
3516 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
3517
3518         PR target/49163
3519         * config/sh/predicates.md (general_movsrc_operand): Return 0
3520         for memory and memory subreg of which address is an invalid
3521         indexed address for QI and HImode.
3522         (general_movdst_operand): Likewise.
3523
3524 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3525
3526         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3527         edges only, when there is a non-local label in the function.
3528         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3529
3530 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3531
3532         * config/i386/constraints.md (Y3): New register constraint.
3533         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3534         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3535         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3536         *sse2_interleave_lowv2df.
3537
3538 2011-06-02  Julian Brown  <julian@codesourcery.com>
3539
3540         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3541         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3542         (arm_cortex_a5_tune): New.
3543
3544 2011-06-02  Julian Brown  <julian@codesourcery.com>
3545
3546         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3547         * config/arm/arm.c (arm_default_branch_cost): New.
3548         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3549         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3550         (arm_fa726_tune): Set branch_cost field using
3551         arm_default_branch_cost.
3552         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3553         current_tune structure.
3554         * dojump.c (tm_p.h): Include file.
3555
3556 2011-06-02  Julian Brown  <julian@codesourcery.com>
3557
3558         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3559         tuning.
3560         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3561         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3562         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3563         field.
3564         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3565         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3566         (arm_fa726te_tune): Add prefer_constant_pool setting.
3567         (arm_v6t2_tune, arm_cortex_tune): New.
3568         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3569         prefer_constant_pool setting.
3570
3571 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3572
3573         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3574         switch statement.
3575         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3576         (*movdf_internal) <case 6,7,8>: Ditto.
3577
3578         * config/i386/constraints.md (Y4): New register constraint.
3579         * config/i386/sse.md (vec_set<mode>_0): Merge with
3580         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3581         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3582         *vec_extractv2di_1_sse.
3583         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3584         and *vec_concatv2di_rex64_sse.
3585
3586 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
3587
3588         PR target/48807
3589         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3590         of cgraph_local_info for null before attempting to use it.
3591
3592 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3593
3594         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3595         (current_function_dynamic_alloc_count): Delete.
3596         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3597         (expand_builtin_nonlocal_goto): Remove obsolete comment.
3598         (expand_builtin_update_setjmp_buf): Remove dead code.
3599         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3600         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3601         support.
3602         * function.c (instantiate_virtual_regs): Likewise.
3603         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3604         for a block with a single abnormal incoming edge.
3605         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3606         (SETJMP_VIA_SAVE_AREA): Delete.
3607         * config/sparc/sparc-protos.h (load_got_register): Declare.
3608         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3609         (load_got_register): Make global.
3610         (sparc_frame_pointer_required): Add 'static'.
3611         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
3612         (sparc_builtin_setjmp_frame_value): New function.
3613         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3614         (save_stack_nonlocal): New expander.
3615         (restore_stack_nonlocal): Likewise.
3616         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3617         (nonlocal_goto_internal): New insn.
3618         (goto_handler_and_restore): Delete.
3619         (builtin_setjmp_setup): Likewise.
3620         (do_builtin_setjmp_setup): Likewise.
3621         (setjmp): Likewise.
3622         (builtin_setjmp_receiver): New expander.
3623
3624 2011-06-01  David Li  <davidxl@google.com>
3625
3626         PR middle-end/49261
3627         * tree-pretty-print.c (dump_function_header): Format cleanup.
3628
3629 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
3630
3631         PR target/49238
3632         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3633         needed when original operands are used for msw_skip comparison.
3634
3635 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3636
3637         PR debug/49250
3638         * var-tracking.c (add_uses, add_stores): Don't call
3639         cselib_subst_to_values on ENTRY_VALUE.
3640
3641 2011-06-01  Diego Novillo  <dnovillo@google.com>
3642
3643         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3644         output_record_start with LTO_null instead of output_zero.
3645         (lto_output_ts_binfo_tree_pointers): Likewise.
3646         (lto_output_tree): Likewise.
3647         (output_eh_try_list): Likewise.
3648         (output_eh_region): Likewise.
3649         (output_eh_lp): Likewise.
3650         (output_eh_regions): Likewise.
3651         (output_bb): Likewise.
3652         (output_function): Likewise.
3653         (output_unreferenced_globals): Likewise.
3654         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3655         instead of NUM_TREE_CODES.
3656         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3657         (lto_output_int_in_range): Change << to >> when shifting VAL.
3658
3659 2011-06-01  Diego Novillo  <dnovillo@google.com>
3660
3661         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3662         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3663
3664 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3665
3666         PR target/45074
3667         * optabs.h (valid_multiword_target_p): Declare.
3668         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3669         doing multi-word operations.
3670         * optabs.c (expand_binop): Likewise.
3671         (expand_doubleword_bswap): Likewise.
3672         (expand_absneg_bit): Likewise.
3673         (expand_unop): Likewise.
3674         (expand_copysign_bit): Likewise.
3675         (multiword_target_p): New function.
3676
3677 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3678
3679         PR rtl-optimization/48830
3680         PR rtl-optimization/48808
3681         PR rtl-optimization/48792
3682         * reload.c (push_reload): Check contains_reg_of_mode.
3683         * reload1.c (strip_paradoxical_subreg): New function.
3684         (gen_reload_chain_without_interm_reg_p): Use it to handle
3685         paradoxical subregs.
3686         (emit_output_reload_insns, gen_reload): Likewise.
3687
3688 2011-06-01  David Li  <davidxl@google.com>
3689
3690         * predict.c : Change pass name
3691         * ipa.c: Ditto.
3692         * dce.c: Ditto.
3693         * tree-profile.c: Ditto.
3694         * except.c: Ditto.
3695
3696 2011-06-01  David Li  <davidxl@google.com>
3697
3698         * tree-pretty-print.c (dump_function_header): New function.
3699         * final.c (rest_of_clean_state): Use header dumper.
3700         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3701         * passes.c (pass_init_dump_file): Use header dumper.
3702
3703 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3704
3705         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3706         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3707         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3708         New functions.
3709         (mem_loc_descriptor): Use them.
3710
3711         * var-tracking.c (create_entry_value): New function.
3712         (vt_add_function_parameter): Use it.
3713
3714 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3715
3716         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3717         Include <signal.h>, <ucontext.h>.
3718         (sigill_caught): Define.
3719         (sigill_hdlr): New function.
3720         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3721         insns can be executed.
3722         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3723         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3724
3725 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3726
3727         * config/t-slibgcc-darwin: Move to ...
3728         * config/t-slibgcc-dummy: ... this.  Clarify comments.
3729         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3730         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3731         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3732         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
3733         Remove i386/t-crtstuff from tmake_file.
3734         (i[34567]86-*-solaris2*): Remove t-svr4,
3735         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3736         t-slibgcc-dummy.
3737         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3738         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3739         sparc/t-crtfm from tmake_file.
3740         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3741         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3742         Remove extra_parts.
3743         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3744         * config/i386/t-nwld (SHLIB_LINK): Remove.
3745         * config/i386/t-rtems-i386: Rename to ...
3746         * config/i386/t-rtems: ... this.
3747         ($(T)crti.o, $(T)crtn.o): Remove.
3748         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3749         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3750         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3751         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3752         EXTRA_MULTILIB_PARTS): Remove.
3753         * config/sparc/t-sol2-64: Likewise.
3754         * config/sparc/t-sol2: Remove.
3755         * config/sparc/t-crtin: Remove.
3756         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3757         * config/i386/gmon-sol2.c: Remove.
3758         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3759         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3760         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3761         * config/i386/sol2-gc1.asm: Remove.
3762         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3763         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3764         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3765         * config/t-slibgcc-sld: Remove.
3766
3767 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3768
3769         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3770         base_type_for_mode with op_mode instead of mode.
3771
3772 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
3773
3774         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
3775         Cortex-A15.
3776         * config/arm/arm-tune.md: Regenerate.
3777         * config/arm/arm-tables.opt: Regenerate.
3778         * config/arm/arm.c (FL_DIV): Rename...
3779         (FL_THUMB_DIV): ... to this.
3780         (FL_ARM_DIV): Define.
3781         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3782         (arm_arch_hwdiv): Remove.
3783         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3784         (arm_issue_rate): Add cortexr5.
3785         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3786         __ARM_ARCH_EXT_IDIV__.
3787         (TARGET_IDIV): Define.
3788         (arm_arch_hwdiv): Remove.
3789         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3790         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3791         (divsi3, udivsi3): New patterns.
3792         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3793         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3794
3795 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3796
3797         * ipa-utils.c (ipa_dfs_info): New field scc_no.
3798         * ipa-utils.c (searchc): Set scc_no.
3799
3800 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3801
3802         * ipa-utils.c (searchc_env): New field allow_overwritable.
3803         (searchc): do not ignore edges to overwritable nodes if indicated
3804         by env->allow_overwritable.
3805         (ipa_reduced_postorder): Set env.allow_overwritable.
3806
3807 2011-06-01  Richard Guenther  <rguenther@suse.de>
3808
3809         * tree.c (free_lang_data): Do not reset boolean_type_node nor
3810         char_type_node.
3811         * lto-streamer.c (lto_record_common_node): Take node pointer,
3812         do not register types.
3813         (lto_preload_common_nodes): Explicitly skip preloading nodes
3814         that differ between frontends.
3815
3816 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3817
3818         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3819         NON_FLOAT_REGS.
3820
3821 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3822
3823         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3824         parameter value for dump. Dump cost on outermost call only.
3825         (rs6000_memory_move_cost): Dump cost on outermost call only.
3826
3827 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3828
3829         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3830         DW_OP_GNU_convert ops.
3831
3832         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3833         cselib_preserve_constants.
3834         (cselib_lookup_1): If cselib_preserve_constants,
3835         a new VALUE is being created for REG and there is a VALUE for the
3836         same register in wider mode, add another loc with lowpart SUBREG of
3837         the wider VALUE.
3838         (cselib_subst_to_values): Handle ENTRY_VALUE.
3839         * var-tracking.c  (replace_expr_with_values): Return NULL for
3840         ENTRY_VALUE too.
3841         * dwarf2out.c (convert_descriptor_to_signed): New function.
3842         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3843         instead of two shifts.
3844         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3845         the right mode if needed.
3846         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3847         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3848         convert_descriptor_to_signed.
3849         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3850         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3851
3852         PR target/48688
3853         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3854
3855 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3856
3857         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3858         of X87MODEI12 and SWI48x instead of SSEMODEI24.
3859         (SWI248x): New mode iterator, rename from X87MODEI.
3860         (X87MODEI): Remove mode iterator.
3861         (X87MODEI12): Ditto.
3862         (SSEMODEI24): Ditto.
3863
3864 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3865
3866         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3867         * doc/invoke.texi: Document max-vartrack-expr-depth.
3868         * var-tracking.c (EXPR_DEPTH): New.
3869         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3870
3871 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3872
3873         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3874         * config/i386/sse.md: Add n to negated FMA pattern names.
3875
3876 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3877
3878         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3879
3880 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3881
3882         * gengtype-state.c (read_state_params_structs): Initialize previous.
3883
3884 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3885
3886         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3887         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3888
3889 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3890
3891         * config/i386/i386.md (*movtf_internal): Avoid allocating general
3892         registers.  Penalize F*r->o alternative to prevent partial memory
3893         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
3894         CONST_DOUBLE immediates when optimizing function for size.  Do not move
3895         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3896         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3897         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3898         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3899         alternatives.
3900         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3901
3902         (fp_register_operand splitters): Use fp_register_operand
3903         constraint.  Do not use FP_REG_P in insn condition.
3904         (any_fp_register_operand splitters): Use any_fp_register_operand
3905         constraint.  Do not use ANY_FP_REG_P in insn condition.
3906
3907 2011-05-31  Jan Hubicka  <jh@suse.cz>
3908
3909         * cgraph.h (cgraph_inline_failed_t): Give enum a name
3910         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3911         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3912         (lto_output_edge): Use output_enum and var_len_unsigned.
3913         (lto_output_varpool_node): Likewise.
3914         (input_overwrite_node): Do not take resolution parameter;
3915         extract it from a bitpack.
3916         (input_node): Do not read resolution; use input_enum and
3917         var_len_unsigned.
3918         (input_varpool_node): Likewise.
3919         (input_edge): Likewise.
3920         (input_cgraph_1): Likewise.
3921
3922 2011-05-31  Richard Guenther  <rguenther@suse.de>
3923
3924         * gimple.c (gimple_register_canonical_type): Do not register
3925         any types via gimple_register_type.
3926
3927 2011-05-31  Jan Hubicka  <jh@suse.cz>
3928
3929         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3930         of thunks.
3931
3932 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3933
3934         PR rtl-optimization/49235
3935         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3936         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3937
3938 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
3939
3940         PR tree-optimization/49093
3941         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3942         data references.
3943
3944 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
3945
3946         PR debug/49047
3947         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3948         for concrete functions containing the code of cloned functions.
3949
3950 2011-05-31  Richard Guenther  <rguenther@suse.de>
3951
3952         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3953         to ...
3954         (forward_propagate_into_comparison_1): ... this.
3955         (forward_propagate_comparison): Rename to ...
3956         (forward_propagate_into_comparison): ... this.  Split out
3957         real forward propagation code to ...
3958         (forward_propagate_comparison): ... this.
3959         (forward_propagate_into_gimple_cond): Remove looping.
3960         (forward_propagate_into_cond): Likewise.
3961         (simplify_not_neg_expr): Return whether we have done something.
3962         (simplify_gimple_switch): Likewise.
3963         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3964         (ssa_forward_propagate_and_combine): ... this.  Re-structure
3965         to do a forward forward-propagation walk on BBs and a backward
3966         stmt combining walk on BBs.  Consistently re-scan changed statements.
3967         (pass_forwprop): Adjust.
3968
3969 2011-05-30  Ian Lance Taylor  <iant@google.com>
3970
3971         * godump.c (go_format_type): Correct length of name added to
3972         obstack for anonymous field.
3973
3974 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
3975
3976         PR target/49186
3977         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3978         part of the second operand is 0.
3979
3980 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
3981
3982         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3983         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
3984         to memory for !TARGET_MEMORY_MISMATCH_STALL.
3985         (*movdf_internal_rex64): Do not penalize F->r alternative.
3986         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3987         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
3988         when optimizing function for size.  Do not move CONST_DOUBLEs
3989         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3990         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
3991         SUBREGs.  Do not check for MEM_P operands in the insn condition,
3992         check for ANY_FP_REGNO_P instead.
3993         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3994         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3995         function for speed.
3996         * config/i386/i386.c (ix86_option_override_internal): Do not
3997         set TARGET_INTEGER_DFMODE_MOVES here.
3998
3999 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4000
4001         PR target/49168
4002         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
4003
4004 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
4005
4006         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
4007         DW_TAG_rvalue_reference_type even for
4008         -gdwarf-4 -fno-debug-types-section.
4009
4010 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4011
4012         PR tree-optimization/46728
4013         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
4014         (build_and_insert_binop): New.
4015         (gimple_expand_builtin_pow): Reorder args for
4016         build_and_insert_call; use build_and_insert_binop; add more
4017         optimizations for fractional exponents.
4018
4019 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
4020
4021         PR bootstrap/49190
4022
4023         Revert:
4024         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4025
4026         * tree.h (struct tree_identifier): Inherit from tree_typed, not
4027         tree_common.
4028         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4029         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4030         TS_BASE instead of TS_COMMON.
4031         * varasm.c (assemble_name): Remove assert.
4032
4033 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
4034
4035         * config.gcc: Keep obselete list sorted.
4036
4037 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
4038             Eric Botcazou  <ebotcazou@adacore.com>
4039
4040         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4041         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4042         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4043         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4044         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4045
4046 2011-05-30  Richard Guenther  <rguenther@suse.de>
4047
4048         * gimple.c (gimple_types_compatible_p_1): Compare record
4049         and union type members properly.
4050
4051 2011-05-30  Richard Guenther  <rguenther@suse.de>
4052
4053         PR tree-optimization/49210
4054         * ipa-split.c (split_function): Care for the case where the call
4055         result is not trivially convertible to the result holding variable.
4056
4057 2011-05-30  Richard Guenther  <rguenther@suse.de>
4058
4059         PR tree-optimization/49218
4060         * tree-vrp.c (adjust_range_with_scev): Properly check whether
4061         overflow occured.
4062
4063 2011-05-30  Richard Guenther  <rguenther@suse.de>
4064
4065         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4066         New function split out from ...
4067         (forward_propagate_into_gimple_cond): ... here.  Adjust.
4068         (forward_propagate_into_cond): Likewise.
4069         (forward_propagate_comparison): Also propagate into
4070         comparisons on assignment RHS.  Change return value to
4071         behave similar to forward_propagate_into_cond.
4072         (tree_ssa_forward_propagate_single_use_vars): Handle
4073         strict-overflow warnings properly for forward_propagate_comparison.
4074
4075 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4076
4077         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4078         from plugin linker.
4079         * configure: Regenerate.
4080
4081 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
4082
4083         PR tree-optimization/49199
4084         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
4085         non-reduction operands are either defined in the loop or by induction.
4086
4087 2011-05-29  Xinliang David Li  <davidxl@google.com>
4088
4089         * opts-global.c (handle_common_deferred_options): Handle new options.
4090         * passes.c (register_one_dump_file): Call register_pass_name.
4091         (execute_one_pass): Check explicit enable/disable flag.
4092         (passr_hash): New function.
4093         (passr_eq): Ditto.
4094         (register_pass_name): Ditto.
4095         (get_pass_by_name): Ditto.
4096         (pass_hash): Ditto.
4097         (pass_eq): Ditto.
4098         (enable_pass): Ditto.
4099         (disable_pass): Ditto.
4100         (is_pass_explicitly_enabled_or_disabled): Ditto.
4101
4102 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
4103
4104         * config/i386/i386.md (*movoi_internal_avx): Use
4105         standard_sse_constant_opcode for alternative 0.
4106         (*movti_internal_sse): Ditto.
4107         (*movti_internal_rex64): Use standard_sse_constant_opcode for
4108         alternative 2.
4109         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4110         sselog1 type moves.
4111         (*movsi_internal): Ditto.
4112         (*movdi_internal): Ditto.  Add ssecvt type moves.
4113
4114 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4115
4116         PR target/48830
4117         * rtlanal.c (simplify_subreg_regno): Adjust comment.
4118
4119 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
4120
4121         PR rtl-optimization/49095
4122         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4123         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4124
4125 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
4126
4127         PR target/43995
4128         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4129         recurse_p argument.  Only follow register copies if it is set,
4130         and prevent mips_find_pic_call_symbol from recursing.
4131         (mips_find_pic_call_symbol): Add a recurse_p argument.
4132         Pass it to mips_pic_call_symbol_from_set.
4133         (mips_annotate_pic_calls): Update accordingly.
4134
4135 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
4136
4137         * emit-rtl.c (try_split): Use a loop to search for
4138         NOTE_INSN_CALL_ARG_LOCATIONs.
4139
4140 2011-05-29  Richard Guenther  <rguenther@suse.de>
4141
4142         PR tree-optimization/49217
4143         * ipa-pure-const.c (propagate_pure_const): Fix typos.
4144
4145 2011-05-28  Jan Hubicka  <jh@suse.cz>
4146
4147         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4148         length.
4149         (string_slot_free): Remove
4150         (create_output_block): Initialize obstack.
4151         (destroy_output_block): Free obstack.
4152         (lto_string_index): Add PERSISTENT parameter; do not duplicate
4153         the string unless it needs to be added into the hash.
4154         (lto_output_string_with_length): Add persistent attribute;
4155         handle NULL strings.
4156         (lto_output_string): Add PERSISTENT parameter.
4157         (output_string_cst, output_identifier): Simplify.
4158         (lto_output_location_bitpack): Update.
4159         (lto_output_builtin_tree): Update.
4160         * lto-streamer.h (struct output_block): Add obstack.
4161         (lto_output_string, lto_output_string_with_length): Remove
4162         declarations; functions are static now.
4163
4164 2011-05-28  Jan Hubicka  <jh@suse.cz>
4165
4166         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4167         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4168         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4169         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4170         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4171         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4172         unpack_ts_decl_with_vis_value_fields,
4173         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4174         lto_get_builtin_tree): Use enum and variable length i/o.
4175         * basic-block.h (profile_status_d): Add PROFILE_LAST.
4176         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4177         New functions.
4178         (bp_pack_enum, bp_unpack_enum): New macros.
4179
4180 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4181
4182         * genrecog.c: Remove redundant forward declarations.
4183
4184 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4185
4186         * config.gcc: Deprecate mips*-*-openbsd*.
4187
4188 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4189
4190         PR bootstrap/49195
4191         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4192         for match_op_dup.
4193
4194 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
4195
4196         PR middle-end/48981
4197         * gengtype.c (vec_prefix_type): New function.
4198         (note_def_vec): Use vec_prefix_type and change the length
4199         attribute to be based on the prefix.
4200         * vec.c: Include coretypes.h before vec.h.
4201         (struct vec_prefix): Remove.
4202         (vec_gc_p_reserve): Change the offsetof to sizeof.
4203         (vec_gc_p_reserve_exact): Likewise.
4204         (vec_heap_p_reserve): Likewise.
4205         (vec_heap_p_reserve_exact): Likewise.
4206         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4207         (vec_stack_p_reserve): Change the offsetof to sizeof.
4208         (vec_stack_p_reserve_exact): Likewise.
4209         * vec.h (struct vec_prefix): New struct definition.
4210         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4211         (VEC_T_GTY(T,B)): Likewise.
4212         (DEF_VEC_FUNC_P(T)): Use prefix field.
4213         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4214         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4215
4216 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4217
4218         PR tree-optimization/46728
4219         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4220         (powi_as_mults): Add gimple_set_location.
4221         (build_and_insert_call): New.
4222         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4223         0.5, 0.25, 0.75, 1./3., or 1./6.
4224
4225 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
4226
4227         * doc/contrib.texi: Update copyright years.
4228         (Contributors): Add Zdenek Sojka.
4229
4230 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
4231
4232         * c-decl.c (c_push_function_context): Copy the current statement
4233         list stack.
4234         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4235         (finish_struct): Call building_stmt_list_p instead of checking
4236         cur_stmt_list.
4237         * c-parser.c (c_parser_postfix_expression): Likewise.
4238         * c-typeck.c (c_end_compound_stmt): Likewise.
4239         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4240         * tree-iterator.c (stmt_list_cache): Change to a VEC.
4241         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4242         (free_stmt_list): Likewise.
4243         * tree.h (struct tree_statement_list): Include typed_tree instead
4244         of tree_common.
4245         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4246         as TS_TYPED instead of TS_COMMON.
4247
4248 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4249             Uros Bizjak  <ubizjak@gmail.com>
4250
4251         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4252         (HAVE_AS_IX86_TLSGDPTL): Define.
4253         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4254         (HAVE_AS_IX86_TLSLDMPLT): Define.
4255         * configure: Regenerate.
4256         * config.in: Regenerate.
4257         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4258         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4259         TARGET_SUN_TLS, use @tlsgdplt or @plt.
4260         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4261         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4262         @tlsldmplt or @plt.
4263         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4264
4265 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
4266
4267         * sched-int.h (struct _haifa_deps_insn_data): New members cond
4268         and reverse_cond.
4269         (INSN_COND, INSN_REVERSE_COND): New macros.
4270         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4271         once.
4272         (sched_get_condition_with_rev): Cache the results, and look them up
4273         if possible.
4274         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4275         are clobbered by the current insn.
4276         * target.def (exposed_pipline): New sched data hook.
4277         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4278         * doc/tm.texi: Regenerate.
4279
4280 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4281
4282         PR tree-optimization/49170
4283         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
4284         sincos or cexp.
4285
4286 2011-05-27  Richard Guenther  <rguenther@suse.de>
4287
4288         PR middle-end/49189
4289         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4290         of comparisons.
4291
4292 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
4293
4294         * haifa-sched.c (sched_scan_info): Remove.
4295         (schedule_block): Call sched_extend_luids rather than sched_init_luids
4296         with NULL args.
4297         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4298         Remove functions.
4299         (sched_scan): Remove.
4300         (sched_extend_luids): Renamed from luids_extend_insn and no longer
4301         static.  All callers changed.
4302         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4303         static.  All callers changed.
4304         (sched_init_luids): Remove all arguments except the first.  All
4305         callers changed.  Don't use sched_scan.
4306         (haifa_init_h_i_d): Likewise.
4307         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4308         manually rather than using sched_init_luids.  Likewise with
4309         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4310         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4311         rather than sched_init_luids with NULL args.
4312         * sel-sched-ir.c (new_insns): Remove variable.
4313         (sched_scan): New static function, previously in haifa-sched.c.  Remove
4314         all arguments but the first two; all callers changed.
4315         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4316         rather than sched_init_luids.
4317         (sel_init_bbs): Remove second argument.  All callers changed.
4318         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4319         with NULL arguments.
4320         (create_insn_rtx_from_pattern): Likewise.
4321         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4322         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4323         (sched_init_insn_luid, sched_extend_luids): Declare.
4324         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4325         declarations.
4326
4327 2011-05-27  Richard Guenther  <rguenther@suse.de>
4328
4329         PR middle-end/49177
4330         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4331         A CMP B ? (T) true : (T) false for non-integral types T again.
4332
4333 2011-05-27  Jan Hubicka  <jh@suse.cz>
4334
4335         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4336         so 0 means NULL string.
4337         (lto_output_string_with_length): ... here.
4338         (lto_output_string, output_string_cst, output_identifier): Update
4339         handling of NULL strings.
4340         (lto_output_location_bitpack): New function.
4341         (lto_output_location): Use it.
4342         (lto_output_tree_ref): Use output_record_start.
4343         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4344         len values.
4345         * lto-streamer-in.c (string_for_index): Break out from ...; offset
4346         values by 1.
4347         (input_string_internal): ... here;
4348         (input_string_cst, input_identifier, lto_input_string): Update handling
4349         of NULL strings.
4350         (lto_input_location_bitpack): New function
4351         (lto_input_location): Use it.
4352         (unpack_ts_type_common_value_fields): Pack align & alias in var len
4353         values.
4354         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4355         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4356         (bp_pack_value): Sanity check the value range.
4357         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4358         New functions.
4359         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4360         New functions.
4361
4362 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
4363
4364         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4365         call_arg_location instructions down the floor.
4366
4367 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
4368
4369         PR rtl-optimization/49154
4370         * ira.c (setup_pressure_classes): Process class without sublcasses
4371         as a candidate for pressure classes.
4372
4373 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
4374
4375         PR rtl-optimization/48575
4376         * genrecog.c (position_type): New enum.
4377         (position): New structure.
4378         (decision): Use position structure instead of a string.
4379         (root_pos, peep2_insn_pos_list): New variables.
4380         (next_position, compare_positions): New functions.
4381         (new_decision): Use position structures instead of strings.
4382         (maybe_both_true): Likewise.
4383         (change_state): Likewise.
4384         (write_tree): Likewise.
4385         (make_insn_sequence): Likewise.
4386
4387 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4388
4389         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4390         TS_BASE instead of TS_COMMON.
4391         (find_decls_types_r): Check for TS_TYPED structure before looking at
4392         TREE_TYPE.
4393         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4394         Add chain field.
4395         (BLOCK_CHAIN): Use new chain field.
4396
4397 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
4398
4399         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4400         moves expensive on Power7 also.
4401
4402 2011-05-26  Richard Guenther  <rguenther@suse.de>
4403
4404         * fold-const.c (fold_unary_loc): Remove bogus code.
4405
4406 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4407
4408         * tree.h (struct tree_identifier): Inherit from tree_typed, not
4409         tree_common.
4410         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4411         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4412         TS_BASE instead of TS_COMMON.
4413         * varasm.c (assemble_name): Remove assert.
4414
4415 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4416
4417         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4418         substituted first.
4419         * libgcc-std.ver: Delete file.
4420
4421 2011-05-26  Richard Guenther  <rguenther@suse.de>
4422
4423         PR tree-optimization/48702
4424         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4425         only when we know the base address is within bounds.
4426         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4427         assume the base address of TARGET_MEM_REFs is in bounds.
4428
4429 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4430
4431         PR target/49099
4432         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4433         declaration in TARGET_SOLARIS.
4434
4435 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
4436
4437         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4438         The instruction is then expanded explicitly.
4439         (supported_compare): Callable instruction.
4440         (compare): Likewise.
4441
4442 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4443
4444         PR c++/49165
4445         * gimplify.c (shortcut_cond_r): Don't special case
4446         COND_EXPRs if they have void type on one of their arms.
4447
4448 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4449
4450         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4451         to reduce duplication, and to achieve a slightly more logical order
4452         of operations.
4453
4454 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4455
4456         PR tree-optimization/49161
4457         * tree-vrp.c (struct case_info): New type.
4458         (compare_case_labels): Sort case_info structs instead of
4459         trees, and not primarily by CASE_LABEL uids but by
4460         label_for_block indexes.
4461         (find_switch_asserts): Put case labels into struct case_info
4462         array instead of TREE_VEC, adjust sorting, compare label_for_block
4463         values instead of CASE_LABELs.
4464
4465 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4466
4467         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4468         ("orndi3_neon"): Likewise.
4469         ("bic<mode>3_neon"): Likewise.
4470
4471 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
4472
4473         PR tree-optimization/49038
4474         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4475         Ensure at least one epilogue iteration if required by data
4476         accesses with gaps.
4477         * tree-vectorizer.h (struct _loop_vec_info): Add new field
4478         to mark loops that require peeling for gaps.
4479         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4480         (vect_get_known_peeling_cost): Take peeling for gaps into
4481         account.
4482         (vect_transform_loop): Generate epilogue if required by data
4483         access with gaps.
4484         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4485         loop as requiring an epilogue if there are gaps in the end of
4486         the strided group.
4487
4488 2011-05-25  Ian Lance Taylor  <iant@google.com>
4489
4490         * godump.c (go_format_type): Output the first field with a usable
4491         Go type, if any.
4492
4493 2011-05-25  Ian Lance Taylor  <iant@google.com>
4494
4495         * godump.c (go_format_type): Check for invalid type names, pointer
4496         target types, and struct field types.
4497
4498 2011-05-25  Jason Merrill  <jason@redhat.com>
4499
4500         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4501
4502 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
4503
4504         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4505
4506 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4507
4508         * config/i386/i386.md (*movqi_extv_1)): Put back
4509         "register_operand" check in "type" calculation.
4510         (*movqi_extzv_2): Likewise.
4511
4512 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4513
4514         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4515
4516 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4517
4518         PR bootstrap/49160
4519         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4520         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4521         __divxc3, __divtc3): Wrap definitions in #ifndef.
4522
4523 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4524
4525         PR target/49142
4526         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4527         "register_operand" check and replace q_regs_operand with
4528         QIreg_operand in "type" calculation.
4529         (*movqi_extv_1): Likewise.
4530         (*movqi_extzv_2_rex64): Likewise.
4531         (*movqi_extzv_2): Likewise.
4532
4533         * config/i386/predicates.md (QIreg_operand): New.
4534
4535 2011-05-25  Richard Guenther  <rguenther@suse.de>
4536
4537         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4538         type-based offset disambiguation, streamline MEM_REF and
4539         TARGET_MEM_REF handling.
4540
4541 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4542
4543         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4544         (bdesc_special_args): Add pause intrinsic.
4545
4546         * config/i386/i386.md (UNSPEC_PAUSE): New.
4547         (pause): Likewise.
4548         (*pause): Likewise.
4549         * config/i386/ia32intrin.h (__pause): Likewise.
4550
4551         * doc/extend.texi (X86 Built-in Functions): Add documentation for
4552         pause intrinsic.
4553
4554 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4555
4556         PR tree-optimization/46728
4557         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4558         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4559
4560 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
4561
4562         * tree.h (struct tree_exp): Inherit from struct tree_typed.
4563         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4564         instead of TS_COMMON.
4565
4566 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4567
4568         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4569         LIBGCC2_GNU_PREFIX is defined.
4570         (__N): New macro.
4571         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4572         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4573         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4574         __clz_tab): Define using __N.
4575         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4576         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4577         * target.def (libfunc_gnu_prefix): New hook.
4578         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4579         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4580         * doc/tm.texi: Regenerate.
4581         * system.h (LIBGCC2_GNU_PREFIX): Poison.
4582         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4583         account.
4584         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4585         (init_optabs): Likewise for the bswap libfuncs.
4586         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4587         and divide.
4588         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4589         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4590         * libgcc-std.ver: Remove.
4591         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4592         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4593         libgcc-std.ver.
4594         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4595         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4596         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4597         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4598         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4599         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4600         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4601         * config/fixed-bit.h (FIXED_OP): Define differently depending on
4602         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4603         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4604
4605 2011-05-25  Jan Hubicka  <jh@suse.cz>
4606
4607         * lto-streamer-out.c (output_record_start): Use lto_output_enum
4608         (lto_output_tree): Use output_record_start.
4609         * lto-streamer-in.c (input_record_start): Use lto_input_enum
4610         (lto_get_pickled_tree): Use input_record_start.
4611         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4612         (lto_value_range_error): New function.
4613         * lto-streamer.h (lto_value_range_error): Declare.
4614         (lto_output_int_in_range, lto_input_int_in_range): New functions.
4615         (lto_output_enum, lto_input_enum): New macros.
4616
4617 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4618
4619         * common.opt (flag_stack_usage_info): New variable.
4620         (-Wstack-usage): New option.
4621         * doc/invoke.texi (Warning options): Document -Wstack-usage.
4622         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4623         <OPT_fstack_usage>: Likewise.
4624         * toplev.c (output_stack_usage): Handle -Wstack-usage.
4625         * calls.c (expand_call): Test flag_stack_usage_info variable instead
4626         of flag_stack_usage.
4627         (emit_library_call_value_1): Likewise.
4628         * explow.c (allocate_dynamic_stack_space): Likewise.
4629         * function.c (instantiate_virtual_regs ): Likewise.
4630         (prepare_function_start): Likewise.
4631         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4632         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4633         * config/arm/arm.c (arm_expand_prologue): Likewise.
4634         (thumb1_expand_prologue): Likewise.
4635         * config/avr/avr.c (expand_prologue): Likewise.
4636         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4637         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4638         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4639         * config/mips/mips.c (mips_expand_prologue): Likewise.
4640         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4641         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4642         * config/s390/s390.c (s390_emit_prologue): Likewise.
4643         * config/sh/sh.c (sh_expand_prologue): Likewise.
4644         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4645         * config/spu/spu.c (spu_expand_prologue): Likewise.
4646
4647 2011-05-25  Richard Guenther  <rguenther@suse.de>
4648
4649         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4650         (gimple_canonical_types_compatible_p): Likewise.
4651
4652 2011-05-25  Jan Hubicka  <jh@suse.cz>
4653
4654         PR middle-end/49062
4655         * ipa.c (function_and_variable_visibility): Only add to same
4656         comdat group list if DECL_ONE_ONLY.
4657
4658 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
4659
4660         PR rtl-optimization/49014
4661         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4662
4663 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
4664
4665         PR target/49128
4666         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4667
4668 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4669
4670         PR rtl-optimization/48757
4671         * ira-build.c (loop_with_eh_edge_p): Rename to
4672         loop_with_complex_edge_p, check edges on complexity, make function
4673         conditional.
4674         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4675         conditional.
4676
4677 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4678
4679         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4680         force flag_ira_share_save_slots to 0.
4681
4682 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4683
4684         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4685         (vt_initialize): Set PROLOGUE_BB unconditionally.
4686         Add block comment about CFA_BASE_RTX machinery.
4687         Reset FP_CFA_OFFSET to -1 on all invalid paths.
4688         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4689
4690 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
4691
4692         PR objc/48187
4693         * c-parser.c (c_parser_objc_class_instance_variables): More robust
4694         parsing of syntax error in ObjC instance variable lists.  In
4695         particular, avoid an infinite loop if there is a stray ']'.
4696         Updated error message.
4697
4698 2011-05-24  Ian Lance Taylor  <iant@google.com>
4699
4700         * godump.c (go_define): Don't accept a string immediately after
4701         another operand.
4702
4703 2011-05-24  Ian Lance Taylor  <iant@google.com>
4704
4705         * godump.c (struct godump_container): Add invalid_hash field.
4706         (go_format_type): Return false if type is found in invalid_hash.
4707         (go_output_typedef): Add invalid type to invalid_hash.
4708         (go_finish): Create and delete invalid_hash.
4709
4710 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4711
4712         PR tree-optimization/46728
4713         * tree-ssa-math-opts.c (powi_table): New.
4714         (powi_lookup_cost): New.
4715         (powi_cost): New.
4716         (powi_as_mults_1): New.
4717         (powi_as_mults): New.
4718         (gimple_expand_builtin_powi): New.
4719         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4720         (gate_cse_sincos): Remove sincos/cexp restriction.
4721
4722 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4723
4724         PR target/3746
4725         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4726         mips-tdump native.
4727         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4728         * mips-tdump.c: Likewise.
4729
4730 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4731
4732         PR target/49128
4733         * config/i386/driver-i386.c (host_detect_local_cpu): Always
4734         add -mno-XXX.  Handle FMA.
4735
4736 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4737
4738         PR rtl-optimization/48633
4739         * ira-build.c (loop_with_eh_edge_p): New function.
4740         (mark_loops_for_removal): Use it.
4741
4742 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4743
4744         PR rtl-optimization/48971
4745         * ira.c (setup_pressure_classes): Don't check register move cost
4746         for classes with one registers.  Don't add pressure class if there
4747         is a pressure class with the same available hard registers.
4748         Check contains_reg_of_mode.  Fix a typo in collecting
4749         temp_hard_regset.  Ignore hard registers not belonging to a class.
4750
4751 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
4752
4753         PR target/49133
4754         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4755
4756 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4757             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4758
4759         PR gcov-profile/48845
4760         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4761
4762 2011-05-24  Richard Guenther  <rguenther@suse.de>
4763
4764         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4765         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4766         (gimple_types_compatible_p_1): Adjust.
4767         (iterative_hash_canonical_type): Do not bother about complete vs.
4768         incomplete types.
4769         (gimple_canonical_types_compatible_p): Likewise.
4770
4771 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4772
4773         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4774
4775 2011-05-24  Richard Guenther  <rguenther@suse.de>
4776
4777         PR bootstrap/49078
4778         * gimple.c (gimple_register_canonical_type): Revert
4779         previous change.
4780         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4781         does not for a tree for the case where it matters.  Cache
4782         pointer-type alias-sets.
4783
4784 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
4785
4786         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4787         (OBJS): Remove options.o, opts-common.o and prefix.o.
4788         (OBJS-libcommon-target): New.
4789         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4790         (BACKEND): Include libcommon-target.a.
4791         (MOSTLYCLEANFILES): Include libcommon-target.a.
4792         (libcommon-target.a): New.
4793         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4794         prefix.o.
4795
4796 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
4797
4798         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
4799         parts of output shared with the driver.
4800         * optc-gen.awk: Don't generate parts of output not shared with the
4801         driver.
4802         * opth-gen.awk: Remove GCC_DRIVER conditionals.
4803         * doc/options.texi (SourcerInclude): Mention options-save.c.
4804         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4805         (OBJS): Add options-save.o.
4806         (options-save.c, options-save.o): New.
4807         (options.o): Update dependencies.
4808         (gcc-options.o): Remove.
4809         (mostlyclean): Remove options-save.c.
4810
4811 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4812
4813         PR debug/49032
4814         * dbxout.c: Include cgraph.h.
4815         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4816         and without value expr, return NULL if no varpool node exists for
4817         it or if it is not needed.
4818         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4819
4820         PR c/49120
4821         * c-decl.c (start_decl): Convert expr to void_type_node.
4822
4823 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
4824
4825         PR rtl-optimization/48826
4826         * emit-rtl.c (try_split): When splitting a call that is followed
4827         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4828
4829 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4830
4831         * cfgexpand.c (expand_debug_expr): For unused non-addressable
4832         parameters passed in memory prefer using DECL_INCOMING_RTL over
4833         the pseudos it will be copied into.
4834
4835 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4836
4837         PR target/47315
4838         * config/i386/i386.c (ix86_option_override_internal): Save the
4839         initial options after checking vzeroupper.
4840
4841 2011-05-23  David Li  <davidxl@google.com>
4842
4843         PR tree-optimization/48988
4844         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4845         Initialize has_valid_pred for each pred chain.
4846
4847 2011-05-23  Richard Guenther  <rguenther@suse.de>
4848
4849         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4850         (iterative_hash_gimple_type): Always hash type names.
4851
4852 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
4853
4854         * c-typeck.c (build_function_call_vec): Tweak call to
4855         check_function_arguments.
4856
4857 2011-05-23  Richard Guenther  <rguenther@suse.de>
4858
4859         PR tree-optimization/49115
4860         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4861         is not necessarily carried out, do not claim it kills the ref.
4862         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4863
4864 2011-05-23  Richard Guenther  <rguenther@suse.de>
4865
4866         PR middle-end/15419
4867         * builtins.c (fold_builtin_memory_op): Be less restrictive about
4868         what pointer types we accept for folding.
4869
4870 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4871
4872         * gthr-gnat.c: Remove.
4873         * gthr-gnat.h: Remove.
4874         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4875         * config/t-freebsd (LIB2ADDEH): Likewise.
4876         * config/t-linux (LIB2ADDEH): Likewise.
4877         * config/t-sol2 (LIB2ADDEH): Likewise.
4878         * config/ia64/t-vms (LIB2ADDEH): Likewise.
4879         * configure.ac (target_thread_file): Remove gnat handling.
4880         * configure: Regenerate.
4881         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4882
4883 2011-05-23  Tristan Gingold  <gingold@adacore.com>
4884             Eric Botcazou  <ebotcazou@adacore.com>
4885
4886         * gcov.c (create_file_names): If no object directory is specified,
4887         keep the directory of the file.
4888
4889 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4890
4891         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4892         * configure: Regenerate.
4893
4894 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4895
4896         PR middle-end/48973
4897         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4898         failed and the comparison has a single bit signed type, use
4899         constm1_rtx instead of const1_rtx for true value.
4900         (do_store_flag): If ops->type is single bit signed type, disable
4901         signel bit test optimization and pass -1 instead of 1 as last
4902         parameter to emit_store_flag_force.
4903
4904 2011-05-23  Tom de Vries  <tom@codesourcery.com>
4905
4906         PR target/45098
4907         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4908         function.
4909         (infer_loop_bounds_from_undefined): Use new function.
4910
4911 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4912
4913         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4914         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
4915         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4916         and -O0 otherwise.
4917         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4918
4919 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4920
4921         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4922         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4923         returns true.
4924
4925 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4926
4927         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4928
4929 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4930
4931         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4932         UNSPEC_MOVE_PIC pattern.
4933
4934 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4935
4936         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4937         (sparc-*-rtems*): Likewise.
4938         (sparc64-*-elf*): Likewise.
4939         (sparc64-*-rtems*): Likewise.
4940         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
4941         * config/sparc/t-crtin: New file.
4942         * config/sparc/t-sol2 (crti.o): Delete rule.
4943         (crtn.o): Likewise.
4944         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4945         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4946         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4947         (ENDFILE_SPEC): Add crtn.o.
4948
4949 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4950
4951         PR middle-end/48689
4952         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4953         CODE_CONTAINS_STRUCT (TS_COMMON).
4954
4955 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
4956
4957         PR middle-end/49029
4958         * expmed.c (extract_fixed_bit_field): Test whether target can be used
4959         only after deciding which mode to use.
4960
4961 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4962
4963         PR target/45098
4964         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4965         for call to get_shiftadd_cost.
4966
4967 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
4968
4969         PR target/49104
4970         * config/i386/cpuid.h (bit_MMXEXT): New define.
4971
4972 2011-05-22  Nick Clifton  <nickc@redhat.com>
4973
4974         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4975         initialisation of non-existant args[2] element.  Use args[] array
4976         not arg[] array to pass arguments to build_function_type_list.
4977
4978 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
4979
4980         PR tree-optimization/49087
4981         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4982
4983 2011-05-21  Jason Merrill  <jason@redhat.com>
4984
4985         PR c++/49092
4986         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4987         static storage duration.
4988
4989 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4990
4991         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4992         frame pointer.
4993
4994 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4995
4996         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4997         false if there are call-saved registers here...
4998         (sparc_can_use_return_insn_p): ...but here instead.
4999         (save_or_restore_regs): Fix thinko.
5000         (sparc_expand_prologue): Use current_function_is_leaf.
5001         (sparc_frame_pointer_required): Likewise.
5002
5003 2011-05-21  Nick Clifton  <nickc@redhat.com>
5004
5005         PR target/49098
5006         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5007
5008 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5009
5010         * gengtype.c (walk_type): Implemented "atomic" GTY option.
5011         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
5012
5013 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
5014
5015         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
5016         * optc-gen.awk: Move common code to opt-read.awk.
5017         * opth-gen.awk: Likewise.
5018         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
5019
5020 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
5021
5022         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5023
5024 2011-05-20  Tom de Vries  <tom@codesourcery.com>
5025
5026         PR target/45098
5027         * tree-ssa-loop-ivopts.c: Include expmed.h.
5028         (get_shiftadd_cost): New function.
5029         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
5030
5031 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
5032
5033         PR bootstrap/49086
5034         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5035         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5036
5037 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
5038
5039         * Makefile.in: Update comment referring to $(OBJS-common).
5040
5041 2011-05-20  Ian Lance Taylor  <iant@google.com>
5042
5043         * godump.c (go_output_typedef): Put enum constants in the macro
5044         hash table to avoid duplicate Go const definitions.
5045
5046 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
5047
5048         * Makefile.in (LIBDEPS): Add libcommon.a.
5049         (LIBS): Likewise.
5050         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5051         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5052         pretty-print.o and version.o.
5053         (OBJS-libcommon): New.
5054         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5055         (BACKEND): Add libcommon.a.
5056         (MOSTLYCLEANFILES): Likewise.
5057         (libcommon.a): New.
5058         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5059         (cpp$(exeext)): Likewise.
5060         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5061         pretty-print.o and input.o.
5062         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5063         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5064         (errors.o): Remove.
5065         (mips-tfile): Don't explicitly use version.o.
5066         (mips-tdump): Likewise.
5067         (gcov.o): Depend on $(DIAGNOSTIC_H).
5068         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5069         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5070         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5071         * gcov-dump.c: Include intl.h and diagnostic.h.
5072         (main): Initialize diagnostics.
5073         * gcov.c: Include diagnostic.h.
5074         (fnotice): Remove.
5075         (main): Initialize diagnostics.
5076         * lto-wrapper.c: Include diagnostic.h.
5077         (main): Initialize diagnostics.
5078
5079 2011-05-20  Michael Matz  <matz@suse.de>
5080
5081         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5082
5083 2011-05-20  Michael Matz  <matz@suse.de>
5084             Richard Guenther  <rguenther@suse.de>
5085
5086         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5087         use lto_streamer_cache_append directly instead of returning a VEC.
5088         (preload_common_node): Remove.
5089         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5090         track seen nodes.
5091         (lto_streamer_cache_create): Call lto_preload_common_nodes.
5092
5093 2011-05-20  Richard Guenther  <rguenther@suse.de>
5094
5095         PR tree-optimization/49079
5096         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5097         MEM_REFs correctly for the trailing array access detection.
5098         Special case constants the same way as decls for overall size
5099         constraining.
5100
5101 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
5102
5103         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5104         argument expansion.
5105
5106 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
5107
5108         PR tree-optimization/49073
5109         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5110         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
5111         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5112
5113 2011-05-20  Richard Guenther  <rguenther@suse.de>
5114
5115         PR middle-end/48849
5116         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5117         of pointer types the same way the middle-end does.
5118
5119 2011-05-20  Richard Guenther  <rguenther@suse.de>
5120
5121         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5122         or pointer-to chains.  Delay all fixup to uniquify_nodes.
5123
5124 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
5125
5126         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5127         (fma4_fmaddsub): Likewise
5128
5129 2011-05-19  Jan Hubicka  <jh@suse.cz>
5130
5131         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5132         (GIMPLE_TYPE_PAIR_SIZE): New macro.
5133         (type_pair_cache): New static var.
5134         (lookup_type_pair): Use fixed sized custom hash; make inline.
5135         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5136         calls of lookup_type_pair.
5137         (print_gimple_types_stats): Remove cache stats.
5138         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5139         and gtc_ob.
5140
5141 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
5142
5143         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5144         when TARGET_RDRND is active.
5145         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5146         Generate dummy SImode target register when target is NULL.
5147
5148 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
5149
5150         * config/arm/arm-fpus.def: New.
5151         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5152         arm-fpus.def.
5153         * config/arm/arm-tables.opt: Regenerate.
5154         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5155         (arm_option_override): Don't decode FPU name to string here.
5156         * config/arm/arm.opt (mfpu=): Use Enum.
5157         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5158         Update dependencies.
5159
5160 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
5161
5162         * collect2.c: Include diagnostic.h.
5163         (fatal_perror, fatal, error, fancy_abort): Remove.
5164         (main): Set progname.  Call xmalloc_set_program_name and
5165         diagnostic_initialize.
5166         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5167         scan_libraries, resolve_lib_name): Call fatal_error instead of
5168         fatal and fatal_perror.
5169         * collect2.h (error, fatal, fatal_perror): Don't declare.
5170         * tlink.c: Include diagnostic-core.h.
5171         (recompile_files): Call fatal_error instead of fatal_perror.
5172         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5173         pretty-print.o and input.o.
5174         (collect2.o, tlink.o): Update dependencies.
5175
5176 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5177
5178         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5179
5180 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5181
5182         PR target/40483
5183         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5184         COMDAT group syntax, both SPARC and x86 variants.
5185         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5186         * configure: Regenerate.
5187         * config/sol2.h (TARGET_SOLARIS): Define.
5188         (PUSHSECTION_FORMAT): Remove.
5189         (SECTION_NAME_FORMAT): Define.
5190         * config/sol2.c: Include hashtab.h.
5191         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5192         expansion, using SECTION_NAME_FORMAT.
5193         (solaris_comdat_htab): New variable.
5194         (struct comdat_entry): Define.
5195         (comdat_hash): New function.
5196         (comdat_eq): New function.
5197         (solaris_elf_asm_comdat_section): New function.
5198         (solaris_define_comdat_signature): New function.
5199         (solaris_code_end): New function.
5200         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5201         (solaris_code_end): Declare.
5202         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5203         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5204         solaris_code_end.
5205         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5206         Remove ATTRIBUTE_UNUSED.
5207         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5208         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
5209         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
5210         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5211         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5212         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5213         (PUSHSECTION_FORMAT): Remove.
5214         (SECTION_NAME_FORMAT): Redefine.
5215
5216 2011-05-19  Kai Tietz  <ktietz@redhat.com>
5217
5218         * tree-cfg.c (verify_gimple_assign_binary): Barf on
5219         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5220         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5221
5222 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
5223             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5224
5225         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5226
5227 2011-05-19  Richard Guenther  <rguenther@suse.de>
5228
5229         PR middle-end/48985
5230         * tree-object-size.c (addr_object_size): If the pointed-to
5231         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5232
5233 2011-05-19  Richard Guenther  <rguenther@suse.de>
5234
5235         * gimple.c (gimple_types_compatible_p_1): Compare names of
5236         the types themselves.
5237         (iterative_hash_gimple_type): And hash them that way.
5238         (gimple_register_type_1): If we register a main variant properly
5239         initialize the leader to ourselves.
5240
5241 2011-05-19  Tom de Vries  <tom@codesourcery.com>
5242
5243         PR target/45098
5244         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5245         get_loop_invariant_expr_id.
5246         (get_loop_invariant_expr_id): Use get_expr_id.
5247         (parm_decl_cost): New function.
5248         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5249         Improve bound cost estimation.  Use different inv_expr_id for elim and
5250         express cases.
5251
5252 2011-05-19  Tom de Vries  <tom@codesourcery.com>
5253
5254         PR target/45098
5255         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5256         cost_base.cost == 0.
5257
5258 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5259
5260         PR target/49002
5261         * config/i386/sse.md
5262         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5263         load cast.
5264
5265 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
5266
5267         PR tree-optimization/49039
5268         * tree-vrp.c (extract_range_from_binary_expr): For
5269         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5270         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5271
5272 2011-05-18  Tom de Vries  <tom@codesourcery.com>
5273
5274         PR target/45098
5275         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5276
5277 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
5278
5279         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5280         (*tls_global_dynamic_64): Ditto.
5281         (*tls_local_dynamic_base_32_gnu): Ditto.
5282         (*tls_local_dynamic_base_64): Ditto.
5283         (tls_initial_exec_64_sun): Ditto.
5284
5285 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
5286
5287         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5288         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5289         bf592-none.
5290         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5291         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5292         * config/bfin/bfin.c (bfin_cpus): Add bf592.
5293         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5294         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5295         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5296         * config/bfin/elf.h (LIB_SPEC): Add bf592.
5297
5298 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
5299
5300         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5301         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5302         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5303         target_thread_pointer, arm_structure_size_boundary, struct
5304         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5305         struct abi_name, arm_all_abis): Remove.
5306         (arm_option_override) Don't process most enumerated option values here.
5307         Don't process target_fpe_name here.  Work with integer not string for
5308         structure size boundary; use separate diagnostics for each case.
5309         * config/arm/arm.h (enum float_abi_type, enum
5310         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5311         to arm-opts.h.
5312         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5313         arm_structure_size_boundary): Remove.
5314         * config/arm/arm.opt (mabi=): Use Enum and Init.
5315         (arm_abi_type): New Enum and EnumValue entries.
5316         (mfloat-abi=): Use Enum and Init.
5317         (float_abi_type): New Enum and EnumValue entries.
5318         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5319         (mfp16-format=): Use Enum and Init.
5320         (arm_fp16_format_type): New Enum and EnumValue entries.
5321         (mstructure-size-boundary=): Use UInteger and Init.
5322         (mtp=): Use Enum and Init.
5323         (arm_tp_type): New Enum and EnumValue entries.
5324
5325 2011-05-18  Richard Guenther  <rguenther@suse.de>
5326
5327         PR tree-optimization/49018
5328         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5329         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5330         gimple_has_side_effects.
5331
5332 2011-05-18  Richard Guenther  <rguenther@suse.de>
5333
5334         * gimple.c (gimple_register_type_1): New function, split out from ...
5335         (gimple_register_type): ... here.  Avoid infinite recursion.
5336
5337 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
5338
5339         PR tree-optimization/41881
5340         * tree-vectorizer.h (struct _loop_vec_info): Add new field
5341         reduction_chains along with a macro for its access.
5342         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5343         (destroy_loop_vec_info): Free reduction chains.
5344         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5345         (vect_is_slp_reduction): New function.
5346         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5347         (vect_create_epilog_for_reduction): Support SLP reduction chains.
5348         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5349         definition types for reduction chains.
5350         (vect_supported_load_permutation_p): Don't allow permutations for
5351         reduction chains.
5352         (vect_analyze_slp_instance): Support reduction chains.
5353         (vect_analyze_slp): Try to build SLP instance from reduction chains.
5354         (vect_get_constant_vectors):  Handle reduction chains.
5355         (vect_schedule_slp_instance): Mark the first statement of the
5356         reduction chain as reduction.
5357
5358 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
5359
5360         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5361         names for group elements access.
5362         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5363         reduction chains as well.  Remove data reference and interleaving
5364         related words from the fields names.
5365         * tree-vect-loop.c (vect_transform_loop): Use new names for group
5366         elements access.
5367         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5368         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5369         vect_update_interleaving_chain, vect_same_range_drs,
5370         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5371         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5372         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5373         vect_analyze_group_access, vect_analyze_data_ref_access,
5374         vect_create_data_ref_ptr, vect_transform_strided_load,
5375         vect_record_strided_load_vectors): Likewise.
5376         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5377         vect_model_load_cost, vectorizable_store, vectorizable_load,
5378         vect_remove_stores, new_stmt_vec_info): Likewise.
5379         * tree-vect-slp.c (vect_build_slp_tree,
5380         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5381
5382 2011-05-18  Richard Guenther  <rguenther@suse.de>
5383
5384         PR middle-end/48989
5385         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5386         operand verification.
5387         (verify_gimple_assign_binary): Likewise.
5388         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5389         to non-1-precision BOOLEAN_TYPEs.
5390
5391 2011-05-18  Tom de Vries  <tom@codesourcery.com>
5392
5393         PR target/45098
5394         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5395
5396 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
5397
5398         PR tree-optimization/49000
5399         * tree-ssa.c (execute_update_addresses_taken): Call
5400         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
5401         be rewritten and decl has been marked for renaming, reset
5402         the debug stmt.
5403
5404 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
5405
5406         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5407         enum_opts_set when testing if attributes have set -mfpmath=.
5408
5409 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
5410
5411         * config/mips/mips.c (mips_handle_option): Remove unused variable.
5412
5413 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5414
5415         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5416         info->entry with 0
5417         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
5418         id.transform_lang_insert_block with NULL.
5419
5420 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5421
5422         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5423         (output_fp_compare): Change args 3 and 4 to bool.
5424         (ix86_expand_call): Change arg 6 to bool.
5425         (ix86_attr_length_immediate_default): Change arg 2 to bool.
5426         (ix86_attr_length_vex_default): Change arg 3 to bool.
5427         * config/i386/i386.md: Update all uses.
5428         * config/i386/i386.c: Ditto.
5429         (ix86_flags_dependent): Change return type to bool.
5430
5431 2011-05-17  Richard Guenther  <rguenther@suse.de>
5432
5433         * gimple.c (type_hash_pair_compare): Fix comparison.
5434
5435 2011-05-17  Richard Guenther  <rguenther@suse.de>
5436
5437         * gimple.c (iterative_hash_gimple_type): Simplify singleton
5438         case some more, fix final hash value of the non-singleton case.
5439
5440 2011-05-17  Richard Guenther  <rguenther@suse.de>
5441
5442         PR bootstrap/49013
5443         Revert
5444         2011-05-16  Richard Guenther  <rguenther@suse.de>
5445
5446         * gimple.c (gimple_types_compatible_p_1): Use names of the
5447         type itself, not its main variant.
5448         (iterative_hash_gimple_type): Likewise.
5449
5450 2011-05-17  Richard Guenther  <rguenther@suse.de>
5451
5452         * gimple.c (gimple_register_canonical_type): Use the main-variant
5453         leader for computing the canonical type.
5454
5455 2011-05-17  Nick Clifton  <nickc@redhat.com>
5456
5457         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5458         moves.
5459
5460         * config/rx/rx.md: Add peephole to remove redundant extensions
5461         after loads.
5462         (bitset_in_memory): Use rx_restricted_mem_operand.
5463         (bitinvert_in_memory): Likewise.
5464         (bitclr_in_memory): Likewise.
5465
5466 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
5467             Nick Clifton  <nickc@redhat.com>
5468
5469         * config/rx/rx.md: Add peepholes to match a register move followed
5470         by a comparison of the moved register.  Replace these with an
5471         addition of zero that does both actions in one instruction.
5472
5473 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
5474
5475         PR target/48986
5476         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5477         predicate to allow CONST_INT.
5478         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5479
5480 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5481
5482         * opts-common.c (opt_enum_arg_to_value): New.
5483         * opts.h (opt_enum_arg_to_value): Declare.
5484         * config/i386/i386.opt (fpmath): Remove.
5485         (mfpmath=): Use Enum, Init and Save.
5486         (fpmath_unit): New Enum and EnumValue entries.
5487         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5488         name for function fpmath state.
5489         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5490         * config/i386/i386.c: Include diagnostic.h.
5491         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5492         (ix86_target_string): Take enum fpmath_unit value instead of string.
5493         (ix86_debug_options): Update call to ix86_target_string.
5494         (ix86_option_override_internal): Don't process fpmath strings here.
5495         (x86_function_specific_save, ix86_function_specific_restore):
5496         Don't handle fpmath state specially.
5497         (ix86_function_specific_print): Pass fpmath state to
5498         ix86_target_string instead of printing in this function.
5499         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5500         Handle enum attributes.
5501         (IX86_ATTR_ENUM, ix86_opt_enum): New.
5502         (ix86_valid_target_attribute_tree): Update option_strings
5503         handling.  Handle fpmath as enum option.
5504         (ix86_can_inline_p): Update field names for function fpmath state.
5505         (ix86_expand_builtin): Update call to ix86_target_string.
5506         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5507         (ix86_fpmath): Remove.
5508         * config/i386/t-i386 (i386.o): Update dependencies.
5509
5510 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5511
5512         PR preprocessor/48677
5513         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5514         from decoded_options[0], not from itself.
5515
5516 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
5517
5518         * config/i386/constraints.md (z): New constraint.
5519         * config/i386/i386.c (c): New mode attribute.
5520         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5521         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5522         constraint for operand 0.
5523         (*call_vzeroupper): Ditto.
5524         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
5525         (*call_rex64_ms_sysv_vzeroupper): Ditto.
5526         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5527         Use "lzm" constraint for operand 0.
5528         (*call_pop_vzeroupper): Ditto.
5529         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5530         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
5531         constraint for operand 0.
5532         (*sibcall_vzeroupper): Ditto.
5533         (*sibcall_rex64_ms_sysv): Ditto.
5534         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5535         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5536         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
5537         (*sibcall_pop_vzeroupper): Ditto.
5538         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5539         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5540         mode iterator.  Use "<c>zm" constraint for operand 1.
5541         (*call_value_vzeroupper): Ditto.
5542         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
5543         for operand 1.
5544         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5545         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5546         *call_value_pop_1.  Use "lzm" constraint for operand 1.
5547         (*call_value_pop_vzeroupper): Ditto.
5548         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5549         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5550         mode iterator.  Use "Uz" constraint for operand 1.
5551         (*sibcall_value_vzeroupper): Ditto.
5552         (*sibcall_value_rex64_ms_sysv): Ditto.
5553         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5554         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
5555         constraint for operand 1.
5556         (*sibcall_value_pop_vzeroupper): Ditto.
5557         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5558         and "z" constraint for operand 2.
5559         (*tls_global_dynamic_32_gnu): Ditto.
5560         (*tls_local_dynamic_base_32_gnu): Ditto.
5561         (*tls_local_dynamic_base_64): Ditto.
5562         (*tls_local_dynamic_32_once): Ditto.
5563         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5564         Update all callers.
5565         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5566
5567 2011-05-16  Richard Guenther  <rguenther@suse.de>
5568
5569         * gimple.c (gimple_types_compatible_p_1): Use names of the
5570         type itself, not its main variant.
5571         (iterative_hash_gimple_type): Likewise.
5572
5573 2011-05-16  Richard Guenther  <rguenther@suse.de>
5574
5575         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5576         always visit pointer target and function result and argument types.
5577
5578 2011-05-16  Jason Merrill  <jason@redhat.com>
5579
5580         PR c++/48999
5581         * tree-inline.c (copy_statement_list): Put back recursion.
5582
5583 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5584
5585         PR target/27663
5586         PR target/41076
5587         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5588         * config/avr/avr.md ("*ior<mode>qi.byte0",
5589         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5590
5591 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5592
5593         PR target/45099
5594         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5595         register is needed for a function argument.
5596
5597 2011-05-16  Richard Guenther  <rguenther@suse.de>
5598
5599         * gimple.c (struct type_hash_pair): New type.
5600         (type_hash_pair_compare): New function.
5601         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5602
5603 2011-05-16  Revital Eres  <revital.eres@linaro.org>
5604
5605         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5606
5607 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5608
5609         * config/i386/i386.md (floating point move splitters): Fix
5610         usage of standard_80387_constant_p.
5611         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5612
5613 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5614
5615         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5616
5617 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5618
5619         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5620         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5621         (tree_ssa_lim_finalize): Likewise.
5622
5623 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
5624
5625         * config/i386/constraint.md (Yd, Yx): New register constraints.
5626         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
5627         Yd conditional register constraint.
5628         (*movtf_internal): Use standard_sse_constant_opcode.
5629         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
5630         Yx conditional register constraint.
5631         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
5632         Yd conditional register constraint.  Use standard_sse_constant_p to
5633         check for valid SSE constants and call standard_sse_constant_opcode to
5634         output SSE insn.
5635         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5636         constants and call standard_sse_constant_opcode to output SSE insn.
5637         * config/i386/i386.c (ix86_option_ovverride_internal): Set
5638         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
5639         optimize_size is set.
5640         (standard_sse_constant_opcode): Output conditional AVX insn templates.
5641
5642 2011-05-14  Tobias Burnus  <burnus@net-b.de>
5643
5644         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5645
5646 2011-05-13  Martin Jambor  <mjambor@suse.cz>
5647
5648         * ipa-prop.c (ipa_cst_from_jfunc): New function.
5649         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5650         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5651         (evaluate_conditions_for_ipcp_clone): Removed.
5652         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5653         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5654         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5655
5656 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
5657
5658         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5659         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5660         lieu of MAY_HAVE_DEBUG_STMTS.
5661         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5662         debug statements if !MAY_HAVE_DEBUG_STMTS.
5663
5664 2011-05-13  Martin Thuresson  <martint@google.com>
5665
5666         PR gcov-profile/47793
5667         * libgcov.c (gcov_exit): Support relative profile paths.
5668         * doc/invoke.texi (-fprofile-dir): Update for above change.
5669
5670 2011-05-13  Richard Guenther  <rguenther@suse.de>
5671
5672         * gimple.c (gimple_canonical_types_compatible_p): Do not use
5673         type-pair caching, do not compare hashes.
5674
5675 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
5676
5677         PR middle-end/48965
5678         * tree-cfg.c (edge_to_cases_cleanup): Return true.
5679         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5680
5681 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5682
5683         * gimplify.c (gimplify_expr): Make sure operand is boolified.
5684         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5685         compatible type for TRUTH_NOT_EXPR.
5686
5687 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5688
5689         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5690         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
5691         can_create_pseudo_p ().
5692
5693 2011-05-13  Richard Guenther  <rguenther@suse.de>
5694
5695         PR lto/48978
5696         * gimple.c (iterative_hash_gimple_type): Revert change in
5697         pointer target and function result and argument hashing.
5698
5699 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
5700
5701         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5702         (*movxf_internal_nointeger): Ditto.
5703         (*movdf_internal_rex64): Ditto.
5704         (*movdf_internal): Ditto.
5705         (*movdf_internal_nointeger): Ditto.
5706         (*movsf_internal): Ditto.
5707         (sincos splitters): Use can_create_pseudo ().
5708
5709 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
5710
5711         * config/i386/i386-opts.h: New.
5712         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5713         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5714         ix86_section_threshold): Remove.
5715         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
5716         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5717         OPT_mbranch_cost_.
5718         (ix86_option_override_internal): Don't decode strings for options
5719         other than -march=, -mtune= and -mfpmath=.  Don't allow for
5720         __attribute__ uses in remaining diagnostics for options with
5721         string arguments.  Don't check for integer arguments being negative.
5722         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5723         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5724         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5725         ix86_branch_cost, ix86_section_threshold): Remove.
5726         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5727         HeaderInclude.
5728         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5729         but not Var.
5730         (masm=): Use Enum and Init.
5731         (asm_dialect): New Enum and EnumValue entries.
5732         (mbranch-cost=): Use UInteger.
5733         (mlarge-data-threshold=): Use UInteger and Init.
5734         (mcmodel=): Use Enum and Init.
5735         (cmodel): New Enum and EnumValue entries.
5736         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5737         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5738         mregparm=): Use UInteger.
5739         (mstringop-strategy=): Use Enum and Init.
5740         (stringop_alg): New Enum and EnumValue entries.
5741         (mtls-dialect=): Use Enum and Init.
5742         (tls_dialect): New Enum and EnumValue entries.
5743         (mabi=): Use Enum and Init.
5744         (calling_abi): New Enum and EnumValue entries.
5745         (mveclibabi=): Use Enum and Init.
5746         (ix86_veclibabi): New Enum and EnumValue entries.
5747
5748 2011-05-13  Nick Clifton  <nickc@redhat.com>
5749
5750         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5751         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5752
5753 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5754
5755         PR middle-end/48984
5756         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5757         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5758         (gimple_boolify): Check for cast for boolean_type_node instead for
5759         BOOLEAN_TYPE.
5760
5761 2011-05-13  Richard Guenther  <rguenther@suse.de>
5762
5763         PR tree-optimization/48172
5764         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5765         multiplying by number of iterations for equal step.
5766         (vect_create_cond_for_alias_checks): Likewise.
5767
5768 2011-05-13  Andreas Schwab  <schwab@redhat.com>
5769
5770         * configure.ac: Use AS_HELP_STRING throughout.
5771         * configure: Regenerate.
5772
5773 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5774
5775         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5776         (ix86_emit_restore_regs_using_mov): Likewise.
5777         (ix86_emit_restore_sse_regs_using_mov): Likewise.
5778
5779 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
5780
5781         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5782         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5783         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5784         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5785         RTX_OK_FOR_OLO10_P): ...here.
5786         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5787         SYMBOLIC_CONST.
5788
5789 2011-05-12  Kai Tietz  <ktietz@redhat.com>
5790
5791         * gimplify.c (gimple_boolify): Re-boolify expression
5792         arguments even if expression type is of kind BOOLEAN_TYPE.
5793         (gimplify_boolean_expr): Removed.
5794         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5795         and XOR. Additional take care that we keep expression's type.
5796         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5797         of TRUTH_AND|OR|XOR_EXPR.
5798
5799 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5800
5801         PR tree-optimization/48975
5802         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5803         on all bbs here and free and clear ifc_bbs at the end.
5804
5805 2011-05-12  Richard Guenther  <rguenther@suse.de>
5806
5807         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5808         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
5809         until after simple checks.
5810         (gimple_types_compatible_p): Likewise.
5811         (iterative_hash_gimple_type): Always hash pointer targets
5812         and function return and argument types.
5813         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5814         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
5815         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5816         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
5817         completely in the simple compare section.
5818         (gimple_register_canonical_type): Query the cache again after
5819         registering.
5820
5821 2011-05-12  Richard Guenther  <rguenther@suse.de>
5822
5823         PR tree-optimization/48172
5824         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5825         the number of iterations from the segment size calculation.
5826         (vect_create_cond_for_alias_checks): Adjust.
5827
5828 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5829
5830         PR debug/48967
5831         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5832         if validate_subreg fails.
5833
5834 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
5835
5836         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5837         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5838         early.
5839
5840 2011-05-12  DJ Delorie  <dj@redhat.com>
5841
5842         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5843         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5844         created builtin into rx_builtins array.
5845         (rx_builtin_decl): New function.
5846         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
5847
5848 2011-05-12  DJ Delorie  <dj@redhat.com>
5849             Nick Clifton  <nickc@redhat.com>
5850
5851         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5852         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5853         (rx_is_legitimate_address): Add pre-decrement and post-increment
5854         addressing in HImode and QImode.  Fix test for out of range
5855         REG+INT addressing.
5856         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5857         (rx_align_for_label): Test label before extracting its usage count.
5858         (rx_adjust_insn_lengths): Fix selection of insn codes.
5859         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5860
5861 2011-05-11  Jason Merrill  <jason@redhat.com>
5862
5863         * tree.c (type_hash_canon): Use struct tree_type_non_common.
5864
5865 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5866
5867         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5868         reindent the subsequent block.
5869
5870 2011-05-11  Satoru Takabayashi  <satorux@google.com>
5871             Paul Pluzhnikov  <ppluzhnikov@google.com>
5872
5873         * doc/install.texi (Configuration): Document --with-linker-hash-style.
5874         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5875         * config.in: Add LINKER_HASH_STYLE.
5876         * configure.ac: Add --with-linker-hash-style.
5877         * configure: Regenerate.
5878
5879 2011-05-11  Richard Guenther  <rguenther@suse.de>
5880
5881         PR middle-end/48964
5882         * gimple.c (iterative_hash_canonical_type): Fix typo.
5883
5884 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
5885
5886         * config/i386/i386.c (legitimize_tls_address)
5887         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5888         expanders directly for TARGET_GNU2_TLS.  Determine pic and
5889         __tls_get_addr symbol reference here.  Update call to
5890         gen_tls_global_dynamic_{32,64} for added arguments.
5891         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5892         expanders directly for TARGET_GNU2_TLS.  Determine
5893         __tls_get_addr symbol reference here.  Update call to
5894         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
5895         unique UNSPEC REG_EQUIV to libcall block.
5896         (ix86_tls_get_addr): Declare static.
5897         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5898         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5899         Do not determine pic and __tls_get_addr symbol reference here. Do not
5900         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5901         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5902         (tls_global_dynamic_64): Add operand 2.  Do not determine
5903         __tls_get_addr symbol reference here.  Do not call
5904         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5905         (tls_local_dynamic_base64): Ditto for operand 1.
5906
5907 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5908
5909         * function.c (expand_function_start): Initialize stack_check_probe_note
5910         only if the generic stack checking mechanism is used.
5911
5912 2011-05-11  Richard Guenther  <rguenther@suse.de>
5913
5914         PR tree-optimization/15256
5915         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5916         (A & B) | C, combine (A op CST1) op CST2.
5917         (tree_ssa_forward_propagate_single_use_vars): Only bother to
5918         visit assigns that have uses.
5919
5920 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
5921
5922         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5923         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5924         (unpack_ts_type_common_value_fields): ...this.  Update comment.
5925         (unpack_value_fields): Adjust for renaming.
5926         (lto_input_ts_type_tree_pointers): Split into...
5927         (lto_input_ts_type_common_tree_pointer): ...this and...
5928         (lto_input_ts_type_non_common_tree_pointers): ...this.
5929         (lto_input_tree_pointers): Adjust for above split.
5930         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5931         (pack_ts_type_common_value_fields): ...this.  Update comment.
5932         (lto_output_ts_type_tree_pointers): Split into...
5933         (lto_output_ts_type_common_tree_pointers): ...this and...
5934         (lto_output_ts_type_non_common_tree_pointers): ...this.
5935         (lto_output_tree_pointers): Adjust for above split.
5936         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5937         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5938         * stor-layout.c (vector_type_mode): Adjust location of mode field.
5939         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5940         Define.
5941         (struct tree_type): Split into...
5942         (struct tree_type_common: ...this and...
5943         (struct tree_type_with_lang_specific): ...this and...
5944         (struct tree_type_non_common): ...this.  Adjust accessor macros
5945         accordingly.
5946         (TYPE_VALUES_RAW): Define.
5947         (union tree_node): Update for above changes.
5948         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5949         TS_TYPE_NON_COMMON.
5950         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5951         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5952         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5953         * treestructu.def (TS_TYPE): Remove.
5954         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5955         Define.
5956
5957 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
5958
5959         PR debug/48159
5960         * tree-ssa.c (reset_debug_uses): New function.
5961         * tree-flow.h (reset_debug_uses): New prototype.
5962         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5963         * tree-loop-distribution.c (generate_loops_for_partition): Call
5964         reset_debug_uses on the stmts that will be removed.  Keep around
5965         all debug stmts, don't count them as bits in partition bitmap.
5966         (generate_builtin): Don't count debug stmts or labels as bits in
5967         partition bitmap.
5968
5969 2011-05-11  Richard Guenther  <rguenther@suse.de>
5970
5971         * gimple.c (gimple_type_hash_1): Merge with ...
5972         (gimple_type_hash): ... this.
5973         (gtc_visit): Remove mode parameter and simplify accordingly.
5974         (gimple_types_compatible_p_1): Likewise.
5975         (gimple_types_compatible_p): Likewise.
5976         (iterative_hash_gimple_type): Likewise.
5977         (visit): Likewise.
5978         (gimple_type_eq): Adjust.
5979
5980 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5981
5982         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5983         enters the branch create an anti edge in the opposite direction
5984         to prevent the creation of reg-moves.
5985         * modulo-sched.c: Adjust comment to reflect the fact we are
5986         scheduling closing branch.
5987         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5988         (stage_count): New field in struct partial_schedule.
5989         (calculate_stage_count): New function.
5990         (normalize_sched_times): Rename to reset_sched_times and handle
5991         incrementing the sched time of the nodes by a constant value
5992         passed as parameter.
5993         (duplicate_insns_of_cycles): Skip closing branch.
5994         (sms_schedule_by_order): Schedule closing branch.
5995         (ps_insn_find_column): Handle closing branch.
5996         (sms_schedule): Call reset_sched_times and adjust the code to
5997         support scheduling of the closing branch.
5998         (ps_insert_empty_row): Update calls to normalize_sched_times
5999         and rotate_partial_schedule functions.
6000
6001 2011-05-11  Richard Guenther  <rguenther@suse.de>
6002
6003         PR middle-end/48953
6004         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
6005
6006 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
6007
6008         * opts.c (finish_options): Move warning settings from process_options.
6009         * toplev.c (process_options): Move warning settings to finish_options.
6010
6011 2011-05-11  Richard Guenther  <rguenther@suse.de>
6012
6013         PR tree-optimization/18041
6014         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
6015         (simplify_bitwise_binary): ... this.  Handle operand conversions
6016         by applying them to the result instead.
6017         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
6018
6019 2011-05-11  Richard Guenther  <rguenther@suse.de>
6020
6021         * gimple.c (gimple_canonical_types_compatible_p): Split out
6022         from gimple_types_compatible_p and friends.  Do not recurse
6023         to pointed-to types.
6024         (gimple_canonical_type_eq): Use it.
6025         (iterative_hash_canonical_type): Split out from
6026         iterative_hash_gimple_type and friends.  Do not recurse
6027         to pointed-to types.
6028         (gimple_canonical_type_hash): Use it, allocate the hash here.
6029
6030 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6031
6032         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6033         recognizing doloop.
6034
6035 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6036
6037         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6038         instead of PREV_INSN.
6039
6040 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6041
6042         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6043         * loop-doloop.c (doloop_condition_get): Likewise.
6044         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6045         (doloop_end): New.
6046         * config/arm/arm.md (*addsi3_compare0): Remove "*".
6047
6048 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
6049
6050         * tree.def (CASE_LABEL_EXPR): Add an operand.
6051         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6052
6053 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6054
6055         * c-decl.c (c_override_global_bindings_to_false): Remove.
6056         (global_bindings_p): Don't check
6057         c_override_global_bindings_to_false.
6058         * c-tree.h (c_override_global_bindings_to_false): Remove.
6059         * c-typeck.c (composite_type): Don't set
6060         c_override_global_bindings_to_false.
6061
6062 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
6063
6064         PR target/48857, 48495
6065         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6066         (VSX_MODE): Ditto.
6067         (VSX_MOVE_MODE): Ditto.
6068         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6069         VSX vector types.  Add V2DImode.
6070         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6071         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6072         (MODES_TIEABLE_P): Ditto.
6073
6074         * config/rs6000/rs6000.c (rs6000_emit_move): Use
6075         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6076         VSX_VECTOR_MODE.
6077         (init_cumulative_args): Ditto.
6078         (rs6000_function_arg_boundary): Ditto.
6079         (rs6000_function_arg_advance_1): Ditto.
6080         (rs6000_function_arg): Ditto.
6081         (rs6000_function_ok_for_sibcall): Ditto.
6082         (emit_frame_save): Ditto.
6083         (rs6000_function_value): Ditto.
6084         (rs6000_libcall_value): Ditto.
6085
6086 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6087
6088         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6089         i386/darwin-lib.h to $libgcc_tm_file.
6090         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6091
6092 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6093
6094         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6095
6096 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6097
6098         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
6099         * config/rs6000/rs6000-tables.opt: New file (generated).
6100         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6101         rs6000/rs6000-tables.opt to extra_options.
6102         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6103         * config/rs6000/rs6000.c (rs6000_select): Remove.
6104         (processor_target_table): Move contents to rs6000-cpus.def.
6105         (darwin_rs6000_override_options): Check
6106         global_options_set.x_rs6000_cpu_index instead of
6107         rs6000_select[1].string.
6108         (rs6000_option_override_internal): Likewise.
6109         (rs6000_handle_option): Don't assert that global structures are in
6110         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
6111         (rs6000_default_cpu): New variable.
6112         (rs6000_file_start): Set it instead of local default_cpu.  Check
6113         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6114         global_options_set.x_rs6000_tune_index instead of rs6000_select.
6115         (rs6000_darwin_file_start): Check rs6000_default_cpu and
6116         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6117         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6118         rs6000_select): Remove.
6119         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6120         Remove.
6121         (mcpu=, mtune=): Use Var, Init, Enum and Save.
6122         * config/rs6000/t-rs6000
6123         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6124         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6125         global_options_set.x_rs6000_cpu_index instead of
6126         rs6000_select[1].string.
6127         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6128         global_options_set.x_rs6000_cpu_index instead of
6129         rs6000_select[1].string.
6130
6131 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6132
6133         * config.gcc (libgcc_tm_file): Define instead of including files
6134         from ../../libgcc/config/ in tm_file.
6135         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6136         * configure: Regenerate.
6137         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6138         libgcc_tm.h, cs-libgcc_tm.h): New.
6139         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6140         (clean): Remove libgcc_tm.h.
6141         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6142         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6143         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6144
6145 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
6146
6147         PR target/48896
6148         * config/avr/avr.c (avr_ret_register): Return unsigned int
6149         instead of int.
6150         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6151         it to avr_libcall_value.
6152         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6153         expand_expr.
6154         (avr_expand_binop_builtin): Ditto.
6155         (avr_expand_unop_builtin): Ditto.
6156
6157 2011-05-10  DJ Delorie  <dj@redhat.com>
6158
6159         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6160         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6161         * config/rx/rx.c (rx_align_for_label): Add label and
6162         uses_threshold parameters.  Do not align when the label is not
6163         used enough.
6164         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6165
6166 2011-05-10  Richard Guenther  <rguenther@suse.de>
6167
6168         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6169         a series of conversions and apply foldings similar to what
6170         fold-const does.
6171         (tree_ssa_forward_propagate_single_use_vars): Call it.
6172
6173 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
6174
6175         PR tree-optimization/48611
6176         PR tree-optimization/48794
6177         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6178         referenced from RESX or EH_DISPATCH arguments.
6179
6180         PR debug/48928
6181         * dfp.c (decimal_to_decnumber): Handle conversion from
6182         dconst{1,2,m1,half}.
6183
6184 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6185
6186         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6187         for !flag_prefer_avx128.
6188         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6189
6190 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
6191
6192         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6193         (fold_ternary_loc): Use expr_location_or.
6194
6195 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6196
6197         PR debug/48853
6198         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6199         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6200         Pmode and mem_mode is not VOIDmode.
6201
6202 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
6203
6204         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6205         TYPE_QUAL_RESTRICT): Convert to enum.
6206
6207 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6208
6209         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6210         (const_pow2_1_to_8_operand): Ditto.
6211         (const_pow2_1_to_128_operand): Ditto.
6212         (const_pow2_1_to_32768_operand): Ditto.
6213         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6214         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
6215         in insn constraint to check integer value of operand 3.
6216         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6217
6218         (PINSR_MODE): New mode iterator.
6219         (sse2p4_1): New mode attribute.
6220         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6221         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6222         iterator.  Use const_int_operand instead of
6223         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
6224         exact_log2 in insn constraint to check integer value of operand 3.
6225
6226 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6227
6228         * config/i386/sse.md (blendbits): Remove mode attribute.
6229         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6230         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6231         Check integer value of operand 3 in insn constraint.
6232
6233 2011-05-09  Richard Guenther  <rguenther@suse.de>
6234
6235         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6236         for diagnostics.
6237         (lto_symtab_merge): Likewise.  Do not register types here.
6238         (lto_symtab_merge_decls_2): Likewise.
6239         (lto_symtab_merge_decls_1): Likewise.
6240         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6241         * gimple.c (enum gtc_mode): Declare.
6242         (gimple_types_compatible_p): Make static.
6243
6244 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6245
6246         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6247         temporary register to match Pmode.
6248
6249 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6250
6251         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6252         and *vec_concatv4si_1_avx.
6253
6254 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6255
6256         PR rtl-optimization/48927
6257         * ira-conflicts.c (commutative_constraint_p): Use
6258         recog_data.alternative_enabled_p to disable alternatives where
6259         "enabled" attribute is false.
6260         (get_dup_num): Ditto.
6261         * ira-lives.c (single_reg_class): Ditto.
6262         (ira_implicitly_set_insn_hard_regs): Ditto.
6263
6264 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
6265
6266         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6267         (dataflow_set_preserve_mem_locs): Likewise.
6268
6269 2011-05-09  Philipp Thomas  <pth@suse.de>
6270
6271         * config/mep/mep.c (mep_validate_vliw): Syntax description
6272         should not be translated.
6273
6274 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
6275
6276         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6277         * config/mips/mips-tables.opt: New file (generated).
6278         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6279         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6280         MIPS_ARCH_OPTION_NATIVE): Define.
6281         * config/mips/mips.c (mips_cpu_info_table): Move contents to
6282         mips-cpus.def.
6283         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6284         mips_parse_cpu): Remove.
6285         (mips_cpu_info_from_opt, mips_default_arch): New.
6286         (mips_handle_option): Don't assert that global structures are in
6287         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6288         (mips_option_override): Use new variables and functions to set
6289         state of these options.  Use strcmp to check for individual CPU names.
6290         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6291         definition.
6292         * config/mips/mips.opt (march=): Use ToLower and Enum.
6293         (mips): Use ToLower, Enum and Var.
6294         (mtune=): Use ToLower and Enum.
6295         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6296
6297 2011-05-08  Jan Hubicka  <jh@suse.cz>
6298
6299         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6300         Arrange type pairs to be UID ordered.
6301         (gimple_lookup_type_leader): Make inline.
6302
6303 2011-05-09  Nick Clifton  <nickc@redhat.com>
6304
6305         PR target/48899
6306         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6307         PROCESSOR_DEFAULT.
6308
6309         PR target/48897
6310         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6311         variable 's'.
6312
6313 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
6314
6315         * combine.c (simplify_comparison): Abstract out parts into...
6316         (simplify_compare_const): ... new function.
6317         (try_combine): Generalize parallel arithmetic/compare combining
6318         to call simplify_compare_const() and CANONICALIZE_COMPARE().
6319
6320 2011-05-08  Jan Hubicka  <jh@suse.cz>
6321
6322         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6323         (cgraph_create_virtual_clone): Call hooks once virtual clone
6324         is finished.
6325         * cgraph.h (cgraph_clone_node): Update prototype.
6326         * ipa-cp.c (ipcp_estimate_growth): Use
6327         estimate_ipcp_clone_size_and_time.
6328         * ipa-inline-transform.c (clone_inlined_nodes): Update.
6329         * lto-cgraph.c (input_node): Update.
6330         * ipa-inline.c (recursive_inlining): Update.
6331         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6332         (evaluate_conditions_for_known_args): Break out from ...
6333         (evaluate_conditions_for_edge): ... here.
6334         (evaluate_conditions_for_ipcp_clone): New function.
6335         (inline_node_duplication_hook): Update clone summary based
6336         on parameter map.
6337         (estimate_callee_size_and_time): Rename to ...
6338         (estimate_node_size_and_time): take NODE instead of EDGE;
6339         take POSSIBLE_TRUTHS as argument.
6340         (estimate_callee_size_and_time): Update.
6341         (estimate_ipcp_clone_size_and_time): New function.
6342         (do_estimate_edge_time): Update.
6343
6344 2011-05-08  Richard Guenther  <rguenther@suse.de>
6345
6346         PR middle-end/48908
6347         PR middle-end/48905
6348         * expmed.c (expand_shift_1): Compute adjusted constant shift
6349         amount manually.
6350
6351 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
6352
6353         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6354
6355 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
6356
6357         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6358
6359 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
6360
6361         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6362
6363 2011-05-07  Jan Hubicka  <jh@suse.cz>
6364
6365         * ipa-inline-transform.c (inline_call): Account when program size
6366         decreases.
6367         * ipa-inline.c (relative_time_benefit): New function.
6368         (edge_badness): Reorganize to be power 2 based; fix thinko when
6369         computing badness for negative growth; update comments to match
6370         reality; better dumps.
6371
6372 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6373
6374         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6375         type to bool and adjust comment.
6376         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6377         (fold_mathfn_compare): Remove calls to global_bindings_p.
6378         (fold_inf_compare): Likewise.
6379         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6380         * c-tree.h (global_bindings_p): Adjust prototype.
6381         * c-decl.c (global_bindings_p): Return bool and simplify.
6382
6383 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
6384
6385         PR tree-optimization/48837
6386         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6387         when accumulator transformation is performed.
6388
6389 2011-05-06  Jan Hubicka  <jh@suse.cz>
6390
6391         * i386.h (ix86_tune_indices): Add
6392         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6393         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6394         * i386.c (initial_ix86_tune_features): Add
6395         X86_SOFTARE_PREFETCHING_BENEFICIAL.
6396         (software_prefetching_beneficial_p): Remove predicate.
6397         (ix86_option_override_internal): Use new macro.
6398
6399 2011-05-06  Jan Hubicka  <jh@suse.cz>
6400
6401         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6402
6403 2011-05-06  Jan Hubicka  <jh@suse.cz>
6404
6405         * cgraph.c (cgraph_add_thunk): Create real function node instead
6406         of alias node; finalize it and mark needed/reachale; arrange visibility
6407         to be right and add it into the corresponding same comdat group list.
6408         (dump_cgraph_node): Dump thunks.
6409         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6410         cgraph_function_with_gimple_body_p,
6411         cgraph_first_function_with_gimple_body,
6412         cgraph_next_function_with_gimple_body): New functions.
6413         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6414         New macros.
6415         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6416         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6417         * cgraphunit.c (cgraph_finalize_function): Only look into possible
6418         devirtualization when optimizing.
6419         (verify_cgraph_node): Verify thunks.
6420         (cgraph_analyze_function): Analyze thunks.
6421         (cgraph_mark_functions_to_output): Output thunks only in combination
6422         with function they are assigned to.
6423         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6424         alias into normal node.
6425         (assemble_thunks): New functoin.
6426         (cgraph_expand_function): Use it.
6427         * lto-cgraph.c (lto_output_node): Stream thunks.
6428         (input_overwrite_node): Stream in thunks.
6429         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6430         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6431         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6432         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6433         (inline_analyze_function): Do not care about thunk jump functions.
6434         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6435         * ipa-prop.c (ipa_prop_write_jump_functions): Use
6436         cgraph_function_with_gimple_body_p.
6437         * passes.c (do_per_function_toporder): Use
6438         cgraph_function_with_gimple_body_p.
6439         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6440         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6441         (function_called_by_processed_nodes_p): Likewise.
6442
6443 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6444
6445         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6446         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6447         entries.
6448         (mabi=): Replace with separate entries for mabi=altivec,
6449         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6450         mabi=ieeelongdouble and mabi=ibmlongdouble.
6451         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6452         check for -mabi=spe without SPE ABI support here.
6453         (rs6000_handle_option): Replace OPT_mabi_ handling with
6454         OPT_mabi_altivec and OPT_mabi_spe handling.
6455
6456 2011-05-06  Cary Coutant  <ccoutant@google.com>
6457
6458         * dwarf2out.c (contains_subprogram_definition): New function.
6459         (should_move_die_to_comdat): Call it.
6460
6461 2011-05-06  Jeff Law  <law@redhat.com>
6462
6463         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6464         remove_ctrl_stmt_and_useless_edges.
6465         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6466         (fixup_template_block, thread_single_edge): Likewise.
6467         (mark_threaded_blocks): Use THREAD_TARGET.
6468
6469 2011-05-06  Alan Modra  <amodra@gmail.com>
6470
6471         PR target/48900
6472         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6473         const0_rtx as the arg to the dummy __tls_get_addr libcall.
6474
6475 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6476
6477         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6478         constraint modifier to "r".
6479
6480 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6481
6482         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6483         fall through for OPT_mcmodel_.
6484
6485 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6486
6487         * config/s390/s390.c (s390_asm_trampoline_template): Comment
6488         instruction sizes.
6489         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6490
6491 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6492
6493         PR target/47930
6494         * config/arm/arm.opt (marm): Document it.
6495         (mthumb): Reject negative variant.
6496
6497 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6498
6499         PR target/48898
6500         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6501         Fix typo in "ccvt" variable name.
6502
6503 2011-05-06  Tristan Gingold  <gingold@adacore.com>
6504
6505         PR target/48895
6506         * config/vms/vms-ar.c (main): Remove cwd variable.
6507
6508 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
6509
6510         PR debug/48902
6511         * var-tracking.c (prepare_call_arguments): Move else before #endif.
6512
6513 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
6514
6515         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6516         * gimplify.c (gimplify_switch_expr): Likewise.
6517         * omp-low.c (expand_omp_sections): Likewise.
6518         * tree-eh.c (lower_try_finally_switch): Likewise.
6519         (lower_eh_dispatch): Likewise.
6520         * tree.h (build_case_label): Declare.
6521         * tree.c (build_case_label): Define.
6522
6523 2011-05-05  Jason Merrill  <jason@redhat.com>
6524
6525         PR c++/40975
6526         * tree-inline.c (copy_tree_r): Use copy_statement_list.
6527         (copy_statement_list): Don't recurse.
6528         * stor-layout.c (copy_self_referential_tree_r): Don't allow
6529         STATEMENT_LIST.
6530
6531 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6532
6533         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6534         through from -mfpu= handling.
6535         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6536
6537 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
6538
6539         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6540         POST_MODIFY.
6541
6542 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
6543
6544         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6545         for 11.31.
6546         (hppa[12]*-*-hpux11*): Ditto.
6547         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6548         * config/ia64/hpux-unix2003.h: New.
6549         * config/pa/pa-hpux1131.opt: New.
6550         * config/pa/pa-hpux1131.h: New.
6551         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6552         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6553         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6554
6555 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6556
6557         PR debug/48853
6558         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6559         instead of mode as 3rd argument to recursive call.
6560         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6561         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6562         VOIDmode.
6563         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6564         don't give up if mode is Pmode and mem_mode is not VOIDmode.
6565         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6566         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6567
6568 2011-05-05  Julian Brown  <julian@codesourcery.com>
6569
6570         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6571         parenthesis in D-register case.
6572
6573 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6574
6575         * opt-functions.awk (var_type_struct): Handle Enum options.
6576         * optc-gen.awk: Don't check range of variables of character type.
6577         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6578         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6579         rs6000_sdata_name, rs6000_explicit_options): Remove.
6580         (rs6000_option_override_internal): Check for -malign-power here.
6581         Use global_options_set instead of rs6000_explicit_options.
6582         (rs6000_parse_fpu_option): Remove.
6583         (rs6000_handle_option): Access variables via opts and opts_set
6584         pointers.  Use error_at and warning_at.  Add fall-through
6585         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6586         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6587         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6588         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6589         here.  Don't use rs6000_parse_fpu_option.
6590         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6591         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6592         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6593         (mrecip=): Use Var.
6594         (mspe): Use Var and Save.
6595         (mtraceback=): Use Enum and Var.
6596         (rs6000_traceback_type): New Enum and EnumValue entries.
6597         (mfloat-gprs=): Use Enum, Var and Save.
6598         (rs6000_float_gprs): New Enum and EnumValue entries.
6599         (mlong-double-): use Var and Save.
6600         (msched-costly-dep=, minsert-sched-nops=): Use Var.
6601         (malign-): Use Enum and Var.
6602         (rs6000_alignment_flags): New Enum and EnumValue entries.
6603         (mfpu=): Use Enum.
6604         (fpu_type_t): New Enum and EnumValue entries.
6605         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6606         global_options_set instead of rs6000_explicit_options.
6607         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6608         global_options_set instead of rs6000_explicit_options.
6609         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6610         global_options_set instead of rs6000_explicit_options.
6611         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6612         global_options_set instead of rs6000_explicit_options.
6613         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6614         global_options_set instead of rs6000_explicit_options.
6615         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6616         global_options_set instead of rs6000_explicit_options.
6617         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6618         definition.
6619         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6620         global_options_set instead of rs6000_explicit_options.
6621         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6622         (rs6000_cmodel): New Enum and EnumValue entries.
6623         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6624         global_options_set instead of rs6000_explicit_options.
6625         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6626         (mtls-size=): Use Enum and Var.
6627         (rs6000_tls_size): New Enum and EnumValue entries.
6628
6629 2011-05-05  Michael Matz  <matz@suse.de>
6630
6631         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6632         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6633         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6634         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6635         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6636         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6637         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6638         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6639         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6640         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6641         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6642         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6643         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6644         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6645         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6646         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6647
6648 2011-05-05  Richard Guenther  <rguenther@suse.de>
6649
6650         * expmed.c (expand_variable_shift): Rename to ...
6651         (expand_shift_1): ... this.  Take an expanded shift amount.
6652         For rotates recurse directly not building trees for the shift amount.
6653         (expand_variable_shift): Wrap around expand_shift_1.
6654         (expand_shift): Adjust.
6655
6656 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6657
6658         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6659
6660 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
6661
6662         * tree.h (get_pending_sizes): Remove prototype.
6663         (put_pending_size): Likewise.
6664         (put_pending_sizes): Likewise.
6665         * stor-layout.c (pending_sizes): Delete.
6666         (get_pending_sizes): Likewise.
6667         (put_pending_size): Likewise.
6668         (put_pending_sizes): Likewise.
6669         (variable_size): Do not call put_pending_size and tidy up.
6670         * function.h (struct function): Remove dont_save_pending_sizes_p.
6671         * lto-streamer-in.c (input_function): Do not stream it.
6672         * lto-streamer-out.c (output_function): Likewise.
6673         * tree-inline.c (initialize_cfun): Do not copy it.
6674         * c-decl.c (store_parm_decls): Do not set it.
6675         * omp-low.c (create_task_copyfn): Likewise.
6676         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6677
6678 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
6679
6680         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6681         conditions.
6682         (*movdf_internal): Ditto.
6683         (*movdf_internal_nointeger): Ditto.
6684         (*movsf_internal): Ditto.
6685
6686 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6687
6688         * c-decl.c (finish_decl): Don't call get_pending_sizes.
6689         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
6690         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
6691         (c_variable_size): Remove.
6692         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
6693         call put_pending_sizes.
6694         (get_parm_info): Add parameter expr.  Use it to set
6695         arg_info->pending_sizes.
6696         (store_parm_decls): Use arg_info->pending_sizes instead or calling
6697         get_pending_sizes.
6698         * c-parser.c (c_parser_parms_declarator): Update call to
6699         c_parser_parms_list_declarator.
6700         (c_parser_parms_list_declarator): Take parameter expr.  Update
6701         call to push_parm_decl.  Update recursive call.  Don't call
6702         get_pending_sizes.  Update calls to get_parm_info.
6703         (c_parser_objc_method_definition): Update calls to
6704         c_parser_objc_method_decl and objc_start_method_definition.
6705         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6706         (c_parser_objc_method_decl): Add parameter expr.  Update call to
6707         grokparm.
6708         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6709         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6710         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6711
6712 2011-05-05  Michael Hope  <michael.hope@linaro.org>
6713
6714         PR pch/45979
6715         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6716         __ARM_EABI__ hosts.
6717
6718 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6719
6720         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6721         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6722         (spu_output_mi_thunk): New function.
6723
6724 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6725
6726         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6727         targetm.asm_out.print_operand.
6728         * config/sol2.c: Include target.h.
6729
6730 2011-05-04  Jan Hubicka  <jh@suse.cz>
6731
6732         * ipa-inline.c (reset_edge_caches): New function.
6733         (update_caller_keys): Add check_inlinablity_for; do not
6734         reset edge caches; remove now unnecesary loop.
6735         (update_callee_keys): Add comments; reset node_growth_cache of callee.
6736         (update_all_callee_keys): Likewise.
6737         (inline_small_functions): Sanity check cache; update code
6738         recomputing it.
6739
6740 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
6741
6742         PR rtl-optimization/47612
6743         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6744         as the last insn of the sequence to be moved.
6745
6746 2011-05-04  Tobias Burnus  <burnus@net-b.de>
6747
6748         PR fortran/48864
6749         * doc/invoke.texi (Ofast): Document that it
6750         enables Fortran's -fno-protect-parens.
6751
6752 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6753
6754         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6755
6756 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
6757
6758         * stor-layout.c (variable_size): Do not issue errors.
6759
6760 2011-05-04  Richard Guenther  <rguenther@suse.de>
6761
6762         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6763         for array-ref indices.
6764         (tree_coverage_counter_addr): Likewise.
6765         (build_fn_info_type): Use size_int for index types.
6766         (build_gcov_info): Likewise.
6767
6768 2011-05-04  Richard Guenther  <rguenther@suse.de>
6769
6770         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6771         to build_int_cst.
6772         * c-typeck.c (really_start_incremental_init): Use bitsize_int
6773         for constructor indices.
6774         (push_init_level): Likewise.
6775
6776 2011-05-04  Richard Guenther  <rguenther@suse.de>
6777
6778         * explow.c (promote_mode): Move variable declarations before code.
6779
6780 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
6781
6782         * tree.h (build_function_type_array): Declare.
6783         (build_varargs_function_type_array): Declare.
6784         (build_function_type_vec, build_varargs_function_type_vec): Define.
6785         * tree.c (build_function_type_array_1): New function.
6786         (build_function_type_array): New function.
6787         (build_varargs_function_type_array): New function.
6788
6789 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
6790
6791         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6792         before setting STMT_VINFO_TYPE.
6793
6794 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6795
6796         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6797         instead of spu_pass_by_reference.
6798
6799 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6800
6801         * calls.c (emit_library_call_value_1): Invoke
6802         promote_function_mode hook on libcall arguments.
6803         * explow.c (promote_function_mode, promote_mode): Handle TYPE
6804         argument being NULL.
6805         * targhooks.c (default_promote_function_mode): Lisewise.
6806         * config/s390/s390.c (s390_promote_function_mode): Likewise.
6807         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6808
6809         * doc/tm.texi: Document that TYPE argument might be NULL.
6810
6811 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6812
6813         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6814
6815 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6816
6817         From Bernd Schmidt
6818         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6819
6820 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6821
6822         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6823         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6824         Move ...
6825         * mips-tfile.c: ... here.
6826         Don't include coretypes.h, tm.h, filenames.h.
6827         (saber_stop): Remove definition and all calls.
6828         [__SABER__]: Remove.
6829         (__LINE__): Remove default.
6830         (Size_t, Ptrdiff_t): Remove definitions.
6831         Replace by size_t, ptrdiff_t.
6832         [!MIPS_DEBUGGING_INFO]: Remove.
6833         (SHASH_SIZE, THASH_SIZE): Remove defaults.
6834         (progname): Add const.
6835         (STATIC): Remove.
6836         Replace all uses by static.
6837         (ALIGN_SYMTABLE_OFFSET): Remove default.
6838         * mips-tdump.c: Don't include coretypes.h, tm.h.
6839         Remove !MIPS_IS_STAB guard.
6840         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6841         $(TM_H), filenames.h dependencies.
6842         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6843
6844 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6845
6846         From Jie Zhang
6847         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6848         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6849
6850 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6851
6852         From Bernd Schmidt
6853         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6854         account and save/restore RETS.
6855         (PROFILE_BEFORE_PROLOGUE): Define.
6856         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
6857         the push insn to use predecrement.
6858
6859 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6860
6861         From Jie Zhang
6862         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6863
6864 2011-05-04  Nick Clifton  <nickc@redhat.com>
6865
6866         * config/mn10300/mn10300.c: Include cfgloop.h.
6867         (DUMP): New macro.
6868         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
6869         Lcc or a FLcc insn into the instruction stream.
6870         (mn10300_block_contains_call): New function.  Returns true if the
6871         given basic block contains a CALL insn.
6872         (mn10300_loop_contains_call_insn): New function.  Returns true if
6873         the given loop contains a CALL insn.
6874         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
6875         to use the SETLB and Lcc or FLcc insns.
6876         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6877         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6878         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
6879         disable the SETLB optimization.
6880         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6881         __SETLB__ or __NO_SETLB__.
6882         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6883         (movsf_internal): Handle MDR register.
6884         (cmpsi): Make visible.
6885         (setlb): New pattern.
6886         (Lcc): New pattern.
6887         (FLcc): New pattern.
6888
6889 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6890
6891         PR target/48860
6892         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6893         for reg<->xmm moves.
6894         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6895         (vec_concatv2di_rex64_sse): Ditto.
6896         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6897         (*vec_extractv2di_1_rex64): Ditto.
6898
6899         Revert:
6900         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6901
6902         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6903         reg<->xmm moves.
6904         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6905
6906 2011-05-04  Richard Guenther  <rguenther@suse.de>
6907
6908         * tree.h (int_const_binop): Remove notrunc argument.
6909         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
6910         create integer constants that are properly truncated.
6911         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6912         (const_binop): Remove zero notrunc argument to int_const_binop.
6913         (size_binop_loc): Likewise.
6914         (fold_div_compare): Likewise.
6915         (maybe_canonicalize_comparison_1): Likewise.
6916         (fold_comparison): Likewise.
6917         (fold_binary_loc): Likewise.
6918         (multiple_of_p): Likewise.
6919         * expr.c (store_constructor): Likewise.
6920         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6921         (maybe_fold_stmt_addition): Likewise.
6922         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6923         * stor-layout.c (layout_type): Likewise.
6924         * tree-data-ref.c (tree_fold_divides_p): Likewise.
6925         * tree-sra.c (build_ref_for_offset): Likewise.
6926         (build_user_friendly_ref_for_offset): Likewise.
6927         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6928         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6929         * tree-ssa-loop-niter.c (inverse): Likewise.
6930         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6931         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6932         * tree-switch-conversion.c (check_range): Likewise.
6933         (build_constructors): Likewise.
6934         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6935         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6936         (extract_range_from_assert): Likewise.
6937         (vrp_int_const_binop): Likewise.
6938         (extract_range_from_binary_expr): Likewise.
6939         (extract_range_from_unary_expr): Likewise.
6940         (check_array_ref): Likewise.
6941         (find_case_label_range): Likewise.
6942         (simplify_div_or_mod_using_ranges): Likewise.
6943         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6944         comparing case labels for merging.
6945
6946 2011-05-03  Mark Wielaard  <mjw@redhat.com>
6947
6948         * dwarf2out.c (debug_str_hash_forced): Removed.
6949         (gen_label_for_indirect_string): Removed.
6950         (get_debug_string_label): Removed.
6951         (AT_string_form): Generate label directly.
6952         (output_indirect_string): Test indirect_string_node for
6953         DW_FORM_strp instead of checking label and refcount.
6954         (prune_indirect_string): Removed.
6955         (prune_unused_types): Don't check debug_str_hash_forced or
6956         call prune_indirect_string.
6957
6958 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6959
6960         PR other/48093
6961         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6962
6963 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6964
6965         PR debug/47994
6966         PR debug/47919
6967         * combine.c (try_combine): Skip debug insns at m_split tests.
6968
6969 2011-04-26  Mark Wielaard  <mjw@redhat.com>
6970
6971         PR42288
6972         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6973         when info_section_emitted.
6974
6975 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
6976
6977         * config/mips/mips-opts.h: New.
6978         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6979         to mips-opts.h.
6980         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6981         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6982         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
6983         via opts pointer.
6984         * config/mips/mips.h (enum mips_code_readable_setting): Move to
6985         mips-opts.h.
6986         (mips_abi, mips_code_readable): Don't declare.
6987         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6988         (mabi=): Use Enum and Var.
6989         (mips_abi): New Enum and EnumValue entries.
6990         (mcode-readable=): Use Enum and Var.
6991         (mips_code_readable_setting): New Enum and EnumValue entries.
6992         (mr10k-cache-barrier=): Use Enum and Var.
6993         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6994
6995 2011-05-03  Jan Hubicka  <jh@suse.cz>
6996
6997         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6998         replace hash by pointer map.
6999         (cgraph_node_set_element_def, cgraph_node_set_element,
7000         const_cgraph_node_set_element, varpool_node_set_element_def,
7001         varpool_node_set_element, const_varpool_node_set_element): Remove.
7002         (free_cgraph_node_set, free_varpool_node_set): New function.
7003         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
7004         * tree-emutls.c: Free varpool node set.
7005         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
7006         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7007         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
7008         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7009         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
7010         Move here from ipa.c; implement using pointer_map
7011         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
7012         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7013         debug_cgraph_node_set, varpool_node_set_new,
7014         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7015         dump_varpool_node_set, debug_varpool_node_set):
7016         Move to ipa-uitls.c.
7017         * passes.c (ipa_write_summaries): Update.
7018
7019 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7020
7021         From Mike Frysinger:
7022         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7023         bf542/bf544/bf547/bf548/bf549.
7024
7025 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
7026
7027         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7028
7029 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7030
7031         From Bernd Schmidt:
7032         * config/bfin/bfin.md (MOVCC): New mode_macro.
7033         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7034         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
7035         comments from generated assembly.
7036
7037 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7038
7039         From Bernd Schmidt
7040         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7041         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7042         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7043         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7044         * config/bfin/lib1funcs.asm (___muldi3): New function.
7045
7046 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7047
7048         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7049         build_function_type_list instead of build_function_type.
7050         Rearrange initialization of `args' to do so.
7051
7052 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7053
7054         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7055         instead of build_function_type.
7056
7057 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7058
7059         * config/rs6000/rs6000.c (spe_init_builtins): Call
7060         build_function_type_list instead of build_function_type.
7061         (paired_init_builtins, altivec_init_builtins): Likewise.
7062         (builtin_function_type): Likewise.
7063
7064 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7065
7066         * config/sh/sh.c (sh_media_init_builtins): Call
7067         build_function_type_list instead of build_function_type.
7068
7069 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7070
7071         * config/sparc/sparc.c (sparc_file_end): Call
7072         build_function_type_list instead of build_function_type.
7073
7074 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7075
7076         * config/alpha/alpha.c (alpha_init_builtins): Call
7077         build_function_type_list instead of build_function_type.
7078
7079 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7080
7081         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7082         build_function_type_list instead of build_function_type.
7083
7084 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7085
7086         * config/iq2000/i2000.c (iq2000_init_builtins): Call
7087         build_function_type_list instead of build_function_type.
7088         Delete `endlink' variable.
7089
7090 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7091
7092         * config/avr/avr.c (avr_init_builtins): Call
7093         build_function_type_list instead of build_function_type.
7094
7095 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7096
7097         * config/picochip/picochip.c (picochip_init_builtins): Call
7098         build_function_type_list instead of build_function_type.
7099         Delete `endlink' variable.
7100
7101 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7102
7103         * config/bfin/bfin.c (bfin_init_builtins): Call
7104         build_function_type_list instead of build_function_type.
7105
7106 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7107
7108         From Bernd Schmidt
7109         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7110         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
7111
7112 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7113
7114         From Jie Zhang:
7115         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7116         libbffastfp overrides libgcc when -mfast-fp.
7117
7118 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7119
7120         Originally from Bernd Schmidt
7121         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7122         * config/bfin/bfin.c (override_options): Test it and error if
7123         TARGET_FDPIC.
7124
7125 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7126
7127         Originally From Bernd Schmidt
7128         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7129         FD-PIC.
7130
7131 2011-05-03  Jeff Law  <law@redhat.com>
7132
7133         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7134         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7135         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7136         than accessing AUX field directly.  Free the AUX field before
7137         clearing it.
7138         (thread_block, thread_through_loop_header): Likewise.
7139         (thread_single_edge, mark_threaded_blocks): Likewise.
7140         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
7141         (register_jump_thread): Do not attempt to thread to a NULL edge.
7142
7143 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
7144
7145         * function.c (init_function_start): Call decide_function_section.
7146         * varasm.c (decide_function_section): New function.
7147         (assemble_start_function): When not using
7148         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7149         or first_function_block_is_cold.
7150         * rtl.h (decide_function_section): Declare.
7151
7152 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
7153             Jakub Jelinek  <jakub@redhat.com>
7154
7155         PR target/48774
7156         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7157         only succeed if req_mode is the same as set_mode.
7158
7159 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
7160
7161         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7162         * genemit.c (gen_exp): Handle RETURN.
7163         * emit-rtl.c (verify_rtx_sharing): Likewise.
7164         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7165         * rtl.c (copy_rtx): RETURN is shared.
7166         * rtl.h (enum global_rtl_index): Add GR_RETURN.
7167         (ret_rtx): New.
7168         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7169         * config/s390/s390.c (s390_emit_epilogue): Likewise.
7170         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7171         * config/cris/cris.c (cris_expand_return): Likewise.
7172         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7173         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7174         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7175         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7176         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7177         Likewise.
7178         * config/v850/v850.c (expand_epilogue): Likewise.
7179         * config/bfin/bfin.c (bfin_expand_call): Likewise.
7180         * config/arm/arm.md (epilogue): Likewise.
7181         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7182         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7183         variable to ret_reg.
7184
7185 2011-05-03  Richard Guenther  <rguenther@suse.de>
7186
7187         PR lto/48846
7188         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7189         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7190         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7191
7192 2011-05-03  Richard Guenther  <rguenther@suse.de>
7193
7194         * c-decl.c (grokdeclarator): Instead of looking at
7195         TREE_OVERFLOW check if the constant fits in the index type.
7196
7197 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7198
7199         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7200         (vec_store_lanes<mode><mode>): Likewise.
7201
7202 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7203
7204         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7205         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7206         convert_optab_index values.
7207         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7208         * genopinit.c (optabs): Initialize the new optabs.
7209         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7210         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7211         (expand_STORE_LANES): New functions.
7212         * tree.h (build_array_type_nelts): Declare.
7213         * tree.c (build_array_type_nelts): New function.
7214         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7215         (vect_model_load_cost): Likewise.
7216         (vect_store_lanes_supported, vect_load_lanes_supported)
7217         (vect_record_strided_load_vectors): Declare.
7218         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7219         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7220         (vect_transform_strided_load): Split out statement recording into...
7221         (vect_record_strided_load_vectors): ...this new function.
7222         * tree-vect-stmts.c (create_vector_array, read_vector_array)
7223         (write_vector_array, create_array_ref): New functions.
7224         (vect_model_store_cost): Add store_lanes_p argument.
7225         (vect_model_load_cost): Add load_lanes_p argument.
7226         (vectorizable_store): Try to use store-lanes functions for
7227         interleaved stores.
7228         (vectorizable_load): Likewise load-lanes and loads.
7229         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7230         to vect_model_store_cost.
7231         (vect_build_slp_tree): Likewise vect_model_load_cost.
7232
7233 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7234
7235         * hooks.h (hook_bool_mode_uhwi_false): Declare.
7236         * hooks.c (hook_bool_mode_uhwi_false): New function.
7237         * target.def (array_mode_supported_p): New hook.
7238         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7239         * doc/tm.texi: Regenerate.
7240         * stor-layout.c (mode_for_array): New function.
7241         (layout_type): Use it.
7242         * config/arm/arm.c (arm_array_mode_supported_p): New function.
7243         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7244
7245 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
7246
7247         PR target/48723
7248         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7249         for -fstack-check if the size to allocate is negative.
7250
7251 2011-05-02  Lawrence Crowl  <crowl@google.com>
7252
7253         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7254         (timevar_cond_start): New for starting a timer only when it is not
7255         already running.
7256         (timevar_cond_stop): New for stopping a timer when it was not already
7257         running.
7258
7259         * timevar.c (timevar_stop): Enable start/stop timers to start again.
7260         (timevar_cond_start): New as above.
7261         (timevar_cond_stop): New as above.
7262
7263         * timevar.def: Add start/stop timers for compiler phases,
7264         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7265         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7266         and TV_PHASE_FINALIZE.
7267         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7268         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7269         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7270         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7271         Make unused TV_OVERLOAD into a start/stop timer.
7272
7273         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7274         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7275         to indicate that they are start/stop timers.
7276
7277         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7278         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7279         Move initialization to do_compile.
7280         (do_compile): Add initialization from above.
7281         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7282
7283         * c-decl.c (c_write_global_declarations): Add start/stop of
7284         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7285
7286         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7287         or TV_PARSE_INLINE, as appropriate.
7288         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7289         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7290
7291 2011-05-02  Jason Merrill  <jason@redhat.com>
7292
7293         PR c++/40975
7294         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7295
7296 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
7297
7298         PR c/35445
7299         * c-decl.c (finish_decl): Only create a composite if the types are
7300         compatible.
7301
7302 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
7303
7304         * config/fr30/fr30-protos.h (Mmode): Don't define.
7305         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
7306         definition where used.
7307         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7308         define.  Expand definitions where used.
7309         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7310         Expand definitions where used.
7311         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7312         rx_function_arg, rx_function_arg_advance,
7313         rx_function_arg_boundary): Expand definitions of those macros.
7314         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
7315         definition where used.
7316
7317 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7318
7319         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7320         reg<->xmm moves.
7321         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7322         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
7323         with *movv2sf_internal_rex64_avx.
7324         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7325         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7326         Use %v prefix in insn mnemonic to handle TARGET_AVX.
7327         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
7328         "vex" in "prefix" attribute calculation.
7329         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
7330
7331 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
7332
7333         PR target/47951
7334         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7335         inputs match the output.
7336
7337 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
7338
7339         PR target/47955
7340         * config/m68k/m68k.c (m68k_expand_prologue): Set
7341         current_function_static_stack_size.
7342
7343 2011-05-02   Jan Hubicka  <jh@suse.cz>
7344
7345         * lto-streamer.c (lto_streamer_cache_insert_1,
7346         lto_streamer_cache_lookup, lto_streamer_cache_create,
7347         lto_streamer_cache_delete): Use pointer map instead of hashtable.
7348         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7349
7350 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
7351
7352         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7353         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7354         config/m68k/t-opts: New files.
7355         * config/m68k/m68k-tables.opt: New file (generated).
7356         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7357         extra_options and m68k/t-opts to tmake_file.
7358         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7359         (all_isas): Initialize using m68k-isas.def.
7360         (all_microarchs): Initialize using m68k-microarchs.def.
7361         (m68k_find_selection): Remove.
7362         (m68k_handle_option): Don't assert that global structures are in
7363         use.  Use error_at.  Access variables via opts pointer.  Don't
7364         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
7365         directly for -m68020-40 and -m68020-60.
7366         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7367         m68k_tune_entry here.
7368         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7369         to m68k-opts.h.
7370         (m68k_library_id_string): Remove declaration.
7371         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7372         (m68k_library_id_string): New Variable.
7373         (march=, mcpu=, mtune=): Use Enum and Var.
7374
7375 2011-05-02  Richard Guenther  <rguenther@suse.de>
7376
7377         * varasm.c (output_constructor_regular_field): Compute zero-based
7378         index with double-ints.  Make sure to ICE instead of producing
7379         wrong code.
7380         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7381         in asserts.  Properly use a signed type.
7382
7383 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7384
7385         * config/i386/sse.md (V): New mode iterator.
7386         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
7387         TARGET_SSE2.
7388         (V_256): Rename from AVX256MODE.
7389         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
7390         condition to all users.
7391         (VF1): Ditto.
7392         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
7393         condition to all users.
7394         (VF_128): Make V4SF mode unconditional.
7395         (VF_256): Rename from AVX256MODEF2P.
7396         (VI4F_128): Rename from SSEMODE4S.
7397         (VI8F_128): Rename from SSEMODE2D.
7398         (VI4F_256): Rename from AVX256MODE8P.
7399         (VI8F_256): Rename from AVX256MODE4P.
7400         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7401         (ssescalarmodesuffix): Remove SF and DF modes.
7402         (SSEMODE124): Remove.
7403         (SSEMODE1248): Ditto.
7404         (SSEMODEF2P): Ditto.
7405         (AVXMODEF2P): Ditto.
7406         (AVXMODEFDP): Ditto.
7407         (AVXMODEFSP): Ditto.
7408         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7409         unconditional.
7410         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
7411         unconditional.
7412         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7413         xop_pcmov_<mode>256.  Use V mode iterator.
7414
7415         Adjust RTX patterns globally for renamed mode attributes.
7416
7417 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7418
7419         * haifa-sched.c (sched_emit_insn): Emit insn before first
7420         non-scheduled insn.  Inform back-end about new insn.  Add
7421         new insn to scheduled_insns list.
7422
7423 2011-05-02  Richard Guenther  <rguenther@suse.de>
7424
7425         PR tree-optimization/48822
7426         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7427         (process_scc): Indicate which iteration we start.
7428
7429 2011-05-02  Jan Hubicka  <jh@suse.cz>
7430
7431         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7432         (lto_section_overrun): New.
7433         * lto-section-out.c (append_block): Rename to ...
7434         (lto_append_block): ... this one; export.
7435         (lto_output_1_stream): Move lto lto-streamer.h
7436         (lto_output_data_stream): Update.
7437         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7438         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7439         functions.
7440
7441 2011-05-02  Richard Guenther  <rguenther@suse.de>
7442
7443         * tree.c (tree_code_counts): New global array.
7444         (record_node_allocation_statistics): Count individual tree codes.
7445         (dump_tree_statistics): Dump individual code stats.
7446
7447 2011-05-01  Jan Hubicka  <jh@suse.cz>
7448
7449         * ipa-inline.c (caller_growth_limits): Fix thinko when
7450         looking for largest stack frame.
7451         * ipa-inline.h (dump_inline_summary): Declare.
7452         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7453         on stack usage.
7454         (dump_inline_summary): Export.
7455         (debug_inline_summary): Declare as DEBUG_FUNCTION.
7456
7457 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
7458
7459         * reginfo.c (memory_move_cost): Change rclass argument type form
7460         'enum reg_class' to reg_class_t.
7461         * reload.h (memory_move_cost): Update prototype.
7462         * postreload.c reload_cse_simplify_set): Change type dclass var to
7463         reg_class_t.
7464         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7465         Update prototype.
7466         (ira_allocate_and_set_costs): Change aclass argument type form
7467         'enum reg_class' to reg_class_t.
7468         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7469         Change aclass argument type to reg_class_t.
7470         (update_conflict_hard_reg_costs): Change type aclass and pref vars
7471         to reg_class_t.
7472         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7473         memory_move_cost call.
7474
7475         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7476         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7477         Change type tmp var to reg_class_t.
7478
7479 2011-04-30  Jan Hubicka  <jh@suse.cz>
7480
7481         * ipa-inline.c (can_inline_edge_p): Disregard limits when
7482         inlining into function with flatten attribute.
7483         (want_inline_small_function_p): Be more realistic about inlining
7484         cold calls where callee size grows.
7485
7486 2011-04-30  Jan Hubicka  <jh@suse.cz>
7487
7488         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7489         flags.
7490
7491 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
7492
7493         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7494         PRINT_OPERAND_PUNCT_VALID_P): Remove.
7495         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7496         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7497         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7498         (print_operand): Rename to...
7499         (sparc_print_operand): ...this. Make static. Adjust
7500         sparc_print_operand function call.
7501         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7502         functions.
7503
7504 2011-04-30  Jan Hubicka  <jh@suse.cz>
7505
7506         PR middle-end/48752
7507         * ipa-inline.c (early_inliner): Disable when doing late
7508         addition of function.
7509
7510 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
7511
7512         * dwarf2out.c (get_address_mode): New inline.
7513         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7514         if not dwarf_strict emit
7515         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7516         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7517         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
7518         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7519         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7520         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7521         mem_loc_descriptor callers.
7522         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7523         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7524         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7525         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7526         (base_types): New variable.
7527         (get_base_type_offset, calc_base_type_die_sizes,
7528         base_type_for_mode, mark_base_types, base_type_cmp,
7529         move_marked_base_types): New functions.
7530         (calc_die_sizes): Assert that die_offset is 0 or equal to
7531         next_die_offset.
7532         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7533         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
7534         callers.  If not dwarf_strict, call mem_loc_descriptor even for
7535         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7536         (gen_subprogram_die): Don't give up on call site parameters
7537         with non-integral or large integral modes.  Adjust
7538         mem_loc_descriptor callers.
7539         (prune_unused_types): Call prune_unused_types_mark on base_types
7540         vector entries.
7541         (resolve_addr): Call mark_base_types.
7542         (dwarf2out_finish): Call move_marked_base_types.
7543
7544         PR tree-optimization/48809
7545         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7546         type.
7547         (gen_inbound_check): Don't compute index_expr - range_min in utype
7548         again, instead reuse SSA_NAME initialized in build_arrays.
7549         Remove two useless gsi_for_stmt calls.
7550
7551 2011-04-29  Jeff Law  <law@redhat.com>
7552
7553         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7554
7555 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7556
7557         * cgraph.h (cgraph_postorder): Remove declaration.
7558         * ipa-utils.h (ipa_free_postorder_info): Declare.
7559         (ipa_reverse_postorder): Likewise.
7560         * cgraphunit.c: Include ipa-utils.h.
7561         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7562         * ipa-inline.c: Include ipa-utils.h.
7563         (ipa_inline): Update call to ipa_reverse_postorder.
7564         * ipa-pure-const.c (propagate_pure_const): Update call to
7565         ipa_reduced_postorder and ipa_print_order.  Call
7566         ipa_free_postorder_info to clean up.
7567         (propagate_nothrow): Likewise.
7568         * ipa-reference.c (propagate): Removed a useless call to
7569         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7570         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
7571         * ipa.c: Include ipa-utils.h.
7572         (ipa_profile): Update call to ipa_reverse_postorder.
7573         (cgraph_postorder): Moved to...
7574         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7575         (ipa_utils_print_order): Renamed to ipa_print_order.
7576         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7577         comments.
7578         (ipa_free_postorder_info): New function.
7579         * passes.c: Include ipa-utils.h.
7580         (do_per_function_toporder): Update call to ipa_reverse_postorder.
7581         (ipa_write_summaries): Likewise.
7582         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7583         (cgraphunit.o): Likewise.
7584         (ipa.o): Likewise.
7585         (ipa-inline.o): Likewise.
7586
7587 2011-04-29  Jan Hubicka  <jh@suse.cz>
7588
7589         * gcc.dg/tree-ssa/inline-10.c: New testcase.
7590         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7591         * ipa-inline.h (clause_t): Turn into unsigned int.
7592         * ipa-inline-analysis.c (add_clause): Do more simplification.
7593         (and_predicates): Shortcut more cases.
7594         (predicates_equal_p): Move forward; check that clauses are properly
7595         ordered.
7596         (or_predicates): Shortcut more cases.
7597         (edge_execution_predicate): Rewrite as...
7598         (set_cond_stmt_execution_predicate): ... this function; handle
7599         __builtin_constant_p.
7600         (set_switch_stmt_execution_predicate): New .
7601         (compute_bb_predicates): New.
7602         (will_be_nonconstant_predicate): Update TODO.
7603         (estimate_function_body_sizes): Use compute_bb_predicates
7604         and free them later, always try to estimate if stmt is constant.
7605         (estimate_time_after_inlining, estimate_size_after_inlining):
7606         Gracefully handle optimized out edges.
7607         (read_predicate): Fix off by one error.
7608
7609 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7610
7611         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7612
7613 2011-04-27  Xinliang David Li  <davidxl@google.com>
7614
7615         * tree-profile.c (init_ic_make_global_vars): Set
7616         tls attribute on ic vars.
7617         * coverage.c (coverage_end_function): Initialize
7618         function_list with zero.
7619
7620 2011-04-29  Richard Guenther  <rguenther@suse.de>
7621
7622         * builtins.c (fold_builtin_classify_type): Use integer_type_node
7623         for the type of the result.
7624         (fold_builtin_isascii): Likewise.
7625         (fold_builtin_toascii): Use integer_type_node where appropriate.
7626         (fold_builtin_logb): Likewise.
7627         (fold_builtin_frexp): Likewise.
7628         (fold_builtin_strstr): Likewise.
7629         (fold_builtin_strpbrk): Likewise.
7630         (fold_builtin_fputs): Likewise.
7631         (fold_builtin_sprintf): Likewise.
7632         (fold_builtin_snprintf): Likewise.
7633         (fold_builtin_printf): Likewise.
7634         (do_mpfr_remquo): Use a proper type for the assigned constant.
7635         (do_mpfr_lgamma_r): Likewise.
7636         * dwarf2out.c (resolve_one_addr): Use size_int.
7637         * except.c (init_eh): Likewise.
7638         (assign_filter_values): Use integer_type_node for filter values.
7639         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7640         indices.
7641         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7642         for EH region numbers.
7643         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7644         for the shift amount.
7645
7646 2011-04-29  Richard Guenther  <rguenther@suse.de>
7647
7648         * expr.h (expand_shift): Rename to ...
7649         (expand_variable_shift): ... this.
7650         (expand_shift): Take a constant shift amount.
7651         * expmed.c (expand_shift): Rename to ...
7652         (expand_variable_shift): ... this.
7653         (expand_shift): New wrapper around expand_variable_shift.
7654         * expr.c (convert_move, emit_group_load_1, emit_group_store,
7655         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7656         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7657         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7658         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7659         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7660         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7661         emit_store_flag_1, emit_store_flag): Likewise.
7662         * builtins.c (expand_builtin_signbit): Likewise.
7663         * calls.c (load_register_parameters): Likewise.
7664         * function.c (assign_parm_setup_block): Likewise.
7665         * lower-subreg.c (resolve_shift_zext): Likewise.
7666         * optabs.c (widen_bswap, expand_abs_nojump,
7667         expand_one_cmpl_abs_nojump, expand_float): Likewise.
7668         * spu/spu.c (spu_expand_extv): Likewise.
7669         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7670
7671 2011-04-29  Richard Guenther  <rguenther@suse.de>
7672
7673         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7674         for the remapped region number.
7675         * predict.c (build_predict_expr): Use integer_type_node for the
7676         predict kind.
7677         * fold-const.c (fold_binary_loc): Use integer_type_node for
7678         the shift amount.  Use a proper type for the PLUS_EXPR operand.
7679
7680 2011-04-29  Michael Matz  <matz@suse.de>
7681
7682         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7683         other trees that just builtins.
7684         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7685
7686 2011-04-29  Richard Guenther  <rguenther@suse.de>
7687
7688         * tree-nested.c (get_trampoline_type): Use size_int.
7689         (get_nl_goto_field): Likewise.
7690         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7691         for all indexes.
7692         (lower_eh_constructs_2): Likewise.
7693         (lower_resx): Likewise.
7694         (lower_eh_dispatch): Likewise.
7695         * tree-mudflap.c (mf_build_string): Use size_int.
7696         (mudflap_register_call): Use integer_type_node for the flag.
7697         (mudflap_enqueue_constant): Use size_int.
7698         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7699         instead of rebuilding it.
7700
7701 2011-04-29  Richard Guenther  <rguenther@suse.de>
7702
7703         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7704         Handle OBJ_TYPE_REF.
7705         (find_func_aliases_for_call): Use it more consistently.
7706
7707 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
7708
7709         * haifa-sched.c (last_nondebug_scheduled_insn): New.
7710         (rank_for_schedule): Use it.
7711         (schedule_block): Set it.
7712
7713 2011-04-28  David Li  <davidxl@google.com>
7714
7715         * tree.c (crc32_string): Use crc32_byte.
7716         (crc32_byte): New function.
7717         * tree.h (crc32_byte): New function.
7718         * gcov.c (read_graph_file): Handle new cfg_cksum.
7719         (read_count_file): Ditto.
7720         * profile.c (instrument_values): Ditto.
7721         (get_exec_counts): Ditto.
7722         (read_profile_edge_counts): Ditto.
7723         (compute_branch_probabilities): Ditto.
7724         (compute_value_histograms): Ditto.
7725         (branch_prob): Ditto.
7726         (end_branch_prob): Ditto.
7727         * coverage.c (read_counts_file): Ditto.
7728         (get_coverage_counts): Ditto.
7729         (tree_coverage_counter_addr): Ditto.
7730         (coverage_checksum_string): Ditto.
7731         (coverage_begin_output): Ditto.
7732         (coverage_end_function): Ditto.
7733         (build_fn_info_type): Ditto.
7734         (build_fn_info_value): Ditto.
7735         * libgcov.c (gcov_exit): Ditto.
7736         * gcov-dump.c (tag_function): Ditto.
7737         (compute_checksum): Remove.
7738
7739 2011-04-29  Alan Modra  <amodra@gmail.com>
7740
7741         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7742         unspec plus offset.  Tidy macho code.
7743
7744 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7745
7746         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7747         node instead of a decl.  Update all callers.
7748         * cgraph.h: Update declaration.
7749
7750 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
7751
7752         PR tree-optimization/48765
7753         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7754         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7755         to indicate if loop aware SLP is being used.  Scan the statements
7756         and update the vectorization factor according to the type of
7757         vectorization before statement analysis.
7758         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7759         pass it to vect_analyze_loop_operations.
7760         (vectorizable_reduction): Set number of copies to 1 in case of pure
7761         SLP statement.
7762         * tree-vect-stmts.c (vectorizable_conversion,
7763         vectorizable_assignment, vectorizable_shift,
7764         vectorizable_operation, vectorizable_type_demotion,
7765         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7766         Likewise.
7767         (vectorizable_condition): Move the check that it is not SLP
7768         vectorization before the number of copies check.
7769         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7770         to vectorize the loop using SLP.
7771
7772 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
7773
7774         PR middle-end/48597
7775         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7776         inline asm.
7777
7778 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
7779
7780         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7781         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7782         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7783         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7784         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7785         linux*.h headers.
7786         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7787         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7788         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7789         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7790         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7791         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7792         REG_NAME.
7793         * config/i386/linux.h (REG_NAME): Don't define.
7794         * config/i386/linux64.h (REG_NAME): Don't define.
7795         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7796         Undefine before defining.
7797
7798 2011-04-28  Jan Hubicka  <jh@suse.cz>
7799
7800         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7801         nonconstant_names array.
7802         (estimate_function_body_sizes): Build nonconstant_names array; handle
7803         BUILT_IN_CONSTANT_P.
7804
7805 2011-04-28  Richard Guenther  <rguenther@suse.de>
7806
7807         PR bootstrap/48804
7808         Revert
7809         2011-04-28  Richard Guenther  <rguenther@suse.de>
7810
7811         * tree-ssa-structalias.c (solve_constraints): Build succ graph
7812         as late as possible.
7813
7814 2011-04-28  Richard Guenther  <rguenther@suse.de>
7815
7816         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7817         (debug_constraint): Do it here.
7818         (dump_constraints): And here.
7819         (rewrite_constraints): And here.
7820         (dump_constraint_edge): Remove.
7821         (dump_constraint_graph): Rewrite to produce DOT output.
7822         (solve_constraints): Build succ graph as late as possible.
7823         Dump constraint graphs before and after solving.
7824
7825 2011-04-28  Richard Guenther  <rguenther@suse.de>
7826
7827         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7828         New function split out from ...
7829         (find_func_aliases): ... here.  Call it.
7830         (find_func_aliases_for_call): Likewise.
7831
7832 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7833
7834         * internal-fn.h (internal_fn_name_array): Declare.
7835         (internal_fn_flags_array): Likewise.
7836
7837 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7838
7839         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
7840         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7841         Move from sse.md.
7842         (ssemodefsuffix): Remove.
7843         (ssevecmodesuffix): New mode attribute.
7844         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7845         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7846         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7847         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7848         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7849         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7850         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7851         ssemodesuffix mode attribute.
7852         (float splitters): Use ssevecmodesuffix mode attribute.
7853         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7854         (sseinsmode): Rename from avxvecmode.
7855         (avxsizesuffix): Rename from avxmodesuffix.
7856         (sseintvecmode): Rename from avxpermvecmode.
7857         (ssedoublevecmode): Rename from ssedoublesizemode.
7858         (ssehalfvecmode): Rename from avxhalfvecmode.
7859         (ssescalarmode): Rename from avxscalarmode.
7860         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7861         templates for ssemodesuffix mode attribute.
7862         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7863         mode attribute.
7864
7865         Adjust RTX patterns globally for renamed mode attributes.
7866
7867 2011-04-27  Jan Hubcika  <jh@suse.cz>
7868
7869         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7870         * ipa-inline-analysis.c: Include alloc-pool.h.
7871         (edge_predicate_pool): New.
7872         (trye_predicate_p): New function
7873         (false_predicate_p): New function.
7874         (add_clause): Sanity check that false clauses are "optimized";
7875         never add clauses to predicate that is already known to be false.
7876         (and_predicate): Use flase_predicate_p.
7877         (evaulate_predicate): Rename to ...
7878         (evaluate_predicate): ... this one; update all callers; assert
7879         that false is not listed among possible truths.
7880         (dump_predicate): Use true_predicate_p.
7881         (account_size_time): Use false_predicate_p.
7882         (evaulate_conditions_for_edge): Rename to ...
7883         (evaluate_conditions_for_edge) ... this one.
7884         (edge_set_predicate): New function.
7885         (inline_edge_duplication_hook): Duplicate edge predicates.
7886         (inline_edge_removal_hook): Free edge predicates.
7887         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7888         (dump_inline_summary): Update.
7889         (estimate_function_body_sizes): Set edge predicates.
7890         (estimate_calls_size_and_time): Handle predicates.
7891         (estimate_callee_size_and_time): Update.
7892         (remap_predicate): Add toplev_predicate; update comment.
7893         (remap_edge_predicates): New function.
7894         (inline_merge_summary): Compute toplev predicate; update.
7895         (read_predicate): New function.
7896         (read_inline_edge_summary): Use it.
7897         (inline_read_section): Likewise.
7898         (write_predicate): New function.
7899         (write_inline_edge_summary): Use it.
7900         (inline_write_summary): Likewise.
7901         (inline_free_summary): Free alloc pool and edge summary vec.
7902
7903 2011-04-27  Richard Guenther  <rguenther@suse.de>
7904
7905         * tree-ssa-structalias.c (changed_count): Remove.
7906         (changed): Use a bitmap.
7907         (unify_nodes): Adjust.
7908         (do_sd_constraint): Likewise.
7909         (do_ds_constraint): Likewise.
7910         (do_complex_constraint): Likewise.
7911         (solve_graph): Likewise.
7912
7913 2011-04-27  Jan Hubicka  <jh@suse.cz>
7914
7915         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7916
7917 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7918
7919         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7920         (avx_vperm2f128_*_operand): Ditto.
7921         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7922         Use avx_vpermilp_parallel in insn condition.
7923         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7924         Use avx_vperm2f128_parallel in insn condition.
7925
7926 2011-04-27  Richard Guenther  <rguenther@suse.de>
7927
7928         * Makefile.in (tree-ssa-structalias.o): Remove
7929         gt-tree-ssa-structalias.h dependency.
7930         (GTFILES): Remove tree-ssa-structalias.c.
7931         * tree.c (allocate_decl_uid): New function.
7932         (make_node_stat): Use it.
7933         (copy_node_stat): Likewise.
7934         * tree.h (allocate_decl_uid): Declare.
7935         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7936         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7937         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7938         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7939         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7940         (struct heapvar_map): Likewise.
7941         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7942         heapvar_insert): Likewise.
7943         (make_heapvar_for): Rename to ...
7944         (make_heapvar): ... this.  Simplify.
7945         (fake_var_decl_obstack): New global var.
7946         (build_fake_var_decl): New function.
7947         (make_constraint_from_heapvar): Adjust.
7948         (handle_lhs_call): Likewise.
7949         (create_function_info_for): Likewise.
7950         (intra_create_variable_infos): Likewise.
7951         (init_alias_vars): Allocate fake_var_decl_obstack.
7952         (init_alias_heapvars, delete_alias_heapvars): Remove.
7953         (compute_points_to_sets): Do not call init_alias_heapvars.
7954         (ipa_pta_execute): Likewise.
7955         (delete_points_to_sets): Free fake_var_decl_obstack.
7956
7957 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7958
7959         * config/spu/divmovti4.c (union qword_UTItype): New data type.
7960         (si_from_UTItype, si_to_UTItype): New functions.
7961         (__udivmodti4): Use them to implement type-punning.
7962         * config/spu/multi3.c (union qword_TItype): New data type.
7963         (si_from_TItype, si_to_TItype): New functions.
7964         (__multi3): Use them to implement type-punning.
7965
7966 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7967
7968         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7969
7970 2011-04-27  Jan Hubicka  <jh@suse.cz>
7971
7972         * ipa-prop.c (function_insertion_hook_holder): New holder.
7973         (ipa_add_new_function): New function.
7974         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7975         Register/deregister holder.
7976
7977 2011-04-27  Richard Guenther  <rguenther@suse.de>
7978
7979         PR tree-optimization/48772
7980         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7981
7982 2011-04-27  Richard Guenther  <rguenther@suse.de>
7983
7984         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7985         TARGET_MEM_REF handling.
7986
7987 2011-04-27  Nick Clifton  <nickc@redhat.com>
7988
7989         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7990         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7991         (REG_CLASS_NAMES): Likewise.
7992         (REG_CLASS_CONTENTS): Likewise.
7993         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7994         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7995         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
7996         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
7997         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
7998         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7999         duplicate register classes.
8000         (frv_class_likely_spilled_p): Likewise.
8001         (frv_register_move_cost): Likewise.
8002
8003         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
8004         end of the regno_reg_class array.
8005
8006 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
8007
8008         PR c/48742
8009         * c-typeck.c (build_binary_op): Don't wrap arguments if
8010         int_operands is true.
8011
8012 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
8013
8014         PR target/48767
8015         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
8016         targetm.calls.must_pass_in_stack for void type.
8017
8018 2011-04-26  Jan Hubicka  <jh@suse.cz>
8019
8020         * cgraphbuild.c (build_cgraph_edges): Update call
8021         of cgraph_create_edge and cgraph_create_indirect_edge.
8022         * cgraph.c (cgraph_create_edge_including_clones,
8023         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8024         cgraph_update_edges_for_call_stmt_node): Do not take nest
8025         argument; do not initialize call_stmt_size/time.
8026         (dump_cgraph_node): Do not dump nest.
8027         (cgraph_clone_edge): Do not take loop_nest argument;
8028         do not propagate it; do not clone call_stmt_size/time.
8029         (cgraph_clone_node): Likewise.
8030         (cgraph_create_virtual_clone): Update.
8031         * cgraph.h (struct cgraph_edge): Remove
8032         call_stmt_size/call_stmt_time/loop_nest.
8033         (cgraph_create_edge, cgraph_create_indirect_edge,
8034         cgraph_create_edge_including_clones, cgraph_clone_node): Update
8035         prototype.
8036         * tree-emutls.c (gen_emutls_addr): Update.
8037         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8038         loop_nest; handle indirect calls, too.
8039         (clone_inlined_nodes): Do not care about updating inline summaries.
8040         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8041         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8042         stream call_stmt_size/call_stmt_time/loop_nest.
8043         * ipa-inline.c (edge_badness): Update.
8044         (ipa_inline): dump summaries after inlining.
8045         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
8046         New.
8047         (inline_edge_summary): New function.
8048         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8049         (inline_edge_removal_hook): Handle edge summaries.
8050         (inline_edge_duplication_hook): New hook.
8051         (inline_summary_alloc): Alloc hooks.
8052         (initialize_growth_caches): Do not register removal hooks.
8053         (free_growth_caches); Do not free removal hook.
8054         (dump_inline_edge_summary): New function.
8055         (dump_inline_summary): Use it.
8056         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8057         (inline_update_callee_summaries): New function.
8058         (inline_merge_summary): Use it.
8059         (do_estimate_edge_time, do_estimate_edge_growth): Update.
8060         (read_inline_edge_summary): New function.
8061         (inline_read_section): Use it.
8062         (write_inline_edge_summary): New function.
8063         (inline_write_summary): Use it.
8064         (inline_free_summary): Free edge new holders.
8065         * tree-inline.c (copy_bb): Update.
8066
8067 2011-04-26  Jason Merrill  <jason@redhat.com>
8068
8069         * tree-eh.c (lower_try_finally_switch): Create the label along with
8070         the CASE_LABEL_EXPR.
8071
8072 2011-04-26  David S. Miller  <davem@davemloft.net>
8073             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8074
8075         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8076         * configure: Regenerate.
8077
8078 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
8079
8080         PR target/48258
8081         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8082         reduction.
8083         (VEC_reduc): New code iterator and splitters for vector reduction.
8084         (VEC_reduc_name): Ditto.
8085         (VEC_reduc_rtx): Ditto.
8086         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8087         (reduc_<VEC_reduc_name>_v4sf): Ditto.
8088
8089         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8090         support for extracting SF on VSX.
8091
8092         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8093         generating xscvspdp.
8094         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8095         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8096         double add, minimum, maximum vector reduction.
8097         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8098         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8099         optimize double vector reduction.
8100         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8101
8102 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
8103
8104         * config/fr30/fr30.h (inhibit_libc): Don't define.
8105         * config/m32r/m32r-protos.h: Correct comment.
8106         * config/v850/v850.h (GHS_default_section_names,
8107         GHS_current_section_names): Use tree, not union tree_node *.
8108
8109 2011-04-26  Xinliang David Li  <davidxl@google.com>
8110
8111         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8112         * c-family/c-opts.c (c_common_handle_option): Set
8113         warn_maybe_uninitialized.
8114         * opts.c (common_handle_option): Ditto.
8115         * common.opt:  New option.
8116         * tree-ssa.c (warn_uninit): Add one more parameter.
8117         (warn_uninitialized_var): Pass warning code.
8118         * tree-flow.h: Interface change.
8119
8120 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8121
8122         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
8123         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8124         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8125
8126 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8127
8128         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8129         * config/mips/mips.opt (mmips-tfile): Remove.
8130
8131         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8132         mips-tdump reference to ...
8133         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
8134         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8135         reference by Tru64 UNIX.
8136
8137 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
8138
8139         PR debug/48768
8140         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8141         is error_mark_node, set value to NULL.
8142
8143         PR tree-optimization/48734
8144         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8145         if return value from maybe_fold_*_comparsions isn't something
8146         the code is prepared to handle.
8147
8148 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
8149
8150         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8151         mode check.
8152         (ext_QIreg_nomode_operands): Remove.
8153         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8154         (*andsi_1): Ditto.
8155         (*andhi_1): Ditto.
8156
8157 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
8158
8159         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8160
8161 2011-04-26  Richard Guenther  <rguenther@suse.de>
8162
8163         * c-typeck.c (build_unary_op): Do not expand array-refs via
8164         pointer arithmetic.  Only adjust qualifiers for function types.
8165
8166 2011-04-26  Richard Guenther  <rguenther@suse.de>
8167
8168         PR middle-end/48694
8169         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8170         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
8171         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
8172         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
8173
8174 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
8175
8176         * doc/extend.texi: Document __underlying_type.
8177
8178 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
8179
8180         * config/rs6000/titan.md (automata_option "progress"): Remove.
8181
8182 2011-04-25  Jeff Law  <law@redhat.com>
8183
8184         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8185
8186 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8187
8188         * system.h (ENUM_BITFIELD): Remove.
8189
8190 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
8191             Eric Botcazou  <ebotcazou@adacore.com>
8192
8193         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8194         for STORE_FLAG_VALUE==-1 case.
8195
8196 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
8197
8198         PR target/43804
8199         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8200         LEGITIMATE_PIC_OPERAND_P.
8201
8202 2011-04-24  Jan Hubicka  <jh@suse.cz>
8203
8204         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8205         WPA hack.
8206         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8207         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8208         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
8209         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8210         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8211         Sanity check predicate length.
8212         (remap_predicate): Likewise; sanity check jump functions.
8213         (inline_read_section, inline_write_summary): Sanity check
8214         predicate length.
8215
8216 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
8217
8218         PR other/48748
8219         * doc/extend.texi (Type Traits): Document __is_standard_layout,
8220         __is_literal_type, and __is_trivial; update throughout about
8221         possibly cv-qualified void types.
8222
8223 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
8224
8225         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8226         testsuite and make it version agnostic.
8227
8228 2011-04-22  Jan Hubicka  <jh@suse.cz>
8229
8230         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8231
8232 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
8233
8234         PR c/48685
8235         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8236         to VOID_TYPE even around MODIFY_EXPR.
8237
8238 2011-04-22  Mike Stump  <mikestump@comcast.net>
8239
8240         * gensupport.c (read_md_rtx): Fix typo in comment.
8241         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8242         comment.
8243
8244 2011-04-22  Jan Hubicka  <jh@suse.cz>
8245
8246         * gengtype.c (open_base_files): Add ipa-inline.h include.
8247         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8248         ipa-prop.c; update all uses.
8249         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
8250         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8251         merge summary of inlined function into former caller.
8252         * ipa-inline.c (max_benefit): Remove.
8253         (edge_badness): Compensate for removal of benefits.
8254         (update_caller_keys): Use
8255         reset_node_growth_cache/reset_edge_growth_cache.
8256         (update_callee_keys): Likewise.
8257         (update_all_callee_keys): Likewise.
8258         (inline_small_functions): Do not collect max_benefit; do not reset
8259         estimated_growth; call free_growth_caches and initialize_growth_caches.
8260         * ipa-inline.h (struct condition, type clause_t, struct predicate,
8261         struct size_time_entry): New structures.
8262         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
8263         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8264         and estimated_growth.
8265         (edge_growth_cache_entry): New structure.
8266         (node_growth_cache, edge_growth_cache): New global vars.
8267         (estimate_growth): Turn into inline.
8268         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8269         initialize_growth_caches, free_growth_caches): Declare.
8270         (estimate_edge_growth): Rewrite.
8271         (estimate_edge_time): Implement as inline cache lookup.
8272         (reset_node_growth_cache, reset_edge_growth_cache): New inline
8273         functions.
8274         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8275         (NUM_CONDITIONS): New constant.
8276         (predicate_conditions): New enum.
8277         (IS_NOT_CONSTANT): New constant.
8278         (edge_removal_hook_holder): New var.
8279         (node_growth_cache, edge_growth_cache): New global vars.
8280         (true_predicate, single_cond_predicate, false_predicate,
8281         not_inlined_predicate, add_condition, add_clause, and_predicates,
8282         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8283         dump_clause, dump_predicate, account_size_time,
8284         evaulate_conditions_for_edge): New functions.
8285         (inline_summary_alloc): Move to heap.
8286         (inline_node_removal_hook): Clear condition and entry vectors.
8287         (inline_edge_removal_hook): New function.
8288         (initialize_growth_caches, free_growth_caches): New function.
8289         (dump_inline_summary): Update.
8290         (edge_execution_predicate): New function.
8291         (will_be_nonconstant_predicate): New function.
8292         (estimate_function_body_sizes): Compute BB and constantness predicates.
8293         (compute_inline_parameters): Do not clear estimated_growth.
8294         (estimate_edge_size_and_time): New function.
8295         (estimate_calls_size_and_time): New function.
8296         (estimate_callee_size_and_time): New function.
8297         (remap_predicate): New function.
8298         (inline_merge_summary): New function.
8299         (do_estimate_edge_time): New function based on...
8300         (estimate_edge_time): ... this one.
8301         (do_estimate_edge_growth): New function.
8302         (do_estimate_growth): New function based on....
8303         (estimate_growth): ... this one.
8304         (inline_analyze_function): Analyze after deciding on jump functions.
8305         (inline_read_section): New function.
8306         (inline_read_summary): Use it.
8307         (inline_write_summary): Write all the new data.
8308         * ipa-prop.c (ipa_get_param_decl_index): Export.
8309         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8310         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8311         Declare.
8312         (ipa_get_lattice): Move here from ipa-cp.c
8313         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8314         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8315         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8316         cgraph_edge_inlinable_p): Remove.
8317         * cgraphunit.c: Include ipainline.h
8318         (cgraph_process_new_functions): Update call of
8319         compute_inline_parameters.
8320
8321 2011-04-22  Richard Guenther  <rguenther@suse.de>
8322
8323         * tree.c (build_int_cst): Properly create canonicalized integer
8324         constants.
8325         (build_int_cst_type): Remove scary comments.
8326
8327 2011-04-22  Xinliang David Li  <davidxl@google.com>
8328
8329         * toplev.c (process_options): Enable -Werror=coverage-mismatch
8330         by default when -Wno-error is not specified.
8331         * opts-global.c (decode_options): Remove call to
8332         control_warning_options.
8333
8334 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
8335
8336         PR tree-optimization/48717
8337         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8338         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8339
8340 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
8341
8342         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
8343         definition where used.
8344
8345 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
8346
8347         PR c/48716
8348         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8349         TREE_STATIC variables declared inside of some OpenMP construct.
8350
8351 2011-04-22  Martin Jambor  <mjambor@suse.cz>
8352
8353         PR middle-end/48585
8354         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8355
8356 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
8357
8358         PR c/36750
8359         * c-typeck.c (pop_init_level): Do not warn about initializing
8360         with ` = {0}'.
8361
8362 2011-04-22  Alan Modra  <amodra@gmail.com>
8363
8364         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8365         when returning call_cookie.
8366         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8367         pointers, to functions with no more vector args than the current
8368         function, and some non-local calls for ABI_V4.
8369         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8370         sibcall_nonlocal_aix64): Combine to ..
8371         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
8372         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8373         (sibcall_value_nonlocal_aix<mode>): ..likewise.
8374         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8375         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
8376         operand.
8377         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8378         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8379         sibcall_value_symbolic_64): Delete.
8380
8381 2011-04-21  Xinliang David Li  <davidxl@google.com>
8382
8383         * cgraph.h: Remove pid.
8384         * cgraph.c: Remove pid.
8385         * value-prof.c (init_node_map): New function.
8386         (del_node_map): New function.
8387         (find_func_by_funcdef_no): New function.
8388         (gimple_ic_transform): Call new function.
8389         * cgraphunit.c (cgraph_finalize_function): Remove pid.
8390         * function.c (get_last_funcdef_no): New function.
8391         * function.h (get_last_funcdef_no): New function.
8392         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8393         to libgcov function.
8394         (tree-profiling): Call node map init and delete function.
8395
8396 2011-04-21  Ian Lance Taylor  <iant@google.com>
8397
8398         * godump.c (go_format_type): Use exported Go name for anonymous
8399         field name.
8400
8401 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8402
8403         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8404         Call builtin_function_type_list instead of builtin_function_type.
8405         (UNARY, BINARY, TRINARY, QUAD): Likewise.
8406
8407 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8408
8409         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8410         build_function_type_list instead of build_function_type.
8411         Delete variable `endlink'.
8412
8413 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8414
8415         * config/s390/s390.c (s390_init_builtins): Call
8416         build_function_type_list instead of build_function_type.
8417
8418 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8419
8420         * config/ia64/ia64.c (ia64_init_builtins): Call
8421         build_function_type_list instead of builtin_function_type.
8422
8423 2011-04-21  Easwaran Raman  <eraman@google.com>
8424
8425         * cfgexpand.c (stack_var): Remove OFFSET...
8426         (add_stack_var): ...and its reference here...
8427         (expand_stack_vars): ...and here.
8428         (stack_var_cmp): Sort by descending order of size.
8429         (partition_stack_vars): Change heuristic.
8430         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8431         (dump_stack_var_partition): Add newline after each partition.
8432
8433 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
8434             Jeff Law  <law@redhat.com>
8435
8436         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8437         * gengtype.c (matching_file_name_substitute): Likewise.
8438
8439 2011-04-21  Richard Guenther  <rguenther@suse.de>
8440
8441         PR lto/48703
8442         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8443
8444 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
8445
8446         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8447
8448 2011-04-21  Richard Guenther  <rguenther@suse.de>
8449
8450         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8451         file name.
8452
8453 2011-04-21  Richard Guenther  <rguenther@suse.de>
8454
8455         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8456         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8457         Use DECL_P, not SSA_VAR_P.
8458         (ptr_derefs_may_alias_p): Likewise.
8459         (ptr_deref_may_alias_ref_p_1): Likewise.
8460         (decl_refs_may_alias_p): Likewise.
8461         (refs_may_alias_p_1): Likewise.
8462         (ref_maybe_used_by_call_p_1): Likewise.
8463         (call_may_clobber_ref_p_1): Likewise.
8464         (indirect_ref_may_alias_decl_p): Assume indirect refrences
8465         are either MEM_REF or TARGET_MEM_REF.
8466         (indirect_refs_may_alias_p): Likewise.
8467         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8468         for MEM_EXPR of indirect calls.
8469
8470 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8471
8472         * vmsdbgout.c (write_srccorr): Compute file length from the string.
8473         (dst_file_info_struct): Remove flen field.
8474         (lookup_filename): Remove code that set flen field.
8475
8476 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8477
8478         * config/ia64/ia64.c (ia64_start_function): Add a guard.
8479
8480 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
8481
8482         PR target/48708
8483         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8484         vec_extract and vec_concat for non-SSE4_1 targets.
8485
8486 2011-04-21  Richard Guenther  <rguenther@suse.de>
8487
8488         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8489         return statements.
8490
8491 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8492
8493         * config/i386/cygming.h (union tree_node, TREE): Don't define or
8494         undefine.
8495         (FILE): Don't undefine.
8496
8497 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8498
8499         * config/alpha/alpha.c (struct machine_function): Use rtx, not
8500         struct rtx_def *.
8501         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8502         struct rtx_def *.
8503         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8504         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8505         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8506         rtx_def *.
8507         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
8508         definitions where used.
8509         * config/microblaze/microblaze.h (struct microblaze_args): Use
8510         rtx, not struct rtx_def *.
8511         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8512         rtx_def *.
8513         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8514         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8515         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8516         not struct rtx_def *.
8517         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8518         struct rtx_def *.
8519         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8520         rtx_def *.
8521         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8522
8523 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8524
8525         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8526         operand_equal_p to compare DR_BASE_ADDRESSes.
8527         (vect_check_interleaving): Likewise.
8528
8529 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8530
8531         PR target/46329
8532         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8533         for all Neon struct constants.
8534
8535 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8536
8537         * target.def (legitimate_constant_p): New hook.
8538         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8539         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8540         * doc/tm.texi: Regenerate.
8541         * hooks.h (hook_bool_mode_rtx_true): Declare.
8542         * hooks.c (hook_bool_mode_rtx_true): Define.
8543         * system.h (LEGITIMATE_CONSTANT_P): Poison.
8544         * calls.c (precompute_register_parameters): Replace uses of
8545         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8546         (emit_library_call_value_1): Likewise.
8547         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8548         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8549         * ira-costs.c (scan_one_insn): Likewise.
8550         * recog.c (general_operand, immediate_operand): Likewise.
8551         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8552         * reload1.c (init_eliminable_invariants): Likewise.
8553
8554         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8555         mode argument.
8556         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8557         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8558         argument.
8559         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8560         * config/alpha/predicates.md (input_operand): Update call to
8561         alpha_legitimate_constant_p.
8562
8563         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8564         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8565         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8566         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8567         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8568         (arm_legitimate_constant_p): New functions.
8569         (arm_cannot_force_const_mem): Make static.
8570
8571         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8572
8573         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8574         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8575         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8576         instead of bfin_legitimate_constant_p.
8577         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
8578         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8579
8580         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8581
8582         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8583
8584         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8585         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8586         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8587         (frv_legitimate_constant_p): Make static.  Add a mode argument.
8588
8589         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8590         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8591         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8592
8593         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8594         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8595         * config/i386/i386.c (legitimate_constant_p): Rename to...
8596         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
8597         argument.
8598         (ix86_cannot_force_const_mem): Update accordingly.
8599         (ix86_legitimate_address_p): Likewise.
8600         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8601         * config/i386/i386.md: Update commentary.
8602
8603         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8604         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8605         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8606         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
8607
8608         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8609
8610         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8611         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8612         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8613         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
8614
8615         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8616         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8617         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8618
8619         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8620         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8621         (m32r_legitimate_constant_p): New function.
8622
8623         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8624         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8625         LEGITIMATE_CONSTANT_P.
8626         (LEGITIMATE_CONSTANT_P): Delete.
8627         * config/m68k/m68k.c (m68k_expand_prologue): Call
8628         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8629         (m68k_legitimate_constant_p): New function.
8630         * config/m68k/m68k.md: Update comments.
8631
8632         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8633         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8634         (mcore_legitimate_constant_p): New function.
8635
8636         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8637         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8638         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8639         Add a mode argument.
8640         (mep_legitimate_address): Update accordingly.
8641         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8642
8643         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8644         Delete.
8645         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8646         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8647         static.  Check OP's mode for VOIDmode.
8648         (microblaze_legitimate_constant_p): New function.
8649         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8650
8651         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8652         * config/mips/mips.c (mips_legitimate_constant_p): New function.
8653         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8654         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8655         * config/mips/predicates.md: Update comments.
8656
8657         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8658         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8659         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8660         (mmix_legitimate_constant_p): Make static, return a bool, and take
8661         a mode argument.
8662         (mmix_print_operand_address): Update accordingly.
8663
8664         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8665         Delete.
8666         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8667         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8668         static.  Add a mode argument.
8669         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8670
8671         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8672
8673         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8674         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8675         (pa_legitimate_constant_p): New function.
8676
8677         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8678
8679         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8680         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8681         (pdp11_legitimate_constant_p): New function.
8682
8683         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8684         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8685         (rs6000_legitimate_constant_p): New function.
8686
8687         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8688         (rx_legitimate_constant_p): ...this.
8689         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8690         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8691         (rx_legitimate_constant_p): ...this.
8692         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8693         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8694
8695         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8696         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8697         * config/s390/s390.c (legitimate_constant_p): Rename to...
8698         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
8699         and add a mode argument.
8700         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8701
8702         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8703
8704         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8705         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8706         (sh_legitimate_constant_p): New function.
8707
8708         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8709         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8710         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8711         (legitimate_constant_p): Rename to...
8712         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
8713         argument.
8714         (constant_address_p): Update accordingly.
8715
8716         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8717         argument and return a bool.
8718         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8719         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8720         (spu_legitimate_constant_p): Add a mode argument and return a bool.
8721         (spu_rtx_costs): Update accordingly.
8722         * config/spu/predicates.md (vec_imm_operand): Likewise.
8723
8724         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8725
8726         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8727         * config/v850/v850.c (v850_legitimate_constant_p): New function.
8728         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8729
8730         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8731         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8732         * config/vax/vax.c (legitimate_constant_p): Likewise.
8733
8734         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8735         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8736         (xtensa_legitimate_constant_p): New function.
8737
8738 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8739
8740         * target.def (cannot_force_const_mem): Add a mode argument.
8741         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8742         * doc/tm.texi: Regenerate.
8743         * hooks.h (hook_bool_mode_rtx_false): Declare.
8744         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8745         (hook_bool_mode_const_rtx_true): Likewise.
8746         (hook_bool_mode_rtx_false): New function.
8747         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8748         to be non-VOID.  Update call to cannot_force_const_mem.
8749         (find_reloads): Update accordingly.
8750         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8751         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8752         argument.
8753         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8754         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8755         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8756         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8757         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8758         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8759         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8760         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8761         (m68k_cannot_force_const_mem): ...this new function.
8762         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8763         argument.
8764         (mips_const_insns, mips_legitimize_const_move): Update calls.
8765         (mips_secondary_reload_class): Likewise.
8766         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8767         (pa_cannot_force_const_mem): ...this new function.
8768         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8769         (rs6000_cannot_force_const_mem): ...this new function.
8770         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8771         argument.
8772         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8773         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8774         to...
8775         (xtensa_cannot_force_const_mem): ...this new function.
8776
8777 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8778
8779         * config/mips/mips.c (mips16_build_function_stub): Call
8780         build_function_type_list instead of build_function_type.
8781         (mips16_build_call_stub): Likewise.
8782
8783 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8784
8785         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8786         instead of build_function_type.
8787
8788 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8789
8790         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8791         instead of build_function_type.
8792
8793 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
8794
8795         PR target/48678
8796         * config/i386/i386.md (insv): Change operand 0 constraint to
8797         "register_operand".  Change operand 1 and 2 constraint to
8798         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
8799         * config/i386/sse.md (sse4_1_pinsrb): Export.
8800         (sse2_pinsrw): Ditto.
8801         (sse4_1_pinsrd): Ditto.
8802         (sse4_1_pinsrq): Ditto.
8803         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8804         * config/i386/i386.c (ix86_expand_pinsr): New.
8805
8806 2011-04-20  Easwaran Raman  <eraman@google.com>
8807
8808         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8809         containing union type only with -fstrict-aliasing.
8810
8811 2011-04-20  Jim Meyering  <meyering@redhat.com>
8812
8813         Remove useless if-before-free tests.
8814         * calls.c (expand_call, save_area): Likewise.
8815         * cfgcleanup.c (try_forward_edges): Likewise.
8816         * collect2.c (collect_execute): Likewise.
8817         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8818         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8819         * coverage.c (coverage_checksum_string): Likewise.
8820         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8821         * cselib.c (cselib_init): Likewise.
8822         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8823         (df_set_clean_cfg): Likewise.
8824         * function.c (free_after_compilation): Likewise.
8825         * gcc.c (do_spec_1, main): Likewise.
8826         * gcov.c (create_file_names): Likewise.
8827         * gensupport.c (identify_predicable_attribute): Likewise.
8828         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8829         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8830         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8831         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8832         * ipa-pure-const.c (local_pure_const): Likewise.
8833         * ipa-reference.c (propagate): Likewise.
8834         * ira-costs.c (free_ira_costs): Likewise.
8835         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8836         * matrix-reorg.c (mat_free): Likewise.
8837         * prefix.c (get_key_value): Likewise.
8838         * profile.c (compute_value_histograms): Likewise.
8839         * reload1.c (free_reg_equiv): Likewise.
8840         * sched-deps.c (free_deps): Likewise.
8841         * sel-sched-ir.c (fence_clear): Likewise.
8842         * sese.c (set_rename, if_region_set_false_region): Likewise.
8843         * tree-data-ref.c (free_rdg): Likewise.
8844         * tree-eh.c (lower_try_finally): Likewise.
8845         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8846         * tree-ssa-live.c (delete_var_map): Likewise.
8847         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8848         * tree-ssa-pre.c (phi_trans_add): Likewise.
8849
8850 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
8851
8852         PR tree-optimization/48611
8853         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8854         beyond ERT_MUST_NOT_THROW region.
8855
8856 2011-04-20  Catherine Moore  <clm@codesourcery.com>
8857
8858         * config/mips/mips.opt (mfix-24k): New.
8859         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8860         * config/mips/mips.md (length): Increase by 4 for stores if
8861         fixing 24K errata.
8862         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8863         all noreorder if fixing 24K errata.
8864         * doc/invoke.texi: Document mfix-24k.
8865
8866 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
8867
8868         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8869         quad-word modes, reduce to 9-bit index range when above 1016 limit.
8870
8871 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8872
8873         * config/arm/arm.c (arm_gen_constant): Move movw support ....
8874         (const_ok_for_op): ... to here.
8875
8876 2011-04-20  Kai Tietz  <ktietz@redhat.com>
8877
8878         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8879         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8880
8881 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8882
8883         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8884
8885 2011-04-20  Richard Guenther  <rguenther@suse.de>
8886
8887         PR tree-optimization/47892
8888         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8889         are if-convertible.
8890
8891 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8892
8893         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8894
8895 2011-04-20  Tristan Gingold  <gingold@adacore.com>
8896
8897         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8898
8899 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
8900
8901         PR target/18145
8902
8903         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8904         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8905         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8906         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8907         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8908
8909         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8910         New prototype.
8911
8912         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8913         (avr_asm_named_section, avr_asm_output_aligned_common,
8914         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8915         New functions to update...
8916         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8917         (avr_asm_init_sections): Overwrite section callbacks for
8918         data_section, bss_section.
8919         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8920         from here to...
8921         (avr_file_end): ...here.
8922
8923 2011-04-20  Richard Guenther  <rguenther@suse.de>
8924
8925         PR middle-end/48695
8926         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8927         objects and types here.  Adjust for their offset before comparing.
8928
8929 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8930
8931         * tree-vect-stmts.c (vectorizable_store): Only chain one related
8932         statement per copy.
8933
8934 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8935
8936         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8937         (GIMPLE_H): Include $(INTERNAL_FN_H).
8938         (OBJS-common): Add internal-fn.o.
8939         (internal-fn.o): New rule.
8940         * internal-fn.def: New file.
8941         * internal-fn.h: Likewise.
8942         * internal-fn.c: Likewise.
8943         * gimple.h: Include internal-fn.h.
8944         (GF_CALL_INTERNAL): New gf_mask.
8945         (gimple_statement_call): Put fntype into a union with a new
8946         internal_fn field.
8947         (gimple_build_call_internal): Declare.
8948         (gimple_build_call_internal_vec): Likewise.
8949         (gimple_call_same_target_p): Likewise.
8950         (gimple_call_internal_p): New function.
8951         (gimple_call_internal_fn): Likewise.
8952         (gimple_call_fntype): Return null for internal calls.
8953         (gimple_call_set_fntype): Assert that the function is not internal.
8954         (gimple_call_set_fn): Likewise.
8955         (gimple_call_set_fndecl): Likewise.
8956         (gimple_call_set_internal_fn): New function.
8957         (gimple_call_addr_fndecl): Handle null functions.
8958         (gimple_call_return_type): Likewise null types.
8959         * gimple.c (gimple_build_call_internal_1): New function.
8960         (gimple_build_call_internal): Likewise.
8961         (gimple_build_call_internal_vec): Likewise.
8962         (gimple_call_same_target_p): Likewise.
8963         (gimple_call_flags): Handle calls to internal functions.
8964         (gimple_call_fnspec): New function.
8965         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8966         (gimple_has_side_effects): Handle null functions.
8967         (gimple_rhs_has_side_effects): Likewise.
8968         (gimple_call_copy_skip_args): Handle calls to internal functions.
8969         * cfgexpand.c (expand_call_stmt): Likewise.
8970         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8971         * gimple-fold.c (gimple_fold_call): Handle null functions.
8972         (gimple_fold_stmt_to_constant_1): Don't fold
8973         calls to internal functions.
8974         * gimple-low.c (gimple_check_call_args): Handle calls to internal
8975         functions.
8976         * gimple-pretty-print.c (dump_gimple_call): Likewise.
8977         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8978         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8979         (do_warn_unused_result): Likewise.
8980         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8981         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8982         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8983         the target of a call.
8984         (initialize_hash_element): Update accordingly.
8985         (hashable_expr_equal_p): Use gimple_call_same_target_p.
8986         (iterative_hash_hashable_expr): Handle calls to internal functions.
8987         (print_expr_hash_elt): Likewise.
8988         * tree-ssa-pre.c (can_value_number_call): Likewise.
8989         (eliminate): Handle null functions.
8990         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8991         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8992         (find_func_aliases): Likewise.
8993         * value-prof.c (gimple_ic_transform): Likewise.
8994         (gimple_indirect_call_to_profile): Likewise.
8995         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8996         * lto-streamer-out.c (output_gimple_stmt): Likewise.
8997
8998 2011-04-19  Jan Hubicka  <jh@suse.cz>
8999
9000         * ipa-inline-transform.c (save_inline_function_body): Add comments.
9001         * ipa-inline.c (inline_small_functions): Compute summaries first,
9002         populate heap later.
9003
9004 2011-04-19  Jan Hubicka  <jh@suse.cz>
9005
9006         * cgraph.h (save_inline_function_body): Remove.
9007         * ipa-inline-transform.c: New file, broke out of...
9008         * ipa-inline.c: ... this one; Update toplevel comment.
9009         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
9010         make global.
9011         (update_noncloned_frequencies): Move to ipa-inline-transform.c
9012         (cgraph_mark_inline_edge): Rename to inline_call; move to
9013         ipa-inline-transform.c.
9014         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
9015         move to ipa-inline-transform.c
9016         (recursive_inlining, inline_small_functions, flatten_function,
9017         ipa_inline, inline_always_inline_functions,
9018         early_inline_small_functions): Update.
9019         (inline_transform): Move to ipa-inline-transform.c.
9020         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9021         Declare.
9022         * Makefile.in (ipa-inline-transform.o): New file.
9023         * cgraphunit.c (save_inline_function_body): Move to
9024         ipa-inline-transform.c
9025
9026 2011-04-19  DJ Delorie  <dj@redhat.com>
9027
9028         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9029         registers if we already know there aren't any.
9030         (m32c_emit_epilogue): Don't emit a barrier here.
9031         (m32c_emit_eh_epilogue): Likewise.
9032         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9033         operands at expand time.
9034         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9035         int" wchar type.
9036         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9037         duplicates.  Provide aliases instead.
9038         * config/m32c/prologue.md (eh_return): Emit a barrier here.
9039         (eh_epilogue): Add a "(return)" here as a hint to other parts of
9040         the compiler.
9041
9042 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
9043
9044         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9045         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9046         (general_or_i64_p, sparc_register_move_cost): New function.
9047
9048 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9049
9050         * doc/install.texi (Configuration, --enable-threads): Remove mach.
9051         Add lynx, mipssde.  Sort table.
9052
9053 2011-04-19  Xinliang David Li  <davidxl@google.com>
9054
9055         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9056         not negative.
9057
9058 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
9059
9060         PR target/48678
9061         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9062         is a SUBREG with non-MODE_INT mode inside of it.
9063
9064 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9065
9066         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9067         also according to actual contants.
9068         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9069         (gimple_fold_call): Use it.
9070         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9071
9072 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9073
9074         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9075         non-pointer assignments.
9076
9077 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9078
9079         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9080         account anc_offset and otr_type from the indirect edge info.
9081         * ipa-prop.c (get_ancestor_addr_info): New function.
9082         (compute_complex_ancestor_jump_func): Assignment analysis moved to
9083         get_ancestor_addr_info, call it.
9084         (ipa_note_param_call): Do not initialize information about polymorphic
9085         calls, return the indirect call graph edge.  Remove the last
9086         parameter, adjust all callers.
9087         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9088         parameters.  Initialize polymorphic information in the indirect edge.
9089
9090 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9091
9092         PR lto/48148
9093         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9094         the types if they have different enumeration identifiers.
9095
9096 2011-04-19  Jan Hubicka  <jh@suse.cz>
9097
9098         * cgraph.h (cgraph_optimize_for_size_p): Declare.
9099         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9100         * predict.c (cgraph_optimize_for_size_p): Break out from ...
9101         (optimize_function_for_size_p) ... here.
9102
9103 2011-04-19  Richard Guenther  <rguenther@suse.de>
9104
9105         PR lto/48207
9106         * tree.c (free_lang_data): Do not reset the decl-assembler-name
9107         langhook.
9108
9109 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9110
9111         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9112         if DECL_NO_INLINE_WARNING_P is set on the function.
9113
9114 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
9115
9116         PR fortran/47976
9117         * reload1.c (inc_for_reload): Return void. All callers changed.
9118         (emit_input_reload_insns): Don't try to delete previous output
9119         reloads to a register, or record spill_reg_store for autoincs.
9120
9121 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
9122
9123         * gengtype.h: Updated copyright year.
9124         (struct input_file_st): Add inpisplugin field.
9125         (type_fileloc): New function.
9126         * gengtype.c
9127         (write_typed_struct_alloc_def): Add gcc_assert.
9128         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9129         (write_typed_alloc_defns): Don't output for plugin files.
9130         (input_file_by_name): Clear inpisplugin field.
9131         (main): Set inpisplugin field for plugin files.
9132
9133 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
9134
9135         * gengtype-state.c (string_eq): New.
9136         (read_state): Use string_eq instead of strcmp when creating the
9137         state_ident_tab.
9138
9139 2011-04-19  Wei Guozhi  <carrot@google.com>
9140
9141         PR target/47855
9142         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9143         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9144         linkage.
9145         * config/arm/constraints.md (Uu): New constraint.
9146         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9147
9148 2011-04-19  Tristan Gingold  <gingold@adacore.com>
9149
9150         * config.gcc (-*-*-*vms): Added.
9151         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9152         definitions moved.
9153         * config/vms/vms-ld.c: New file.
9154         * config/vms/vms-ar.c: New file.
9155         * config/vms/t-vmsnative: New file.
9156
9157 2011-04-18  Xinliang David Li  <davidxl@google.com>
9158
9159         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9160
9161 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
9162
9163         PR middle-end/48661
9164         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9165         if TREE_TYPE (v) is non-NULL.
9166
9167         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9168         gimple_get_virt_mehtod_for_binfo.
9169         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9170         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9171         callers.
9172         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9173
9174 2011-04-18  Michael Matz  <matz@suse.de>
9175             Steve Ellcey  <sje@cup.hp.com>
9176
9177         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9178         use its mode as source mode if it isn't VOIDmode.
9179
9180 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
9181
9182         * doc/passes.texi: Fill crossref nodes.
9183
9184 2011-04-18  Jim Meyering  <meyering@redhat.com>
9185
9186         Fix doubled-word typos in comments and strings
9187         * config/alpha/vms-unwind.h: s/for for/for/
9188         * config/arm/unwind-arm.h: Likewise.
9189         * config/microblaze/microblaze.c: Likewise.
9190         * config/sh/constraints.md: s/in in/in/
9191         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9192
9193 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
9194
9195         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9196         (AVX_FLOAT_MODE_P): Ditto.
9197         (AVX128_VEC_FLOAT_MODE_P): Ditto.
9198         (AVX256_VEC_FLOAT_MODE_P): Ditto.
9199         (AVX_VEC_FLOAT_MODE_P): Ditto.
9200         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9201         (UNSPEC_MASKSTORE): Ditto.
9202         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9203         Merge from <sse>_movmsk<ssemodesuffix> and
9204         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
9205         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
9206         iterator.
9207         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9208         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9209         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9210
9211 2011-04-18  Jan Hubicka  <jh@suse.cz>
9212
9213         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9214
9215         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9216         (want_inline_function_called_once_p): Break out the logic from
9217         ipa_inline.
9218         (edge_badness): Ensure that profile is not misupdated.
9219         (lookup_recursive_calls): Prioritize by call frequencies.
9220         (inline_small_functions): Move program size estimates here;
9221         actually process whole queue even when unit growth has been
9222         met. (to properly compute inline_failed reasons and for the
9223         case unit size decrease.) Revisit comments on recursive inlining.
9224         (ipa_inline): Remove unit summary code; first inline hot calls
9225         of functions called once, cold calls next.
9226         (order, nnodes): Remove unused variables.
9227         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9228         (GTFILES): Remove ipa-inline.c
9229         * sel-sched.c (fill_insns): Silence uninitialized var warning.
9230
9231 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9232
9233         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9234
9235 2011-04-18  Jie Zhang  <jie@codesourcery.com>
9236             Richard Earnshaw  <rearnsha@arm.com>
9237
9238         * arm.c (neon_builtin_type_bits): Remove.
9239         (typedef enum neon_builtin_mode): New.
9240         (T_MAX): Don't define.
9241         (typedef enum neon_builtin_datum): Remove bits, codes[],
9242         num_vars and base_fcode.  Add mode, code and fcode.
9243         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9244         VAR10): Change accordingly.
9245         (neon_builtin_data[]): Change accordingly
9246         (arm_init_neon_builtins): Change accordingly.
9247         (neon_builtin_compare): Remove.
9248         (locate_neon_builtin_icode): Remove.
9249         (arm_expand_neon_builtin): Change accordingly.
9250
9251         * arm.h (enum arm_builtins): Move to ...
9252         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9253
9254         * arm.c (arm_builtin_decl): Declare.
9255         (TARGET_BUILTIN_DECL): Define.
9256         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9257         (arm_builtin_decls[]): New.
9258         (arm_init_neon_builtins): Store builtin declarations in
9259         arm_builtin_decls[].
9260         (arm_init_tls_builtins): Likewise.
9261         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
9262         (arm_builtin_decl): New.
9263
9264 2011-04-18  Richard Guenther  <rguenther@suse.de>
9265
9266         * tree.c (upper_bound_in_type): Build properly canonicalized
9267         INTEGER_CSTs.
9268         (lower_bound_in_type): Likewise.
9269
9270 2011-04-18  Richard Guenther  <rguenther@suse.de>
9271
9272         * gimple.h (gimple_call_addr_fndecl): New function.
9273         (gimple_call_fndecl): Use it.
9274         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9275         for direct calls.
9276         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9277         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9278
9279 2011-04-18  Richard Guenther  <rguenther@suse.de>
9280
9281         PR middle-end/48650
9282         * tree.c (build_string): STRING_CST is now derived from tree_typed.
9283
9284 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9285
9286         PR lto/48492
9287         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9288         DECL_IN_CONSTANT_POOL without RTL.
9289
9290 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
9291             Ira Rosen  <ira.rosen@linaro.org>
9292
9293         PR target/48252
9294         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9295         to match neon_vzip/vuzp/vtrn_internal.
9296         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9297         outputs explicitly dependent on both inputs.
9298         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9299
9300 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
9301
9302         PR tree-optimization/48616
9303         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9304         whether the shift is by scalar or vector based on whether all SLP
9305         scalar stmts have the same rhs.
9306
9307 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
9308
9309         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9310         memory operands.
9311
9312 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
9313
9314         PR target/43700
9315         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9316         registers.
9317
9318 2011-04-17  Jan Hubicka  <jh@suse.cz>
9319
9320         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9321         * cgrpahunit.c (cgraph_finalize_function): Do not set
9322         finalized_by_frontend.
9323         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9324         finalized_by_frontend.
9325
9326 2011-04-17  Jan Hubicka  <jh@suse.cz>
9327
9328         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9329         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9330         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9331         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9332         method.
9333         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9334         gimple-fold.c
9335         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9336
9337 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
9338
9339         PR lto/48538
9340         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9341         is non-null before accessing it.
9342         (input_cgraph): Remove trailing spaces.
9343
9344 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9345
9346         * params.def (sms-min-sc): New param flag.
9347         * modulo-sched.c (sms_schedule): Use it.
9348         * doc/invoke.texi (sms-min-sc): Document it.
9349
9350 2011-04-17  Jan Hubicka  <jh@suse.cz>
9351
9352         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9353         present, also set gimple_call_set_cannot_inline.
9354         * ipa-inline.c: Update toplevel comment.
9355         (MAX_TIME): Remove.
9356         (cgraph_clone_inlined_nodes): Fix linebreaks.
9357         (cgraph_check_inline_limits): Restructure to ...
9358         (caller_growth_limits): ... this one; be more tolerant
9359         on growth in nested inline chains; add explanatory comment;
9360         fix stack accounting thinko introduced by previous patch.
9361         (cgraph_default_inline_p): Remove.
9362         (report_inline_failed_reason): New function.
9363         (can_inline_edge_p): New function.
9364         (can_early_inline_edge_p): New function.
9365         (leaf_node_p): Move upwards in file.
9366         (want_early_inline_function_p): New function.
9367         (want_inline_small_function_p): New function.
9368         (want_inline_self_recursive_call_p): New function.
9369         (cgraph_edge_badness): Rename to ...
9370         (edge_badness) ... this one; fix linebreaks.
9371         (update_edge_key): Update call of edge_baddness; add
9372         detailed dump about queue updates.
9373         (update_caller_keys): Use can_inline_edge_p and
9374         want_inline_small_function_p.
9375         (cgraph_decide_recursive_inlining): Rename to...
9376         (recursive_inlining): Use can_inline_edge_p and
9377         want_inline_self_recursive_call_p; simplify and remove no longer
9378         valid FIXME.
9379         (cgraph_set_inline_failed): Remove.
9380         (add_new_edges_to_heap): Use can_inline_edge_p and
9381         want_inline_small_function_p.
9382         (cgraph_decide_inlining_of_small_functions): Rename to ...
9383         (inline_small_functions): ... this one; cleanup; use
9384         can/want predicates; cleanup debug ouput; work edges till fibheap
9385         is exhausted and do not stop once unit growth is reached; remove
9386         later loop processing remaining edges.
9387         (cgraph_flatten): Rename to ...
9388         (flatten_function): ... this one; use can_inline_edge_p
9389         and can_early_inline_edge_p predicates.
9390         (cgraph_decide_inlining): Rename to ...
9391         (ipa_inline): ... this one; remove unreachable nodes before
9392         inlining functions called once; simplify the pass.
9393         (cgraph_perform_always_inlining): Rename to ...
9394         (inline_always_inline_functions): ... this one; use
9395         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9396         (cgraph_decide_inlining_incrementally): Rename to ...
9397         (early_inline_small_functions): ... this one; simplify
9398         using new predicates; cleanup; make dumps prettier.
9399         (cgraph_early_inlining): Rename to ...
9400         (early_inliner): newer inline regular functions into always-inlines;
9401         fix updating of call stmt summaries.
9402         (pass_early_inline): Update for new names.
9403         (inline_transform): Fix formating.
9404         (gate_cgraph_decide_inlining): Rename to ...
9405         (pass_ipa_inline): ... this one.
9406         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9407         * ipa-inline-analysis.c (dump_inline_summary): Update.
9408         (compute_inline_parameters): Do not compute disregard_inline_limits;
9409         look for mismatching arguments.
9410         (estimate_growth): Fix handlig of non-trivial self recursion.
9411         (inline_read_summary): Do not read info->disregard_inline_limits.
9412         (inline_write_summary): Do not write info->disregard_inline_limits.
9413         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9414         and move all checks into can_inline_edge_p predicate; re-enable code
9415         comparing optimization levels.
9416         (expand_call_inline): Do not test inline_forbidden_into_p.
9417         * Makefile.in (ipa-inline.o): Update arguments.
9418
9419 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9420
9421         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9422
9423 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9424
9425         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9426
9427 2011-04-17  Michael Matz  <matz@suse.de>
9428
9429         PR tree-optimization/48622
9430         PR lto/48645
9431         * ipa-inline-analysis.c (inline_read_summary): Read size/time
9432         in same order as they're written.
9433
9434 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9435
9436         * config/pa/predicates.md: Reorganize and simplify predicates.
9437         Eliminate duplicate code checks.
9438         (arith_operand): Rename to arith14_operand
9439         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9440         * config/pa/pa.md: Use renamed operands.
9441         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9442         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9443         arith11_operand, adddi3_operand, indexed_memory_operand,
9444         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9445         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9446         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9447         move_dest_operand, move_src_operand, prefetch_cc_operand,
9448         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9449         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9450         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9451         div_operand, int5_operand, movb_comparison_operator,
9452         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9453         arith_double_operand, ireg_operand, lhs_lshift_operand,
9454         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9455         integer_store_memory_operand): Likewise.
9456         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9457         (integer_store_memory_operand, read_only_operand,
9458         function_label_operand, borx_reg_operand,
9459         non_hard_reg_operand): Likewise.
9460         (eq_neq_comparison_operator): Delete unused operator.
9461         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9462         function_label_operand.
9463         (emit_move_sequence): Likewise.
9464
9465 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9466
9467         * config/i386/sse.md (sseunpackmode): New mode attribute.
9468         (ssepackmode): Ditto.
9469         (vec_pack_trunc_<mode>): Macroize expander from
9470         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9471         (vec_unpacks_lo_<mode>): Macroize expander from
9472         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9473         (vec_unpacks_hi_<mode>): Macroize expander from
9474         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9475         (vec_unpacku_lo_<mode>): Macroize expander from
9476         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9477         (vec_unpacku_hi_<mode>): Macroize expander from
9478         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9479         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9480         ix86_expand_sse4_unpack.
9481         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9482
9483 2011-04-16  Jan Hubicka  <jh@suse.cz>
9484
9485         * cgraphbuild.c: Include ipa-inline.h.
9486         (reset_inline_failed): Use initialize_inline_failed.
9487         * cgraph.c: Include ipa-inline.h.
9488         (cgraph_create_node_1): Do not initialize estimated_growth.
9489         (initialize_inline_failed): More to ipa-inline-analysis.c
9490         (dump_cgraph_node): Do not dump inline flags.
9491         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9492         and disregard_inline_limits flags.
9493         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9494         time, size, estimated_growth.
9495         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9496         Update.
9497         * cgraphunit.c (cgraph_decide_is_function_needed): Use
9498         DECL_DISREGARD_INLINE_LIMITS.
9499         (cgraph_analyze_function): Do not initialize
9500         node->local.disregard_inline_limits.
9501         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9502         inlinable, versionable and disregard_inline_limits.
9503         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9504         cgraph_check_inline_limits, cgraph_default_inline_p,
9505         cgraph_edge_badness, update_caller_keys, update_callee_keys,
9506         add_new_edges_to_heap): Update.
9507         (cgraph_decide_inlining_of_small_function): Update; set
9508         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9509         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9510         cgraph_decide_inlining_incrementally): Update.
9511         * ipa-inline.h (inline_summary): Add inlinable, versionable,
9512         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9513         time, size and estimated_growth parameters.
9514         (estimate_edge_growth): Update.
9515         (initialize_inline_failed): Declare.
9516         * ipa-split.c: Include ipa-inline.h
9517         (execute_split_functions): Update.
9518         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9519         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9520         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9521         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9522         estimated_growth to INT_MIN.
9523         (inline_node_duplication_hook): Likewise.
9524         (dump_inline_summary): Dump new fields.
9525         (compute_inline_parameters): Update.
9526         (estimate_edge_time, estimate_time_after_inlining,
9527         estimate_size_after_inlining, estimate_growth, inline_read_summary,
9528         inline_write_summary):
9529         (initialize_inline_failed): Move here from cgraph.c.
9530         * tree-sra.c: Include ipa-inline.h.
9531         (ipa_sra_preliminary_function_checks): Update.
9532         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9533         ipa-inline.h.
9534
9535 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9536
9537         * config/i386/sse.md (V16): New mode iterator.
9538         (VI1, VI8): Ditto.
9539         (AVXMODEQI, AVXMODEDI): Remove.
9540         (sse2, sse3): New mode attribute.
9541         (mov<mode>): Use V16 mode iterator.
9542         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9543         (push<mode>1): Use V16 mode iterator.
9544         (movmisalign<mode>): Ditto.
9545         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9546         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9547         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9548         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9549         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9550         avx_movdqu<avxmodesuffix>.
9551         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9552         *avx_movdqu<avxmodesuffix>.
9553         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9554         avx_lddqu<avxmodesuffix>.
9555         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9556         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9557         avx_movnt<AVXMODEDI:mode>.
9558         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9559         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9560
9561 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
9562
9563         PR target/48629
9564         * haifa-sched.c (prune_ready_list, schedule_block): Use
9565         sched_pressure_p rather than flag_sched_pressure.
9566
9567 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
9568
9569         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9570         cgraph_get_node instead of cgraph_get_create_node.
9571
9572 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
9573
9574         * cfgexpand.c (expand_debug_expr): Use
9575         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9576
9577 2011-04-15  Michael Matz  <matz@suse.de>
9578
9579         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9580         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9581         * function.c (gimplify_parameters): Ditto.
9582         * gimplify.c (gimplify_vla_decl): Ditto.
9583
9584         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9585         (gimple_call_set_alloca_for_var): New inline function.
9586         (gimple_call_alloca_for_var_p): Ditto.
9587         * gimple.c (gimple_build_call_from_tree): Remember
9588         CALL_ALLOCA_FOR_VAR_P state.
9589         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9590
9591         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9592         calls if they were for VLA objects.
9593
9594 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9595
9596         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9597         of ADR_EXPRs.
9598
9599 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9600
9601         PR middle-end/48601
9602         * tree-emutls.c (lower_emutls_function_body): Call
9603         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
9604         result is non-NULL.
9605
9606 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
9607
9608         * c-decl.c (detect_field_duplicates): Call
9609         objc_detect_field_duplicates instead of objc_get_interface_ivars.
9610
9611 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
9612
9613         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9614         * gimple.c (gimple_asm_clobbers_memory_p): Define.
9615         * ipa-pure-const.c (check_stmt): Call it.
9616         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9617
9618 2011-04-15  Richard Guenther  <rguenther@suse.de>
9619
9620         PR tree-optimization/48290
9621         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9622         Properly decide inhibiting propagation based on the valueized
9623         operand.  Do loop-closed SSA form preserving here ...
9624         (init_copy_prop): ... not here.
9625
9626 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
9627
9628         PR target/48612
9629         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9630         (*ieee_smax<mode>3): Likewise.
9631
9632 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9633
9634         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9635         Replace match_operand with match_dup for the third operand in
9636         these expanders.
9637
9638 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9639
9640         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9641         to track processing of conditionals.  Update all callers.
9642         (try_combine, simplify_if_then_else): Update.
9643
9644 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9645
9646         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9647         -fsched-pressure.
9648
9649 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
9650
9651         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9652         instead of match_operand for operand 3.
9653
9654 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
9655
9656         * recog.h (insn_operand_data): Add an "allows_mem" field.
9657         * genoutput.c (output_operand_data): Initialize it.
9658         * optabs.c (maybe_legitimize_operand_same_code): New function.
9659         (maybe_legitimize_operand): Use it when matching the original
9660         op->value.
9661
9662 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9663
9664         * gimplify.c: Fix issues in comments throughout.
9665         (voidify_wrapper_expr): Fix long line.
9666         (build_stack_save_restore): Likewise.
9667         (gimplify_loop_expr): Likewise.
9668         (gimplify_compound_lval): Likewise.
9669         (gimplify_init_ctor_eval): Likewise.
9670         (gimplify_modify_expr_rhs): Likewise.
9671         (omp_notice_threadprivate_variable): Likewise.
9672
9673 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9674
9675         * cfgexpand.c (expand_call_stmt): Convert the function type to the
9676         original one if this is not a builtin function.
9677
9678 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
9679
9680         PR target/48605
9681         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9682         offset it as needed based on top 2 bits in operands[3], change
9683         MEM mode to SFmode and mask those 2 bits away from operands[3].
9684
9685 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9686
9687         * c-parser.c (c_parser_objc_protocol_definition): Updated for
9688         change from objc_declare_protocols() to objc_declare_protocol().
9689
9690 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
9691
9692         * config/i386/sse.md (sse4_1): New mode attribute.
9693         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9694         avx_blend<ssemodesuffix><avxmodesuffix> and
9695         sse4_1_blend<ssemodesuffix> using VF mode iterator.
9696         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9697         avx_blendv<ssemodesuffix><avxmodesuffix> and
9698         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9699         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9700         avx_dp<ssemodesuffix><avxmodesuffix> and
9701         sse4_1_dp<ssemodesuffix> using VF mode iterator.
9702         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9703         (sse4_1_packusdw): Merge with *avx_packusdw.
9704         (sse4_1_pblendvb): Merge with *avx_pblendvb.
9705         (sse4_1_pblendw): Merge with *avx_pblendw.
9706         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9707         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9708         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9709         VF mode iterator.
9710         (sse4_1_round<ssescalarmodesuffix>): Merge with
9711         *avx_round<ssescalarmodesuffix>.
9712         (aesenc): Merge with *avx_aesenc.
9713         (aesenclast): Merge with *avx_aesenclast.
9714         (aesdec): Merge with *avx_aesdec.
9715         (aesdeclast): Merge with *avx_aesdeclast.
9716         (pclmulqdq): Merge with *pclmulqdq.
9717         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9718         New predicate.
9719         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9720
9721 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
9722
9723         PR middle-end/48608
9724         * cfgexpand.c (get_decl_align_unit): Renamed to ...
9725         (align_local_variable): This.  Update DECL_ALIGN.
9726         (add_stack_var): Updated.
9727         (expand_one_stack_var): Likewise.
9728
9729 2011-04-14  Richard Guenther  <rguenther@suse.de>
9730
9731         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9732         Remove.
9733         (dse_initialize_block_local_data, dse_leave_block,
9734         record_voperand_set, get_stmt_uid): Likewise.
9735         (dse_possible_dead_store_p): Allow any kind of killing stmt.
9736         (dse_optimize_stmt): Remove voperand set handling code.
9737         Simplify and improve to handle any kind of killing stmt.
9738         (dse_record_phi): Remove.
9739         (dse_enter_block): Simplify.
9740         (tree_ssa_dse): Likewise.
9741         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9742
9743 2011-04-14  Jan Hubicka  <jh@suse.cz>
9744
9745         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9746         * cgraph.h (struct inline_summary): Move to ipa-inline.h
9747         (cgraph_local_info): Remove inline_summary.
9748         * ipa-cp.c: Include ipa-inline.h.
9749         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9750         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9751         accesor.
9752         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9753         (input_overwrite_node): Do not set inline summary.
9754         (input_node): Do not stream inline summary.
9755         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9756         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9757         growth; we do not have inline parameters computed for that anyway.
9758         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9759         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9760         (inline_summary_t): New type and VECtor.
9761         (debug_inline_summary, dump_inline_summaries): Declare.
9762         (inline_summary): Use VOCtor.
9763         (estimate_edge_growth): Kill hack computing call stmt size directly.
9764         * lto-section-in.c (lto_section_name): Add inline section.
9765         * ipa-inline-analysis.c: Include lto-streamer.h
9766         (node_removal_hook_holder, node_duplication_hook_holder): New holders
9767         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9768         (inline_summary_vec): Define.
9769         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9770         dump_inline_summaries): New functions.
9771         (estimate_function_body_sizes): Properly compute size/time of outgoing
9772         calls.
9773         (compute_inline_parameters): Alloc inline_summary; do not compute
9774         size/time of incomming calls.
9775         (estimate_edge_time): Avoid missing time summary hack.
9776         (inline_read_summary): Read inline summary info.
9777         (inline_write_summary): Write inline summary info.
9778         (inline_free_summary): Free all hooks and inline summary vector.
9779         * lto-streamer.h: Add LTO_section_inline_summary section.
9780         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9781         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9782
9783 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9784
9785         * tree-vectorizer.h (vect_strided_store_supported): Add a
9786         HOST_WIDE_INT argument.
9787         (vect_strided_load_supported): Likewise.
9788         (vect_permute_store_chain): Return void.
9789         (vect_transform_strided_load): Likewise.
9790         (vect_permute_load_chain): Delete.
9791         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9792         count argument.  Check that the count is a power of two.
9793         (vect_strided_load_supported): Likewise.
9794         (vect_permute_store_chain): Return void.  Update after above changes.
9795         Assert that the access is supported.
9796         (vect_permute_load_chain): Likewise.
9797         (vect_transform_strided_load): Return void.
9798         * tree-vect-stmts.c (vectorizable_store): Update calls after
9799         above interface changes.
9800         (vectorizable_load): Likewise.
9801         (vect_analyze_stmt): Don't check for strided powers of two here.
9802
9803 2011-04-14  Richard Guenther  <rguenther@suse.de>
9804
9805         PR tree-optimization/48590
9806         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9807         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9808         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9809         BUILT_IN_STACK_SAVE.
9810         * tree-ssa-dce.c (propagate_necessity): Handle
9811         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9812
9813 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9814
9815         * c-parser.c (c_parser_objc_class_declaration): Updated call to
9816         objc_declare_class.
9817
9818 2011-04-14  Richard Guenther  <rguenther@suse.de>
9819
9820         * tree.h (get_object_alignment_1): Declare.
9821         * builtins.c (get_object_alignment_1): Split out worker from ...
9822         (get_object_alignment): ... here.
9823         * fold-const.c (get_pointer_modulus_and_residue): Use
9824         get_object_alignment_1.
9825
9826 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9827
9828         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9829         type parameter.
9830         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9831         parameter.  Generalise code to handle arrays as well as vectors.
9832         (vect_setup_realignment): Update accordingly.
9833         * tree-vect-stmts.c (vectorizable_store): Likewise.
9834         (vectorizable_load): Likewise.
9835
9836 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9837
9838         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9839         within the per-copy loop.
9840
9841 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9842
9843         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9844         in the dump file.
9845
9846 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9847
9848         * doc/options.texi (Negative): Explicitly mention that the
9849         Negative chain must be circular.
9850
9851 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
9852
9853         * function.h (block_chainon): Declare.
9854         * function.c (block_chainon): Define.
9855
9856 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
9857             Eric Weddington  <eric.weddington@atmel.com>
9858             Georg-Johann Lay  <avr@gjlay.de>
9859
9860         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9861         New Includes
9862         (avr_init_builtins, avr_expand_builtin,
9863         avr_expand_delay_cycles, avr_expand_unop_builtin,
9864         avr_expand_binop_builtin ): New functions.
9865         (avr_builtin_id): New enum
9866         (struct avr_builtin_description): New struct
9867         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9868         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9869
9870         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9871         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9872         UNSPECV_DELAY_CYCLES): new enumeration values
9873         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9874         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9875         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9876         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9877         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9878         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9879         "fmulsu"): New insns
9880
9881         * config/avr/avr-c.c: fix line endings
9882         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9883         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9884         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9885         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9886         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9887
9888         * doc/extend.texi (AVR Built-in Functions): New node
9889         (Target Builtins): Add documentation of AVR
9890         built-in functions.
9891
9892 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
9893
9894         PR target/44643
9895         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9896         alone. Error if non-const data has attribute progmem.
9897
9898 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9899
9900         * tree.h (struct tree_constructor): Include tree_typed instead of
9901         tree_common.
9902         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9903         TS_TYPED instead of TS_COMMON.
9904
9905 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9906
9907         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9908         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9909         (sse2_psadbw): Merge with *avx_psadbw.
9910         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9911         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9912         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9913         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9914         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9915         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9916         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9917         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9918         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9919         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9920         (ssse3_palignrti): Merge with *avx_palignrti.
9921
9922 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9923
9924         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9925         * tree-ssanames.c (fini_ssanames): VEC_free it.
9926         (make_ssa_name_fn): Update for VECness of free_ssanames.
9927         (release_ssa_name, release_dead_ssa_names): Likewise.
9928         * tree.h (struct tree_ssa_name): Include tree_typed instead of
9929         tree_common.
9930         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9931         TS_TYPED instead of TS_COMMON.
9932
9933 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9934
9935         * postreload-gcse.c (gcse_after_reload_main): Add calls to
9936         statistics_counter_event.
9937         * tree-ssa-copyrename.c (stats): Define.
9938         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
9939         statistics_counter_event.
9940         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9941         (bswap_stats, widen_mul_stats): Define.
9942         (insert_reciprocals): Increment rdivs_inserted.
9943         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
9944         rfuncs_inserted.  Add calls to statistics_counter_event.
9945         (execute_cse_sincos_1): Increment inserted.
9946         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
9947         statistics_counter_event.
9948         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
9949         of bswap_stats.  Add calls to statistics_counter_event.
9950         (convert_mult_to_widen): Increment widen_mults_inserted.
9951         (convert_plusminus_to_widen): Increment maccs_inserted.
9952         (convert_mult_to_fma): Increment fmas_inserted.
9953         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
9954         calls to statistics_counter_event.
9955
9956 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
9957
9958         PR rtl-optimization/48455
9959         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9960         `temp_costs->mem_cost'.
9961
9962 2011-04-13  Jan Hubicka  <jh@suse.cz>
9963
9964         * ipa-inline.h: New file.
9965         * ipa-inline-analysis.c: New file. Broken out of ...
9966         * ipa-inline.c: ... this file; update toplevel comment;
9967         include ipa-inline.h
9968         (inline_summary): Move to ipa-inline.h
9969         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9970         ipa-inline-analysis.c.
9971         (cgraph_estimate_time_after_inlining): Rename to
9972         estiamte_time_after_inlining; move to ipa-inline-analysis.c
9973         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9974         to estimate_edge_growth.
9975         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9976         rename to estimate_size_after_inlining.
9977         (cgraph_mark_inline_edge): Update for new naming convention.
9978         (cgraph_check_inline_limits): Likewise.
9979         (cgraph_edge_badness): Likewise.
9980         (cgraph_decide_recursive_inlining): Likewise.
9981         (cgraph_decide_inlining_of_small_functions): Likewise.
9982         (cgraph_decide_inlining_incrementally): Likewise.
9983         (cgraph_estimate_growth): Rename to estimate_growth; move to
9984         ipa-inline-analysis.c.
9985         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9986         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9987         (compute_inline_parameters): Likewise.
9988         (compute_inline_parameters_for_current): Likewise.
9989         (pass_inline_parameters): Likewise.
9990         (inline_indirect_intraprocedural_analysis): Likewise.
9991         (analyze_function): Rename to inline_analyze_function; likewise.
9992         (add_new_function): Move to ipa-inline-analysis.c.
9993         (inline_generate_summary): Likewise.
9994         (inline_read_summary): Likewise.
9995         (inline_write_summary): Likewise.
9996         * Makefile.in (ipa-inline-analysis.c): New file.
9997
9998 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9999
10000         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
10001         * configure: Regenerate.
10002
10003 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
10004
10005         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
10006         instead of tree_common.
10007         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
10008         Likewise.
10009         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
10010         TS_TYPED rather than TS_COMMON.
10011         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
10012
10013 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
10014
10015         PR target/45263
10016         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
10017         r20 around calls of __tablejump_elpm__
10018
10019 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
10020
10021         PR middle-end/48591
10022         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10023         NULL.
10024         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10025
10026 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
10027
10028         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10029         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10030         (cfi_vec): New typedef.
10031         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10032         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10033         (cie_cfi_vec): New static variable.
10034         (cie_cfi_head): Delete.
10035         (add_cfi): Accept a cfi_vec * as first argument. All callers and
10036         declaration changed. Use vector rather than list operations.
10037         (new_cfi): Don't initialize the dw_cfi_next field.
10038         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10039         rather than list operations.
10040         (lookup_cfa): Use vector rather than list operations.
10041         (output_cfis): New argument upto. Accept a cfi_vec rather than
10042         a dw_cfi_ref list head as argument. All callers changed.
10043         Iterate over the vector using upto as a maximum index.
10044         (output_all_cfis): New static function.
10045         (output_fde): Use vector rather than list operations. Use the
10046         new upto argument for output_cfis rather than manipulating a
10047         list.
10048         (dwarf2out_begin_prologue): Change initializations to match
10049         new struct members.
10050         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10051         from the vector length rather than searching for the end of a list.
10052         Use output_all_cfis.
10053         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10054
10055 2011-04-13  Nick Clifton  <nickc@redhat.com>
10056
10057         * config/rx/rx.md (movmemsi): Do not use this pattern when
10058         volatile pointers are involved.
10059
10060 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
10061
10062         * config/i386/sse.md (pinsrbits): Remove.
10063         (sse2_packsswb): Merge with *avx_packsswb.
10064         (sse2_packssdw): Merge with *avx_packssdw.
10065         (sse2_packuswb): Merge with *avx_packuswb.
10066         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10067         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10068         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10069         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10070         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10071         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10072         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10073         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10074         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10075         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10076         (sse2_loadld): Merge with *avx_loadld.
10077         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10078         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10079         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10080         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10081         (vec_concatv2di): Merge with *vec_concatv2di_avx.
10082
10083 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
10084
10085         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10086         calling TREE_CHAIN.
10087         * print-tree.c (print_node): Likewise.
10088         * tree-inline.c (copy_tree_r): Likewise.
10089         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10090         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10091         instead of TS_COMMON.
10092         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10093         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10094         (copy_node_stat): Zero TREE_CHAIN only if necessary.
10095         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10096         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10097         ...and these...
10098         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10099         * tree.h: ...here.
10100         (TREE_CHAIN): Check for a TS_COMMON structure.
10101         (TREE_TYPE): Check for a TS_TYPED structure.
10102
10103 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
10104
10105         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10106         cgraph_get_create_node instead of cgraph_node.
10107
10108 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10109
10110         * c-parser.c (c_parser_initelt): Updated call to
10111         objc_build_message_expr.
10112         (c_parser_postfix_expression): Likewise.
10113
10114 2011-04-12  Kai Tietz  <ktietz@redhat.com>
10115
10116         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10117         MASK_MS_BITFIELD_LAYOUT bit.
10118
10119 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10120
10121         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10122         assert it is always true.
10123         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10124         moves.
10125
10126 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10127
10128         * c-parser.c (c_lex_one_token): Rewritten conditional used when
10129         compiling Objective-C to be more efficient.
10130
10131 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
10132
10133         * opts-common.c (decode_cmdline_options_to_array): Remove variable
10134         argv_copied.
10135
10136 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10137
10138         * recog.h, genoutput.c, optabs.c: Revert last patch.
10139
10140 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10141
10142         PR target/48090
10143         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10144
10145 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10146
10147         * recog.h (insn_operand_data): Add an "allows_mem" field.
10148         * genoutput.c (output_operand_data): Initialize it.
10149         * optabs.c (maybe_legitimize_operand_same_code): New function.
10150         (maybe_legitimize_operand): Use it when matching the original
10151         op->value.
10152
10153 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10154
10155         * genpreds.c (process_define_predicate): Move most processing
10156         to gensupport.c.  Continue to validate the expression.
10157         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10158         (process_define_predicate): Move processing to gensupport.c.
10159         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10160         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10161         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
10162         argument.
10163         (valid_predicate_name_p): New function, split out from old
10164         genpreds.c:process_define_predicate.
10165         (process_define_predicate): New function, combining code from
10166         old genpreds.c and genrecog.c functions.
10167         (process_rtx): Call it for DEFINE_PREDICATE and
10168         DEFINE_SPECIAL_PREDICATE.
10169
10170 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10171
10172         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10173         size of a '%A' memory reference.
10174         (T_DREG, T_QREG): New neon_builtin_type_bits.
10175         (arm_init_neon_builtins): Assert that the load and store operands
10176         are neon_struct_operands.
10177         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10178         (NEON_ARG_MEMORY): New builtin_arg.
10179         (neon_dereference_pointer): New function.
10180         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10181         Handle NEON_ARG_MEMORY.
10182         (arm_expand_neon_builtin): Update after above interface changes.
10183         Use NEON_ARG_MEMORY for loads and stores.
10184         * config/arm/predicates.md (neon_struct_operand): New predicate.
10185         * config/arm/iterators.md (V_two_elem): Tweak formatting.
10186         (V_three_elem): Use BLKmode for accesses that have no associated mode.
10187         (V_four_elem): Tweak formatting.
10188         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10189         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10190         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10191         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10192         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10193         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10194         (neon_vst4<mode>): Replace pointer operand with a memory operand.
10195         Use %A in the output template.
10196         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10197         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10198         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10199         the width of the memory access.  Remove post-increment.
10200         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10201
10202 2011-04-12  Nick Clifton  <nickc@redhat.com>
10203
10204         * config/v850/v850.c (expand_prologue): Do not use the CALLT
10205         instruction for interrupt handlers if the target is the basic V850
10206         architecture.
10207         (expand_epilogue): Likewise.
10208
10209 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10210
10211         PR rtl-optimization/48549
10212         * combine.c (propagate_for_debug): Also stop after BB_END of
10213         this_basic_block.  Process LAST and just stop processing after it.
10214         (combine_instructions): If last_combined_insn has been deleted,
10215         set last_combined_insn to its PREV_INSN.
10216
10217 2011-04-12  Richard Guenther  <rguenther@suse.de>
10218
10219         PR tree-optimization/46076
10220         * gimple.h (struct gimple_statement_call): Add fntype field.
10221         (gimple_call_fntype): Adjust.
10222         (gimple_call_set_fntype): New function.
10223         * gimple.c (gimple_build_call_1): Set the call function type.
10224         * gimplify.c (gimplify_call_expr): Preserve the function
10225         type the frontend used for the call.
10226         (gimplify_modify_expr): Likewise.
10227         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10228         function type.
10229         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10230         function type.
10231         * tree-ssa.c (useless_type_conversion_p): Function pointer
10232         conversions are useless.
10233
10234 2011-04-12  Martin Jambor  <mjambor@suse.cz>
10235
10236         * cgraph.h (cgraph_node): Remove function declaration.
10237         (cgraph_create_node): Declare.
10238         (cgraph_get_create_node): Likewise.
10239         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10240         Updated all callers.
10241         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10242         the decl does not already exist.  Call cgraph_get_create_node instead
10243         of cgraph_node.
10244         (cgraph_get_create_node): New function.
10245         (cgraph_same_body_alias): Update comment.
10246         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10247         assert it does not return NULL.
10248         (cgraph_update_edges_for_call_stmt): Likewise.
10249         (cgraph_clone_edge): Likewise.
10250         (cgraph_create_virtual_clone): Likewise.
10251         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10252         instead of cgraph_node.
10253         (cgraph_add_new_function): Call cgraph_create_node or
10254         cgraph_get_create_node instead of cgraph_node.
10255         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10256         instead of cgraph_node.
10257         (record_eh_tables): Likewise.
10258         (mark_address): Likewise.
10259         (mark_load): Likewise.
10260         (build_cgraph_edges): Call cgraph_get_create_node instead
10261         of cgraph_node.
10262         (rebuild_cgraph_edges): Likewise.
10263         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10264         instead of cgraph_node.
10265         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10266         cgraph_node.
10267         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10268         cgraph_create_node instead of cgraph_node.
10269         * c-decl.c (finish_function): Call cgraph_get_create_node instead
10270         of cgraph_node.
10271         * lto-cgraph.c (input_node): Likewise.
10272         * lto-streamer-in.c (input_function): Likewise.
10273         * varasm.c (mark_decl_referenced): Likewise.
10274         (assemble_alias): Likewise.
10275
10276 2011-04-12  Martin Jambor  <mjambor@suse.cz>
10277
10278         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10279         instead of cgraph_node and assert it does not return NULL.
10280         * lto-streamer-in.c (lto_read_body): Likewise.
10281         * omp-low.c (new_omp_context): Likewise.
10282         (create_task_copyfn): Likewise.
10283         * tree-emutls.c (lower_emutls_function_body): Likewise.
10284         * matrix-reorg.c (transform_allocation_sites): Likewise.
10285
10286 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10287
10288         PR c/48552
10289         * c-typeck.c (build_asm_expr): Error out on attempts to use
10290         void type outputs or inputs for constraints that allow reg or
10291         don't allow memory.
10292
10293 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
10294             Richard Earnshaw  <rearnsha@arm.com>
10295
10296         PR target/48250
10297         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10298         to use sign-magnitude offsets. Reject unsupported unaligned
10299         cases. Add detailed description in comments.
10300         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10301         condition from TARGET_32BIT to TARGET_ARM.
10302
10303 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
10304
10305         * tree.h (struct typed_tree): New.
10306         (struct tree_common): Include it instead of tree_base.
10307         (TREE_TYPE): Update for new location of type field.
10308         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10309         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10310         (union tree_node): Add typed field.
10311         * treestruct.def (TS_TYPED): New.
10312         * lto-streamer.c (check_handled_ts_structures): Handle it.
10313         * tree.c (MARK_TS_TYPED): New macro.
10314         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10315
10316 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
10317
10318         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10319         (force_nonfallthru): Do not alter the loop nest if no basic block
10320         was created.
10321
10322 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10323
10324         * config/i386/sse.md (VI): New mode iterator.
10325         (SSEMODEI): Remove.
10326         (AVX256MODEI): Ditto.
10327         (AVXMODEF4P): Ditto.
10328         (avxvecpsmode): Ditto.
10329         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
10330         (sse2_andnot<mode>3): New expander.
10331         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10332         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
10333         (<any_logic:code><mode>3): Use VI mode iterator.
10334         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10335         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
10336         (*andnottf3): Handle AVX three-operand constraints.
10337         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10338
10339 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10340             Robert Millan  <rmh@gnu.org>
10341
10342         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10343         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10344         GNU_USER_DYNAMIC_LINKER64): Define.
10345         (REG_NAME): Don't undefine.
10346         (MD_UNWIND_SUPPORT): Undefine.
10347         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10348         (REG_NAME): Don't undefine.
10349         (MD_UNWIND_SUPPORT): Undefine.
10350         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10351
10352 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10353
10354         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10355         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10356
10357 2011-04-11  Xinliang David Li  <davidxl@google.com>
10358
10359         * value-profile.c (check_ic_target): New function.
10360         (gimple_ic_transform): Sanity check indirect call target.
10361         * gimple-low.c (gimple_check_call_args): Interface change.
10362         (gimple_check_call_matching_types): New function.
10363         * tree-inline.c (tree_can_inline_p): Call new function.
10364
10365 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
10366
10367         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10368         tree-pretty-print.h & realmpfr.h.
10369
10370 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
10371
10372         PR middle-end/48464
10373         * ira.c (setup_pressure_classes): Fix typo in loop condition.
10374         (setup_allocno_and_important_classes): Ditto.
10375
10376 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10377
10378         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10379         GNU_USER_DYNAMIC_LINKER.
10380         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10381         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10382         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10383         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10384         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10385         GNU_USER_TARGET_OS_CPP_BUILTINS.
10386         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10387         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10388         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10389         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10390         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10391         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10392         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10393         GNU_USER_TARGET_OS_CPP_BUILTINS.
10394         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10395         GNU_USER_DYNAMIC_LINKER.
10396         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10397         GNU_USER_TARGET_OS_CPP_BUILTINS.
10398         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10399         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10400         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10401         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10402         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10403         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10404         GNU_USER_DYNAMIC_LINKER64): Remove.
10405         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10406         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10407         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10408         GNU_USER_DYNAMIC_LINKER.
10409         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10410         GNU_USER_TARGET_OS_CPP_BUILTINS.
10411         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10412         GNU_USER_TARGET_OS_CPP_BUILTINS.
10413         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10414         to GNU_USER_TARGET_OS_CPP_BUILTINS.
10415         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10416         GNU_USER_TARGET_OS_CPP_BUILTINS.
10417         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10418         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10419         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10420         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10421         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10422         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10423         GNU_USER_DYNAMIC_LINKER.
10424         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10425         GNU_USER_TARGET_OS_CPP_BUILTINS.
10426         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10427         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10428         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10429         GNU_USER_DYNAMIC_LINKER.
10430         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10431         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10432         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10433         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10434         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10435         GNU_USER_DYNAMIC_LINKER.
10436         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10437         GNU_USER_DYNAMIC_LINKERN32.
10438         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10439         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
10440         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
10441         GNU_USER_DYNAMIC_LINKER32.
10442         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10443         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10444         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10445         GNU_USER_DYNAMIC_LINKER.
10446         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10447         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10448         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10449         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10450         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10451         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10452         GNU_USER_DYNAMIC_LINKER32.
10453         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10454         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10455         GNU_USER_DYNAMIC_LINKER.
10456         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10457         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10458         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10459         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
10460         GNU_USER_DYNAMIC_LINKER64.
10461         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10462         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10463         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10464         GNU_USER_DYNAMIC_LINKER.
10465         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10466         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10467         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10468         GNU_USER_DYNAMIC_LINKER.
10469         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10470         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10471         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10472         GNU_USER_DYNAMIC_LINKER32.
10473         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10474         GNU_USER_DYNAMIC_LINKER64.
10475         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10476         GNU_USER_DYNAMIC_LINKER64.
10477         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10478         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10479         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10480         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10481         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10482
10483 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10484
10485         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
10486         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10487         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10488         GNU_USER_DYNAMIC_LINKER.
10489         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10490         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
10491         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10492         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10493         GNU_USER_DYNAMIC_LINKER64.
10494         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10495         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10496         GNU_USER_LINK_EMULATION.
10497         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10498         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10499         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10500         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10501         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10502         CPP_SPEC, CC1_SPEC): Remove.
10503         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10504         (GNU_USER_DYNAMIC_LINKER): Define.
10505         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10506         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10507         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10508         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10509         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10510         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10511         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10512         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10513         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10514         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10515         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10516         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10517         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10518         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10519         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10520         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10521         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10522         GNU_USER_DYNAMIC_LINKER.
10523         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10524         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10525         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10526         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10527         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10528         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10529         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10530         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10531         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10532         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10533
10534 2011-04-11  Kai Tietz  <ktietz@redhat.com>
10535
10536         PR target/9601
10537         PR target/11772
10538         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10539         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10540         comment.
10541         (ix86_is_msabi_thiscall): Removed.
10542         (ix86_is_type_thiscall): Likewise.
10543         (ix86_get_callcvt): New function.
10544         (ix86_comp_type_attributes): Simplify check.
10545         (ix86_function_regparm): Use ix86_get_callcvt for calling
10546         convention attribute checks.
10547         (ix86_return_pops_args): Likewise.
10548         (ix86_static_chain): Likewise.
10549         (x86_this_parameter): Likewise.
10550         (x86_output_mi_thunk): Likewise.
10551         (ix86_function_type_abi): Optimize check for types without attributes.
10552         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10553         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10554         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10555         by flag-values.
10556         (IX86_BASE_CALLCVT): Helper macro.
10557         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10558         Use ix86_get_callcvt for calling convention attribute checks and avoid
10559         symbol-decoration for stdcall in TARGET_RTD case.
10560         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10561         Likewise.
10562         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10563         for declaration.
10564
10565 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10566
10567         * config/i386/sse.md (VI_128): New mode iterator.
10568         (VI12_128): Rename from SSEMODE12.
10569         (VI14_128): Rename from SSEMODE14.
10570         (VI124_128): New mode iterator.
10571         (VI24_128): Rename from SSEMODE248.
10572         (VI248_128): Rename from SSEMODE248.
10573         (SSEMODE124C8): Remove.
10574         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10575         (*sse2_<plusminus_insn><mode>3): Merge with
10576         *avx_<plusminus_insn><mode>3.
10577         (*mulv8hi3): Merge with *avx_mulv8hi3.
10578         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10579         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10580         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10581         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10582         (ashr<mode>3): Merge with *avx_ashr<mode>3.
10583         (lshr<mode>3): Merge with *avx_lshr<mode>3.
10584         (ashl<mode>3): Merge with *avx_ashl<mode>3.
10585         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10586         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10587         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10588         (*<smaxmin:code>v8hi3): Ditto.
10589         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10590         (*<smaxmin:code>v16qi3): Ditto.
10591         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10592         (*sse2_eq<mode>3): Ditto.
10593         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10594         (*sse2_gt<mode>3): Ditto.
10595         (vcondv2di): Split out of vcond<mode>.
10596         (vconduv2di): Split out of vcondu<mode>.
10597
10598 2011-04-11  Richard Guenther  <rguenther@suse.de>
10599
10600         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10601         before calling tree_low_cst.
10602
10603 2011-04-11  Richard Guenther  <rguenther@suse.de>
10604
10605         * stor-layout.c (layout_type): Compute all array index size operations
10606         in the original type.
10607         (initialize_sizetypes): Add comment.
10608         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10609
10610 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10611
10612         * common.opt (Tbss=, Tdata=, Ttext=): New options.
10613
10614 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10615
10616         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10617         of cgraph_node, handle NULL return value.
10618         (cgraph_global_info): Likewise.
10619         (cgraph_rtl_info): Likewise.
10620         * tree-inline.c (estimate_num_insns): Likewise.
10621         * gimplify.c (unshare_body): Likewise.
10622         (unvisit_body): Likewise.
10623         (gimplify_body): Likewise.
10624         * predict.c (optimize_function_for_size_p): Likewise.
10625         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10626         (call_may_clobber_ref_p_1): Likewise.
10627         * varasm.c (function_section_1): Likewise.
10628         (assemble_start_function): Likewise.
10629
10630 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10631
10632         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10633         of cgraph_node.
10634         * final.c (rest_of_clean_state): Likewise.
10635         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10636         * passes.c (pass_init_dump_file): Likewise.
10637         (execute_all_ipa_transforms): Likewise.
10638         (function_called_by_processed_nodes_p): Likewise.
10639         * predict.c (maybe_hot_frequency_p): Likewise.
10640         (probably_never_executed_bb_p): Likewise.
10641         (compute_function_frequency): Likewise.
10642         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10643         (unnest_nesting_tree_1): Likewise.
10644         (lower_nested_functions): Likewise.
10645         * tree-optimize.c (execute_fixup_cfg): Likewise.
10646         (tree_rest_of_compilation): Likewise.
10647         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10648         * tree-sra.c (ipa_early_sra): Likewise.
10649         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10650         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10651         * ipa.c (record_cdtor_fn): Likewise.
10652         * ipa-inline.c (cgraph_early_inlining): Likewise.
10653         (compute_inline_parameters_for_current): Likewise.
10654         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10655         * ipa-pure-const.c (local_pure_const): Likewise.
10656         * ipa-split.c (split_function): Likewise.
10657         (execute_split_functions): Likewise.
10658         * cgraphbuild.c (build_cgraph_edges): Likewise.
10659         (rebuild_cgraph_edges): Likewise.
10660         (cgraph_rebuild_references): Likewise.
10661         (remove_cgraph_callee_edges): Likewise.
10662         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10663         (verify_cgraph_node): Likewise.
10664         (cgraph_analyze_functions): Likewise.
10665         (cgraph_preserve_function_body_p): Likewise.
10666         (save_inline_function_body): Likewise.
10667         (save_inline_function_body): Likewise.
10668         * tree-inline.c (copy_bb): Likewise.
10669         (optimize_inline_calls): Likewise.
10670
10671 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10672
10673         PR tree-optimization/48195
10674         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10675         ipa_check_create_edge_args.
10676         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10677         ipa_check_create_edge_args.
10678         * ipa-inline.c (inline_generate_summary): Do not call
10679         ipa_check_create_node_params and ipa_check_create_edge_args.
10680         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10681         ipa_check_create_edge_args.
10682
10683 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
10684
10685         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10686         instead of loop.
10687         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10688         * function.c (record_hard_reg_sets): Likewise.
10689         * ira.c (compute_regs_asm_clobbered): Likewise.
10690         * sched-deps.c (sched_analyze_1): Likewise.
10691         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10692
10693 2011-04-09  Xinliang David Li  <davidxl@google.com>
10694
10695         PR tree-optimization/PR48484
10696         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10697         has_valid_pred lazily
10698
10699 2011-04-09  Duncan Sands  <baldrick@free.fr>
10700
10701         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10702
10703 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
10704
10705         * combine.c (combine_validate_cost): Adjust comments.  Set registered
10706         cost of I0 to zero at the end, if any.
10707
10708 2011-04-08  Xinliang David Li  <davidxl@google.com>
10709
10710         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10711         to insane profile data.
10712
10713 2011-04-08  Xinliang David Li  <davidxl@google.com>
10714
10715         * ipa-cp.c (ipcp_update_profiling): Correct
10716          negative scale factor due to insane profile data.
10717
10718 2011-04-08  Xinliang David Li  <davidxl@google.com>
10719
10720         * final.c (dump_basic_block_info): New function.
10721         (final): Dump basic block.
10722         (final_scan_insn): Remove old dump.
10723
10724 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
10725
10726         PR target/47829
10727         * config.gcc (i386-*-freebsd): Disable unwind table generation for
10728         crtbegin/crtend.
10729
10730 2011-04-08  Michael Matz  <matz@suse.de>
10731
10732         PR middle-end/48389
10733         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10734         functions.
10735         (rebuild_jump_labels): Call rebuild_jump_labels_1.
10736         * rtl.h (rebuild_jump_labels_chain): Declare.
10737         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10738         insns inserted on edges.
10739
10740 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
10741
10742         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10743         * config/arm/arm-arches.def: New.
10744         * config/arm/arm-opts.h: New.
10745         * config/arm/genopt.sh: New.
10746         * config/arm/arm-tables.opt: New (generated).
10747         * config/arm/arm.c (arm_handle_option, arm_target_help,
10748         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10749         (all_architectures): Get most table contents from arm-arches.def.
10750         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10751         arm_selected_tune here.
10752         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10753         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10754         (march=, mcpu=, mtune=): Use Enum and Var.
10755         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10756         (arm.o): Update dependencies.
10757
10758 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
10759
10760         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10761         of header_file.
10762         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10763         (write_typed_alloc_defns): Likewise.
10764         (main): Calls write_typed_alloc_defns with output_header.
10765
10766 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
10767
10768         PR inline-asm/48435
10769         * ira-color.c (setup_profitable_hard_regs): Add comments.
10770         Don't take prohibited hard regs into account.
10771         (setup_conflict_profitable_regs): Rename to
10772         get_conflict_profitable_regs.
10773         (check_hard_reg_p): Check prohibited hard regs.
10774
10775 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
10776
10777         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10778         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10779         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10780
10781 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10782
10783         PR target/48366
10784         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10785         move from floating point to shift amount register.
10786         (emit_move_sequence): Remove secondary reload support for floating
10787         point to shift amount amount register copies.
10788         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10789         amount register copies.
10790         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10791         register, return false if mode isn't a scalar integer mode.
10792         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10793
10794 2011-04-08  Richard Guenther  <rguenther@suse.de>
10795
10796         * gimple.c (gimple_call_flags): Remove kludge.
10797
10798 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10799
10800         * sel-sched.c (sel_region_init): Move call to
10801         sel_setup_region_sched_flags after setup_current_loop_nest.
10802
10803 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
10804
10805         PR rtl-optimization/48272
10806         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10807         init_insn_reg_pressure_info.  Adjust a caller.
10808         * sched-int.h (init_insn_reg_pressure_info): Declare.
10809         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10810         when sched-pressure is enabled.
10811
10812 2011-04-08  Richard Guenther  <rguenther@suse.de>
10813
10814         * gimple.c (gimple_set_modified): Do not queue calls to
10815         MODIFIED_NORETURN_CALLS here ...
10816         * tree-ssa-operands.c (update_stmt_operands): ... but here.
10817
10818 2011-04-08  Richard Guenther  <rguenther@suse.de>
10819
10820         PR lto/48467
10821         * toplev.c (lang_dependent_init): Do not open asm_out_file
10822         in WPA mode, nor perform debug machinery initialization.
10823         (finalize): Do not unlink asm_out_file in WPA mode.
10824
10825 2011-04-08  Richard Guenther  <rguenther@suse.de>
10826
10827         * gimple.h (gimple_call_fntype): New function.
10828         (gimple_call_return_type): Use it.
10829         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10830         * gimple-low.c (gimple_check_call_args): Likewise.
10831         * gimple.c (gimple_call_flags): Likewise.
10832         (gimple_call_arg_flags): Likewise.
10833         (gimple_call_return_flags): Likewise.
10834         * tree-cfg.c (verify_gimple_call): Likewise.
10835         (do_warn_unused_result): Likewise.
10836         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10837         * value-prof.c (gimple_ic_transform): Fix fndecl check.
10838
10839 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
10840
10841         PR rtl-optimization/48235
10842         * sel-sched.c (code_motion_process_successors): Recompute the last
10843         insn in basic block if control flow changed.
10844         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
10845         Update condition for ilist_remove.
10846
10847 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10848
10849         PR rtl-optimization/48302
10850         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10851         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
10852         it to record added preheader blocks.
10853         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
10854         on to sel_add_loop_preheaders.
10855         (sel_region_init): Move call to setup_current_loop_nest after
10856         sel_init_bbs.
10857
10858 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10859
10860         PR target/48273
10861         * cfgloop.h (loop_has_exit_edges): New helper.
10862         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10863         non-clonable.
10864         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10865         that have no exit edges.
10866
10867 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10868
10869         PR rtl-optimization/48442
10870         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
10871         all callers.  Adjust assert.
10872
10873 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
10874
10875         PR tree-optimization/48377
10876         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10877         is_packed to true even for types with smaller TYPE_ALIGN than
10878         TYPE_SIZE.
10879
10880 2011-04-08  Richard Guenther  <rguenther@suse.de>
10881
10882         PR bootstrap/48513
10883         * doc/tm.texi: Re-generate.
10884
10885 2011-04-08  Wei Guozhi  <carrot@google.com>
10886
10887         PR target/47855
10888         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10889         * config/arm/arm.c (arm_attr_length_push_multi): New function.
10890         * config/arm/arm.md (*push_multi): Change the length computation to
10891         call a C function.
10892
10893 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
10894
10895         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10896         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10897         * doc/tm.texi: Regenerate.
10898         * system.h (ASM_OUTPUT_BSS): Poison.
10899         * varasm.c (asm_output_bss): Remove function.
10900         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10901
10902         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10903         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10904         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10905         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10906         Likewise.
10907         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10908         Likewise.
10909         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10910         Likewise.
10911         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10912
10913 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10914
10915         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10916         EnumValue lines.
10917
10918 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10919
10920         * config/m68k/m68k.c (m68k_handle_option): Don't handle
10921         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10922         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10923         OPT_mcpu32.
10924         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10925         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10926         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10927         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10928         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10929         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10930         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10931         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10932         options.  Don't map other m68k options manually.  Don't handle
10933         old-style options as canonical.
10934         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10935         * doc/install.texi (m68k-*-*): Document binutils version requirement.
10936
10937 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10938
10939         * basic-block.h (force_nonfallthru): Move to...
10940         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10941         (force_nonfallthru): ...here.
10942         * cfghooks.c (force_nonfallthru): New function.
10943         * cfgrtl.c (force_nonfallthru): Rename into...
10944         (rtl_force_nonfallthru): ...this.
10945         (commit_one_edge_insertion): Do not set AUX field.
10946         (commit_edge_insertions): Do not discover new basic blocks.
10947         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10948         (cfg_layout_rtl_cfg_hooks): Likewise.
10949         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10950         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
10951         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10952
10953 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
10954
10955         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10956         Remove macros.
10957
10958 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
10959
10960         * config/i386/sse.md: Update copyright year.
10961         (avxcvtvecmode): Remove.
10962         (sse_movhlps): Merge with *avx_movhlps.
10963         (sse_movlhps): Merge with *avx_movlhps.
10964         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10965         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10966         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10967         (sse_loadhps): Merge with *avx_loadhps.
10968         (sse_storelps): Merge with *avx_storelps.
10969         (sse_loadlps): Merge with *avx_loadlps.
10970         (sse_movss): Merge with *avx_movss.
10971         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10972         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10973         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10974         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10975         (vec_set<mode>_0): Ditto.
10976         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10977         (sse4_1_insertps): Merge with *avx_insertps.
10978         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10979         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10980         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10981         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10982         (sse2_storehpd): Merge with *avx_storehpd.
10983         (sse2_loadhpd): Merge with *avx_loadhpd.
10984         (sse2_loadlpd): Merge with *avx_loadlpd.
10985         (sse2_movsd): Merge with *avx_movsd.
10986         (*vec_concatv2df): Merge with *vec_concatv2df.
10987
10988 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
10989
10990         PR debug/48343
10991         * combine.c (combine_instructions): Add last_combined_insn,
10992         update it if insn is after it, pass it to all try_combine calls.
10993         (try_combine): Add last_combined_insn parameter, pass it instead of
10994         i3 to propagate_for_debug.
10995
10996 2011-04-07  Nick Clifton  <nickc@redhat.com>
10997
10998         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10999         to handle MDR <-> data register transfers.
11000         (movhi_internal): Likewise.
11001
11002 2011-04-07  Alan Modra  <amodra@gmail.com>
11003
11004         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
11005         previous stack info.
11006
11007 2011-04-07  Tom de Vries  <tom@codesourcery.com>
11008
11009         PR target/43920
11010         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
11011         flow_find_cross_jump.  Swap variables to implement backward replacement.
11012         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
11013
11014 2011-04-07  Tom de Vries  <tom@codesourcery.com>
11015
11016         PR target/43920
11017         * cfgcleanup.c (walk_to_nondebug_insn): New function.
11018         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
11019         and bb2.
11020         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11021         src1 or src2.  Redirect edges to the last basic block.  Update
11022         frequency and count on multiple basic blocks in case of fallthru.
11023
11024 2011-04-07  Tom de Vries  <tom@codesourcery.com>
11025
11026         PR target/43920
11027         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11028         function.
11029         (old_insns_match_p): Change return type.  Replace return false/true
11030         with return dir_none/dir_both.  Use can_replace_by.
11031         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
11032         direction from dir_p.  Register replacement direction in dir, last_dir
11033         and afterlast_dir.  Handle new return type of old_insns_match_p using
11034         merge_dir.  Return replacement direction in dir_p.
11035         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11036         return type of old_insns_match_p.
11037         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11038         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11039         flow_find_cross_jump.
11040         * basic-block.h (enum replace_direction): New type.
11041         (flow_find_cross_jump): Add parameter to declaration.
11042
11043 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
11044
11045         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11046         (AVXMODEDCVTPS2DQ): Ditto.
11047         (VEC_FLOAT_MODE): Ditto.
11048         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
11049         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11050         (<any_logic:code><mode>3): Use VF mode iterator.
11051         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11052         Use VF mode iterator.
11053         (copysign<mode>3): Use VF mode iterator.
11054         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
11055         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11056         (*<any_logic:code><MODEF:mode>3): Merge with
11057         *avx_<any_logic:code><MODEF:mode>3.
11058         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11059         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11060         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11061         (avx_cvtdq2ps<avxmodesuffix>): Remove.
11062         (sse2_cvtdq2ps): Use %v modifier.
11063         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11064         (avx_cvtps2dq<avxmodesuffix>): Remove.
11065         (sse2_cvtps2dq): Use %v modifier.
11066         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11067         (avx_cvttps2dq<avxmodesuffix>): Remove.
11068         (sse2_cvttps2dq): Use %v modifier.
11069         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11070         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11071         (sse2_cvtsd2siq): Fix insn template.
11072         (sse2_cvtsd2siq_2): Ditto.
11073         (sse2_cvttsd2siq): Ditto.
11074         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11075         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11076
11077 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
11078
11079         * gcov-io.c: Use GCC Runtime Library Exception.
11080
11081 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
11082
11083         PR debug/48466
11084         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11085         as base_reg whatever register reg has been eliminated to, instead
11086         of hardcoding STACK_POINTER_REGNUM.
11087
11088 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
11089
11090         * doc/tm.texi.in: Document C target hooks as separate from general
11091         target hooks.
11092         * doc/tm.texi: Regenerate.
11093         * genhooks.c (struct hook_desc): Add docname field.
11094         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
11095         docname field.
11096         (hook_array): Include c-target.def.
11097         (emit_documentation): Use docname field in output.
11098         (emit_init_macros): Take docname argument.  Only emit definitions
11099         for hooks matching docname.
11100         (main): Expect additional arguments in all cases.  Pass argument
11101         to emit_init_macros.
11102         * target.def: Move initial macro definitions and comments to
11103         target-hooks-macros.h.
11104         (gcc_targetcm): Move to c-family/c-target.def.
11105         * target.h (targetcm): Move declaration to c-family/c-target.h.
11106         * targhooks.c (default_handle_c_option): Move to
11107         c-family/c-opts.c.
11108         * targhooks.h (default_handle_c_option): Move declaration to
11109         c-family/c-common.h.
11110         * target-hooks-macros.h: New file.
11111         * config.gcc (target_has_targetcm): Define and use to add to
11112         c_target_objs and cxx_target_objs.
11113         * config/default-c.c: New file.
11114         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11115         of target.h and target-def.h.
11116         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11117         (darwin_objc_construct_string, darwin_cfstring_ref_p,
11118         darwin_check_cfstring_format_arg): Make static.
11119         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11120         TARGET_STRING_OBJECT_REF_TYPE_P,
11121         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11122         * config/darwin-protos.h (darwin_objc_construct_string,
11123         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11124         declare.
11125         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11126         TARGET_STRING_OBJECT_REF_TYPE_P,
11127         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11128         * config/t-darwin (darwin-c.o): Update dependencies.
11129         * system.h (TARGET_HAS_TARGETCM): Poison.
11130         * Makefile.in (TARGET_H): Update.
11131         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11132         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11133         (default-c.o): New target.
11134         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11135         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11136         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
11137         c-target.def.
11138         (build/genhooks.o): Update dependencies.
11139
11140 2011-04-06  Richard Guenther  <rguenther@suse.de>
11141
11142         * ipa-inline.c (enum inlining_mode): Remove.
11143         (cgraph_flatten): Use some other token.
11144         (cgraph_edge_early_inlinable_p): New function, split out from ...
11145         (cgraph_perform_always_inlining): New function, split out from ...
11146         (cgraph_decide_inlining_incrementally): ... here.
11147         (cgraph_mark_inline_edge): Adjust.
11148         (cgraph_early_inlining): Re-structure.
11149         (pass_early_inline): Require SSA form.
11150
11151 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
11152             Julian Brown  <julian@codesourcery.com>
11153             Mark Shinwell  <shinwell@codesourcery.com>
11154
11155         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11156         LO_REGS only for Thumb-1.
11157         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11158         be used in short instructions when optimising for size on Thumb-2.
11159
11160 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
11161
11162         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11163         associated with user returns to be preserved.
11164
11165 2011-04-06  Tristan Gingold  <gingold@adacore.com>
11166
11167         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11168         symbol_queue_size, DBXOUT_DECR_NESTING,
11169         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11170         if XCOFF_DEBUGGING_INFO.
11171
11172 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
11173
11174         * config/i386/i386.md (attribute isa): New.
11175         (attribute enabled): New.
11176         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11177         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11178         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11179         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11180         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11181         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11182         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11183         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11184
11185         * config/i386/sse.md (VF): New mode iterator.
11186         (VF1): Ditto.
11187         (VF2): Ditto.
11188         (VF_128): Ditto.
11189         (SSEMODEF4): Remove.
11190         (attribute sse): Handle V8SF and V4DF modes.
11191         (<absneg:code><mode>2): Use VF mode iterator.
11192         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
11193         mode iterator.
11194         (<plusminus_insn><mode>3): Use VF mode iterator.
11195         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11196         Use VF mode iterator.
11197         (<sse>_vm<plusminus_insn><mode>3): Merge with
11198         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
11199         (mul<mode>3): Use VF mode iterator.
11200         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
11201         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
11202         mode iterator.
11203         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11204         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11205         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
11206         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
11207         mode iterator.
11208         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11209         Use VF1 mode iterator.
11210         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11211         (sqrt<VF2:mode>2): New expander.
11212         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11213         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11214         and sqrtv2df2.  Use VF mode iterator.
11215         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
11216         mode iterator.
11217         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11218         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11219         Use VF1 mode iterator.
11220         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11221         (<smaxmin:code><mode>3): Use VF mode iterator.
11222         (*<smaxmin:code><mode>3_finite): Merge with
11223         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
11224         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11225         (<sse>_vm<smaxmin:code><mode>2): Merge with
11226         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
11227         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
11228         mode iterator.
11229         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
11230         mode iterator.
11231         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11232         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11233         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11234         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11235         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
11236         VF mode iterator.
11237         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11238         Use VF_128 mode iterator.
11239         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
11240         mode iterator.
11241         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
11242         VF_128 mode iterator.
11243         (vcond<mode>): Use VF mode iterator.
11244         * config/i386/predicates.md (sse_comparison_operator): Merge with
11245         avx_comparison_float_operator.  Do not declare as special_predicate.
11246         * config/i386/i386.c (struct builtin_description): Update for renamed
11247         compare patterns.
11248         (ix86_expand_args_builtin): Ditto.
11249         (ix86_expand_sse_compare_mask): Ditto.
11250
11251 2011-04-06  Richard Guenther  <rguenther@suse.de>
11252
11253         * tree-inline.c (estimate_num_insns): For calls simply account
11254         for all passed arguments and a used return value.
11255
11256 2011-04-06  Richard Guenther  <rguenther@suse.de>
11257
11258         PR tree-optimization/47663
11259         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11260         call_stmt_time fields.
11261         (cgraph_edge_inlinable_p): Declare.
11262         (cgraph_edge_recursive_p): New inline function.
11263         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11264         (cgraph_clone_edge): Copy it.
11265         * ipa-inline.c (cgraph_estimate_edge_time): New function.
11266         Account for call stmt time.
11267         (cgraph_estimate_time_after_inlining): Take edge argument.
11268         (cgraph_estimate_edge_growth): Account call stmt size.
11269         (cgraph_estimate_size_after_inlining): Take edge argument.
11270         (cgraph_mark_inline_edge): Adjust.
11271         (cgraph_check_inline_limits): Likewise.
11272         (cgraph_recursive_inlining_p): Remove.
11273         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11274         (cgraph_decide_recursive_inlining): Take edge argument and
11275         adjust.
11276         (cgraph_decide_inlining_of_small_functions): Do not avoid
11277         diags for recursive inlining here.
11278         (cgraph_flatten): Adjust.
11279         (cgraph_decide_inlining_incrementally): Likewise.
11280         (estimate_function_body_sizes): Remove call cost handling.
11281         (compute_inline_parameters): Initialize caller edge call costs.
11282         (cgraph_estimate_edge_growth): New function.
11283         (cgraph_estimate_growth): Use it.
11284         (cgraph_edge_badness): Likewise.
11285         (cgraph_check_inline_limits): Take an edge argument.
11286         (cgraph_decide_inlining_of_small_functions): Adjust.
11287         (cgraph_decide_inlining): Likewise.
11288         * tree-inline.c (estimate_num_insns): Only account for call
11289         return value if it is used.
11290         (expand_call_inline): Avoid diagnostics on recursive inline
11291         functions here.
11292         * lto-cgraph.c (lto_output_edge): Output edge call costs.
11293         (input_edge): Input edge call costs.
11294
11295 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11296
11297         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11298
11299 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
11300
11301         * doc/invoke.texi (Spec Files): Fix typo.
11302
11303 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
11304
11305         * profile.c (branch_prob): Move declaration of local variable.  Remove
11306         obsolete ??? comment.  Expand the location explicitly instead of using
11307         the LOCATION_FILE and LOCATION_LINE macros.
11308
11309 2011-04-06  Wei Guozhi  <carrot@google.com>
11310
11311         PR target/47855
11312         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11313         (arm_cond_branch): Likewise.
11314         (arm_cond_branch_reversed): Likewise.
11315         (arm_jump): Likewise.
11316         (push_multi): Likewise.
11317         * config/arm/constraints.md (Py): New constraint.
11318
11319 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11320
11321         PR bootstrap/48471
11322         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11323         Move these...
11324         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11325         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11326         #ifdef DBX_DEBUGGING_INFO.
11327
11328 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
11329
11330         PR bootstrap/48403
11331         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11332         if old and new states differ.
11333
11334 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
11335
11336         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11337         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11338         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11339         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11340         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11341         mcfv4e): Use Alias.
11342         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11343         ColdFire options to -mcpu= options.
11344
11345 2011-04-05  Jeff Law  <law@redhat.com>
11346
11347         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11348         check if BB is a successor of LOOP->header and return
11349         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11350
11351 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
11352
11353         * cprop.c (struct reg_use): Remove.
11354         (reg_use_table): Make an array of RTX.
11355         (find_used_regs, constprop_register, local_cprop_pass,
11356         bypass_block): Simplify users of reg_use_table.
11357         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
11358         on one of the uses found by find_used_regs.
11359
11360 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11361
11362         PR bootstrap/48469
11363         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11364         declaration.
11365
11366 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11367
11368         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11369         as an rtx.
11370         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11371
11372 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
11373
11374         PR middle-end/48441
11375         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11376
11377 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11378
11379         * combine.c: Include obstack.h.
11380         (struct insn_link): Define.
11381         (uid_log_links): Adjust type.
11382         (FOR_EACH_LOG_LINK): New macro.
11383         (insn_link_obstack): Declare.
11384         (alloc_insn_link): Define.
11385         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
11386         type of link variables.
11387         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11388         (try_combine, record_promoted_values, distribute_notes): Likewise.
11389         (distribute_links): Likewise.  Tweak prototype.
11390         (clear_log_links): Delete.
11391         (adjust_for_new_dest): Call alloc_insn_link.
11392         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11393
11394 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11395
11396         * gcse.c (modify_mem_list): Convert to an array of VECs.
11397         (canon_modify_mem_list, compute_transp): Tweak formatting.
11398         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
11399         (load_killed_in_block_p): Likewise.
11400         (record_last_mem_set_info): Likewise.
11401         (clear_modify_mem_tables): Likewise.
11402
11403 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11404
11405         PR middle-end/48461
11406         * function.c (emit_use_return_register_into_block): Only define if
11407         HAVE_return.
11408
11409 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
11410
11411         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11412
11413 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
11414
11415         * config/rx/rx-opts.h: New.
11416         * config/rx/rx.c (rx_cpu_type): Remove.
11417         (rx_handle_option): Don't assert that global structures are in
11418         use.  Access variables via opts pointer.  Defer most handling of
11419         OPT_mint_register_.  Use error_at.
11420         (rx_option_override): Handle deferred OPT_mint_register_ here.
11421         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11422         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11423         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11424         (rx_cpu_types): New Enum and EnumValue entries.
11425         (mint-register=): Use Defer and use Var accordingly.
11426
11427 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11428
11429         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11430         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11431         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11432         Move these...
11433         (debug_free_queue, debug_nesting, symbol_queue_index):
11434         ...and these...
11435         * dbxout.c: ...to here.  Make static.
11436
11437 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11438
11439         * gcse.c (modify_pair): Define.  Define a VEC of it.
11440         (canon_modify_mem_list): Convert to an array of VECs.
11441         (free_insn_expr_list_list): Delete.
11442         (clear_modify_mem_tables): Call VEC_free instead.
11443         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11444         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11445         (canon_list_insert, compute_transp): Likewise.
11446
11447 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11448
11449         PR target/43920
11450         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11451         for size.
11452
11453 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11454
11455         PR target/43920
11456         * function.c (emit_use_return_register_into_block): New function.
11457         (thread_prologue_and_epilogue_insns): Use
11458         emit_use_return_register_into_block.
11459
11460 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11461
11462         PR target/43920
11463         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11464         insn.
11465
11466 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11467
11468         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11469
11470 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
11471
11472         * config/arm/arm.md (define_constants for unspec): Replace with
11473         define_c_enum.
11474         (define_constants for unspecv): Replace with define_c_enum.
11475         * config/arm/neon.md (define_constants for unspec): Replace with
11476         define_c_enum.
11477
11478 2011-04-04  Richard Henderson  <rth@redhat.com>
11479
11480         PR bootstrap/48400
11481         * dwarf2out.c (output_line_info): Always emit line info from
11482         at least one section.
11483         (dwarf2out_init): Create text_section_line_info here ...
11484         (set_cur_line_info_table): ... not here.
11485
11486 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
11487
11488         PR target/48380
11489         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11490         not called.
11491
11492         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11493
11494 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
11495
11496         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11497         (expr_equiv_p): Remove.
11498         (insert_set_in_table): Look at <dest, src> pair instead of expr.
11499         (hash_scan_set): Update call to insert_set_in_table.
11500         (dump_hash_table): Dump <dest, src> pair.
11501         (lookup_set): Simplify.  Lookup <dest, src> pair.
11502         (compute_transp): Remove, fold heavily simplified code into...
11503         (compute_local_properties): ...here.  Expect COMP and TRANSP
11504         unconditionally.
11505         (find_avail_set): Take set directly from struct expr.
11506         (find_bypass-set): Likewise.
11507         (bypass_block): Likewise.
11508         (cprop_insn): Likewise.  Remove redundant INSN_P test.
11509
11510         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11511         checks on form of COND from find_implicit_sets to here.
11512         (find_implicit_sets): Cleanup control flow. Split critical edges
11513         if it exposes implicit sets.  Allocate/resize implicit_sets as
11514         necessary.
11515         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11516         changed something.  Run df_analyze after find_implicit_sets if any
11517         edges were split.  Do not allocate implicit_sets here.
11518
11519         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11520         (gcse_obstack): Renamed to cprop_obstack.
11521         (GNEW, GNEWVEC, GNEWVAR): Remove.
11522         (gmalloc): Remove.
11523         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11524         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11525         (gcse_alloc): Likewise, and rename to cprop_alloc.
11526         (alloc_gcse_men, free_gcse_mem): Remove.
11527         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11528         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11529         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11530
11531         * cprop.c (oprs_not_set_p): Remove.
11532         (mark_set, mark_clobber): Remove.
11533         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11534         (reg_not_set_p): New function.
11535         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11536         (cprop_insn): Likewise.
11537         (cprop_jump): Use FOR_EACH_EDGE.
11538
11539 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
11540
11541         PR bootstrap/48403
11542         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11543         (rank_for_schedule): Use scheduled_insns vector instead of
11544         last_scheduled_insn.
11545         (ok_for_early_queue_removal): Likewise.
11546         (queue_to_ready): Search forward in nonscheduled_insns_begin if
11547         we have a dbg_cnt.
11548         (choose_ready): Likewise.
11549         (commit_schedule): Use VEC_iterate.
11550         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
11551         a dbg_cnt, use it and ensure the first insn is in the ready list.
11552         (haifa_sched_init): Allocate scheduled_insns.
11553         (sched_extend_ready_list): Don't allocate it; reserve space.
11554         (haifa_sched_finish): Free it.
11555
11556 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11557
11558         * optc-gen.awk: Always remove type from Variable entry before
11559         recording in var_seen.
11560
11561 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
11562
11563         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11564         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11565         call to tidy_fallthru_edges.
11566
11567 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11568
11569         * doc/options.texi (ToLower): Document.
11570         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11571         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11572         * opts.h (cl_option): Add cl_tolower field.
11573         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11574         arguments with lowercase strings.
11575         * config/rx/rx.opt (mcpu=): Add ToLower.
11576         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11577         argument.
11578
11579 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11580
11581         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11582
11583 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11584
11585         * config/vax/vax.c: Include reload.h.
11586
11587 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
11588
11589         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11590         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11591         (sparc_preferred_reload_class): New function.
11592
11593 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
11594
11595         PR debug/48401
11596         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11597         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11598
11599 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
11600
11601         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11602         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11603
11604 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
11605
11606         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11607         (ASM_OUTPUT_ALIGNED_BSS): Define.
11608
11609 2011-04-03  Michael Matz  <matz@suse.de>
11610
11611         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11612         and next_slot members.
11613         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11614         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11615         (lto_streamer_cache_append): Declare.
11616         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11617         unsigned index, remove offset parameter, ensure that we append
11618         or update existing entries.
11619         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11620         parameter, update next_slot for append.
11621         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11622         parameter.
11623         (lto_streamer_cache_insert_at): Likewise.
11624         (lto_streamer_cache_append): New function.
11625         (lto_streamer_cache_lookup): Use unsigned index.
11626         (lto_streamer_cache_get): Likewise.
11627         (lto_record_common_node): Don't test tree_node_can_be_shared.
11628         (preload_common_node): Adjust call to lto_streamer_cache_insert.
11629         (lto_streamer_cache_delete): Don't free offsets member.
11630         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11631         (lto_output_string_with_length): Use lto_output_data_stream.
11632         (lto_output_tree_header): Remove ix parameter, don't write it.
11633         (lto_output_builtin_tree): Likewise.
11634         (lto_write_tree): Adjust callers to above, don't track and write
11635         offset, write unsigned index.
11636         (output_unreferenced_globals): Don't emit all global vars.
11637         (write_global_references): Use unsigned indices.
11638         (lto_output_decl_state_refs): Likewise.
11639         (write_symbol): Likewise.
11640         * lto-streamer-in.c (lto_input_chain): Move earlier.
11641         (input_function): Use unsigned index.
11642         (input_alias_pairs): Don't read and then ignore all global vars.
11643         (lto_materialize_tree): Remove ix_p parameter, don't read index,
11644         don't pass it back, use lto_streamer_cache_append.
11645         (lto_register_var_decl_in_symtab): Use unsigned index.
11646         (lto_register_function_decl_in_symtab): Likewise.
11647         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11648         index.
11649         (lto_get_builtin_tree): Don't read index, use
11650         lto_streamer_cache_append.
11651         (lto_read_tree): Adjust call to lto_materialize_tree.
11652
11653         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11654         don't use function calls in arguments to MIN.
11655
11656         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11657         twice.
11658
11659         * gimple.c (gimple_type_leader_entry): Mark deletable.
11660
11661 2011-04-03  Alan Modra  <amodra@gmail.com>
11662
11663         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11664
11665 2011-04-03  Michael Matz  <matz@suse.de>
11666
11667         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11668         an integer.
11669         * tree.h (tree_decl_non_common.vindex): Adjust comment.
11670
11671 2011-04-03  Michael Matz  <matz@suse.de>
11672
11673         * cgraphbuild.c (record_reference): Canonicalize constructor values.
11674         * gimple-fold.c (canonicalize_constructor_val): Accept being called
11675         without function context.
11676         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11677         current_function_decl and cfun.
11678
11679 2011-04-03  Michael Matz  <matz@suse.de>
11680
11681         * tree.c (decl_init_priority_insert): Don't create entry for
11682         default priority.
11683         (decl_fini_priority_insert): Ditto.
11684         (fields_compatible_p, find_compatible_field): Remove.
11685         * tree.h (fields_compatible_p, find_compatible_field): Remove.
11686         * gimple.c (gimple_compare_field_offset): Adjust block comment.
11687
11688 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
11689
11690         * combine.c (try_combine): Remove useless local variable.
11691
11692 2011-04-03  Richard Guenther  <rguenther@suse.de>
11693             Ira Rosen  <ira.rosen@linaro.org>
11694
11695         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11696         non-variable offsets and compare the remaining bases of the two
11697         accesses instead of looking for exact same data-ref.
11698
11699 2011-04-02  Kai Tietz  <ktietz@redhat.com>
11700
11701         PR target/48416
11702         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11703
11704         * i386.c (ix86_is_msabi_thiscall): New helper function.
11705         (ix86_is_type_thiscall): New helper function.
11706         (ix86_comp_type_attributes): Handle thiscall for method-functions
11707         special.
11708         (init_cumulative_args): Likewise.
11709         (find_drap_reg): Likewise.
11710         (ix86_static_chain): Likewise.
11711         (x86_this_parameter): Likewise.
11712         (x86_output_mi_thunk): Likewise.
11713
11714 2011-04-01  Olivier Hainque  <hainque@adacore.com>
11715             Nicolas Setton  <setton@adacore.com>
11716             Eric Botcazou  <ebotcazou@adacore.com>
11717
11718         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11719         (add_gnat_descriptive_type_attribute): New function.
11720         (gen_array_type_die): Call it.
11721         (gen_enumeration_type_die): Likewise.
11722         (gen_struct_or_union_type_die): Likewise.
11723         (modified_type_die): Likewise.
11724         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11725         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11726         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11727
11728 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11729
11730         PR bootstrap/48148
11731         * dwarf2out.c (resolve_addr): Don't call force_decl_die
11732         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11733
11734         Revert:
11735         2011-03-17  Richard Guenther  <rguenther@suse.de>
11736
11737         PR bootstrap/48148
11738         * lto-cgraph.c (input_overwrite_node): Clear the abstract
11739         origin for decls in other ltrans units.
11740         (input_varpool_node): Likewise.
11741
11742 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11743
11744         PR middle-end/48335
11745         * expr.c (expand_assignment): Handle all possibilities
11746         if TO_RTX is CONCAT.
11747         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11748         (store_split_bit_field): If SUBREG_REG (op0) or
11749         op0 itself has smaller mode than word, return it
11750         for offset 0 and const0_rtx for out-of-bounds stores.
11751         If word is const0_rtx, skip it.
11752
11753 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
11754
11755         * config/h8300/h8300.c (print_operand_address): Rename to...
11756         (h8300_print_operand_address): ...this. Make static. Adjust comments.
11757         Call h8300_print_operand and h8300_print_operand_address instead of
11758         print_operand and print_operand_address. Declare.
11759         (print_operand): Renake to...
11760         (h8300_print_operand): ...this. Make static. Adjust comments.
11761         Call h8300_print_operand instead of print_operand. Declare.
11762         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11763         (h8300_register_move_cost): Likewise.
11764         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11765         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11766         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11767         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11768         * config/h8300/h8300-protos.h (print_operand): Delete.
11769         (print_operand_address): Delete.
11770
11771 2011-04-01  Richard Henderson  <rth@redhat.com>
11772
11773         PR 48400
11774         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11775         in strict mode before dwarf4.  Re-order tests to early out
11776         before switching sections.
11777
11778 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
11779
11780         * config/h8300/constraints.md: New file.
11781         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
11782         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11783         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11784         * config/h8300/predicates.md (bit_operand): Likewise.
11785         (incdec_operand): Use satisfies_constraint_M and
11786         satisfies_constraint_O.  Don't use C code block.
11787         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11788         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11789         (compute_mov_length): Use satisfies_constraint_G.
11790         (fix_bit_operand): Use satisfies_constraint_U.
11791         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11792         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11793         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11794         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11795         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11796         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11797         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11798         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11799         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11800         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11801         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11802         (EXTRA_MEMORY_CONSTRAINT): Delete.
11803
11804 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
11805             Michael Meissner  <meissner@linux.vnet.ibm.com>
11806
11807         PR target/48262
11808         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11809         operands, as per the specifications.
11810
11811         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11812         (vec_extract_evenv4sf): Ditto.
11813         (vec_extract_evenv8hi): Ditto.
11814         (vec_extract_evenv16qi): Ditto.
11815         (vec_extract_oddv4si): Ditto.
11816
11817 2011-03-31  Mark Wielaard  <mjw@redhat.com>
11818
11819         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11820         high_pc attribute if the CU has no associated code. Only output
11821         DW_AT_entry_pc for CU if not generating strict dwarf and
11822         dwarf_version < 4.
11823
11824 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
11825
11826         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11827         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11828         out of ...
11829         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11830         * final.c (final_start_function): Call the new function rather
11831         than using a NULL argument for dwarf2out_frame_debug.
11832
11833         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11834         that contains the prologue.
11835
11836         * haifa-sched.c (queue_insn): New arg REASON.  All callers
11837         changed.  Print it in debugging output.
11838
11839         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11840
11841         * sched-ebb.c (begin_schedule_ready): Remove second argument.
11842         Split most of the code into...
11843         (begin_move_insn): ... here.  New function.
11844         (ebb_sched_info): Add a pointer to it.
11845         * haifa-sched.c (scheduled_insns): New static variable.
11846         (sched_extend_ready_list): Allocate it.
11847         (schedule_block): Use it to record the order of scheduled insns.
11848         Perform RTL changes to move insns only after all scheduling
11849         decisions have been made.
11850         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11851         begin_move_insn field.
11852         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11853         * sched-int.h (struct haifa_sched_info): Remove second argument
11854         from begin_schedule_ready hook.  Add new member begin_move_insn.
11855         * sched-rgn.c (begin_schedule_ready): Remove second argument.
11856         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11857
11858         * haifa-sched.c (prune_ready_list): New function, broken out of
11859         schedule_block.
11860         (schedule_block): Use it.
11861
11862 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11863
11864         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11865
11866 2011-04-01  Kai Tietz  <ktietz@redhat.com>
11867
11868         * config.gcc (*-*-mingw*): Allow as option the
11869         posix threading model.
11870         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
11871         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11872         definition.
11873         (CPP_SPEC): Add pthread/no-pthread handling.
11874         (LIB_SPEC): Likewise.
11875         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11876         (LIB_SPEC): Likewise.
11877         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11878         flag to pass -pthread option for shared libgcc build.
11879         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11880         for shared libgcc build.
11881         * config/i386/t-mingw-pthread: New file.
11882         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11883         New define to enable use of library pthread by default.
11884         * config/i386/mingw.opt (pthread): New driver option.
11885         (no-pthread): New driver option.
11886         * config/i386/cygming.opt: Make sure trailing empty line is retained.
11887         * config/i386/mingw-w64.opt: Likewise.
11888
11889 2011-04-01  Gary Funck  <gary@intrepid.com>
11890
11891         * c-decl.c (grokdeclarator): Fix formatting.
11892
11893 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11894
11895         * expr.c (emit_block_move_via_movmem): Use n_generator_args
11896         instead of n_operands.
11897         (set_storage_via_setmem): Likewise.
11898         * optabs.c (maybe_gen_insn): Likewise.
11899         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11900         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11901         (mips_expand_builtin_direct): Likewise.
11902         * config/spu/spu.c (expand_builtin_args): Likewise.
11903
11904 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11905
11906         * recog.h (insn_data_d): Add n_generator_args.
11907         * genoutput.c (data): Likewise.
11908         (output_insn_data): Print it.
11909         (max_opno, num_dups): Delete.
11910         (scan_operands): Just fill in "d->operand[...]".
11911         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11912
11913 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11914
11915         * gensupport.h (pattern_stats): New structure.
11916         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11917         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11918         (max_operand_1, max_operand_vec): Delete.
11919         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11920
11921 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
11922
11923         * emit-rtl.c (emit_pattern_after_setloc): New function.
11924         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11925         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11926         (emit_pattern_after): New function.
11927         (emit_insn_after, emit_jump_insn_after): Call it.
11928         (emit_call_insn_after, emit_debug_insn_after): Likewise.
11929         (emit_pattern_before_setloc): New function.
11930         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11931         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11932         Likewise.
11933         (emit_pattern_before): New function.
11934         (emit_insn_before, emit_jump_insn_before): Call it.
11935         (emit_call_insn_before, emit_debug_insn_before): Likewise.
11936
11937 2011-03-31  Richard Henderson  <rth@redhat.com>
11938
11939         * dwarf2out.c (dw_separate_line_info_ref): Remove.
11940         (dw_separate_line_info_entry): Remove.
11941         (enum dw_line_info_opcode): New.
11942         (dw_line_info_entry): Use it.
11943         (dw_line_info_table, dw_line_info_table_p): New.
11944         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11945         (line_info_table, line_info_label_num): Remove.
11946         (line_info_table_in_use): Remove.
11947         (separate_line_info_table): Remove.
11948         (separate_line_info_table_allocated): Remove.
11949         (separate_line_info_table_in_use): Remove.
11950         (LINE_INFO_TABLE_INCREMENT): Remove.
11951         (line_info_label_num): New.
11952         (cur_line_info_table): New.
11953         (text_section_line_info, cold_text_section_line_info): New.
11954         (separate_line_info): New.
11955         (SEPARATE_LINE_CODE_LABEL): Remove.
11956         (print_dwarf_line_table): Remove.
11957         (debug_dwarf): Don't dump it.
11958         (output_one_line_info_table): New.
11959         (output_line_info): Use it.
11960         (new_line_info_table): New.
11961         (set_cur_line_info_table): New.
11962         (dwarf2out_switch_text_section): Use it.
11963         (dwarf2out_begin_function): Likewise.
11964         (push_dw_line_info_entry): New.
11965         (dwarf2out_source_line): Rewrite for new line info tables.
11966         (dwarf2out_init): Remove dead initailizations.
11967
11968 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11969
11970         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
11971         various flags.
11972         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11973         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11974         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11975         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11976         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11977         * opt-functions.awk (flag_init, switch_bit_fields): New.
11978         (switch_flags): Don't handle flags moved to bit-fields.  Don't
11979         generate CL_MISSING_OK or CL_SAVE.
11980         * optc-gen.awk: Update to generate bit-field output as well as
11981         flags field.
11982         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11983         bit-field instead of CL_REJECT_DRIVER flag.
11984         * opts-common.c (generate_canonical_option,
11985         decode_cmdline_option): Use bit-fields instead of CL_* flags.
11986         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11987         instead of CL_REJECT_NEGATIVE flag.
11988         * toplev.c (print_switch_values): Use cl_report bit-field instead
11989         of CL_REPORT flag.
11990
11991 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11992
11993         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11994         a zero minimum index only if it is redundant.
11995
11996 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
11997
11998         PR rtl-optimization/48381
11999         * ira-color.c (assign_hard_reg): Use hard reg set intersection
12000         instead of ira_class_hard_reg_index for calculating conflicting
12001         hard registers.
12002
12003 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
12004
12005         * cprop.c: Clean up hash table building.
12006         (reg_avail_info): Remove.
12007         (oprs_available_p): Remove.
12008         (record_last_reg_set_info): Remove.
12009         (record_last_set_info): Remove.
12010         (reg_available_p): New function.
12011         (gcse_constant_p): Do not treat unfolded conditions as constants.
12012         (make_set_regs_unavailable): New function.
12013         (hash_scan_set): Simplify with new reg_available_p.
12014         (compute_hash_table_work): Traverse insns stream only once.
12015         Do not compute reg_avail_info. Traverse insns in reverse order.
12016         Record implicit sets after recording explicit sets from the block.
12017
12018 2011-03-31  Michael Matz  <matz@suse.de>
12019
12020         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
12021
12022 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
12023
12024         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12025         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12026         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12027         (h8300_mode_dependent_address_p): New function.
12028         (h8300_get_index): Make static.
12029
12030 2011-03-31  Jeff Law  <law@redhat.com>
12031
12032         * reload1.c (elimination_effects): Fix typo in recent change.
12033
12034         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
12035         typo potentially leading to null pointer dereference.
12036
12037         * caller-save.c (new_saved_hard_reg): Eliminate return value.
12038         (setup_save_areas): Corresponding changes to avoid useless
12039         assignments.
12040
12041         * jump.c (reversed_comparison_code_parts): Avoid successive return
12042         statements when REVERSE_CONDITION is defined.
12043
12044         * expr.c (expand_assignment): Avoid useless assignments.
12045         (expand_expr_real_1): Likewise.
12046         (expand_expr_real_2): Avoid useless statements.
12047
12048         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12049
12050         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12051
12052         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12053         statements.
12054
12055         * stmt.c (expand_expr_stmt): Avoid useless assignment.
12056
12057 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
12058
12059         PR target/47109
12060         * doc/tm.texi.in (TARGET_VERSION): Remove.
12061         * doc/tm.texi: Regenerate.
12062         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12063         * collect2.c (main): Don't use TARGET_VERSION.
12064         * mips-tdump.c (main): Don't use TARGET_VERSION.
12065         * mips-tfile.c (main): Don't use TARGET_VERSION.
12066         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12067         * config/rs6000/vxworksae.h: Remove.
12068         * config/alpha/alpha.h (TARGET_VERSION): Remove.
12069         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12070         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12071         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12072         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12073         * config/arm/arm.h (TARGET_VERSION): Remove.
12074         * config/arm/coff.h (TARGET_VERSION): Remove.
12075         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12076         * config/arm/elf.h (TARGET_VERSION): Remove.
12077         * config/arm/freebsd.h (TARGET_VERSION): Remove.
12078         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12079         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12080         * config/arm/pe.h (TARGET_VERSION): Remove.
12081         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12082         * config/arm/semi.h (TARGET_VERSION): Remove.
12083         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12084         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12085         * config/arm/vxworks.h (TARGET_VERSION): Remove.
12086         * config/avr/avr.h (TARGET_VERSION): Remove.
12087         * config/bfin/bfin.h (TARGET_VERSION): Remove.
12088         * config/fr30/fr30.h (TARGET_VERSION): Remove.
12089         * config/frv/frv.h (TARGET_VERSION): Remove.
12090         * config/h8300/h8300.h (TARGET_VERSION): Remove.
12091         * config/i386/cygwin.h (TARGET_VERSION): Remove.
12092         * config/i386/darwin.h (TARGET_VERSION): Remove.
12093         * config/i386/darwin64.h (TARGET_VERSION): Remove.
12094         * config/i386/djgpp.h (TARGET_VERSION): Remove.
12095         * config/i386/freebsd.h (TARGET_VERSION): Remove.
12096         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12097         * config/i386/gnu.h (TARGET_VERSION): Remove.
12098         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12099         * config/i386/i386elf.h (TARGET_VERSION): Remove.
12100         * config/i386/linux.h (TARGET_VERSION): Remove.
12101         * config/i386/linux64.h (TARGET_VERSION): Remove.
12102         * config/i386/lynx.h (TARGET_VERSION): Remove.
12103         * config/i386/mingw32.h (TARGET_VERSION): Remove.
12104         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12105         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12106         * config/i386/netware.h (TARGET_VERSION): Remove.
12107         * config/i386/nto.h (TARGET_VERSION): Remove.
12108         * config/i386/openbsd.h (TARGET_VERSION): Remove.
12109         * config/i386/vxworks.h (TARGET_VERSION): Remove.
12110         * config/ia64/elf.h (TARGET_VERSION): Remove.
12111         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12112         * config/ia64/hpux.h (TARGET_VERSION): Remove.
12113         * config/ia64/linux.h (TARGET_VERSION): Remove.
12114         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12115         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12116         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12117         * config/lm32/lm32.h (TARGET_VERSION): Remove.
12118         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12119         * config/m32c/m32c.h (TARGET_VERSION): Remove.
12120         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12121         * config/m32r/m32r.h (TARGET_VERSION): Remove.
12122         * config/m68k/linux.h (TARGET_VERSION): Remove.
12123         * config/m68k/m68k.h (TARGET_VERSION): Remove.
12124         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12125         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12126         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12127         * config/mep/mep.h (TARGET_VERSION): Remove.
12128         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12129         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12130         * config/mips/iris6.h (MACHINE_TYPE): Remove.
12131         * config/mips/linux.h (TARGET_VERSION): Remove.
12132         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12133         * config/mips/vxworks.h (TARGET_VERSION): Remove.
12134         * config/mmix/mmix.h (TARGET_VERSION): Remove.
12135         * config/mn10300/linux.h (TARGET_VERSION): Remove.
12136         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12137         * config/pa/pa.h (TARGET_VERSION): Remove.
12138         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12139         * config/picochip/picochip.h (TARGET_VERSION): Remove.
12140         * config/rs6000/aix.h (TARGET_VERSION): Remove.
12141         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12142         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12143         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12144         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12145         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12146         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12147         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12148         * config/rs6000/linux.h (TARGET_VERSION): Remove.
12149         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12150         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12151         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12152         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12153         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12154         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12155         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12156         * config/s390/linux.h (TARGET_VERSION): Remove.
12157         * config/s390/s390.h (TARGET_VERSION): Remove.
12158         * config/s390/tpf.h (TARGET_VERSION): Remove.
12159         * config/score/score.h (TARGET_VERSION): Remove.
12160         * config/sh/linux.h (TARGET_VERSION): Remove.
12161         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12162         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12163         * config/sh/sh.h (TARGET_VERSION): Remove.
12164         * config/sh/sh64.h (TARGET_VERSION): Remove.
12165         * config/sh/superh.h (TARGET_VERSION): Remove.
12166         * config/sh/vxworks.h (TARGET_VERSION): Remove.
12167         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12168         * config/sparc/linux.h (TARGET_VERSION): Remove.
12169         * config/sparc/linux64.h (TARGET_VERSION): Remove.
12170         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12171         TARGET_NAME32, TARGET_NAME): Remove.
12172         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12173         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12174         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12175         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12176         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12177         * config/spu/spu.h (TARGET_VERSION): Remove.
12178         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12179         * config/v850/v850.h (TARGET_VERSION): Remove.
12180         * config/vax/linux.h (TARGET_VERSION): Remove.
12181         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12182         * config/xtensa/elf.h (TARGET_VERSION): Remove.
12183         * config/xtensa/linux.h (TARGET_VERSION): Remove.
12184
12185 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
12186
12187         PR target/48142
12188         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12189         frame-related from frame-unrelated adjustments to the stack pointer.
12190
12191 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
12192
12193         * common.opt (fdebug-types-section): Move earlier.
12194         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12195
12196 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
12197
12198         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12199         var.
12200
12201 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
12202
12203         * tree.h (CASE_CHAIN): Define.
12204         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12205         (gimple_redirect_edge_and_branch): Likewise.
12206
12207 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
12208
12209         PR middle-end/48367
12210         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12211         calculation.
12212
12213 2011-03-30  Jeff Law  <law@redhat.com>
12214
12215         * PR bootstrap/48371
12216         * reload1.c (reload): Fix botch in last change.
12217
12218         * reload.h (struct reload): Fix typo introduced in last change.
12219
12220 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12221
12222         * config/arm/arm.opt (mhard-float, msoft-float): Mark
12223         Undocumented.  Remove help text.
12224         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12225         -mhard-float.
12226
12227 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12228
12229         * doc/options.texi (NegativeAlias): Document.
12230         (Alias): Mention NegativeAlias.
12231         * opt-functions.awk: Handle NegativeAlias.
12232         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
12233         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12234         * opts.h (CL_NEGATIVE_ALIAS): Define.
12235         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12236         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12237         OPT_mspe_.
12238         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12239         Alias entries.
12240         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12241         mno-spe and mno-isel instead of mspe=no and -misel=no.
12242
12243 2011-03-29  Mark Wielaard  <mjw@redhat.com>
12244
12245         * common.opt (fdebug-types-section): New flag.
12246         * doc/invoke.texi: Document new -fno-debug-types-section flag.
12247         * dwarf2out.c (use_debug_types): New define.
12248         (struct die_struct): Mark die_id with GTY desc use_debug_types.
12249         (print_die): Guard output of type unit signatures using
12250         use_debug_types.
12251         (build_abbrev_table): Replace assert of dwarf_version >= 4
12252         with assert on use_debug_types.
12253         (size_of_die): Likewise.
12254         (unmark_dies): Likewise.
12255         (value_format): Decide AT_ref_external form on use_debug_types.
12256         (output_die): Replace dwarf_version version check guard with
12257         use_debug_types where appropriate.
12258         (modified_type_die): Likewise.
12259         (gen_reference_type_die): Likewise.
12260         (dwarf2out_start_source_file): Likewise.
12261         (dwarf2out_end_source_file): Likewise.
12262         (prune_unused_types_walk_attribs): Likewise.
12263         (dwarf2out_finish): Likewise.
12264
12265 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
12266
12267         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12268
12269 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12270
12271         PR rtl-optimization/48332
12272         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12273         mode of input operand N and modeN to its actual mode.
12274
12275 2011-03-30  Jeff Law  <law@redhat.com>
12276
12277         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12278         define accessor macro.
12279         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12280         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12281         (reg_equiv_init): Likewise.
12282         (reg_equivs_size): New variable.
12283         (reg_equiv_init_size): Remove.
12284         (allocate_initial_values): Move prototype to here from....
12285         * integrate.h (allocate_initial_values): Remove prototype.
12286         * integrate.c: Include reload.h.
12287         (allocate_initial_values): Corresponding changes.
12288         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12289         (fix_reg_equiv_init, no_equiv): Corresponding changes.
12290         (update_equiv_regs): Corresponding changes.
12291         (ira): Corresponding changes.
12292         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12293         (push_secondary_reload): Corresponding changes.
12294         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12295         (make_memloc, find_reloads_address): Corresponding changes.
12296         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12297         (find_reloads_address_1): Corresponding changes.
12298         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12299         (refers_to_regno_for_reload_p): Corresponding changes.
12300         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12301         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12302         * reload1.c: Include ggc.h.
12303         (grow_reg_equivs): New function.
12304         (replace_pseudos_in, reload): Corresponding changes.
12305         (calculate_needs_all_insns, alter_regs): Corresponding changes.
12306         (eliminate_regs_1, elimination_effects): Corresponding changes.
12307         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12308         (delete_output_reload): Likewise.
12309         * caller-save.c (mark_referenced_regs): Corresponding changes.
12310         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12311         * frv/predicates.md (frv_load_operand): Corresponding changes.
12312         * microblaze/microblaze.c (double_memory_operand): Corresponding
12313         changes.
12314         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12315         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12316         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12317         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12318         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12319         changes.
12320         * pa/pa.c (emit_move_sequence): Corresponding changes.
12321         * vax/vax.c (nonindexed_address_p): Corresponding changes.
12322
12323 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12324
12325         PR target/47551
12326         * config/arm/arm.c (coproc_secondary_reload_class): Handle
12327         structure modes.  Don't check neon_vector_mem_operand for
12328         vector or structure modes.
12329
12330 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12331             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12332
12333         PR target/43590
12334         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12335         operand 1 and reshuffle the operands to match.
12336         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12337
12338 2011-03-30  Christian Schüler  <cschueler@gmx.de>
12339
12340         PR driver/48208
12341         * config/c.opt (F): Added 'Driver' to -F option.
12342
12343         PR driver/48260
12344         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12345           handler function.
12346         * config/darwin.opt: Added '-arch' option.
12347
12348 2011-03-30  Nick Clifton  <nickc@redhat.com>
12349
12350         * config/rx/rx.md: Add peepholes and patterns to combine
12351         extending loads and simple arithmetic instructions.
12352         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12353         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12354         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12355         modes to use pre-decrement and post-increment addressing.
12356         (rx_is_restricted_memory_address): Add range checking of REG+INT
12357         addresses.
12358         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
12359         (rx_memory_move_cost): Adjust cost of stores.
12360         (rx_adjust_insn_length): New function.
12361
12362 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
12363
12364         PR c/48305
12365         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12366         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12367         matching arg00/arg01 types.
12368
12369 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
12370
12371         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12372         last_location to UNKNOWN_LOCATION.
12373
12374 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
12375
12376         PR target/48349
12377         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12378         FLOAT_SSE_REGS.
12379
12380 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12381             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12382
12383         PR bootstrap/48337
12384         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12385         Init(PROCESSOR_V7).
12386         (sparc_cpu): Likewise.
12387         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12388         PROCESSOR_V7.
12389
12390 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12391
12392         PR target/48336
12393         PR middle-end/48342
12394         PR rtl-optimization/48345
12395         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12396         hard regs for given mode from profitable regs when doing secondary
12397         allocation.
12398
12399 2011-03-29  Jeff Law  <law@redhat.com>
12400
12401         PR bootstrap/48327
12402         * tree-ssa-threadupdate.c (struct redirection_data): Remove
12403         do_not_duplicate field.
12404         (lookup_redirection_data): Corresponding changes.
12405         (create_duplicates): Always create a template block.
12406         (redirect_edges): Remove code which reused the original block
12407         when it was going to become unreachable code.
12408         (thread_block): Don't set do_not_duplicate field.
12409
12410 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
12411
12412         * lto-opts.c (register_user_option_p, lto_register_user_option):
12413         Make type argument unsigned.
12414         * lto-streamer.h (lto_register_user_option): Make type argument
12415         unsigned.
12416         * opth-gen.awk: Make CL_* macros unsigned.
12417         * opts-common.c (find_opt): Make lang_mask argument unsigned.
12418         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12419         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12420         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12421         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12422         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12423         (find_opt): Make lang_mask argument unsigned.
12424
12425 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12426
12427         PR rtl-optimization/48331
12428         PR rtl-optimization/48334
12429         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12430         for any used algorithm.
12431
12432 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12433
12434         * ira-conflicts.c (build_object_conflicts): Add unused attribute
12435         to parent_max.
12436
12437 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
12438
12439         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12440         (alpha_option_override): Don't set alpha_sr_alias_set.
12441         (emit_frame_store_1): Use gen_frame_mem rather than calling
12442         set_mem_alias_set.
12443         (alpha_expand_epilogue): Ditto.
12444
12445 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
12446
12447         PR tree-optimization/48290
12448         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12449         vectorization, check that relevant phis in the basic block after
12450         the inner loop are really inner loop's exit phis.
12451
12452 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
12453
12454         PR debug/48190
12455         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12456         (cached_dw_loc_list_def): New structure.
12457         (cached_dw_loc_list): New typedef.
12458         (cached_dw_loc_list_table): New variable.
12459         (cached_dw_loc_list_table_hash): New function.
12460         (cached_dw_loc_list_table_eq): Likewise.
12461         (add_location_or_const_value_attribute): Take a bool cache_p.
12462         Cache the list when the parameter is true.
12463         (gen_formal_parameter_die): Update caller.
12464         (gen_variable_die): Likewise.
12465         (dwarf2out_finish): Likewise.
12466         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12467         while generating debug info for the decl.
12468         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12469         (dwarf2out_init): Initialize cached_dw_loc_list_table.
12470         (resolve_addr): Cache the result of resolving a chain of
12471         location lists.
12472
12473 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
12474
12475         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12476         conflict object hard regset nodes have intersecting hard reg sets.
12477
12478         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12479         after regstat_init_n_sets_and_refs.
12480
12481         * ira.c: Add more comments at the top.
12482         (setup_stack_reg_pressure_class, setup_pressure_classes):
12483         Add comments how we compute the register pressure classes.
12484         (setup_allocno_and_important_classes): Add more comments.
12485         (setup_class_translate_array, reorder_important_classes)
12486         (setup_reg_class_relations): Add comments.
12487
12488         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
12489         start of the file.
12490
12491         * ira-color.c: Add 2011 to the Copyright line.
12492         (assign_hard_reg):  Add more comments.
12493         (improve_allocation): Ditto.
12494
12495         * ira-costs.c: Add 2011 to the Copyright line.
12496         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12497         comments.
12498         (setup_regno_cost_classes_by_mode): Ditto.
12499
12500         Initial patches from ira-improv branch:
12501
12502         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12503
12504         * ira-build.c (ira_create_object): Remove initialization of
12505         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
12506         (ira_create_allocno): Remove initialization of
12507         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12508         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12509         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12510         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12511         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12512         Initialize ALLOCNO_ADD_DATA.
12513         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12514         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12515         ALLOCNO_REG.
12516         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
12517         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12518
12519         * ira.c (ira_reallocate): Remove.
12520         (setup_pressure_classes): Call
12521         ira_init_register_move_cost_if_necessary.  Use
12522         ira_register_move_cost instead of ira_get_register_move_cost.
12523         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12524         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12525
12526         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12527         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12528         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12529         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12530         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12531         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12532         Fix formatting.
12533         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12534         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12535         (struct allocno_color_data): New.
12536         (allocno_color_data_t): New typedef.
12537         (allocno_color_data): New definition.
12538         (ALLOCNO_COLOR_DATA): New macro.
12539         (struct object_color_data): New.
12540         (object_color_data_t): New typedef.
12541         (object_color_data): New definition.
12542         (OBJECT_COLOR_DATA): New macro.
12543         (update_copy_costs, calculate_allocno_spill_cost): Call
12544         ira_init_register_move_cost_if_necessary.  Use
12545         ira_register_move_cost instead of ira_get_register_move_cost.
12546         (move_spill_restore, update_curr_costs): Ditto.
12547         (allocno_spill_priority): Make it inline.
12548         (color_pass): Allocate and free allocno_color_dat and object_color_data.
12549         (struct coalesce_data, coalesce_data_t): New.
12550         (allocno_coalesce_data): New definition.
12551         (ALLOCNO_COALESCE_DATA): New macro.
12552         (merge_allocnos, coalesced_allocno_conflict_p): Use
12553         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12554         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12555         (coalesce_allocnos): Ditto.
12556         (setup_coalesced_allocno_costs_and_nums): Ditto.
12557         (collect_spilled_coalesced_allocnos): Ditto.
12558         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12559         (setup_slot_coalesced_allocno_live_ranges): Ditto.
12560         (coalesce_spill_slots): Ditto.
12561         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
12562         free allocno_coalesce_data.
12563
12564         * ira-conflicts.c: Fix formatting.
12565         (process_regs_for_copy): Call
12566         ira_init_register_move_cost_if_necessary.  Use
12567         ira_register_move_cost instead of ira_get_register_move_cost.
12568         (build_object_conflicts): Optimize.
12569
12570         * ira-costs.c (record_reg_classes): Optimize.  Call
12571         ira_init_register_move_cost_if_necessary.  Use
12572         ira_register_move_cost, ira_may_move_in_cost, and
12573         ira_may_move_out_cost instead of ira_get_register_move_cost and
12574         ira_get_may_move_cost.
12575         (record_address_regs): Ditto.
12576         (scan_one_insn): Optimize.
12577         (find_costs_and_classes): Optimize.
12578         (process_bb_node_for_hard_reg_moves): Call
12579         ira_init_register_move_cost_if_necessary.  Use
12580         ira_register_move_cost instead of ira_get_register_move_cost.
12581
12582         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12583         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12584         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12585         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12586         definitions.
12587         (ira_initiate_emit_data, ira_finish_emit_data)
12588         (create_new_allocno): New functions.
12589         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12590         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12591         Use ira_register_move_cost instead of ira_get_register_move_cost.
12592
12593         * ira-int.h: Fix some comments.
12594         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12595         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12596         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12597         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
12598         add_data.
12599         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
12600         bitfield after mode.  Make hard_regno a short int.  Make
12601         hard_regno short.  Remove first_coalesced_allocno and
12602         next_coalesced_allocno.  Move mem_optimized_dest_p,
12603         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12604         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
12605         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12606         temp, colorable_p.  Add new member add_data.
12607         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12608         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12609         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12610         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12611         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12612         (ALLOCNO_ADD_DATA): New macro.
12613         (ira_emit_data_t): New typedef.
12614         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
12615         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12616         from struct ira_allocno.
12617         (ALLOCNO_EMIT_DATA): New macro.
12618         (ira_allocno_emit_data, allocno_emit_reg): New.
12619         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12620         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12621         (OBJECT_ADD_DATA): New macro.
12622         (ira_reallocate): Remove.
12623         (ira_initiate_emit_data, ira_finish_emit_data): New.
12624         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12625         (ira_init_register_move_cost_if_necessary): New.
12626         (ira_object_conflict_iter_next): Merge into
12627         ira_object_conflict_iter_cond.
12628         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12629
12630         * ira-live.c (process_single_reg_class_operands): Call
12631         ira_init_register_move_cost_if_necessary.  Use
12632         ira_register_move_cost instead of ira_get_register_move_cost.
12633
12634         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12635
12636         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12637
12638         * ira-costs.c: Fix formatting.
12639         (cost_classes, cost_classes_num): Remove.
12640         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12641         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12642         (cost_classes_del, cost_classes_htab): New.
12643         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12644         (initiate_regno_cost_classes, setup_cost_classes): New.
12645         (setup_regno_cost_classes_by_aclass): New.
12646         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12647         (record_reg_classes): Use regno_cost_classes instead of
12648         cost_classes.  Move checking opposite operand up.
12649         (record_address_regs): Use regno_cost_classes
12650         instead of cost_classes.
12651         (scan_one_insn): Ditto.  Use always general register.
12652         (print_allocno_costs): Use regno_cost_classes instead of
12653         cost_classes.
12654         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
12655         (find_costs_and_classes): Set up cost classes for each registers.
12656         Use also their mode for this.  Use regno_cost_classes instead of
12657         cost_classes.
12658         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12659         cost_classes.
12660         (free_ira_costs, ira_init_costs): Don't use cost_classes.
12661         (ira_costs, ira_set_pseudo_classes): Call
12662         initiate_regno_cost_classes and finish_regno_cost_classes.
12663
12664         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
12665
12666         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12667
12668         * target.def (ira_cover_classes): Remove.
12669
12670         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12671
12672         * doc/tm.texi.in: Ditto.
12673
12674         * ira-conflicts.c: Remove mentioning cover classes from the file.
12675         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
12676         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
12677
12678         * targhooks.c (default_ira_cover_classes): Remove.
12679
12680         * targhooks.h (default_ira_cover_classes): Ditto.
12681
12682         * haifa-sched.c: Remove mentioning cover classes from the file.
12683         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12684         ira_pressure_classes and ira_pressure_classes_num instead of
12685         ira_reg_class_cover_size and ira_reg_class_cover.  Use
12686         sched_regno_pressure_class instead of sched_regno_cover_class.
12687         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12688         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12689
12690         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
12691         classes from the file.
12692         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12693         (struct object_hard_regs, struct object_hard_regs_node): New.
12694         (struct ira_object): New members profitable_hard_regs,
12695         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12696         (struct ira_allocno): Rename cover_class to aclass.  Rename
12697         cover_class_cost and updated_cover_class_cost to class_cost and
12698         updated_class_cost.  Remove splay_removed_p and
12699         left_conflict_size.  Add new members colorable_p.
12700         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12701         (ALLOCNO_COLORABLE_P): New macro.
12702         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12703         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12704         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12705         (OBJECT_...): Rename parameter C to O.
12706         (OBJECT_PROFITABLE_HARD_REGS): New macro.
12707         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12708         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12709         (struct target_ira_int): New members x_ira_max_memory_move_cost,
12710         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12711         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12712         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12713         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
12714         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
12715         x_ira_reg_class_subunion.
12716         (ira_max_memory_move_cost, ira_max_register_move_cost)
12717         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12718         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12719         (ira_important_class_nums, ira_reg_class_superunion): New macros.
12720         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12721         (ira_reg_class_union): Rename to ira_reg_class_subunion.
12722         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12723         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12724         (ira_tune_allocno_costs_and_cover_classes): Rename to
12725         ira_tune_allocno_costs.
12726         (ira_debug_hard_regs_forest): New.
12727         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12728         (ira_object_conflict_iter_next): Fix comments.
12729         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12730         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12731         cover_class to aclass.
12732         (ira_allocate_and_accumulate_costs): Ditto.
12733         (ira_allocate_and_set_or_copy_costs): Ditto.
12734
12735         * opts.c (decode_options): Remove ira_cover_class check.
12736
12737         * ira-color.c: Remove mentioning cover classes from the file.  Use
12738         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12739         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12740         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12741         (splay-tree.h): Remove include.
12742         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12743         before copy_freq_compare_func.
12744         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12745         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12746         New definitions.
12747         (hard_regs_roots, hard_regs_node_vec): Ditto.
12748         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12749         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12750         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12751         (create_new_object_hard_regs_node): Ditto.
12752         (add_new_object_hard_regs_node_to_forest): Ditto.
12753         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12754         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12755         Ditto.
12756         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12757         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12758         (remove_unused_object_hard_regs_nodes): Ditto.
12759         (enumerate_object_hard_regs_nodes): Ditto.
12760         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12761         (object_hard_regs_subnode_t): Ditto.
12762         (struct object_hard_regs_subnode): Ditto.
12763         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12764         (setup_object_hard_regs_subnode_index): Ditto.
12765         (get_object_hard_regs_subnodes_num): Ditto.
12766         (form_object_hard_regs_nodes_forest): Ditto.
12767         (finish_object_hard_regs_nodes_tree): Ditto.
12768         (finish_object_hard_regs_nodes_forest): Ditto.
12769         (allocnos_have_intersected_live_ranges_p): Rename to
12770         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12771         (pseudos_have_intersected_live_ranges_p): Rename to
12772         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12773         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12774         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12775         (update_copy_costs): Remove assert.  Skip cost update if the hard
12776         reg does not belong the class.
12777         (assign_hard_reg): Process only profitable hard regs.
12778         (uncolorable_allocnos_num): Make it scalar.
12779         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12780         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12781         and ira_reg_class_max_nregs.
12782         (bucket_allocno_compare_func): Check frequency first.
12783         (sort_bucket): Add compare function as a parameter.
12784         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12785         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12786         (push_allocno_to_stack): Rewrite for checking new allocno
12787         colorability.
12788         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
12789         (push_only_colorable): Pass new parameter to sort_bucket.
12790         (push_allocno_to_spill): Remove.
12791         (allocno_spill_priority_compare): Make it inline and rewrite.
12792         (splay_tree_allocate, splay_tree_free): Remove.
12793         (allocno_spill_sort_compare): New function.
12794         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
12795         build and use splay tree.  Choose first allocno in uncolorable
12796         allocno bucket to spill.  Remove setting spill cost.
12797         (all_conflicting_hard_regs): Remove.
12798         (setup_allocno_available_regs_num): Check only profitable hard
12799         regs.  Print info about hard regs nodes.
12800         (setup_allocno_left_conflicts_size): Remove.
12801         (put_allocno_into_bucket): Don't call
12802         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
12803         (improve_allocation): New.
12804         (color_allocnos): Call setup_profitable_hard_regs,
12805         form_object_hard_regs_nodes_forest, improve_allocation,
12806         finish_object_hard_regs_nodes_forest.  Setup spill cost.
12807         (print_loop_title): Use pressure classes.
12808         (color_allocnso): Ditto.
12809         (do_coloring): Remove allocation and freeing splay_tree_node_pool
12810         and allocnos_for_spilling.
12811         (ira_sort_regnos_for_alter_reg): Don't setup members
12812         {first,next}_coalesced_allocno.
12813         (color): Remove allocating and freeing removed_splay_allocno_vec.
12814         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12815         prohibited_class_mode_regs.
12816
12817         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
12818         formatting.
12819         (update_allocno_pressure_excess_length): Use pressure classes.
12820         (inc_register_pressure, dec_register_pressure): Check for pressure
12821         class.
12822         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12823         pressure class.  Use ira_reg_class_nregs instead of
12824         ira_reg_class_max_nregs.
12825         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12826         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12827         (single_reg_class): Use ira_reg_class_nregs instead of
12828         ira_reg_class_max_nregs.
12829         (process_bb_node_lives): Use pressure classes.
12830
12831         * ira-emit.c: Remove mentioning cover classes from the file.  Use
12832         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12833         (change_loop): Use pressure classes.
12834         (modify_move_list): Call ira_set_allocno_class instead of
12835         ira_set_allocno_cover_class.
12836
12837         * ira-build.c: Remove mentioning cover classes from the file.  Use
12838         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12839         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
12840         ALLOCNO_UPDATED_CLASS_COST instead of
12841         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12842         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12843         (ira_create_allocno): Remove initialization of
12844         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
12845         ALLOCNO_COLORABLE_P.
12846         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12847         Update conflict regs for the objects.
12848         (create_cap_allocno): Remove assert.  Don't propagate
12849         ALLOCNO_AVAILABLE_REGS_NUM.
12850         (ira_free_allocno_costs): New function.
12851         (finish_allocno): Change a part of code into call of
12852         ira_free_allocno_costs.
12853         (low_pressure_loop_node_p): Use pressure classes.
12854         (object_range_compare_func): Don't compare classes.
12855         (setup_min_max_conflict_allocno_ids): Ditto.
12856
12857         * loop-invariant.c: Remove mentioning cover classes from the file.
12858         Use ira_pressure_classes and ira_pressure_classes_num instead of
12859         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
12860         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12861         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12862         Use reg_allocno_class instead of reg_cover_class.
12863         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12864         STACK_REG_COVER_CLASS.
12865         (get_regno_cover_class): Rename to get_regno_pressure_class.
12866         (move_loop_invariants): Initialize and finalize regstat.
12867
12868         * ira.c: Remove mentioning cover classes from the file.  Add
12869         comments about coloring without cover classes.  Use ALLOCNO_CLASS
12870         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12871         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12872         setup_class_subset_and_memory_move_costs.
12873         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12874         (setup_cover_and_important_classes): Rename to
12875         setup_allocno_and_important_classes.
12876         (setup_class_translate_array): New.
12877         (setup_class_translate): Call it for allocno and pressure classes.
12878         (cover_class_order): Rename to allocno_class_order.
12879         (comp_reg_classes_func): Use ira_allocno_class_translate instead
12880         of ira_class_translate.
12881         (reorder_important_classes): Set up ira_important_class_nums.
12882         (setup_reg_class_relations): Set up ira_reg_class_superunion.
12883         (print_class_cover): Rename to print_classes.  Add parameter.
12884         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12885         Print pressure classes too.
12886         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
12887         setup_reg_subclasses.
12888         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12889         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12890         (setup_prohibited_class_mode_regs): Use
12891         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12892         (clarify_prohibited_class_mode_regs): New function.
12893         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12894         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12895         (ira_init_once): Initialize them.
12896         (free_register_move_costs): Process them.
12897         (ira_init): Move calls of find_reg_classes and
12898         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12899         Call clarify_prohibited_class_mode_regs.
12900         (ira_no_alloc_reg): Remove.
12901         (too_high_register_pressure_p): Use pressure classes.
12902
12903         * sched-deps.c: Remove mentioning cover classes from the file.
12904         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12905         ira_pressure_classes and ira_pressure_classes_num instead of
12906         ira_reg_class_cover_size and ira_reg_class_cover.
12907         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12908         sched_regno_pressure_class instead of sched_regno_cover_class.
12909         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
12910         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12911
12912         * ira.h: Add 2010 to Copyright.
12913         (ira_no_alloc_reg): Remove external.
12914         (struct target_ira): Rename x_ira_hard_regno_cover_class,
12915         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12916         x_ira_class_translate to x_ira_hard_regno_allocno_class,
12917         x_ira_allocno_classes_num, x_ira_allocno_classes, and
12918         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
12919         x_ira_pressure_classes, x_ira_pressure_class_translate, and
12920         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
12921         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
12922         x_ira_no_alloc_regs.
12923         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12924         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12925         ira_allocno_classes_num and ira_allocno_classes.
12926         (ira_class_translate): Rename to ira_allocno_class_translate.
12927         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12928         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12929         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12930         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12931         (ira_no_alloc_regs): New.
12932
12933         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
12934         classes from the file.  Use ALLOCNO_CLASS instead of
12935         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
12936         ALLOCNO_COVER_CLASS_COST.
12937         (regno_cover_class): Rename to regno_aclass.
12938         (record_reg_classes): Use ira_reg_class_subunion instead of
12939         ira_reg_class_union.
12940         (record_address_regs): Check overflow.
12941         (scan_one_insn): Ditto.
12942         (print_allocno_costs): Print total mem cost fore regional allocation.
12943         (print_pseudo_costs): Use REG_N_REFS.
12944         (find_costs_and_classes): Use classes intersected with them on the
12945         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
12946         ira_reg_class_union.  Use ira_allocno_class_translate and
12947         regno_aclass instead of ira_class_translate and regno_cover_class.
12948         Modify code for finding regno_aclass.  Setup preferred classes for
12949         the next pass.
12950         (setup_allocno_cover_class_and_costs): Rename to
12951         setup_allocno_class_and_costs.  Use regno_aclass instead of
12952         regno_cover_class.  Use ira_set_allocno_class instead of
12953         ira_set_allocno_cover_class.
12954         (init_costs, finish_costs): Use regno_aclass instead of
12955         regno_cover_class.
12956         (ira_costs): Use setup_allocno_class_and_costs instead of
12957         setup_allocno_cover_class_and_costs.
12958         (ira_tune_allocno_costs_and_cover_classes): Rename to
12959         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
12960         by processing objects.  Use ira_reg_class_max_nregs instead of
12961         ira_reg_class_nregs.
12962
12963         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12964
12965         * sched-int.h: Remove mentioning cover classes from the file.
12966         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12967
12968         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
12969         classes from the file.
12970         (struct reg_pref): Rename coverclass into allocnoclass.
12971         (reg_cover_class): Rename to reg_allocno_class.
12972
12973         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12974
12975         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12976
12977         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12978
12979         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12980
12981         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12982
12983         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12984
12985         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12986
12987         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12988
12989         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12990
12991         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12992
12993         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12994         (i386_ira_cover_classes): Ditto.
12995
12996         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12997
12998         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12999
13000         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
13001
13002         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
13003
13004         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
13005
13006         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
13007
13008         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
13009         (mips_ira_cover_classes): Ditto.
13010
13011         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
13012
13013         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
13014
13015         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
13016
13017         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13018
13019         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13020
13021         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13022         (IRA_COVER_CLASSES_VSX): Ditto.
13023
13024         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13025         (rs6000_ira_cover_classes): Ditto.
13026
13027         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13028
13029         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13030
13031         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13032
13033         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13034
13035         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13036
13037         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13038
13039         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13040
13041         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13042
13043         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13044
13045         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13046
13047 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
13048
13049         PR debug/48253
13050         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13051         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13052         dw_fde_unlikely_section_end_label, cold_in_std_section,
13053         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13054         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13055         fields.
13056         (output_fde): Use dw_fde_second_{begin,end} if second is
13057         true, otherwise dw_fde_{begin,end}.
13058         (output_call_frame_info): Test dw_fde_second_begin != NULL
13059         instead of dw_fde_switched_sections.
13060         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13061         fields, initialize new fields.  Initialize in_std_section
13062         unconditionally from the first partition.
13063         (dwarf2out_end_epilogue): Don't override dw_fde_end when
13064         dw_fde_second_begin is non-NULL.
13065         (dwarf2out_switch_text_section): Stop initializing removed
13066         dw_fde_struct fields, initialize new fields, initialize
13067         also dw_fde_end here.  Set dw_fde_switch_cfi even when
13068         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
13069         (struct var_loc_list_def): Add last_before_switch field.
13070         (arange_table, arange_table_allocated, arange_table_in_use,
13071         ARANGE_TABLE_INCREMENT, add_arange): Removed.
13072         (size_of_aranges): Count !in_std_section and !second_in_std_section
13073         hunks in fdes, instead of looking at arange_table_in_use.
13074         (output_aranges): Add aranges_length argument, don't call
13075         size_of_aranges here.  Instead of using aranges_table*
13076         emit ranges for fdes when !in_std_section resp.
13077         !second_in_std_section.
13078         (dw_loc_list): Break ranges crossing section switch.
13079         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
13080         use dw_fde_second_end instead of dw_fde_end as end of last range.
13081         (gen_subprogram_die): Don't call add_arange.  Use
13082         dw_fde_{begin,end} for first partition and if switched
13083         section dw_fde_second_{begin,end} for the second.
13084         (var_location_switch_text_section_1,
13085         var_location_switch_text_section): New functions.
13086         (dwarf2out_begin_function): Initialize cold_text_section even
13087         when function_section () isn't text_section.
13088         (prune_unused_types): Don't walk arange_table.
13089         (dwarf2out_finish): Don't needlessly test
13090         flag_reorder_blocks_and_partition when testing cold_text_section_used.
13091         If info_section_emitted, call size_of_aranges and if it indicates
13092         non-empty .debug_aranges, call output_aranges with the computed
13093         size.  Stop using removed dw_fde_struct fields, use
13094         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13095         for second.
13096
13097         PR debug/48203
13098         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13099         create ENTRY_VALUE if incoming or address of incoming's MEM
13100         is a hard REG.
13101         * dwarf2out.c (mem_loc_descriptor): Don't emit
13102         DW_OP_GNU_entry_value of DW_OP_fbreg.
13103         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13104         on ENTRY_VALUE is able to find the canonical parameter VALUE.
13105         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13106         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13107         ENTRY_VALUE_EXPs.
13108         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13109         is a REG_P or MEM_P with REG_P address, compute hash directly
13110         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13111         (preserve_only_constants): Don't clear VALUES forwaring
13112         ENTRY_VALUE to some other VALUE.
13113
13114 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
13115
13116         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13117         instead of GEN_INT.
13118
13119 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
13120
13121         * cfgexpand.c (expand_gimple_cond): Always set the source location and
13122         block before expanding the statement.
13123         (expand_gimple_stmt_1): Likewise.  Set them here...
13124         (expand_gimple_stmt): ...and not here.  Tidy.
13125         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13126         unknown.
13127
13128 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
13129
13130         * Makefile.in: New rule for cprop.o.
13131         * gcse.c: Move constant/copy propagation to cprop.c.
13132         (compute_local_properties): Only handle expression tables.
13133         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13134         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13135         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13136         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13137         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13138         compute_cprop_data, find_used_regs, try_replace_reg,
13139         find_avail_set, cprop_jump, constprop_register, cprop_insn,
13140         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13141         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13142         find_bypass_set, reg_killed_on_edge, bypass_block,
13143         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13144         execute_rtl_cprop, pass_rtl_cprop): Move to...
13145         * cprop.c: ...here.  New file, constant/copy propagation for RTL
13146         moved from gcse.c to here with minor cleanups in duplicated code.
13147
13148 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
13149
13150         * config/i386/i386.c (flag_opts): Fix a typo in
13151         -mavx256-split-unaligned-store.
13152
13153 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
13154
13155         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13156         LIBCALL_VALUE): Remove macros.
13157         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13158         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13159         (h8300_function_value, h8300_libcall_value,
13160         h8300_function_value_regno_p): New functions.
13161
13162 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
13163
13164         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13165
13166 2011-03-28  Jeff Law  <law@redhat.com>
13167
13168         * tree-ssa-threadupdate.c (redirect_edges): Call
13169         create_edge_and_update_destination_phis as needed.
13170         (create_edge_and_update_destination_phis): Accept new BB argument.
13171         All callers updated.
13172         (thread_block): Do not update the profile when threading around
13173         intermediate blocks.
13174         (thread_single_edge): Likewise.
13175         (determine_bb_domination_status): If BB is not a successor of the
13176         loop header, return NONDOMINATING.
13177         (register_jump_thread): Note when we register a jump thread around
13178         an intermediate block.
13179         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13180         (thread_across_edge): Use it.
13181
13182 2011-03-28  Tristan Gingold  <gingold@adacore.com>
13183
13184         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13185         when for_return is 2.
13186
13187 2011-03-28  Jeff Law  <law@redhat.com>
13188
13189         * var-tracking.c (canonicalize_values_mark): Delete unused
13190         lhs assignment.
13191         (canonicalize_values_star, set_variable_part): Likewise.
13192         (clobber_variable_part, delete_variable_part): Likewise.
13193
13194 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
13195
13196         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13197
13198 2011-03-28  Martin Jambor  <mjambor@suse.cz>
13199
13200         * tree-inline.c (expand_call_inline): Do not check that destination
13201         node is analyzed.
13202         (optimize_inline_calls): Assert that destination node is analyzed.
13203         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13204         not call tree_lowering_passes.
13205         * cgraph.h (cgraph_analyze_function): Declare.
13206         * cgraphunit.c (cgraph_analyze_function): Make public.
13207
13208 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
13209
13210         * config/sparc/sparc-opts.h: New.
13211         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13212         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13213         (sparc_option_override): Store processor_type enumeration rather
13214         than string in cpu_default.  Remove name and enumeration from
13215         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
13216         without using sparc_select.  Use target_flags_explicit instead of
13217         fpu_option_set.
13218         * config/sparc/sparc.h (enum processor_type): Move to
13219         sparc-opts.h.
13220         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13221         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13222         HeaderInclude entry.
13223         (mcpu=, mtune=): Use Var and Enum.
13224         (sparc_processor_type): New Enum and EnumValue entries.
13225
13226 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13227             Iain Sandoe  <iains@gcc.gnu.org>
13228
13229         PR target/48245
13230         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13231
13232 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
13233
13234         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13235         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13236         Insert new statements at it in lieu of STMT.
13237         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13238         * tree-vect-stmts.c (vectorizable_store): Likewise.
13239         (vectorizable_load): Likewise.
13240
13241 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
13242
13243         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13244         (divtf3): Ditto.
13245         (multf3): Ditto.
13246         (subtf3): Ditto.
13247
13248 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
13249
13250         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13251         unaligned 256bit load/store.
13252         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13253         (*avx_movdqu<avxmodesuffix>): Likewise.
13254
13255 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13256
13257         PR target/48288
13258         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13259         * config/pa/pa.md (iordi3): Use new predicate in expander.
13260         (iorsi3): Likewise.
13261
13262 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
13263
13264         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13265         FUNCTION_VALUE_REGNO_P): Remove macros.
13266         * config/mips/mips-protos.h (mips_function_value): Remove.
13267         * config/mips/mips.c (mips_function_value): Rename to...
13268         (mips_function_value_1): ... this. Make static.  Handle receiving
13269         the function type in 'fn_decl_or_type' argument.
13270         (mips_function_value, mips_libcall_value,
13271         mips_function_value_regno_p): New function.
13272         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13273         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13274
13275 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
13276
13277         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13278         and -mavx256-split-unaligned-store.
13279         (ix86_option_override_internal): Split 32-byte AVX unaligned
13280         load/store by default.
13281         (ix86_avx256_split_vector_move_misalign): New.
13282         (ix86_expand_vector_move_misalign): Use it.
13283
13284         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13285         -mavx256-split-unaligned-store.
13286
13287         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13288         256bit load/store.  Generate unaligned store on misaligned memory
13289         operand.
13290         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13291         256bit load/store.
13292         (*avx_movdqu<avxmodesuffix>): Likewise.
13293
13294         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13295         -mavx256-split-unaligned-store.
13296
13297 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
13298
13299         PR target/38598
13300         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13301         Update commentary.
13302
13303 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
13304
13305         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13306         opno arguments with an expand_operand.  Use create_input_operand.
13307         (mips_prepare_builtin_target): Delete.
13308         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13309         functions.
13310         (mips_expand_builtin_direct): Use create_output_operand and
13311         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
13312         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
13313         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13314
13315 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
13316
13317         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13318         function.
13319         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13320
13321 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
13322
13323         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13324         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
13325         basic blocks and call commit_edge_insertions directly.
13326         (fixup_abnormal_edges): Move from here to...
13327         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
13328         on the edges and return whether some have actually been inserted.
13329         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13330         compensation code.
13331
13332 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
13333
13334         PR rtl-optimization/48144
13335         * sel-sched-ir.c (merge_history_vect): Factor out from ...
13336         (merge_expr_data): ... here.
13337         (av_set_intersect): Rename to av_set_code_motion_filter.
13338         Update all callers.  Call merge_history_vect when an expression
13339         is found in both sets.
13340         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13341
13342 2011-03-26  Alan Modra  <amodra@gmail.com>
13343
13344         * config/rs6000/predicates.md (word_offset_memref_op): Handle
13345         cmodel medium addresses.
13346         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13347         64-bit gpr loads and stores.
13348         (rs6000_secondary_reload_ppc64): New function.
13349         * config/rs6000/rs6000-protos.h: Declare it.
13350         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13351
13352 2011-03-26  Alan Modra  <amodra@gmail.com>
13353
13354         PR target/47487
13355         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13356         GNU Go in traceback table.
13357
13358 2011-03-25  Richard Henderson  <rth@redhat.com>
13359
13360         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13361         if there are exactly 6 operands.
13362         (set_storage_via_setmem): Similarly.
13363
13364 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13365
13366         * collect2.c (write_c_file_stat): Handle backslash
13367         as right-hand directory separator.
13368         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13369         checking just for slash.
13370         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13371         instead of checking for trailing slash.
13372         * gcc.c (record_temp_file): Use filename_cmp instead
13373         of strcmp.
13374         (do_spec_1): Likewise.
13375         (replace_outfile_spec_function): Likewise.
13376         (is_directory): Use filename_ncmp instead of strncmp.
13377         (print_multilib_info): Likewise.
13378         * gcov.c (find_source): Use filename_cmp instead
13379         instead of strcmp.
13380         (make_gcov_file_name): Fix order of slash/backslash
13381         checks.
13382         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13383         (add_standard_paths): Likewise.
13384         * mips-tfile.c (saber_stop): Handle backslash.
13385         * prefix.c (update_path): Use filename_ncmp instead of
13386         strncmp.
13387         * profile.c (output_location): Use filename_cmp instead
13388         of strcmp.
13389         * read-md.c (handle_toplevel_file): Handle backslash.
13390         * tlink.c (frob_extension):  Likewise.
13391         * tree-cfg.c (same_line_p): Use filename_cmp instead of
13392         strcmp.
13393         * tree-dump.c (dequeue_and_dump): Handle backslash.
13394         * tree.c (get_file_function_name): Likewise.
13395         * gengtype.c (read_input_list): Likewise.
13396         (get_file_realbasename): Likewise.
13397         (get_output_file_with_visibility): Use filename_cmp
13398         instead of strcmp.
13399
13400 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
13401
13402         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13403         case to VFPv1.
13404
13405 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13406
13407         * fold-const.c (expr_location_or): New function.
13408         (fold_truth_not_expr): Call it.
13409
13410 2011-03-25  Jeff Law  <law@redhat.com>
13411
13412         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13413         va_end.
13414         * c-family/c-common.c (def_fn_type): Likewise.
13415         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13416         * emit-rtl.c (gen_rtvec): Likewise.
13417         * lto/lto-lang.c (def_fn_type): Likewise.
13418
13419 2011-03-25  Richard Guenther  <rguenther@suse.de>
13420
13421         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13422         also generate copies.
13423         (fini_copy_prop): Handle constant values properly.
13424
13425 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
13426
13427         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13428         mode size instead of bitsize with DWARF2_ADDR_SIZE.
13429         (hash_loc_operands, compare_loc_operands): Handle
13430         DW_OP_GNU_entry_value.
13431
13432 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13433
13434         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13435         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13436         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13437         comment and use macro TARGET_64BIT_MS_ABI instead.
13438         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13439         and change default behavior for 32-bit MS_ABI.
13440         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13441         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13442         32-bit, too.
13443         (ix86_cfun_abi): Likewise.
13444         (ix86_maybe_switch_abi): Adjust comment.
13445         (init_cumulative_args): Check for bit-ness in MS_ABI case.
13446         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13447         instead of checking for SYSV_ABI.
13448         (ix86_nsaved_sseregs): Likewise.
13449         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13450         to 16 bytes.
13451         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13452         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13453         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13454         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13455         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13456
13457 2011-03-25  Richard Guenther  <rguenther@suse.de>
13458
13459         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13460         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13461         (verify_gimple): Remove.
13462         * tree-cfg.c (verify_gimple_call): Merge verification
13463         from verify_stmts.
13464         (verify_gimple_phi): Merge verification from verify_stmts.
13465         (verify_gimple_label): New function.
13466         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13467         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13468         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13469         (verify_stmts): Rename to verify_gimple_in_cfg.
13470         (verify_gimple_in_cfg): New function.
13471         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13472         * tree-ssa.c (verify_ssa): Likewise.
13473         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13474
13475 2011-03-25  Richard Guenther  <rguenther@suse.de>
13476
13477         * passes.c (init_optimization_passes): Add FRE pass after
13478         early SRA.
13479
13480 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
13481             Andrew Stubbs  <ams@codesourcery.com>
13482
13483         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13484         for Cortex-A8.
13485         (arm_movdi_vfp_cortexa8): New pattern.
13486         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13487         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13488         instructions when tuning for Cortex-A8.  Set attribute "arch".
13489         * config/arm/arm.md: Move include arm-tune.md up a bit.
13490         (define_attr "arch"): Add "onlya8" and "nota8" values.
13491         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13492
13493 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13494
13495         PR bootstrap/48282
13496         Revert:
13497         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13498
13499         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13500         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13501         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13502         * passes.c (init_optimization_passes): Move
13503         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13504
13505 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13506
13507         * c-typeck.c (comptypes_internal): Replace target
13508         hook call of comp_type_attributes by version in tree.c file.
13509         * gimple.c (gimple_types_compatible_p_1): Likewise.
13510         * tree-ssa.c (useless_type_conversion_p): Likewise.
13511         * tree.c (build_type_attribute_qual_variant): Likewise.
13512         (attribute_value_equal): New static helper function.
13513         (comp_type_attributes): New function.
13514         (merge_attributes): Use attribute_value_equal for comparison.
13515         (attribute_list_contained): Likewise.
13516         * tree.h (comp_type_attributes): New prototype.
13517
13518 2011-03-25  Richard Guenther  <rguenther@suse.de>
13519
13520         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13521         of complex types at -O0.
13522         (verify_gimple_assign_binary): Likewise.
13523         (verify_gimple_assign_ternary): Likewise.
13524
13525 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13526
13527         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13528         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13529
13530 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13531
13532         PR debug/48041
13533         * dwarf2out.c (output_abbrev_section): Only write table when
13534         abbrev_die_table_in_use > 1.
13535
13536 2011-02-24  Richard Henderson  <rth@redhat.com>
13537
13538         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13539         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13540         (alpha_expand_unaligned_load_words): Use extql.
13541         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13542         (emit_insxl): Handle all modes for consistency.
13543
13544 2011-02-24  Richard Henderson  <rth@redhat.com>
13545
13546         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13547         (alpha_expand_unaligned_load): Likewise.
13548         (alpha_expand_unaligned_store): Likewise.
13549         (alpha_expand_unaligned_load_words): Likewise.
13550         (alpha_expand_unaligned_store_words): Likewise.
13551         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13552         (alpha_split_lock_test_and_set_12): Likewise.
13553         (print_operand, alpha_fold_builtin_extxx): Likewise.
13554         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13555         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13556         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13557         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13558         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13559         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13560         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13561         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13562         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13563         (extwl, extll, extql): Similarly.
13564         (inswh, inslh, insqh): Similarly.
13565         (mskbl, mskwl, mskll, mskql): Similarly.
13566         (mskwh, msklh, mskqh): Similarly.
13567
13568 2011-02-24  Richard Henderson  <rth@redhat.com>
13569
13570         * config/alpha/alpha.md (attribute isa): Add er, ner.
13571         (attribute enabled): Handle them.
13572         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13573
13574 2011-02-24  Richard Henderson  <rth@redhat.com>
13575
13576         * config/alpha/alpha.md (attribute isa): Add vms.
13577         (attribute enabled): Handle it.
13578         (*movsf): Merge *movsf_{nofix,fix,nofp}.
13579         (*movdf): Merge *movdf_{nofix,fix,nofp}.
13580         (*movtf): Rename from *movtf_internal for consistency.
13581         (*movsi): Merge with *movsi_nt_vms.
13582         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13583         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13584         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13585         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13586
13587 2011-02-24  Richard Henderson  <rth@redhat.com>
13588
13589         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13590         (extendqisi2, extendhisi2): Likewise.
13591         (extendqidi2): Simplify BWX/non-BWX expansions.
13592         (extendhidi2): Similarly.
13593
13594 2011-02-24  Richard Henderson  <rth@redhat.com>
13595
13596         * config/alpha/alpha.md (attribute isa): New.
13597         (attribute enabled): New.
13598         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13599         (zero_extendqisi2, zero_extendqidi2): Similarly.
13600         (zero_extendhisi2, zero_extendhidi2): Similarly.
13601         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13602
13603 2011-02-24  Richard Henderson  <rth@redhat.com>
13604
13605         * config/alpha/predicates.md (input_operand): Revert last change;
13606         update comment to mention 32-bit VMS rather than Windows.
13607
13608 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13609
13610         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13611         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13612         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13613         * passes.c (init_optimization_passes): Move
13614         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13615
13616 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13617
13618         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13619
13620 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13621
13622         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13623         correctly.
13624
13625 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
13626
13627         PR debug/48204
13628         * simplify-rtx.c (simplify_const_unary_operation): Call
13629         real_convert when changing mode class with FLOAT_EXTEND.
13630
13631 2011-03-24  Nick Clifton  <nickc@redhat.com>
13632
13633         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13634         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13635         * config/rx/rx.c (rx_option_override): Set align_jumps,
13636         align_loops and align_labels if not set by the user.
13637         (rx_align_for_label): New function.
13638         (rx_max_skip_for_label): New function.
13639         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13640         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13641         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13642         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13643         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13644
13645 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13646
13647         PR rtl-optimization/48263
13648         * optabs.c (expand_binop_directly): Reinstate convert_modes code
13649         and original commutative_p handling.  Use maybe_gen_insn.
13650
13651 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13652
13653         * reload.c (find_reloads_subreg_address): Add address_reloaded
13654         parameter and return true there if the full address has been
13655         reloaded.
13656         (find_reloads_toplev): Pass address_reloaded flag.
13657         (find_reloads_address_1): Don't use address_reloaded parameter.
13658
13659 2011-03-24  Jeff Law  <law@redhat.com>
13660
13661         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13662         unused variable "ann".
13663         (remove_unused_locals): Likewise.
13664
13665         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13666         statement.
13667
13668         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13669         after it is freed.
13670
13671 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13672
13673         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13674         for invalid symbolic addresses.
13675         (s390_secondary_reload): Don't use s390_check_symref_alignment for
13676         larl operands.
13677
13678 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13679
13680         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13681         the argument in calls to fold_truth_not_expr.
13682
13683 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13684
13685         * tree.c (record_node_allocation_statistics): New function.
13686         (make_node_stat, copy_node_stat, build_string): Call it.
13687         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13688         (build1_stat, build_omp_clause): Likewise.
13689
13690 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13691
13692         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13693         last commit.
13694
13695 2011-03-24  Richard Guenther  <rguenther@suse.de>
13696
13697         PR tree-optimization/48271
13698         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13699         blocks that still exist.
13700
13701 2011-03-24  Richard Guenther  <rguenther@suse.de>
13702
13703         PR tree-optimization/48270
13704         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13705         not free datarefs before ddrs.
13706
13707 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13708
13709         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13710         from the address built for a reference with variable offset.
13711
13712 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13713
13714         PR target/48237
13715         * config/i386/i386.md (*movdf_internal_rex64): Do not split
13716         alternatives that can be handled with movq or movabsq insn.
13717         (*movdf_internal): Disable for !TARGET_64BIT.
13718         (*movdf_internal_nointeger): Ditto.
13719         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13720
13721 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13722
13723         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13724         (FUNCTION_ARG_ADVANCE): Likewise.
13725         * tm.texi.in: Change references to them to hook references.
13726         * tm.texi: Regenerate.
13727         * targhooks.c (default_function_arg): Eliminate check for target macro.
13728         (default_function_incoming_arg): Likewise.
13729         (default_function_arg_advance): Likewise.
13730         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13731         (function_arg_advance): Likewise.
13732         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13733
13734 2011-03-24  Richard Guenther  <rguenther@suse.de>
13735
13736         PR middle-end/48269
13737         * tree-object-size.c (addr_object_size): Do not double-account
13738         for MEM_REF offsets.
13739
13740 2011-03-24  Diego Novillo  <dnovillo@google.com>
13741
13742         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13743         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13744         (lto_input_data_block): Move from lto-opts.c.  Make extern.
13745         Update all users.
13746         (lto_input_string): Rename from input_string.  Make extern.
13747         Update all users.
13748         * lto-streamer-out.c (lto_output_string_with_length): Rename from
13749         output_string_with_length.
13750         Output 0 to indicate a non-NULL string.  Update all callers to
13751         not emit 0.
13752         (lto_output_string): Rename from output_string.  Make extern.
13753         Update all users.
13754         (lto_output_decl_state_streams): Make extern.
13755         (lto_output_decl_state_refs): Make extern.
13756         * lto-streamer.h (lto_input_string): Declare.
13757         (lto_input_data_block): Declare.
13758         (lto_output_string): Declare.
13759         (lto_output_string_with_length): Declare.
13760         (lto_output_decl_state_streams): Declare.
13761         (lto_output_decl_state_refs): Declare.
13762
13763 2011-03-24  Richard Guenther  <rguenther@suse.de>
13764
13765         PR tree-optimization/46562
13766         * tree.c (build_invariant_address): New function.
13767         * tree.h (build_invariant_address): Declare.
13768         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13769         a renamed function moved ...
13770         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13771         Take valueization callback parameter.
13772         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13773         * gimple-fold.h: New file.
13774         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13775         (ccp_fold, fold_const_aggregate_ref,
13776         fold_ctor_reference, fold_nonarray_ctor_reference,
13777         fold_array_ctor_reference, fold_string_cst_ctor_reference,
13778         get_base_constructor): Move ...
13779         * gimple-fold.c: ... here.
13780         (gimple_fold_stmt_to_constant_1): New function
13781         split out from ccp_fold.  Take a valueization callback parameter.
13782         Valueize all operands.
13783         (gimple_fold_stmt_to_constant): New wrapper function.
13784         (fold_const_aggregate_ref_1): New function split out from
13785         fold_const_aggregate_ref.  Take a valueization callback parameter.
13786         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13787         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13788         invariant POINTER_PLUS_EXPRs to invariant form.
13789         (vn_valueize): New function.
13790         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13791         * tree-vrp.c (vrp_valueize): New function.
13792         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13793         to fold statements to constants.
13794         * tree-ssa-pre.c (eliminate): Properly guard propagation of
13795         function declarations.
13796         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13797         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13798
13799 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13800
13801         * config/h8300/predicates.md (jump_address_operand): Fix register
13802         mode check.
13803
13804 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
13805
13806         * doc/invoke.texi (max-stores-to-sink): Document.
13807         * params.h (MAX_STORES_TO_SINK): Define.
13808         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13809         if either vectorization or if-conversion is disabled.
13810         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13811         tree-vect-data-refs.c vect_equal_offsets.
13812         (dr_equal_offsets_p): New function.
13813         (find_data_references_in_bb): Remove static.
13814         * tree-data-ref.h (find_data_references_in_bb): Declare.
13815         (dr_equal_offsets_p): Likewise.
13816         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13817         (vect_drs_dependent_in_basic_block): Update calls to
13818         vect_equal_offsets.
13819         (vect_check_interleaving): Likewise.
13820         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13821         (cond_if_else_store_replacement): Rename to...
13822         (cond_if_else_store_replacement_1): ... this.  Change arguments and
13823         documentation.
13824         (cond_if_else_store_replacement): New function.
13825         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13826         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13827
13828 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
13829
13830         PR target/46934
13831         * config/arm/arm.md (casesi): Use the gen_int_mode() function
13832         to subtract lower bound instead of GEN_INT().
13833
13834 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
13835
13836         PR other/48179
13837         PR other/48221
13838         PR other/48234
13839         * doc/extend.texi (Alignment): Move section to match order in TOC.
13840         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13841         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13842
13843 2011-03-23  Jeff Law  <law@redhat.com>
13844
13845         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13846         before removing the edge.
13847
13848         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13849         it may have been freed by redirect_branch_edge or
13850         redirect_edge_succ_nodup.
13851
13852 2011-03-23  Richard Guenther  <rguenther@suse.de>
13853
13854         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13855         (check_va_list_escapes): Likewise.
13856         (check_all_va_list_escapes): Likewise.
13857
13858 2011-03-23  Richard Guenther  <rguenther@suse.de>
13859
13860         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13861         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13862         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13863         (alias.o): Likewise.
13864         (ipa-type-escape.o): Remove.
13865         (ipa-struct-reorg.o): Likewise.
13866         (GTFILES): Remove ipa-struct-reorg.c.
13867         * alias.c: Do not include ipa-type-escape.h.
13868         * tree-ssa-alias.c: Likewise.
13869         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13870         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13871         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13872         and ipa-type-escape passes.
13873         * tree-pass.h (pass_ipa_type_escape): Remove.
13874         (pass_ipa_struct_reorg): Likewise.
13875         * ipa-struct-reorg.h: Remove.
13876         * ipa-struct-reorg.c: Likewise.
13877         * ipa-type-escape.h: Likewise.
13878         * ipa-type-escape.c: Likewise.
13879         * doc/invoke.texi (-fipa-struct-reorg): Remove.
13880         (--param struct-reorg-cold-struct-ratio): Likewise.
13881         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13882         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13883         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13884
13885 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13886
13887         * config/s390/2084.md: Enable all insn reservations also for z9_ec
13888         cpu attribute value.
13889         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13890         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13891         * config/s390/s390.c (processor_flags_table): New constant array.
13892         (s390_handle_arch_option): Remove.
13893         (s390_handle_option): Remove s390_handle_arch_option invocations
13894         and OPT_mwarn_framesize_ handling.
13895         (s390_option_override): Remove s390_handle_arch_option invocation.
13896         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13897         warnings.
13898         * config/s390/s390.md (cpu attribute): Add z9_ec value.
13899         * config/s390/s390.opt (s390_tune, s390_arch)
13900         (march=): Replace s390_arch_option enum and values with
13901         processor_type.  Set variable name to s390_arch.  Set
13902         initialization value.
13903         (mtune=): Replace s390_arch_option with processor_type.  Set
13904         variable name to s390_tune.  Set initialization value.
13905
13906 2011-03-23  Julian Brown  <julian@codesourcery.com>
13907
13908         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13909         accesses which are not naturally aligned.
13910
13911 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13912
13913         PR target/47553
13914         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13915
13916 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13917
13918         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13919         parameter from "int" to "enum insn_code".
13920         (expand_operand_type): New enum.
13921         (expand_operand): New structure.
13922         (create_expand_operand): New function.
13923         (create_fixed_operand, create_output_operand): Likewise
13924         (create_input_operand, create_convert_operand_to): Likewise.
13925         (create_convert_operand_from, create_address_operand): Likewise.
13926         (create_integer_operand): Likewise.
13927         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13928         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13929         (expand_insn, expand_jump_insn): Likewise.
13930         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13931         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13932         (expand_movstr, expand_builtin___clear_cache): Likewise.
13933         (expand_builtin_lock_release): Likewise.
13934         * explow.c (allocate_dynamic_stack_space): Likewise.
13935         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
13936         and use the default handling in that case.
13937         * expmed.c (check_predicate_volatile_ok): Delete.
13938         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13939         (emit_cstore): Likewise.
13940         * expr.c (emit_block_move_via_movmem): Likewise.
13941         (set_storage_via_setmem, expand_assignment): Likewise.
13942         (emit_storent_insn, try_casesi): Likewise.
13943         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
13944         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13945         (expand_vec_shift_expr, expand_binop_directly): Likewise.
13946         (expand_twoval_unop, expand_twoval_binop): Likewise.
13947         (expand_unop_direct, emit_indirect_jump): Likewise.
13948         (emit_conditional_move, vector_compare_rtx): Likewise.
13949         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13950         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13951         (expand_sync_lock_test_and_set): Likewise.
13952         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
13953         (emit_unop_insn): Likewise.
13954         (expand_copysign_absneg): Change icode to an insn_code.
13955         (create_convert_operand_from_type): New function.
13956         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13957         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13958         (expand_insn, expand_jump_insn): Likewise.
13959         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13960         than const_int_operand for operand 2.
13961
13962 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13963
13964         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13965         if possible.
13966
13967 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13968
13969         * emit-rtl.c (emit_pattern_before_noloc): New function.
13970         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13971         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13972         (emit_pattern_after_noloc): New function.
13973         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13974         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13975
13976 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13977
13978         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13979         (__ffsDI2): Likewise.
13980
13981 2011-03-22  Richard Henderson  <rth@redhat.com>
13982
13983         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13984         of !TARGET_ABI_OPEN_VMS.
13985         (alpha_trampoline_init, alpha_start_function): Likewise.
13986         (alpha_expand_epilogue, alpha_file_start): Likewise.
13987         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13988         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13989         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13990         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13991         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13992
13993 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13994
13995         * config/s390/s390-opts.h: New.
13996         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13997         s390_arch_flags, s390_warn_framesize, s390_stack_size,
13998         s390_stack_guard): Remove.
13999         (s390_handle_arch_option): Return void.  Take enum
14000         s390_arch_option value instead of string and searching array.
14001         (s390_handle_option): Don't assert that global structures are in
14002         use.  Access variables via opts pointer.  Use error_at.  Don't use
14003         sscanf for -mstack-guard= or -mstack-size=.  Update call to
14004         s390_handle_arch_option.
14005         (s390_option_override): Update call to s390_handle_arch_option.
14006         (s390_emit_prologue): Use %d format for s390_stack_size in
14007         diagnostic.  Use %wd for HOST_WIDE_INT.
14008         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
14009         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
14010         * config/s390/s390.opt (config/s390/s390-opts.h): New
14011         HeaderInclude entry.
14012         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
14013         s390_arch_flags, s390_warn_framesize): New Variable entries.
14014         (s390_arch_option): New Enum and EnumValue entries.
14015         (march=): Use Enum instead of Var.
14016         (mstack-guard=, mstack-size=): Use UInteger and Var.
14017         (mtune=): Use Enum.
14018
14019 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14020
14021         * config/score/score.c (score_handle_option): Don't assert that
14022         global structures are in use.  Access target_flags via opts
14023         pointer.  Use value of -march= option to determine target_flags
14024         settings.
14025         * config/score/score.opt (march=): Use Enum.
14026         (score_arch): New Enum and EnumValue entries.
14027
14028 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14029
14030         * config/mep/mep.c (option_mtiny_specified): Remove.
14031         (mep_option_override): Move register handling for -mivc2 from
14032         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
14033         instead of option_mtiny_specified.
14034         (mep_handle_option): Access target_flags via opts pointer.  Don't
14035         assert that global structures are in use.  Defer part of -mivc2
14036         handling and move it to mep_option_override.
14037         * config/mep/mep.opt (IVC2): New Mask entry.
14038         (mivc2): Use Var and Defer instead of Mask.
14039
14040 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14041
14042         * config/v850/v850-opts.h: New.
14043         * config/v850/v850.c (small_memory): Replace with
14044         small_memory_physical_max array.  Make that array static const.
14045         (v850_handle_memory_option): Take integer value of argument.  Take
14046         gcc_options pointer, option text and location.  Return void.
14047         Update for changes to small memory structures.
14048         (v850_handle_option): Access target_flags via opts pointer.  Don't
14049         assert that global structures are in use.  Update calls to
14050         v850_handle_memory_option.
14051         (v850_encode_data_area): Update references to small memory settings.
14052         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
14053         (enum small_memory_type): Move to v850-opts.h.
14054         * config/v850/v850.opt (config/v850/v850-opts.h): New
14055         HeaderInclude entry.
14056         (small_memory_max): New Variable entry.
14057         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
14058         (mtda, mzda): Likewise.
14059
14060 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14061
14062         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14063         pointer.  Don't assert that global structures are in use.
14064
14065 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14066
14067         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14068         via opts pointer.  Don't assert that global structures are in use.
14069
14070 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14071
14072         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14073         (munix=93): Use Var.
14074         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14075         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14076         * config/pa/pa-opts.h: New.
14077         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14078         (pa_handle_option): Don't assert that global structures are in
14079         use.  Access target_flags via opts pointer.  Don't handle
14080         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14081         OPT_munix_98 here.
14082         (pa_option_override): Handle deferred OPT_mfixed_range_.
14083
14084 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14085
14086         * config/mn10300/mn10300-opts.h: New.
14087         * config/mn10300/mn10300.c (mn10300_processor,
14088         mn10300_tune_string): Remove.
14089         (mn10300_handle_option): Don't assert that global structures are
14090         in use.  Access mn10300_processor via opts pointer.  Don't handle
14091         OPT_mtune_ here.
14092         * config/mn10300/mn10300.h (enum processor_type): Move to
14093         mn10300-opts.h.
14094         (mn10300_processor): Remove.
14095         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14096         HeaderInclude entry.
14097         (mn10300_processor): New Variable entry.
14098         (mtune=): Use Var.
14099
14100 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14101
14102         * config/microblaze/microblaze.c: Don't include opts.h.
14103         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14104         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14105         (mno-clearbss): Use Var and Warn.
14106
14107 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14108
14109         * config/m32r/m32r-opts.h: New.
14110         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14111         (m32r_handle_option): Don't assert that global structures are in
14112         use.  Access target_flags and m32r_cache_flush_func via opts
14113         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
14114         OPT_mno_flush_trap here.
14115         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14116         include of m32r-opts.h.
14117         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14118         HeaderInclude entry.
14119         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14120         (mmodel=): Use Enum and Var.
14121         (m32r_model): New Enum and EnumValue entries.
14122         (mno-flush-trap): Use Var.
14123         (msdata=): Use Enum and Var.
14124         (m32r_sdata): New Enum and EnumValue entries.
14125
14126 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14127
14128         * config/m32c/m32c.c: Don't include opts.h.
14129         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14130         m32c_handle_option): Remove.
14131         (m32c_option_override): Check global_options_set.x_target_memregs
14132         instead of target_memregs_set.
14133         * config/m32c/m32c.h (target_memregs): Remove.
14134         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14135         variable.
14136
14137 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14138
14139         * config/iq2000/iq2000-opts.h: New.
14140         * config/iq2000/iq2000.c: Don't include opts.h.
14141         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14142         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14143         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14144         HeaderInclude entry.
14145         (iq2000_tune): New Variable entry.
14146         (march=): Add comment.  Use Enum.
14147         (iq2000_arch): New Enum and EnumValue entries.
14148         (mcpu=): Use Enum and Var.
14149         (iq2000_tune): New Enum and EnumValue entries.
14150
14151 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14152
14153         * config/ia64/ia64-opts.h: New.
14154         * config/ia64/ia64.c (ia64_tune): Remove.
14155         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14156         here.  Use error_at.
14157         (ia64_option_override): Handle deferred OPT_mfixed_range_.
14158         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14159         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14160         HeaderInclude entry.
14161         (ia64_tune): New Variable entry.
14162         (mfixed-range=): Use Defer and Var.
14163         (mtune=): Use Enum and Var.
14164         (ia64_tune): New Enum and EnumValue entries.
14165
14166 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14167
14168         * config/frv/frv-opts.h: New.
14169         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14170         frv-opts.h.
14171         (frv_cpu_type): Remove.
14172         * config/frv/frv.c: Don't include opts.h.
14173         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
14174         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
14175         (frv_cpu_type): New Variable entry.
14176         (frv_cpu): New Enum and EnumValue entries.
14177
14178 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14179
14180         * config/cris/cris.c (cris_handle_option): Access target_flags via
14181         opts pointer.  Don't assert that global structures are in use.
14182         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14183         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14184
14185 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14186
14187         * config/bfin/bfin-opts.h: New.
14188         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14189         bfin_si_revision, bfin_workarounds): Remove.
14190         (bfin_cpus): Make static const.
14191         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14192         not bfin_lib_id_given.
14193         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
14194         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
14195         pointer. Use error_at.  Don't assert that global structures are in use.
14196         * config/bfin/bfin.h: Include bfin-opts.h.
14197         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14198         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14199         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14200         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14201         entries.
14202
14203 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14204
14205         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14206         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14207         or -msoft-float here.
14208         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14209         -msoft-float and -mhard-float.
14210         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
14211         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14212         msoft-float.
14213         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14214         -msoft-float.
14215         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14216         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14217         not mhard-float.
14218         (LIBGCC_SPEC): Don't handle -msoft-float.
14219         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14220         -mhard-float.
14221         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14222         msoft-float.
14223         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14224         -mfloat-abi=*, not -msoft-float and -mhard-float.
14225         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14226         -msoft-float.
14227         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14228         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14229         mhard-float and msoft-float.
14230         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14231         mfloat-abi=soft in comments, not mhard-float and msoft-float.
14232         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14233         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14234         mhard-float.
14235         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14236         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14237         msoft-float.
14238         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14239         not mhard-float.
14240         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14241         not msoft-float.
14242
14243 2011-03-22  Richard Henderson  <rth@redhat.com>
14244
14245         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14246         TARGET_ABI_WINDOWS_NT.
14247         (alpha_output_function_end_prologue): Likewise.
14248         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14249         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14250         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14251         (trap, *movsi_nt_vms): Likewise.
14252         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14253         (*tablejump_osf_nt_internal): Remove.
14254         * config/alpha/predicates.md (input_operand): Only test Pmode.
14255
14256 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14257
14258         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14259         via opts pointer.  Use error_at.  Don't assert that global
14260         structures are in use.
14261
14262 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14263
14264         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14265         (ix86_handle_option): Access ix86_isa_flags and
14266         ix86_isa_flags_explicit via opts pointer.  Don't assert that
14267         global structures are in use.
14268         (ix86_function_specific_save, ix86_function_specific_restore):
14269         Update ix86_isa_flags_explicit field name.
14270         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14271         (ix86_isa_flags_explicit): Rename TargetSave entry to
14272         x_ix86_isa_flags_explicit.
14273
14274 2011-03-22  Richard Henderson  <rth@redhat.com>
14275
14276         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14277         (alpha_option_override, direct_return): Likewise.
14278         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14279         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14280         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14281         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14282         (alpha_expand_epilogue, alpha_end_function): Likewise.
14283         (alpha_init_libfuncs): Likewise.
14284         (struct machine_function): Remove unicosmk members.
14285         (print_operand) ['t']: Remove.
14286         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14287         unicosmk_output_module_name, unicosmk_output_common,
14288         current_section_align, unicosmk_output_text_section_asm_op,
14289         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14290         unicosmk_section_type_flags, unicosmk_unique_section,
14291         unicosmk_asm_named_section, unicosmk_insert_attributes,
14292         unicosmk_output_align, unicosmk_defer_case_vector,
14293         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14294         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14295         unicosmk_output_ssib, unicosmk_add_call_info_word,
14296         unicosmk_extern_head, unicosmk_output_default_externs,
14297         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14298         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14299         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14300         * config/alpha/alpha-protos.h: Update.
14301         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14302         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14303         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14304         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14305         (*mulsi_se, mulvsi3): Likewise.
14306         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14307         (*divmodsi_internal, call, call_value, realign): Likewise.
14308         (moddi3, umoddi3): Likewise; remove duplicate expander.
14309         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14310         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14311         (*movdi_nofix): Remove r/U alternative.
14312         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14313         * config/alpha/constraints.md ("U"): Remove.
14314         * config/alpha/predicates.md (call_operand"): Don't test
14315         TARGET_ABI_UNICOSMK.
14316
14317 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14318
14319         * target.def (handle_option): Take gcc_options and
14320         cl_decoded_option pointers and location_t.
14321         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14322         * doc/tm.texi: Regenerate.
14323         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14324         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14325         * lto-opts.c (lto_reissue_options): Generate option structure for
14326         targetm.handle_option call.
14327         * opts.c (target_handle_option): Update call to
14328         targetm.handle_option.  Remove assertions about values now passed
14329         down to hook.
14330         * targhooks.c (default_target_handle_option): New.
14331         * targhooks.h (default_target_handle_option): Declare.
14332         * config/alpha/alpha.c: Include opts.h.
14333         (alpha_handle_option): Update to new hook interface.
14334         * config/arm/arm.c: Include opts.h.
14335         (arm_handle_option): Update to new hook interface.
14336         * config/arm/t-arm (arm.o): Update dependencies.
14337         * config/bfin/bfin.c: Include opts.h.
14338         (bfin_handle_option): Update to new hook interface.
14339         * config/cris/cris.c: Include opts.h.
14340         (cris_handle_option): Update to new hook interface.
14341         * config/frv/frv.c: Include opts.h.
14342         (frv_handle_option): Update to new hook interface.
14343         * config/i386/i386.c: Include opts.h.
14344         (ix86_handle_option): Update to new hook interface.
14345         (ix86_valid_target_attribute_inner_p): Generate option structure
14346         for call to ix86_handle_option.
14347         * config/i386/t-i386 (i386.o): Update dependencies.
14348         * config/ia64/ia64.c: Include opts.h.
14349         (ia64_handle_option): Update to new hook interface.
14350         * config/ia64/t-ia64 (ia64.o): Update dependencies.
14351         * config/iq2000/iq2000.c: Include opts.h.
14352         (iq2000_handle_option): Update to new hook interface.
14353         * config/m32c/m32c.c: Include opts.h.
14354         (m32c_handle_option): Update to new hook interface.
14355         * config/m32r/m32r.c: Include opts.h.
14356         (m32r_handle_option): Update to new hook interface.
14357         * config/m68k/m68k.c: Include opts.h.
14358         (m68k_handle_option): Update to new hook interface.
14359         * config/mep/mep.c: Include opts.h.
14360         (mep_handle_option): Update to new hook interface.
14361         * config/microblaze/microblaze.c: Include opts.h.
14362         (microblaze_handle_option): Update to new hook interface.
14363         * config/mips/mips.c: Include opts.h.
14364         (mips_handle_option): Update to new hook interface.
14365         * config/mn10300/mn10300.c: Include opts.h.
14366         (mn10300_handle_option): Update to new hook interface.
14367         * config/pa/pa.c: Include opts.h.
14368         (pa_handle_option): Update to new hook interface.
14369         * config/pdp11/pdp11.c: Include opts.h.
14370         (pdp11_handle_option): Update to new hook interface.
14371         * config/rs6000/rs6000.c: Include opts.h.
14372         (rs6000_handle_option): Update to new hook interface.
14373         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14374         * config/rx/rx.c: Include opts.h.
14375         (rx_handle_option): Update to new hook interface.
14376         * config/s390/s390.c: Include opts.h.
14377         (s390_handle_option): Update to new hook interface.
14378         * config/score/score.c: Include opts.h.
14379         (score_handle_option): Update to new hook interface.
14380         * config/sh/sh.c: Include opts.h.
14381         (sh_handle_option): Update to new hook interface.
14382         * config/sparc/sparc.c: Include opts.h.
14383         (sparc_handle_option): Update to new hook interface.
14384         * config/v850/v850.c: Include opts.h.
14385         (v850_handle_option): Update to new hook interface.
14386
14387 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14388
14389         * gcc.c (driver_unknown_option_callback): Only permit and save
14390         unknown -Wno- options.
14391         (driver_wrong_lang_callback): Save options directly instead of via
14392         driver_unknown_option_callback.
14393
14394 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14395
14396         * combine.c (simplify_set): Try harder to find the best CC mode when
14397         simplifying a nested COMPARE on the RHS.
14398
14399 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14400
14401         * config/alpha/gnu.h: Remove.
14402         * config/arc: Remove directory.
14403         * config/arm/netbsd.h: Remove.
14404         * config/arm/t-pe: Remove.
14405         * config/crx: Remove directory.
14406         * config/i386/netbsd.h: Remove.
14407         * config/m68hc11: Remove directory.
14408         * config/m68k/uclinux-oldabi.h: Remove.
14409         * config/mcore/mcore-pe.h: Remove.
14410         * config/mcore/t-mcore-pe: Remove.
14411         * config/netbsd-aout.h: Remove.
14412         * config/rs6000/gnu.h: Remove.
14413         * config/sh/sh-symbian.h: Remove.
14414         * config/sh/symbian-base.c: Remove.
14415         * config/sh/symbian-c.c: Remove.
14416         * config/sh/symbian-cxx.c: Remove.
14417         * config/sh/symbian-post.h: Remove.
14418         * config/sh/symbian-pre.h: Remove.
14419         * config/sh/t-symbian: Remove.
14420         * config/svr3.h: Remove.
14421         * config/vax/netbsd.h: Remove.
14422         * config.build: Don't handle i[34567]86-*-pe.
14423         * config.gcc: Remove handling of deprecations for most deprecated
14424         targets.
14425         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14426         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14427         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14428         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14429         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14430         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14431         Remove cases.
14432         * config.host: Don't handle i[34567]86-*-pe.
14433         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14434         (ASM_SPEC32): Don't handle -mcall-gnu.
14435         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14436         -mcall-gnu.
14437         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14438         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14439         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14440         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14441         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14442         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14443         conditional on SYMBIAN.
14444         * configure.ac: Don't handle powerpc*-*-gnu*.
14445         * configure: Regenerate.
14446         * doc/extend.texi (interrupt attribute): Don't mention CRX.
14447         * doc/install-old.texi (m6811, m6812): Don't mention.
14448         * doc/install.texi (arc-*-elf*): Don't document multilib option.
14449         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14450         (m68k-uclinuxoldabi): Don't mention.
14451         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14452         Remove.
14453         (-mcall-gnu): Remove.
14454         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14455         families): Remove constraint documentation.
14456
14457 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
14458
14459         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14460         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14461         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14462
14463 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14464
14465         PR target/48226
14466         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14467         vector when peeking at the next token for vector, don't expand the
14468         keywords.
14469
14470 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
14471
14472         * config/avr/avr-protos.h (expand_epilogue): Change prototype
14473         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14474         * config/avr/avr.c (init_cumulative_args)
14475         (avr_function_arg_advance): Use it.
14476         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14477         sibcall epilogues.
14478         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14479         (avr_function_ok_for_sibcall): ...this new function.
14480         (avr_lookup_function_attribute1): New static Function.
14481         (avr_naked_function_p, interrupt_function_p)
14482         (signal_function_p, avr_OS_task_function_p)
14483         (avr_OS_main_function_p): Use it.
14484         * config/avr/avr.md ("sibcall", "sibcall_value")
14485         ("sibcall_epilogue"): New expander.
14486         ("*call_insn", "*call_value_insn"): New insn.
14487         ("call_insn", "call_value_insn"): Remove
14488         ("call", "call_value", "epilogue"): Change expander to handle
14489         sibling calls.
14490
14491 2011-03-21  Nick Clifton  <nickc@redhat.com>
14492
14493         * doc/invoke.texi (Overall Options): Move closing brace to end of
14494         options list.
14495         (Optimization Options): Add missing @gol.
14496         (Directory Options): Likewise.
14497         (i386 and x86-64 Options): Likewise.
14498         (RS6000 and PowerPC Options): Likewise.
14499         (i386 and x86-64 Windows Options): Likewise.
14500         (V850 Options): Add text missing from descriptions.
14501
14502 2011-03-22  Richard Henderson  <rth@redhat.com>
14503
14504         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14505         (avr_incoming_return_addr_rtx): New.
14506         (emit_push_byte): New.
14507         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
14508         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
14509         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
14510         (emit_pop_byte): New.
14511         (expand_epilogue): Use it.  Pop frame pointer by bytes.
14512         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14513         (INCOMING_RETURN_ADDR_RTX): New.
14514         (INCOMING_FRAME_SP_OFFSET): New.
14515         (ARG_POINTER_CFA_OFFSET): New.
14516         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14517         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14518         (pophi): Remove.
14519
14520         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14521
14522 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14523
14524         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14525         (FUNCTION_ARG_ADVANCE): Likewise.
14526         * tm.texi.in: Change references to them to hook references.
14527         * tm.texi: Regenerate.
14528         * targhooks.c (default_function_arg): Eliminate check for target
14529         macro.
14530         (default_function_incoming_arg): Likewise.
14531         (default_function_arg_advance): Likewise.
14532         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14533         (function_arg_advance): Likewise.
14534         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14535
14536 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14537
14538         * tree.c (build_call_1): New function.
14539         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14540
14541 2011-03-22  Richard Guenther  <rguenther@suse.de>
14542
14543         PR tree-optimization/48228
14544         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14545         for single-arg PHIs.
14546
14547 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
14548
14549         PR rtl-optimization/48143
14550         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14551         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14552         sse2_cvtps2pd): Likewise.
14553
14554 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14555
14556         * recog.c (canonicalize_change_group): Use validate_unshare_change.
14557
14558 2011-03-22  Richard Guenther  <rguenther@suse.de>
14559
14560         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14561         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14562         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14563         and REALIGN_LOAD_EXPR.
14564         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14565         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14566         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14567         DOT_PROD_EXPR case ...
14568         (expand_expr_real_2): ... here.
14569         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14570         and REALIGN_LOAD_EXPR.
14571         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14572         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14573         (vect_create_epilog_for_reduction): Likewise.
14574         (vectorizable_reduction): Likewise.
14575         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14576         * tree-vect-stmts.c (vectorizable_load): Likewise.
14577
14578 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14579
14580         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14581
14582 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14583
14584         * config/s390/s390.c (s390_delegitimize_address): Fix offset
14585         handling for PLTOFF/GOTOFF.
14586
14587 2011-03-22  Nick Clifton  <nickc@redhat.com>
14588
14589         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14590         trailing backslash from the end of the macro definition.
14591
14592 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14593
14594         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14595         and PLT unspecs.
14596
14597 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
14598
14599         * expr.h (prepare_operand): Move to...
14600         * optabs.h (prepare_operand): ...here and change the insn code
14601         parameter from "int" to "enum insn_code".
14602         (insn_operand_matches): Declare.
14603         * expr.c (init_expr_target): Use insn_operand_matches.
14604         (compress_float_constant): Likewise.
14605         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14606         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14607         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14608         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14609         Likewise.
14610         (gen_cond_trap): Likewise.
14611         (prepare_operand): Likewise.  Change icode to an insn_code.
14612         (insn_operand_matches): New function.
14613         * reload.c (find_reloads_address_1): Use insn_operand_matches.
14614         * reload1.c (gen_reload): Likewise.
14615         * targhooks.c (default_secondary_reload): Likewise.
14616
14617 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14618
14619         * config/alpha/alpha.md (unspec): New define_c_enum.
14620         (unspecv): Ditto.
14621
14622 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14623
14624         PR debug/48214
14625         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14626         between a call and its CALL_ARG_LOCATION note.
14627
14628 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
14629
14630         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14631
14632 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14633
14634         PR c/42544
14635         PR c/48197
14636         * c-common.c (shorten_compare): If primopN is first sign-extended
14637         to opN and then zero-extended to result type, set primopN to opN.
14638
14639 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
14640
14641         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14642         for barrier handlers.
14643
14644 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14645
14646         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14647         UNSPEC constants to be in the unspec enumeration, and redefine
14648         all UNSPECV constants to be in the unspecv enumeration, so that
14649         dumps print which unspec/unspec_volatile this is.
14650         * config/rs6000/vector.md (UNSPEC_*): Ditto.
14651         * config/rs6000/paired.md (UNSPEC_*): Ditto.
14652         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14653         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14654         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14655
14656         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14657         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14658         UNSPECV_LWSYNC, since these are used as unspec_volatile.
14659         * config/rs6000/sync.md (isync, lwsync): Ditto.
14660
14661 2011-03-21  Richard Guenther  <rguenther@suse.de>
14662
14663         * params.def (lto-min-partition): Fix typo.
14664
14665 2011-03-21  Richard Guenther  <rguenther@suse.de>
14666
14667         PR c/47939
14668         * c-decl.c (grokdeclarator): Drop to the main variant only
14669         for array types.  Drop flag_gen_aux_info check.
14670
14671 2011-03-21  Richard Guenther  <rguenther@suse.de>
14672
14673         PR translation/47911
14674         * params.def (lto-partitions): Fix typo.
14675         (lto-min-partition): Fix wording.
14676
14677 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
14678
14679         * config/rs6000/t-freebsd: Remove duplication from file.
14680
14681 2011-03-21  Richard Guenther  <rguenther@suse.de>
14682
14683         PR middle-end/47661
14684         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14685
14686 2011-03-21  Richard Guenther  <rguenther@suse.de>
14687
14688         PR lto/48210
14689         * params.def (lto-partitions): Require at least 1 partition.
14690
14691 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14692
14693         * gthr-solaris.h: Remove.
14694         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14695         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14696         (LIB_SPEC): Likewise.
14697         * config/sol2.opt (threads): Remove.
14698         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14699         (sparc*-*-solaris2*): Likewise.
14700         * configure.ac (enable_threads): Enable solaris support.
14701         * configure: Regenerate.
14702         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14703         * doc/install.texi (Configuration, --enable-threads=lib): Remove
14704         solaris.
14705
14706 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14707
14708         * config.gcc: Obsolete *-*-solaris2.8*.
14709         * doc/install.texi (Specific, *-*-solaris2*): Document it.
14710
14711 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14712
14713         PR bootstrap/48135
14714         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14715         reference.  Solaris 8 perl works.
14716
14717 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14718
14719         PR bootstrap/48135
14720         * doc/install.texi (Prerequisites): Move jar etc. up.
14721         Explain support library version requirements.
14722
14723 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14724
14725         PR bootstrap/48135
14726         * doc/install.texi (Prerequisites): Move Perl to build
14727         requirements.  Always necessary on Solaris 2 with Sun ld.
14728
14729 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14730
14731         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14732         binutils 2.21.
14733         (Specific, i?86-*-solaris2.[89]): Likewise.
14734         (Specific, i?86-*-solaris2.10): Likewise.
14735         (Specific, mips-sgi-irix6): Likewise.
14736         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14737         Update for binutils 2.21.
14738
14739 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14740
14741         * configure.ac (gcc_cv_lto_plugin): Fix typo.
14742         Allow -fuse-linker-plugin for non-default plugin linker.
14743         * configure: Regenerate.
14744
14745 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14746
14747         PR bootstrap/48167
14748         * gengtype.c (files_rules): Added rule for cp/parser.h.
14749
14750 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14751
14752         PR target/48213
14753         * config/s390/s390.c (s390_delegitimize_address): Don't call
14754         lowpart_subreg if orig_x has BLKmode.
14755
14756 2011-03-21  Kai Tietz  <ktietz@redhat.com>
14757
14758         PR target/12171
14759         * doc/plugins.texi: Adjust documentation for plugin register_callback.
14760         * tree.h (attribute_spec): Add new member affects_type_identity.
14761         * attribs.c (empty_attribute_table): Adjust attribute_spec
14762         initializers.
14763         * config/alpha/alpha.c: Likewise.
14764         * config/arc/arc.c: Likewise.
14765         * config/arm/arm.c: Likewise.
14766         * config/avr/avr.c: Likewise.
14767         * config/bfin/bfin.c: Likewise.
14768         * config/crx/crx.c: Likewise.
14769         * config/darwin.h: Likewise.
14770         * config/h8300/h8300.c: Likewise.
14771         * config/i386/cygming.h: Likewise.
14772         * config/i386/i386.c: Likewise.
14773         * config/ia64/ia64.c: Likewise.
14774         * config/m32c/m32c.c: Likewise.
14775         * config/m32r/m32r.c: Likewise.
14776         * config/m68hc11/m68hc11.c: Likewise.
14777         * config/m68k/m68k.c: Likewise.
14778         * config/mcore/mcore.c: Likewise.
14779         * config/mep/mep.c: Likewise.
14780         * config/microblaze/microblaze.c: Likewise.
14781         * config/mips/mips.c: Likewise.
14782         * config/rs6000/rs6000.c: Likewise.
14783         * config/rx/rx.c: Likewise.
14784         * config/sh/sh.c: Likewise.
14785         * config/sol2.h: Likewise.
14786         * config/sparc/sparc.c: Likewise.
14787         * config/spu/spu.c: Likewise.
14788         * config/stormy16/stormy16.c: Likewise.
14789         * config/v850/v850.c: Likewise.
14790
14791 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
14792
14793         * simplify-rtx.c (simplify_binary_operation_1): Handle
14794         (xor (and A B) C) case when B and C are both constants.
14795
14796 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
14797
14798         * tree-dfa.c (add_referenced_var): Fix typo in comment.
14799
14800 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14801
14802         PR bootstrap/48168
14803         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14804
14805 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
14806
14807         PR rtl-optimization/48156
14808         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14809         assume df and df_lr are not NULL.
14810
14811 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14812
14813         PR debug/48023
14814         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14815         between a call and its CALL_ARG_LOCATION note.
14816
14817 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
14818
14819         PR debug/48178
14820         * config/sh/sh.c (find_barrier): Don't emit a constant pool
14821         between a call and its corresponding CALL_ARG_LOCATION note.
14822
14823 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
14824
14825         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14826         instead of loop. Use HARD_REGISTER_NUM_P predicate.
14827         * haifa-sched.c (setup_ref_regs): Ditto.
14828         * caller-save.c (add_used_regs_1): Ditto.
14829         * dse.c (look_for_hardregs): Ditto.
14830         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14831         * sched-rgn.c (check_live_1): Ditto.
14832
14833 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14834
14835         * c-decl.c (diagnose_mismatched_decls): Give an error for
14836         redefining a typedef with variably modified type.
14837
14838 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14839
14840         * c-decl.c (grokfield): Don't allow typedefs for structures or
14841         unions with no tag by default.
14842         * doc/extend.texi (Unnamed Fields): Update.
14843
14844 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
14845
14846         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14847         Rewrite using indirect functions.
14848         (lwp_slwpcb): Ditto.
14849         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14850         (avx_vinsertf128<mode>): Ditto.
14851
14852 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14853
14854         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14855         unspecs.
14856
14857 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14858
14859         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14860         splitting between a call and its corresponding CALL_ARG_LOCATION note.
14861
14862 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14863
14864         PR rtl-optimization/48170
14865         * gcse.c (hoist_code): Remove bogus asserts.
14866
14867 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
14868
14869         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14870         computation for prologue/epilogue.
14871
14872 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14873
14874         * Makefile.in (check-consistency): Remove.
14875
14876 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
14877
14878         PR debug/48176
14879         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14880         arange_table_in_use is 0, but either text_section_used or
14881         cold_text_section_used is true.  Don't call it if
14882         !info_section_emitted.
14883
14884 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
14885
14886         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14887         FUNCTION_VALUE_REGNO_P): Remove.
14888         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14889         Remove.
14890         * config/avr/avr.c (avr_ret_register): Make static inline.
14891         (avr_function_value_regno_p): New function.
14892         (avr_libcall_value): Make static. Add 'func' argument.
14893         (avr_function_value): Make static. Rename 'func' argument to
14894         'fn_decl_or_type', forward it to avr_libcall_value. Call
14895         avr_ret_register function instead of RET_REGISTER macro.
14896         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14897
14898 2011-03-18  Jason Merrill  <jason@redhat.com>
14899
14900         PR c++/23372
14901         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14902
14903 2011-03-18  Richard Guenther  <rguenther@suse.de>
14904
14905         * doc/install.texi (--enable-gold): Remove.
14906         (--with-plugin-ld): Document.
14907         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14908
14909 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
14910
14911         PR middle-end/47790
14912         * expr.c (optimize_bitfield_assignment_op): Revamp to work
14913         again after expansion changes.
14914
14915 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
14916
14917         * combine.c (try_combine): Do simplification only call of
14918         subst() on i2 even when i1 is present. Update comments.
14919
14920 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
14921
14922         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14923         and UNSPEC_PCREL_SYMOFF.
14924
14925 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14926
14927         * config/s390/s390.md: Use define_c_enum for the unspec constant
14928         definitions.
14929
14930 2011-03-18  Richard Henderson  <rth@redhat.com>
14931             Jakub Jelinek  <jakub@redhat.com>
14932
14933         PR bootstrap/48161
14934         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14935         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14936
14937 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14938
14939         PR middle-end/47725
14940         * combine.c (cant_combine_insn_p): Don't check zero/sign
14941         extended hard registers.
14942
14943 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14944
14945         PR middle-end/47725
14946         * combine.c (cant_combine_insn_p): Check zero/sign extended
14947         hard registers.
14948
14949 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
14950
14951         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14952         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14953         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14954         Change return type to bool.
14955         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14956
14957 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14958
14959         PR debug/48163
14960         * var-tracking.c (prepare_call_arguments): If CALL target
14961         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14962         pc instead of looking it up using cselib_lookup and use
14963         Pmode for it if x has VOIDmode.
14964         * dwarf2out.c (gen_subprogram_die): If also both first and
14965         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14966
14967         PR debug/48163
14968         * function.c (assign_parms): For data.passed_pointer parms
14969         use MEM of data.entry_parm instead of data.entry_parm itself
14970         as DECL_INCOMING_RTL.
14971         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14972         also when passed and declared mode is the same, DECL_RTL
14973         is a MEM with pseudo as address and DECL_INCOMING_RTL is
14974         a MEM too.
14975
14976 2011-03-16  Jeff Law  <law@redhat.com>
14977
14978         PR rtl-optimization/37273
14979         * ira-costs.c (scan_one_insn): Detect constants living in memory and
14980         handle them like argument loads from stack slots.  Do not double
14981         count memory for memory constants and argument loads from stack slots.
14982
14983 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14984
14985         PR debug/48160
14986         * var-tracking.c (prepare_call_arguments): Check SUBREG.
14987
14988 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14989
14990         PR target/48171
14991         * config/i386/i386.opt: Add Save to -mavx and -mfma.
14992
14993 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14994
14995         PR bootstrap/48153
14996         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14997         if dwarf_strict.
14998         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14999         Clear call_arg_locations and call_arg_loc_last always.
15000
15001         PR middle-end/48152
15002         * var-tracking.c (prepare_call_arguments): If argument needs to be
15003         passed by reference, adjust argtype and mode.
15004
15005 2011-03-17  Richard Guenther  <rguenther@suse.de>
15006
15007         PR middle-end/48134
15008         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
15009         a value make sure to fold the statement.
15010
15011 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
15012
15013         PR target/43872
15014         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
15015         return condition with !cfun->calls_alloca.
15016
15017 2011-03-17  Richard Guenther  <rguenther@suse.de>
15018
15019         PR bootstrap/48148
15020         * lto-cgraph.c (input_overwrite_node): Clear the abstract
15021         origin for decls in other ltrans units.
15022         (input_varpool_node): Likewise.
15023
15024 2011-03-17  Richard Guenther  <rguenther@suse.de>
15025
15026         PR middle-end/48165
15027         * tree-object-size.c (compute_object_offset): Properly return
15028         the offset operand of MEM_REFs as sizetype.
15029
15030 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
15031
15032         PR rtl-optimization/48141
15033         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15034         * dse.c: Include params.h.
15035         (active_local_stores_len): New variable.
15036         (add_wild_read, dse_step1): Clear it when setting active_local_stores
15037         to NULL.
15038         (record_store, check_mem_read_rtx): Decrease it when removing
15039         from the chain.
15040         (scan_insn): Likewise.  Increase it when adding to chain, if it
15041         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15042         set active_local_stores to NULL before the addition.
15043         * Makefile.in (dse.o): Depend on $(PARAMS_H).
15044
15045         PR rtl-optimization/48141
15046         * dse.c (record_store): If no positions are needed in an insn
15047         that cannot be deleted, at least unchain it from active_local_stores.
15048
15049 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
15050
15051         PR debug/47510
15052         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15053         (lookup_type_die_strip_naming_typedef): ... here.
15054         (get_context_die): Use it.
15055         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15056         the anonymous struct named by the naming typedef.
15057
15058 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15059
15060         PR target/48154
15061         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15062         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15063
15064 2011-03-16  Jeff Law  <law@redhat.com>
15065
15066         * tree-vrp.c (identify_jump_threads): Slightly simplify type
15067         check for operands of conditional.  Allow type to be a pointer.
15068
15069 2011-03-16  Richard Guenther  <rguenther@suse.de>
15070
15071         PR tree-optimization/48149
15072         * fold-const.c (fold_binary_loc): Fold
15073         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15074
15075 2011-03-16  Richard Guenther  <rguenther@suse.de>
15076
15077         PR tree-optimization/26134
15078         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15079         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15080         (non_rewritable_mem_ref_base): Handle complex type component
15081         accesses, constrain offsets for vector and complex extracts
15082         more properly.
15083
15084 2011-03-16  Richard Guenther  <rguenther@suse.de>
15085
15086         PR tree-optimization/48146
15087         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15088         operands avoiding the need for renaming.
15089
15090 2011-03-16  Richard Guenther  <rguenther@suse.de>
15091
15092         * gimple-fold.c (maybe_fold_reference): Open-code relevant
15093         constant folding.  Move MEM_REF canonicalization first.
15094         Rely on fold_const_aggregate_ref for initializer folding.
15095         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15096
15097 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
15098
15099         PR middle-end/48136
15100         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15101         arg0/arg1 or their arguments are always fold converted to matching
15102         types.
15103
15104         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15105         to nargs.
15106
15107 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15108
15109         PR lto/46944
15110         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15111         Handle in-tree gold.
15112         (ld_vers): Extract binutils version for gold.
15113         (gcc_cv_ld_hidden): Handle gold here.
15114         (gcc_cv_lto_plugin): Determine level of linker plugin support.
15115         * configure: Regenerate.
15116         * config.in: Regenerate.
15117         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15118         -fuse-linker-plugin otherwise.
15119         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
15120         (LINK_COMMAND_SPEC): Use it.
15121         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15122
15123 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
15124
15125         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15126         * calls.c: Remove debug.h include.
15127         (emit_call_1): Don't call virtual_call_token debug hook.
15128         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15129         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15130         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15131         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15132         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15133         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15134         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15135         dwarf2out_virtual_call): Remove.
15136         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15137         copy_call_info and virtual_call hooks.
15138         (dwarf2out_init): Don't initialize vcall_insn_table,
15139         debug_dcall_section and debug_vcall_section.
15140         (prune_unused_types): Don't mark nodes from dcall_table.
15141         (dwarf2out_finish): Don't output dcall or vcall tables.
15142         * final.c (final_scan_insn): Don't call direct_call or
15143         virtual_call debug hooks.
15144         * debug.h (struct gcc_debug_hooks): Remove direct_call,
15145         virtual_call_token, copy_call_info and virtual_call hooks.
15146         (debug_nothing_uid): Remove prototype.
15147         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15148         copy_call_info and virtual_call hooks.
15149         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15150         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15151         * debug.c (do_nothing_debug_hooks): Likewise.
15152         (debug_nothing_uid): Remove.
15153         * doc/invoke.texi (-fenable-icf-debug): Remove.
15154         * common.opt (-fenable-icf-debug): Likewise.
15155
15156         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15157         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15158         call's MEM.  Handle functions returning aggregate through a hidden
15159         first pointer.  For virtual calls add clobbered pc to call arguments
15160         chain.
15161         * dwarf2out.c (gen_subprogram_die): Emit
15162         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15163         can't be emitted.
15164
15165         PR debug/45882
15166         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15167         * rtl.h (ENTRY_VALUE_EXP): Define.
15168         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15169         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15170         * print-rtl.c (print_rtx): Likewise.
15171         * gengtype.c (adjust_field_rtx_def): Likewise.
15172         * var-tracking.c (vt_add_function_parameter): Adjust
15173         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15174         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15175         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15176         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15177         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15178
15179         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15180         Call var_location debug hook even on CALL_INSNs.
15181         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15182         * rtl.def (ENTRY_VALUE): New.
15183         * dwarf2out.c: Include cfglayout.h.
15184         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15185         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15186         (struct call_arg_loc_node): New type.
15187         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15188         tail_call_site_count): New variables.
15189         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15190         DW_TAG_GNU_call_site_parameter.
15191         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15192         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15193         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15194         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15195         and DW_AT_GNU_all_source_call_sites.
15196         (mem_loc_descriptor): Handle ENTRY_VALUE.
15197         (add_src_coords_attributes): Don't add enything if
15198         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15199         (dwarf2out_abstract_function): Save and clear call_arg_location,
15200         call_site_count and tail_call_site_count around dwarf2out_decl call.
15201         (gen_call_site_die): New function.
15202         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15203         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15204         (dwarf2out_function_decl): Clear call_arg_locations,
15205         call_arg_loc_last, set call_site_count and tail_call_site_count
15206         to -1 and free block_map.
15207         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15208         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
15209         followed by any real instructions.
15210         (dwarf2out_begin_function): Set call_site_count and
15211         tail_call_site_count to 0.
15212         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15213         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15214         attempt to force a DIE for it and worst case remove the attribute.
15215         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15216         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15217         the decl itself.
15218         * var-tracking.c: Include tm_p.h.
15219         (vt_stack_adjustments): For calls call note_register_arguments.
15220         (argument_reg_set): New variable.
15221         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15222         ensure the VALUE is resolved.
15223         (call_arguments): New variable.
15224         (prepare_call_arguments): New function.
15225         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15226         (struct expand_loc_callback_data): Add ignore_cur_loc field.
15227         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15228         always use the best expression.
15229         (vt_expand_loc): Add ignore_cur_loc argument.
15230         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15231         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15232         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15233         note for all calls.
15234         (vt_add_function_parameter): Use cselib_lookup_from_insn.
15235         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15236         argument.  Don't call cselib_preserve_only_values and
15237         cselib_reset_table.
15238         (note_register_arguments): New function.
15239         (vt_initialize): Compute argument_reg_set.  Call
15240         vt_add_function_parameters before processing basic blocks instead of
15241         afterwards.  For calls call prepare_call_arguments before calling
15242         cselib_process_insn.
15243         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15244         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15245         (var-tracking.o): Depend on $(TM_P_H).
15246         * cfglayout.h (insn_scope): New prototype.
15247         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15248         * cfglayout.c (insn_scope): No longer static.
15249         * insn-notes.def (CALL_ARG_LOCATION): New.
15250         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15251         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15252         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15253         nothing for DECL_EXTERNAL BLOCK_VARS.
15254
15255 2011-03-16  Alan Modra  <amodra@gmail.com>
15256
15257         PR target/45844
15258         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15259         create invalid offset address for vsx splat insn.
15260         * config/rs6000/predicates.md (splat_input_operand): New.
15261         * config/rs6000/vsx.md (vsx_splat_*): Use it.
15262
15263 2011-03-15  Xinliang David Li  <davidxl@google.com>
15264
15265         PR c/47837
15266         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15267         (normalize_preds): New function.
15268         (is_use_properly_guarded): Normalize def predicates.
15269
15270 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15271
15272         PR target/46788
15273         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15274         in the output template.
15275
15276 2011-03-15  Richard Guenther  <rguenther@suse.de>
15277
15278         PR middle-end/47650
15279         * tree-pretty-print.c (dump_function_declaration): Properly
15280         dump unprototyped and varargs function types.
15281
15282 2011-03-15  Richard Guenther  <rguenther@suse.de>
15283
15284         PR tree-optimization/13954
15285         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15286         and friends.
15287
15288 2011-03-15  Richard Guenther  <rguenther@suse.de>
15289
15290         PR tree-optimization/48037
15291         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15292         selects into BIT_FIELD_REFs.
15293         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15294         vector select.
15295
15296 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
15297
15298         PR tree-optimization/48129
15299         * builtins.c (fold_builtin_snprintf): Convert to type of
15300         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15301         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15302
15303 2011-03-15  Richard Guenther  <rguenther@suse.de>
15304
15305         PR tree-optimization/41490
15306         * tree-ssa-dce.c (propagate_necessity): Handle returns without
15307         value but with VUSE.
15308         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15309         return statements.
15310         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15311         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15312         * tree-tailcall.c (find_tail_calls): Ignore returns.
15313
15314 2011-03-15  Richard Guenther  <rguenther@suse.de>
15315
15316         PR middle-end/48031
15317         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15318         or variable-indexed array accesses when in gimple form.
15319
15320 2011-03-15  Richard Guenther  <rguenther@suse.de>
15321
15322         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15323
15324 2011-03-15  Alan Modra  <amodra@gmail.com>
15325
15326         PR target/48032
15327         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15328         presume symbol_refs without a symbol_ref_decl are suitably
15329         aligned, nor other trees we may see here.  Handle anchor symbols.
15330         (legitimate_constant_pool_address_p): Comment.  Add mode param.
15331         Check cmodel=medium addresses.  Adjust all calls.
15332         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15333         creating cmodel=medium optimized access to locals.
15334         * config/rs6000/constraints.md (R): Pass QImode to
15335         legitimate_constant_pool_address_p.
15336         * config/rs6000/predicates.md (input_operand): Pass mode to
15337         legitimate_constant_pool_address_p.
15338         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15339         Update prototype.
15340
15341 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15342
15343         PR target/48053
15344         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15345         64-bit constants being loaded into registers other than GPRs such
15346         as loading 0 into a VSX register.
15347
15348 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15349
15350         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15351
15352 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15353
15354         PR middle-end/47917
15355         * builtins.c (fold_builtin_snprintf): New function.
15356         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15357         (fold_builtin_4): Likewise.
15358
15359         PR middle-end/38878
15360         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15361         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
15362         and C - X == X also strip nops from +/-/p+ operand.
15363         When optimizing -X == C, fold C to arg0's type.
15364
15365         PR debug/47946
15366         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15367         emit it as add_AT_int instead of add_AT_unsigned.
15368
15369 2011-03-14  Tom Tromey  <tromey@redhat.com>
15370
15371         * unwind-dw2.c: Include sys/sdt.h if it exists.
15372         (_Unwind_DebugHook): Use STAP_PROBE2.
15373         * config.in, configure: Rebuild.
15374         * configure.ac: Check for sys/sdt.h.
15375
15376 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
15377
15378         * config/i386/i386.md (ROUND_FLOOR): New constant.
15379         (ROUND_CEIL): Ditto.
15380         (ROUND_TRUNC): Ditto.
15381         (ROUND_MXCSR): Ditto.
15382         (ROUND_NO_EXC): Ditto.
15383         (rint<mode>2): Use new defines instead of numerical constants.
15384         (floor<mode>2): Ditto.
15385         (ceil<mode>2): Ditto.
15386         (btrunc<mode>2): Ditto.
15387         * config/i386/i386-builtin-types.def: Define ROUND function type
15388         aliases.
15389         * config/i386/i386.c (enum ix86_builtins): Add
15390         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15391         (struct builtin_description): Add
15392         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15393         (ix86_expand_sse_round): New static function.
15394         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15395         function types.
15396         (ix86_builtin_vectorized_function): Handle
15397         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15398
15399 2011-03-14  Tom Tromey  <tromey@redhat.com>
15400
15401         * c-parser.c (c_parser_asm_string_literal): Clear
15402         warn_overlength_strings.
15403
15404 2011-03-14  Tom Tromey  <tromey@redhat.com>
15405
15406         * c-parser.c (disable_extension_diagnostics): Save
15407         warn_overlength_strings.
15408         (restore_extension_diagnostics): Restore warn_overlength_strings.
15409
15410 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15411
15412         * BASE-VER: Change to 4.7.0.
15413
15414 2011-03-14  Richard Guenther  <rguenther@suse.de>
15415
15416         PR middle-end/48098
15417         * tree.c (build_vector_from_val): Adjust assert to requirements
15418         and reality.
15419
15420 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15421
15422         PR bootstrap/48102
15423         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15424
15425 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
15426
15427         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15428         terms of target_flags_explicit. Adjust copyright year.
15429
15430         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15431         * config/rs6000/t-freebsd: New file. Add override for
15432         LIB2FUNCS_EXTRA.
15433
15434 2011-03-13  Chris Demetriou  <cgd@google.com>
15435
15436         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15437         (-fno-diagnostics-show-option): this, to reflect current default.
15438         (-Werror=): Update text about -fno-diagnostics-show-option.
15439
15440 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
15441
15442         PR target/48053
15443         * config/rs6000/predicates.md (easy_vector_constant_add_self,
15444         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15445         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15446         mode is not V2DImode or V2DFmode.
15447         (vspltis_constant): Do not handle V2DImode and V2DFmode.
15448         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15449         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15450         registers to 0.
15451         (movdi_internal64): Likewise.
15452
15453 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
15454
15455         PR tree-optimization/47127
15456         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15457         parameter.
15458         (set_cloog_options): Same.
15459         (scop_to_clast): Same.
15460         (print_clast_stmt): Do not call cloog_state_malloc and
15461         cloog_state_free.
15462         (print_generated_program): Same.
15463         (gloog): Same.
15464         * graphite-clast-to-gimple.h (cloog_state): Declared.
15465         (scop_to_clast): Adjust declaration.
15466         * graphite.c (cloog_state): Defined here.
15467         (graphite_initialize): Call cloog_state_malloc.
15468         (graphite_finalize): Call cloog_state_free.
15469
15470 2011-03-11  Jason Merrill  <jason@redhat.com>
15471
15472         * attribs.c (lookup_attribute_spec): Take const_tree.
15473         * tree.h: Adjust.
15474
15475 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
15476
15477         * config/sparc/sparc.c (sparc_option_override): Use
15478         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15479
15480 2011-03-11  Richard Guenther  <rguenther@suse.de>
15481
15482         PR tree-optimization/48067
15483         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15484         multiplication result will be only used once on the target
15485         stmt.
15486
15487 2011-03-11  Richard Guenther  <rguenther@suse.de>
15488
15489         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15490
15491 2011-03-11  Richard Guenther  <rguenther@suse.de>
15492
15493         PR lto/48073
15494         * tree.c (find_decls_types_r): Do not walk types only reachable
15495         from IDENTIFIER_NODEs.
15496
15497 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15498
15499         PR middle-end/48044
15500         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15501         all vnode->force_output nodes as needed.
15502
15503 2011-03-11  Jason Merrill  <jason@redhat.com>
15504
15505         PR c++/48069
15506         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15507         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15508
15509 2011-03-11  Martin Jambor  <mjambor@suse.cz>
15510
15511         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15512         cgraph_node.
15513
15514 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15515
15516         PR tree-optimization/48063
15517         * ipa-inline.c (cgraph_decide_inlining): Don't try to
15518         inline functions called once if !tree_can_inline_p (node->callers).
15519
15520 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
15521
15522         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15523         extra_objs.
15524         * config/score/score3.c: Delete.
15525         * config/score/score3.h: Delete.
15526         * config/score/mul-div.S: Delete.
15527         * config/score/sfp-machine.h: Add new file.
15528         * config/score/constraints.md: Add new file.
15529         * config/score/t-score-softfp: Add new file.
15530         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15531         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15532         (score7_extra_constraint): Delete.
15533         (score7_option_override): Remove unused code.
15534         * config/score/score.c: Remove score3 and score5 define and code.
15535         * config/score/score.h: Remove score3 and score5 define and code.
15536         * config/score/score.md: Remove score3 template and unusual insn.
15537         * config/score/score.opt: Remove score3 and score5 options.
15538
15539 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15540
15541         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15542         when _HPUX_SOURCE is defined.
15543         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15544
15545 2011-03-10  Jason Merrill  <jason@redhat.com>
15546
15547         PR c++/48029
15548         * stor-layout.c (layout_type): Don't set structural equality
15549         on arrays of incomplete type.
15550         * tree.c (type_hash_eq): Handle comparing them properly.
15551
15552 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
15553
15554         PR debug/48043
15555         * config/s390/s390.c (s390_delegitimize_address): Make sure the
15556         result mode matches original rtl mode.
15557
15558 2011-03-10  Nick Clifton  <nickc@redhat.com>
15559
15560         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15561         (andsi3, andsi3_flags): Fix timings for three operand alternative.
15562
15563 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
15564
15565         PR rtl-optimization/47866
15566         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15567         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15568         if target wasn't scalar.
15569         * function.c (assign_stack_temp_for_type): Assert that neither
15570         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15571         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15572         macro.
15573         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15574
15575 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15576
15577         * config/s390/s390-protos.h (s390_label_align): New prototype.
15578         * config/s390/s390.c (s390_label_align): New function.
15579         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15580
15581 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
15582
15583         PR target/47755
15584         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15585         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
15586         (output_vec_const_move): Ditto.
15587
15588 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
15589
15590         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15591         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15592         * config/mips/mips.c (mips_preferred_reload_class): Make static.
15593         Change 'rclass' argument and result type to reg_class_t.
15594         (TARGET_PREFERRED_RELOAD_CLASS): Define.
15595
15596 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
15597
15598         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15599         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15600         (TARGET_MEMORY_MOVE_COST): Define.
15601         (avr_register_move_cost, avr_memory_move_cost): New Functions.
15602
15603 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
15604
15605         PR debug/47881
15606         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15607         removed anything.
15608
15609         PR tree-optimization/48022
15610         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15611         for EQ/NE_EXPR.
15612
15613 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
15614
15615         PR debug/47991
15616         * var-tracking.c (find_use_val): Return NULL for
15617         cui->sets && cui->store_p BLKmode MEMs.
15618
15619 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
15620
15621         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15622         Remove.
15623         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15624         xstormy16_print_operand_address): Remove.
15625         * config/stormy16/stormy16.c (xstormy16_print_operand,
15626         xstormy16_print_operand_address): Make static.
15627         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15628
15629 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
15630
15631         PR target/47862
15632         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15633         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15634         before definition.
15635
15636 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
15637
15638         PR bootstrap/48000
15639         * cfgloopmanip.c (fix_bb_placements): Return immediately
15640         if FROM is BASE_LOOP's header.
15641
15642 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
15643
15644         * gimplify.c (gimplify_function_tree): Fix building calls
15645         to __builtin_return_address.
15646
15647 2011-03-07  Alan Modra  <amodra@gmail.com>
15648
15649         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15650         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15651         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15652         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15653         return_mode args.
15654         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15655         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15656         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15657         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15658         * config/rs6000/rs6000.c
15659         (rs6000_elf_end_indicate_exec_stack): Rename to..
15660         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
15661         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
15662         (rs6000_file_start): ..here.
15663         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15664         file scope variables.
15665         (call_ABI_of_interest): New function.
15666         (init_cumulative_args): Set above vars when function return value
15667         is a float, vector, or small struct.
15668         (rs6000_function_arg_advance_1): Likewise for function args.
15669         (rs6000_va_start): Set rs6000_passes_float if variable arg function
15670         references float args.
15671
15672 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
15673
15674         * doc/cfg.texi: Remove "See" before @ref.
15675         * doc/invoke.texi: Likewise.
15676
15677 2011-03-05  Jason Merrill  <jason@redhat.com>
15678
15679         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15680
15681 2011-03-05  Anthony Green  <green@moxielogic.com>
15682
15683         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15684
15685 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
15686
15687         PR rtl-optimization/47899
15688         * cfgloopmanip.c (fix_bb_placements): Fix first argument
15689         to flow_loop_nested_p when moving the loop upward.
15690
15691 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
15692
15693         PR target/47719
15694         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
15695
15696 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
15697
15698         PR tree-optimization/47967
15699         * ipa-cp.c (build_const_val): Return NULL instead of creating
15700         VIEW_CONVERT_EXPR for mismatching sizes.
15701         (ipcp_create_replace_map): Return NULL if build_const_val failed.
15702         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15703         give up on versioning.
15704
15705 2011-03-05  Alan Modra  <amodra@gmail.com>
15706
15707         PR target/47986
15708         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15709         full cmodel medium/large lo_sum + high addresses.
15710
15711 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15712
15713         * config/s390/s390.c (s390_decompose_address): Reject non-literal
15714         pool references in UNSPEC_LTREL_OFFSET.
15715
15716 2011-03-04  Jan Hubicka  <jh@suse.cz>
15717
15718         PR lto/47497
15719         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15720         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15721         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15722         Add node pointers.
15723         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15724         cgraph_add_thunk): Add node pointers.
15725         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15726         associated to right node.
15727         (input_node): Update use of cgraph_same_body_alias
15728         and cgraph_add_thunk.
15729
15730 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15731
15732         * config/i386/i386.opt (mprefer-avx128): New flag.
15733         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15734         modes when the flag -mprefer-avx128 is on.
15735
15736 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
15737
15738         * dwarf2out.c (compare_loc_operands): Fix address handling.
15739
15740 2011-03-04  Alan Modra  <amodra@gmail.com>
15741
15742         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15743
15744 2011-03-04  Richard Guenther  <rguenther@suse.de>
15745
15746         PR middle-end/47968
15747         * expmed.c (extract_bit_field_1): Prefer vector modes that
15748         vec_extract patterns can handle.
15749
15750 2011-03-04  Richard Guenther  <rguenther@suse.de>
15751
15752         PR middle-end/47975
15753         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15754
15755 2011-03-04  Richard Henderson  <rth@redhat.com>
15756
15757         * explow.c (emit_stack_save): Remove 'after' parameter.
15758         (emit_stack_restore): Likewise.
15759         * expr.h: Update to match.
15760         * builtins.c, calls.c, stmt.c: Likewise.
15761         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15762         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15763         * function.c (expand_function_end): Insert the emit_stack_save
15764         sequence before parm_birth_insn instead of after.
15765
15766 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
15767
15768         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15769         (ssse3_pmaddubsw128): Ditto.
15770         (ssse3_pmaddubsw): Ditto.
15771
15772 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
15773
15774         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15775
15776 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
15777
15778         PR c/47963
15779         * gimplify.c (omp_add_variable): Only call omp_notice_variable
15780         on TYPE_SIZE_UNIT if it is a DECL.
15781
15782         PR debug/47283
15783         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15784         first operand is not is_gimple_mem_ref_addr, try to fold it.
15785         If the operand still isn't is_gimple_mem_ref_addr, clear
15786         MEM_EXPR on op0.
15787
15788 2011-03-03  Richard Guenther  <rguenther@suse.de>
15789
15790         PR middle-end/47283
15791         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15792         match comment.
15793         (refs_may_alias_p_1): For release branches return true if
15794         we are confused by our input.
15795
15796 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15797
15798         * config/s390/s390.c (s390_function_value): Rename to ...
15799         (s390_function_and_libcall_value): ... this.
15800         (s390_function_value): New function.
15801         (s390_libcall_value): New function.
15802         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15803         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15804         target macro definitions.
15805         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15806
15807 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
15808
15809         * config/i386/freebsd64.h (CC1_SPEC): Define.
15810         * config/i386/linux64.h (CC1_SPEC): Define.
15811         * config/i386/x86-64.h (CC1_SPEC): Don't define.
15812
15813 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
15814
15815         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15816         Remove.
15817         * config/stormy16/stormy16.c: Include reload.h.
15818         (xstormy16_memory_move_cost): New function.
15819         (TARGET_MEMORY_MOVE_COST): Define.
15820
15821 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
15822
15823         PR rtl-optimization/47925
15824         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15825         with side effects.  Remove the more-specific check for volatile asms.
15826
15827 2011-03-02  Alan Modra  <amodra@gmail.com>
15828
15829         PR target/47935
15830         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15831         toc relative addresses for valid offsets.
15832
15833 2011-03-01  Richard Guenther  <rguenther@suse.de>
15834
15835         PR tree-optimization/47890
15836         * tree-vect-loop.c (get_initial_def_for_induction): Set
15837         related stmt properly.
15838
15839 2011-03-01  Richard Guenther  <rguenther@suse.de>
15840
15841         PR lto/47924
15842         * lto-streamer.c (lto_record_common_node): Also register
15843         the canonical type.
15844
15845 2011-03-01  Richard Guenther  <rguenther@suse.de>
15846
15847         PR lto/46911
15848         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15849         Do not stream DECL_ABSTRACT_ORIGIN.
15850         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15851         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15852         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15853         Do not stream DECL_ABSTRACT_ORIGIN.
15854         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15855         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15856
15857 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
15858
15859         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15860         FUNCTION_VALUE_REGNO_P): Remove.
15861         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15862         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15863         Add 'outgoing' argument.
15864         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15865         function.
15866         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15867         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15868
15869 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
15870
15871         PR debug/28047
15872         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15873         (lookup_filename): Likewise.
15874         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15875
15876 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
15877             Jakub Jelinek  <jakub@redhat.com>
15878
15879         PR middle-end/47893
15880         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15881         (assign_stack_local_1): Change last argument type to int.
15882         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15883         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
15884         don't record padding space into frame_space_list nor use those areas.
15885         (assign_stack_local): Adjust caller.
15886         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15887         of assign_stack_local, pass 0 as last argument.
15888         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15889         callers.
15890
15891 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
15892
15893         PR debug/47283
15894         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15895         Use target address_mode and pointer_mode hooks instead of hardcoded
15896         Pmode and ptr_mode.  Handle some simple cases of extending if
15897         POINTERS_EXTEND_UNSIGNED < 0.
15898         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15899         Call convert_debug_memory_address.
15900         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15901         convert_debug_memory_address.
15902
15903         PR middle-end/46790
15904         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15905         * configure: Regenerated.
15906         * config.in: Regenerated.
15907         * varasm.c (default_function_section): Return NULL
15908         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15909
15910 2011-02-28  Martin Jambor  <mjambor@suse.cz>
15911
15912         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15913         the description to match the printed values.
15914
15915 2011-02-28  Richard Guenther  <rguenther@suse.de>
15916
15917         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15918         of the copied scope tree.
15919
15920 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15921
15922         * doc/extend.texi (Function Attributes): Avoid deeply (and
15923         wrongly) nested tables.
15924
15925 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
15926
15927         PR middle-end/47903
15928         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15929         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15930         r isn't op0 nor op1.
15931
15932 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15933
15934         * config/avr/avr.md: Remove magic comment for emacs.
15935
15936 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15937
15938         PR target/45261
15939         * config/avr/avr.c (avr_option_override): Use error on bad options.
15940         (avr_help): New function.
15941         (TARGET_HELP): Define.
15942
15943 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
15944
15945         PR target/42240
15946         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15947         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15948
15949 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
15950
15951         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15952         (ARM Options): Ditto.
15953         (i386 and x86-64 Options): Ditto.
15954         (RX Options): Ditto.
15955         (SPARC Options): Ditto.
15956
15957 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
15958
15959         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15960         FreeBSD 6 and later.  Generally use cpu generic.
15961
15962 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
15963
15964         * doc/cpp.texi: Update copyright years.
15965
15966 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
15967
15968         PR target/46898
15969         * config/lm32/lm32.md (ashrsi3): Added needed variable.
15970
15971 2011-02-25  Jon Beniston  <jon@beniston.com>
15972
15973         PR target/46898
15974         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15975         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15976         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15977         (lm32_block_move_inline): Add type cast to remove warning.
15978         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15979         (gen_int_relational): Move declarations to start of function.
15980
15981 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
15982
15983         PR tree-optimization/45470
15984         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15985         can throw internally only.
15986         * tree-vect-stmts.c (vectorizable_call): Likewise.
15987
15988 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
15989
15990         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15991         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15992         * config/stormy16/stormy16-protos.h
15993         (xstormy16_preferred_reload_class): Remove.
15994         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15995         static. Change 'rclass' argument and return type to reg_class_t.
15996         (TARGET_PREFERRED_RELOAD_CLASS,
15997         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15998
15999 2011-02-24  Richard Guenther  <rguenther@suse.de>
16000
16001         * lto-streamer-in.c (input_bb): Do not find referenced vars
16002         in debug statements.
16003
16004 2011-02-23  Jason Merrill  <jason@redhat.com>
16005
16006         * common.opt (fabi-version): Document v5 and v6.
16007
16008 2011-02-23  Richard Guenther  <rguenther@suse.de>
16009
16010         PR tree-optimization/47849
16011         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
16012
16013 2011-02-23  Jie Zhang  <jie@codesourcery.com>
16014
16015         * opts-common.c (decode_cmdline_option): Print empty string
16016         argument as "" in decoded->orig_option_with_args_text.
16017         * gcc.c (execute): Print empty string argument as ""
16018         in the verbose output.
16019         (do_spec_1): Keep empty string argument.
16020
16021 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
16022
16023         * config.gcc: Declare score-* and crx-* obsolete.
16024
16025 2011-02-23  Jie Zhang  <jie@codesourcery.com>
16026
16027         PR rtl-optimization/47763
16028         * web.c (web_main): Ignore naked clobber when replacing register.
16029
16030 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
16031
16032         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16033         Remove.
16034
16035 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16036
16037         PR doc/47848
16038         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16039
16040 2011-02-22  Mike Stump  <mikestump@comcast.net>
16041
16042         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16043         assembler.
16044         * configure: Regenerate.
16045
16046 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
16047
16048         PR rtl-optimization/46002
16049         * ira-color.c (update_copy_costs): Change class intersection
16050         test to reg_class_contents[] test of 'hard_regno'.
16051
16052 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
16053
16054         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16055         than Driver option.
16056         * config/hpux11.opt (mt): Likewise.
16057         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16058         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16059         * config/vax/elf.opt (mno-asm-pic): Likewise.
16060         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16061
16062 2011-02-21  Mike Stump  <mikestump@comcast.net>
16063
16064         PR target/47822
16065         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16066         tree so we can get save the type.
16067         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16068         for CFString instead of trying to use past the end of the builtins.
16069         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16070         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16071         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16072         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16073         Rename to darwin_builtin_cfstring.
16074         (darwin_init_cfstring_builtins): Return the built type.
16075
16076 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
16077
16078         PR target/47840
16079         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16080         (_mm256_insert_epi64): Use _mm_insert_epi64.
16081
16082 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
16083
16084         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16085         * config/stormy16/stormy16-protos.h
16086         (xstormy16_mode_dependent_address_p): Remove.
16087         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16088         Make static. Change return type to bool. Change argument type to
16089         const_rtx. Remove dead code.
16090         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16091
16092 2011-02-21  Richard Guenther  <rguenther@suse.de>
16093
16094         PR lto/47820
16095         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16096         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16097         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16098         TUs context.
16099         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16100         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16101
16102 2011-02-20  Richard Guenther  <rguenther@suse.de>
16103
16104         PR lto/47822
16105         * tree.c (free_lang_data_in_decl): Clean builtins from
16106         the TU decl BLOCK_VARS.
16107
16108 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
16109
16110         PR debug/47620
16111         PR debug/47630
16112         * haifa-sched.c (fix_tick_ready): Skip tick computation
16113         for debug insns.
16114
16115 2011-02-19  Richard Guenther  <rguenther@suse.de>
16116
16117         PR lto/47647
16118         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16119         Remove lazy BLOCK_VARS streaming.
16120         (lto_input_ts_block_tree_pointers): Likewise.
16121         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16122
16123 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
16124
16125         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16126
16127 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
16128
16129         * config/i386/biarch32.h, config/i386/mach.h,
16130         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16131
16132 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
16133
16134         PR target/47800
16135         * config/i386/i386.md (peephole2 for shift and plus): Use
16136         operands[1] original mode in the first insn.
16137
16138 2011-02-18  Mike Stump  <mikestump@comcast.net>
16139
16140         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16141
16142 2011-02-18  Jan Hubicka  <jh@suse.cz>
16143
16144         PR middle-end/47788
16145         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16146         to zero when the function is not inlinable at all.
16147
16148 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16149
16150         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16151         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16152         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16153         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16154         * config/pa/t-pa64: Likewise.
16155         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16156
16157 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
16158
16159         PR driver/47787
16160         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16161
16162 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16163
16164         PR target/47792
16165         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16166
16167 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
16168
16169         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16170         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16171         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16172         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16173         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16174         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16175         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16176         m32r_load_postinc_p, m32r_store_preinc_predec_p,
16177         m32r_legitimate_address_p): New functions.
16178         * config/m32r/constraints.md (constraint "S"): Don't use
16179         STORE_PREINC_PREDEC_P.
16180         (constraint "U"): Don't use LOAD_POSTINC_P.
16181
16182 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
16183
16184         PR rtl-optimization/46178
16185         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16186         compute ira_hard_regno_cover_class[].
16187
16188 2011-02-18  Richard Guenther  <rguenther@suse.de>
16189
16190         PR lto/47798
16191         * lto-streamer.h (lto_global_var_decls): Declare.
16192         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16193         statics for global var processing.
16194
16195 2011-02-18  Richard Guenther  <rguenther@suse.de>
16196
16197         PR tree-optimization/47737
16198         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16199         edge dominance check.
16200
16201 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
16202
16203         PR debug/47780
16204         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16205         avoid invalid rtx sharing.
16206
16207 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
16208
16209         * doc/cpp.texi (Obsolete Features): Add background on the
16210         origin of assertions.
16211
16212 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
16213
16214         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
16215         objc_abi == 2.
16216         * config/darwin.c (output_objc_section_asm_op): Added support for
16217         ABI v1 and v2.
16218         (is_objc_metadata): New.
16219         (darwin_objc2_section): New.
16220         (darwin_objc1_section): New.
16221         (machopic_select_section): Added support for ABI v1 and v2.
16222         (darwin_emit_objc_zeroed): New.
16223         (darwin_output_aligned_bss): Detect objc metadata and treat it
16224         appropriately.
16225         (darwin_asm_output_aligned_decl_common): Same.
16226         (darwin_asm_output_aligned_decl_local): Same.
16227         * config/darwin-sections.def: Updated for ABI v1 and v2.
16228         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16229         compiling Objective-C code for the NeXT runtime, default to using
16230         ABI version 0 for 32-bit, and version 2 for 64-bit.
16231
16232 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16233
16234         * common.opt (optimize_fast): New Variable.
16235         * opts.c (default_options_optimization): Use opts->x_optimize_fast
16236         instead of local variable ofast.
16237
16238 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
16239
16240         * doc/invoke.texi (fobjc-abi-version): Documented.
16241         (fobjc-nilcheck): Documented.
16242         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16243         version.
16244
16245 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16246
16247         PR driver/47390
16248         * common.opt (export-dynamic): New Driver option.
16249         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16250
16251 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16252
16253         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16254
16255 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
16256             Jan Hubicka  <jh@suse.cz>
16257
16258         PR debug/47106
16259         PR debug/47402
16260         * cfgexpand.c (account_used_vars_for_block): Remove.
16261         (estimated_stack_frame_size): Use referenced vars.
16262         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16263         that were referenced in the original function.  Test src_fn
16264         rather than cfun.  Drop redundant get_var_ann.
16265         (setup_one_parameter): Drop redundant get_var_ann.
16266         (declare_return_variable): Likewise.
16267         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16268         (copy_arguments_for_versioning): Drop redundant get_var_ann.
16269         * ipa-inline.c (compute_inline_parameters): Do not compute
16270         disregard_inline_limits here.
16271         (compute_inlinable_for_current, pass_inlinable): New.
16272         (pass_inline_parameters): Require PROP_referenced_vars.
16273         * cgraphunit.c (cgraph_process_new_functions): Don't run
16274         compute_inline_parameters explicitly unless function is in SSA form.
16275         (cgraph_analyze_function): Set .disregard_inline_limits.
16276         * tree-sra.c (convert_callers): Compute inliner parameters
16277         only for functions already in SSA form.
16278
16279 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16280
16281         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16282         -mlittle-endian-data.
16283
16284 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16285
16286         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16287         -mno-fpu, not -fpu and -no-fpu.
16288         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16289         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16290
16291 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
16292
16293         PR target/43653
16294         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16295         input reload with PLUS RTX.
16296
16297 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16298
16299         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16300         of InverseVar(MDMX).
16301
16302 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16303
16304         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16305         --m4-340.
16306
16307 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16308
16309         * config/mn10300/mn10300.opt (mno-crt0): New.
16310
16311 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16312
16313         * config/m68k/uclinux.opt (static-libc): New Driver option.
16314
16315 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16316
16317         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16318
16319 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16320
16321         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16322         %{muser-extend-enabled}.
16323
16324 2011-02-16  Richard Guenther  <rguenther@suse.de>
16325
16326         PR tree-optimization/47738
16327         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16328         the TODO from tree_predictive_commoning.
16329
16330 2011-02-15  Jeff Law  <law@redhat.com>
16331
16332         Revert
16333         2011-01-25  Jeff Law  <law@redhat.com>
16334
16335         PR rtl-optimization/37273
16336         * ira-costs.c (scan_one_insn): Detect constants living in memory and
16337         handle them like argument loads from stack slots.  Do not double
16338         count memory for memory constants and argument loads from stack slots.
16339
16340 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16341
16342         PR middle-end/47725
16343         * combine.c (cant_combine_insn_p): Revert the last change.
16344
16345 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
16346
16347         PR target/47755
16348         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16349         mode for vector constants.  Remove code that checks for TImode.
16350
16351 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16352
16353         PR debug/47106
16354         PR debug/47402
16355         * cgraph.h (compute_inline_parameters): Return void.
16356         * ipa-inline.c (compute_inline_parameters): Adjust.
16357
16358 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16359
16360         PR debug/47106
16361         PR debug/47402
16362         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16363         rather than decl.
16364         * cfgexpand.c (estimated_stack_frame_size): Likewise.
16365         * ipa-inline.c (compute_inline_parameters): Adjust.
16366
16367 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16368
16369         PR debug/47106
16370         PR debug/47402
16371         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16372         Adjust all users.  Pass FN to...
16373         * tree-flow-inline.h (first_referenced_var): ... this.  Add
16374         fn argument.
16375         * ipa-struct-reorg.c: Adjust.
16376         * tree-dfa.c: Adjust.
16377         * tree-into-ssa.c: Adjust.
16378         * tree-sra.c: Adjust.
16379         * tree-ssa-alias.c: Adjust.
16380         * tree-ssa-live.c: Adjust.
16381         * tree-ssa.c: Adjust.
16382         * tree-ssanames.c: Adjust.
16383         * tree-tailcall.c: Adjust.
16384
16385 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16386
16387         PR debug/47106
16388         PR debug/47402
16389         * tree-flow.h (referenced_var_lookup): Add fn parameter.
16390         Adjust all callers.
16391         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16392         * tree-flow-inline.h: Adjust.
16393         * gimple-pretty-print.c: Adjust.
16394         * tree-into-ssa.c: Adjust.
16395         * tree-ssa.c: Adjust.
16396         * cfgexpand.c: Adjust.
16397
16398 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16399
16400         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16401         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16402         (EXTRA_CONSTRAINT): Delete.
16403         * config/iq2000/constraints.md: New file.
16404         * config/iq2000/iq2000.md: Include it.
16405         (define_insn ""): Delete.
16406         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16407         unsupported constraint letters from patterns.
16408         (call_value, call_value_internal1): Likewise.
16409         (call_value_multiple_internal1): Likewise.
16410
16411 2011-02-15  Nick Clifton  <nickc@redhat.com>
16412
16413         * config/mn10300/mn10300.c: Include tm-constrs.h.
16414         (struct liw_data): New data structure describing an LIW candidate
16415         instruction.
16416         (extract_bundle): Use struct liw_data.  Allow small integer
16417         operands for some instructions.
16418         (check_liw_constraints): Use struct liw_data.  Remove swapped
16419         parameter.  Add comments describing the checks.  Fix bug when
16420         assigning the source of liw1 to the source of liw2.
16421         (liw_candidate): Delete.  Code moved into extract_bundle.
16422         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
16423         before swapping.
16424         * config/mn10300/predicates.md (liw_operand): New predicate.
16425         Allows registers and small integer constants.
16426         * config/mn10300/constraints.md (O): New constraint.  Accetps
16427         integers in the range -8 to +7 inclusive.
16428         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16429         for moving a small integer into a register.  Give this alternative
16430         LIW attributes.
16431         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16432         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16433         using the J,K,L and M constraints,
16434         (liw): Remove SI mode on second operands to allow for HI and QI
16435         mode values.
16436         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
16437         instruction.
16438
16439 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16440
16441         PR middle-end/47725
16442         * combine.c (cant_combine_insn_p): Check zero/sign extended
16443         hard registers.
16444
16445 2011-02-15  Richard Guenther  <rguenther@suse.de>
16446
16447         PR tree-optimization/47743
16448         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16449         for a non-type-compatible VN lookup bail out.
16450
16451 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16452
16453         * config/fr30/constraints.md: New file.
16454         * config/fr30/fr30.md: Include it.
16455         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16456         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16457         (EXTRA_CONSTRAINT): Delete.
16458
16459 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16460
16461         * config/frv/constraints.md: New file.
16462         * config/frv/predicates.md: Include it.
16463         * config/frv/frv.c (reg_class_from_letter): Delete.
16464         (frv_option_override): Don't initialize it.
16465         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16466         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16467         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16468         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16469         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16470         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16471         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16472         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16473         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16474         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16475         (REG_CLASS_FROM_CONSTRAINT): Delete.
16476
16477 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
16478
16479         PR middle-end/47581
16480         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16481         if frame size is 0 in a leaf function.
16482
16483 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16484
16485         PR pch/14940
16486         * config/alpha/host-osf.c: New file.
16487         * config/alpha/x-osf: New file.
16488         * config.host (alpha*-dec-osf*): Use it.
16489
16490 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16491
16492         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16493         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16494         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16495         (rx_mode_dependent_address_p): ...this. Make static. Change argument
16496         type to const_rtx.
16497         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16498
16499 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16500
16501         * config/stormy16/constraints.md: New file.
16502         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16503         Use satisfies_constraint_Q and satisfies_constraint_R.
16504         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16505         Delete.
16506         (xstormy16_legitiamte_address_p): Declare.
16507         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16508         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16509         (EXTRA_CONSTRAINT): Delete.
16510         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16511         Un-staticize.
16512         (xstormy16_extra_constraint_p): Delete.
16513
16514 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
16515
16516         PR tree-optimization/46494
16517         * loop-unroll.c (split_edge_and_insert): Adjust comment.
16518         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16519         (pass_rtl_loop_done): Add TODO_verify_flow.
16520         * fwprop.c (pass_rtl_fwprop): Likewise.
16521         * modulo-sched.c (pass_sms): Likewise.
16522         * tree-ssa-dom.c (pass_dominator): Likewise.
16523         * tree-ssa-loop-ch.c (pass_ch): Likewise.
16524         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16525         (pass_tree_loop_done): Likewise.
16526         * tree-ssa-pre.c (execute_pre): Likewise.
16527         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16528         * tree-ssa-sink.c (pass_sink_code): Likewise.
16529         * tree-vrp.c (pass_vrp): Likewise.
16530
16531 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16532
16533         * config/v850/constraints.md: New file.
16534         * config/v850/v850.md: Include it.
16535         * config/v850/predicates.md (reg_or_0_operand): Use
16536         satisfies_constraint_G.
16537         (special_symbolref_operand): Use satisfies_constraint_K.
16538         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16539         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16540         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16541         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16542         (EXTRA_CONSTRAINT): Delete.
16543         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16544         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16545         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16546
16547 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16548
16549         PR target/47696
16550         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16551         description.
16552
16553 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16554
16555         * config/mcore/constraints.md: New file.
16556         * config/mcore/mcore.md: Include it.
16557         * config/mcore/mcore.c (reg_class_from_letter): Delete.
16558         * config/mcore/mcore.h (reg_class_from_letter): Delete.
16559         (REG_CLASS_FROM_LETTER): Delete.
16560         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16561         insn_const_int_ok_for_constraint.
16562         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16563         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16564         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16565         (EXTRA_CONSTRAINT): Delete.
16566
16567 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16568
16569         PR ada/41929
16570         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16571         (IS_SIGHANDLER): Define.
16572         (sparc64_is_sighandler): New function, split off from
16573         sparc64_fallback_frame_state.
16574         (sparc_is_sighandler): New function, split off from
16575         sparc_fallback_frame_state.
16576         (sparc64_fallback_frame_state): Merge with ...
16577         (sparc_fallback_frame_state): ... this into ...
16578         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16579         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
16580         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
16581         stack instead of hardcoded offsets.
16582
16583 2011-02-14  Andriy Gapon  <avg@freebsd.org>
16584
16585         PR target/45808
16586         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16587
16588 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16589
16590         * configure: Regenerate.
16591
16592 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
16593
16594         PR driver/45731
16595         * gcc.c (asm_options): Correct spec matching --target-help.
16596
16597 2011-02-12  Martin Jambor  <mjambor@suse.cz>
16598
16599         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16600         to gimple call error.
16601
16602 2011-02-12  Mike Stump  <mikestump@comcast.net>
16603
16604         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16605         comments in backslash regions.
16606
16607 2011-02-12  Mike Stump  <mikestump@comcast.net>
16608             Jakub Jelinek  <jakub@redhat.com>
16609             Iain Sandoe  <iains@gcc.gnu.org>
16610
16611         PR target/47324
16612         * dwarf2out.c (output_cfa_loc): When required, apply the
16613         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16614         (output_loc_sequence): Likewise.
16615         (output_loc_operands_raw): Likewise.
16616         (output_loc_sequence_raw): Likewise.
16617         (output_cfa_loc): Likewise.
16618         (output_loc_list): Suppress register number adjustment when
16619         calling output_loc_sequence()
16620         (output_die): Likewise.
16621
16622 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
16623
16624         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16625         Remove macros.
16626         * config/xtensa/xtensa.c (xtensa_register_move_cost,
16627         xtensa_memory_move_cost): New functions.
16628         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16629
16630 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
16631
16632         PR lto/47225
16633         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16634         in the current directory.
16635         * configure: Rebuilt.
16636
16637 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16638
16639         * config/darwin.c (darwin_override_options): Add a hunk missed
16640         from the commit of r168571.  Trim comment line lengths and
16641         correct indents of the preceding block.
16642
16643 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16644
16645         * gcc.c (driver_handle_option): Concatenate the argument to -F with
16646         the switch.
16647
16648 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16649
16650         * common.opt (nostartfiles): New Driver option.
16651
16652 2011-02-11  Xinliang David Li  <davidxl@google.com>
16653
16654         PR tree-optimization/47707
16655         * tree-chrec.c (convert_affine_scev): Keep type precision.
16656
16657 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
16658
16659         PR tree-optimization/47420
16660         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16661
16662 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
16663
16664         PR rtl-optimization/47614
16665         * rtl.h (check_for_inc_dec): Declare.
16666         * dse.c (check_for_inc_dec): Externalize...
16667         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16668         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16669
16670 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16671
16672         PR driver/47678
16673         * gcc.c (main): Do not compile inputs if there were errors in
16674         option handling.
16675         * opts-common.c (read_cmdline_option): Check for wrong language
16676         after other error checks.
16677
16678 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
16679
16680         * cgraph.c: Fix comment typos.
16681         * cgraph.h: Likewise.
16682         * cgraphunit.c: Likewise.
16683         * ipa-cp.c: Likewise.
16684         * ipa-inline.c: Likewise.
16685         * ipa-prop.c: Likewise.
16686         * ipa-pure-const.c: Likewise.
16687         * ipa-ref.c: Likewise.
16688         * ipa-reference.c: Likewise.
16689
16690 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16691
16692         PR debug/47684
16693         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16694
16695 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16696
16697         PR testsuite/47400
16698         * doc/sourcebuild.texi (Require Support): Document
16699         dg-require-ascii-locale.
16700
16701 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
16702
16703         * doc/lto.texi (Write summary): Fix missing parentheses.
16704
16705 2011-02-10  DJ Delorie  <dj@redhat.com>
16706
16707         * config/m32c/m32c.c (m32c_option_override): Disable
16708         -fcombine-stack-adjustments until flag value tracking and compare
16709         optimization can be rewritten.
16710
16711 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
16712
16713         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16714         PROCESSOR_POWER7.
16715         (PROCESSOR_DEFAULT64): Likewise.
16716
16717 2011-02-10  Richard Henderson  <rth@redhat.com>
16718
16719         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16720         change from 2011-02-03.
16721         * config/rx/rx.c (flags_from_code): Likewise.
16722         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16723         is valid, n/pz otherwise.
16724         (rx_select_cc_mode): Return CCmode if Y is not zero.
16725
16726 2011-02-10  Richard Guenther  <rguenther@suse.de>
16727
16728         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16729
16730 2011-02-10  Richard Guenther  <rguenther@suse.de>
16731
16732         PR tree-optimization/47677
16733         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16734
16735 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
16736
16737         PR target/47665
16738         * combine.c (make_compound_operation): Only change shifts into
16739         multiplication for SCALAR_INT_MODE_P.
16740
16741 2011-02-10  Jie Zhang  <jie@codesourcery.com>
16742
16743         PR testsuite/47622
16744         Revert
16745         2011-02-05  Jie Zhang  <jie@codesourcery.com>
16746         PR debug/42631
16747         * web.c (entry_register): Don't clobber the number of the
16748         first uninitialized reference in used[].
16749
16750 2011-02-09  Richard Guenther  <rguenther@suse.de>
16751
16752         PR tree-optimization/47664
16753         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16754         all edges again.
16755
16756 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
16757
16758         PR target/46481
16759         PR target/47032
16760         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16761         PROCESSOR_POWER7.
16762         (PROCESSOR_DEFAULT64): Same.
16763         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16764
16765 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16766
16767         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16768
16769 2011-02-09  Martin Jambor  <mjambor@suse.cz>
16770
16771         PR middle-end/45505
16772         * tree-sra.c (struct access): New flags grp_scalar_read and
16773         grp_scalar_write.  Changed description of assignment read and write
16774         flags.
16775         (dump_access): Dump new flags, reorder all of them.
16776         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16777         to detect multiple scalar reads.
16778         (analyze_access_subtree): Use the new scalar read write flags instead
16779         of the old flags.  Adjusted comments.
16780
16781 2011-02-08  DJ Delorie  <dj@redhat.com>
16782
16783         PR target/47548
16784         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16785         patterns.
16786
16787 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16788
16789         * config/m68k/uclinux.opt: New.
16790         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16791
16792 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16793
16794         * config/cris/elf.opt (sim): New Driver option.
16795
16796 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16797
16798         * config/xtensa/elf.opt: New.
16799         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16800
16801 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16802
16803         * config/vax/elf.opt: New.
16804         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16805
16806 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16807
16808         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16809
16810 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16811
16812         * config/gnu-user.opt: New.
16813         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16814         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16815         *-*-uclinux*): Use gnu-user.opt.
16816
16817 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
16818
16819         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16820         * config/i386/gnu.h (CPP_SPEC): Likewise.
16821
16822 2011-02-08  Ian Lance Taylor  <iant@google.com>
16823
16824         * common.opt (fcx-limited-range): Add SetByCombined flag.
16825         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16826         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16827         (fassociative-math, freciprocal-math): Likewise.
16828         (funsafe-math-optimizations): Likewise.
16829         * opth-gen.awk: Handle SetByCombined.
16830         * optc-gen.awk: Likewise.
16831         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16832         (set_unsafe_math_optimizations_flags): Likewise.
16833         * doc/options.texi (Option properties): Document SetByCombined.
16834
16835 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16836
16837         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16838         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16839         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16840         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16841         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16842
16843 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
16844
16845         PR tree-optimization/46834
16846         PR tree-optimization/46994
16847         PR tree-optimization/46995
16848         * graphite-sese-to-poly.c (used_outside_reduction): New.
16849         (detect_commutative_reduction): Call used_outside_reduction.
16850         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16851         translate_scalar_reduction_to_array only when at least one
16852         loop-phi/close-phi tuple has been detected.
16853
16854 2011-02-08  Richard Guenther  <rguenther@suse.de>
16855
16856         PR middle-end/47639
16857         * tree-vect-generic.c (expand_vector_operations_1): Update
16858         stmts here ...
16859         (expand_vector_operations): ... not here.  Cleanup EH info
16860         and the CFG if required.
16861
16862 2011-02-08  Richard Guenther  <rguenther@suse.de>
16863
16864         PR tree-optimization/47641
16865         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16866         require type compatibility.
16867
16868 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16869
16870         * gimple-low.c (lower_function_body): Don't remove the location of
16871         the return statement here.
16872         (lower_gimple_return): Do it here instead but only if the return
16873         statement is actually used twice.
16874
16875 2011-02-08  Richard Guenther  <rguenther@suse.de>
16876
16877         PR tree-optimization/47632
16878         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16879         unused up_to_stmt parameter, return whether cfg-cleanup is
16880         necessary, remove EH info properly.
16881         (forward_propagate_into_gimple_cond): Adjust caller.
16882         (forward_propagate_into_cond): Likewise.
16883         (forward_propagate_comparison): Likewise.
16884         (tree_ssa_forward_propagate_single_use_vars): Make
16885         forward_propagate_comparison case similar to the two others.
16886
16887 2011-02-08  Nick Clifton  <nickc@redhat.com>
16888
16889         * config/mn10300/mn10300.opt (mliw): New command line option.
16890         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16891         (liw_bundling): New automaton.
16892         (liw): New attribute.
16893         (liw_op): New attribute.
16894         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16895         (movsi_internal): Add LIW attributes.
16896         (andsi3): Likewise.
16897         (iorsi3): Likewise.
16898         (xorsi3): Likewise.
16899         (addsi3): Separate register and immediate alternatives.
16900         Add LIW attributes.
16901         (subsi3): Likewise.
16902         (cmpsi): Likewise.
16903         (aslsi3): Likewise.
16904         (lshrsi3): Likewise.
16905         (ashrsi3): Likewise.
16906         (liw): New pattern.
16907         * config/mn10300/mn10300.c (liw_op_names): New
16908         (mn10300_print_operand): Handle 'W' operand descriptor.
16909         (extract_bundle): New function.
16910         (check_liw_constraints): New function.
16911         (liw_candidate): New function.
16912         (mn10300_bundle_liw): New function.
16913         (mn10300_reorg): New function.
16914         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16915         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16916         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16917         __LIW__ or __NO_LIW__.
16918         * doc/invoke.texi: Describe the -mliw command line option.
16919
16920 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16921
16922         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16923         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16924         pthread_mutex_unlock): Remove.
16925         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16926         * config/pa/t-pa64: Likewise.
16927         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16928         shared libc if not linking against libpthread.
16929         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16930
16931 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
16932
16933         PR target/47558
16934         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16935         on 10.6 and later to ensure that we always use the unwinder from
16936         the system.  Only add -no_compact_unwind when tarteting darwin
16937         10.6 or later.
16938
16939 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
16940
16941         PR target/46997
16942         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16943         (vec_interleave_lowv2sf): Ditto.
16944         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16945         (vec_extract_oddv2sf): Ditto.
16946
16947 2011-02-07  Mike Stump  <mikestump@comcast.net>
16948
16949         PR target/42333
16950         Add __ieee_divdc3 entry point.
16951         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16952         entry point.
16953         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16954         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16955         * config/darwin.c (darwin_rename_builtins): Add.
16956         * config/darwin-protos.h (darwin_rename_builtins): Add.
16957
16958 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
16959
16960         PR target/47636
16961         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16962         for the condition.
16963
16964 2011-02-07  Mike Stump  <mikestump@comcast.net>
16965
16966         * config/darwin.opt (mmacosx-version-min): Update default OS version.
16967
16968 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
16969
16970         PR target/47534
16971         * config/avr/libgcc.S (exit): Move .endfunc
16972
16973 2011-02-07  Richard Guenther  <rguenther@suse.de>
16974
16975         PR tree-optimization/47615
16976         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16977         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16978         (run_scc_vn): Initialize it.
16979         (visit_reference_op_load): Use it.
16980         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16981
16982 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16983
16984         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16985         DImode trapping arithmetic libfuncs.
16986
16987 2011-02-07  Richard Guenther  <rguenther@suse.de>
16988
16989         PR tree-optimization/47621
16990         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16991         two duplicates ...
16992         (execute_update_addresses_taken): ... here.  Make it more
16993         conservative in what we accept.
16994
16995 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16996
16997         * config/sparc/freebsd.h (ASM_SPEC): Define.
16998         * config/sparc/vxworks.h (ASM_SPEC): Define.
16999
17000 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
17001
17002         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17003
17004 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
17005
17006         * doc/invoke.texi: Remove reference to compiler internals from
17007         user documentation.
17008
17009         * reg-notes.def: Remove REG_VALUE_PROFILE.
17010         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
17011
17012 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
17013
17014         PR middle-end/47610
17015         * varasm.c (default_section_type_flags): If decl is NULL,
17016         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
17017
17018 2011-02-05  Jie Zhang  <jie@codesourcery.com>
17019
17020         PR debug/42631
17021         * web.c (entry_register): Don't clobber the number of the
17022         first uninitialized reference in used[].
17023
17024 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
17025
17026         PR tree-optimization/46194
17027         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17028         (build_classic_dist_vector_1): Do not represent classic distance
17029         vectors when the access functions are variating in different loops.
17030
17031 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17032
17033         * config/mips/iris6.opt: New.
17034         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17035
17036 2011-02-04  Richard Henderson  <rth@redhat.com>
17037             Steve Ellcey  <sje@cup.hp.com>
17038
17039         PR target/46997
17040         * config/ia64/predicates.md (mux1_brcst_element): New.
17041         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17042         * config/ia64/ia64.c (ia64_unpack_assemble): New.
17043         (ia64_unpack_sign): New.
17044         (ia64_expand_unpack): Rewrite using new routines.
17045         (ia64_expand_widen_sum): Ditto.
17046         (ia64_expand_dot_prod_v8qi): Ditto.
17047         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17048         routines, add endian check.
17049         (pmpy2_even): Rename from pmpy2_r, add endian check.
17050         (pmpy2_odd): Rename from pmpy2_l, add endian check.
17051         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17052         (vec_widen_smult_hi_v4hi): Ditto.
17053         (vec_widen_umult_lo_v4hi): Ditto.
17054         (vec_widen_umult_hi_v4hi): Ditto.
17055         (mulv2si3): Change endian checks.
17056         (sdot_prodv4hi): Rewrite with new calls.
17057         (udot_prodv4hi): New.
17058         (vec_pack_ssat_v4hi): Add endian check.
17059         (vec_pack_usat_v4hi): Ditto.
17060         (vec_pack_ssat_v2si): Ditto.
17061         (max1_even): Rename from max1_r, add endian check.
17062         (max1_odd): Rename from max1_l, add endian check.
17063         (*mux1_rev): Format change.
17064         (*mux1_mix): Ditto.
17065         (*mux1_shuf): Ditto.
17066         (*mux1_alt): Ditto.
17067         (*mux1_brcst_v8qi): Use new predicate.
17068         (vec_extract_evenv8qi): Remove endian check.
17069         (vec_extract_oddv8qi): Ditto.
17070         (vec_interleave_lowv4hi): Format change.
17071         (vec_interleave_highv4hi): Ditto.
17072         (mix2_even): Rename from mix2_r, add endian check.
17073         (mix2_odd): Rename from mux2_l, add endian check.
17074         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17075         (vec_extract_evenodd_helper): Format change.
17076         (vec_extract_evenv4hi): Remove endian check.
17077         (vec_extract_oddv4hi): Remove endian check.
17078         (vec_interleave_lowv2si): Format change.
17079         (vec_interleave_highv2si): Format change.
17080         (vec_initv2si): Remove endian check.
17081         (vecinit_v2si): Add endian check.
17082         (reduc_splus_v2sf): Add endian check.
17083         (reduc_smax_v2sf): Ditto.
17084         (reduc_smin_v2sf): Ditto.
17085         (vec_initv2sf): Remove endian check.
17086         (fpack): Add endian check.
17087         (fswap): Add endian check.
17088         (vec_interleave_highv2sf): Add endian check.
17089         (vec_interleave_lowv2sf): Add endian check.
17090         (fmix_lr): Add endian check.
17091         (vec_setv2sf): Format change.
17092         (*vec_extractv2sf_0_be): Use shift to extract operand.
17093         (*vec_extractv2sf_1_be): New.
17094         (vec_pack_trunc_v4hi): Add endian check.
17095         (vec_pack_trunc_v2si): Format change.
17096
17097 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
17098
17099         PR inline-asm/23200
17100         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
17101         do bb, locus and block comparison and disallow loads if it is not set.
17102         (stmt_is_replaceable_p): New function.
17103         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17104         callers.
17105         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17106         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17107         SSA_NAME_DEF_STMT.
17108         * tree-flow.h (stmt_is_replaceable_p): New prototype.
17109
17110 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17111
17112         * config/rs6000/xilinx.opt: New.
17113         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17114
17115 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17116
17117         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17118
17119 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
17120
17121         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17122         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17123         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17124         secondary_reload_info, xtensa_secondary_reload): Remove.
17125         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17126         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17127         (xtensa_preferred_reload_class): Make static. Change return and
17128         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17129         Use CONST_DOUBLE_P predicate.
17130         (xtensa_preferred_output_reload_class): New function.
17131         (xtensa_secondary_reload): Make static.
17132
17133 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
17134
17135         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17136         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17137         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17138
17139 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17140
17141         PR middle-end/31490
17142         * output.h (SECTION_RELRO): Define.
17143         (SECTION_MACH_DEP): Adjust.
17144         (get_variable_section): New prototype.
17145         * varpool.c (varpool_finalize_named_section_flags): New function.
17146         (varpool_assemble_pending_decls): Call it.
17147         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17148         * cgraphunit.c (cgraph_output_in_order): Call
17149         varpool_finalize_named_section_flags.
17150         * varasm.c (get_section): Allow section flags conflicts between
17151         relro and read-only sections if the section hasn't been declared yet.
17152         Set SECTION_OVERRIDE after diagnosing section type conflict.
17153         (get_variable_section): No longer static.
17154         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17155         readonly sections that need relocations.
17156         (decl_readonly_section_1): New function.
17157         (decl_readonly_section): Use it.
17158
17159         Revert:
17160         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
17161                     Steve Ellcey  <sje@cup.hp.com>
17162
17163         PR middle-end/31490
17164         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17165         if section attribute used.
17166
17167 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17168
17169         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17170         * config/darwin.c (SECTION_NO_ANCHOR): Define.
17171         (darwin_init_sections): Remove assertion.
17172
17173 2011-02-03  Nick Clifton  <nickc@redhat.com>
17174
17175         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17176         lt and ge.
17177         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
17178         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17179         instead of "n" and "pz".
17180         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17181         CC_FLAG_S.
17182
17183 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17184
17185         PR target/47312
17186         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17187         fma, expand FMA_EXPR as fma{,f,l} call.
17188
17189         PR lto/47274
17190         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17191         copy them into a unsigned char variable and pass address of it to
17192         lto_output_data_stream.
17193
17194         PR target/47564
17195         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17196         around backend_init_target and lang_dependent_init_target calls.
17197         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17198         (verify_cgraph_node): Don't call set_cfun here.  Use
17199         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17200         Set error_found for incorrectly represented calls to thunks.
17201
17202 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
17203
17204         PR debug/43092
17205         PR rtl-optimization/43494
17206         * rtl.h (for_each_inc_dec_fn): New type.
17207         (for_each_inc_dec): Declare.
17208         * rtlanal.c (struct for_each_inc_dec_ops): New type.
17209         (for_each_inc_dec_find_inc_dec): New fn.
17210         (for_each_inc_dec_find_mem): New fn.
17211         (for_each_inc_dec): New fn.
17212         * dse.c (struct insn_size): Remove.
17213         (replace_inc_dec, replace_inc_dec_mem): Remove.
17214         (emit_inc_dec_insn_before): New fn.
17215         (check_for_inc_dec): Use it, along with for_each_inc_dec.
17216         (canon_address): Pass mem modes to cselib_lookup.
17217         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
17218         (cselib_lookup_from_insn): Likewise.
17219         (cselib_subst_to_values): Likewise.
17220         * cselib.c (find_slot_memmode): New var.
17221         (cselib_find_slot): New fn.  Use it instead of
17222         htab_find_slot_with_hash everywhere.
17223         (entry_and_rtx_equal_p): Use find_slot_memmode.
17224         (autoinc_split): New fn.
17225         (rtx_equal_for_cselib_p): Rename and implement in terms of...
17226         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
17227         Deal with autoinc.  Special-case recursion into MEMs.
17228         (cselib_hash_rtx): Likewise.
17229         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
17230         address and MEM modes.
17231         (cselib_subst_to_values): Add memmode, pass it on.
17232         Deal with autoinc.
17233         (cselib_lookup): Add memmode argument, pass it on.
17234         (cselib_lookup_from_insn): Add memmode.
17235         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17236         (struct cselib_record_autoinc_data): New.
17237         (cselib_record_autoinc_cb): New fn.
17238         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
17239         mode to cselib_lookup.  Reset autoinced REGs here instead of...
17240         (cselib_process_insn): ... here.
17241         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17242         to cselib_lookup.
17243         (add_uses): Likewise, also to cselib_subst_to_values.
17244         (add_stores): Likewise.
17245         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
17246         cselib_subst_to_values.
17247         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
17248         * gcse.c (do_local_cprop): Adjusted.
17249         * postreload.c (reload_cse_simplify_set): Adjusted.
17250         (reload_cse_simplify_operands): Adjusted.
17251         * sel-sched-dump (debug_mem_addr_value): Pass mode.
17252
17253 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
17254
17255         PR tree-optimization/45122
17256         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17257         unsafe assumptions when there's more than one loop exit.
17258
17259 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
17260
17261         PR target/47272
17262         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17263         Document using vector double with the load/store builtins, and
17264         that the load/store builtins always use Altivec instructions.
17265
17266         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17267         to use altivec memory instructions, even on VSX.
17268         (vector_altivec_store_<mode>): Ditto.
17269
17270         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17271         function.
17272
17273         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17274         V2DF, V2DI support to load/store overloaded builtins.
17275
17276         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17277         altivec load/store builtins for V2DF/V2DI types.
17278
17279         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17280         set avoid indexed addresses on power6 if -maltivec.
17281         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17282         vector_altivec_load/vector_altivec_store builtins.
17283         (altivec_expand_st_builtin): Ditto.
17284         (altivec_expand_builtin): Add VSX memory builtins.
17285         (rs6000_init_builtins): Add V2DI types to internal types.
17286         (altivec_init_builtins): Add support for V2DF/V2DI altivec
17287         load/store builtins.
17288         (rs6000_address_for_altivec): Insure memory address is appropriate
17289         for Altivec.
17290
17291         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17292         vec_vsx_ld and vec_vsx_st.
17293         (vsx_store_<mode>): Ditto.
17294
17295         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17296         variables to hold long long types for VSX vector memory builtins.
17297         (RS6000_BTI_unsigned_long_long): Ditto.
17298         (long_long_integer_type_internal_node): Ditti.
17299         (long_long_unsigned_type_internal_node): Ditti.
17300
17301         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17302         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17303         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17304
17305         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17306         short cuts.
17307         (vec_vsx_st): Ditto.
17308
17309 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17310
17311         * config/pa/pa-hpux10.opt: New.
17312         * config/hpux11.opt (pthread): New Driver option.
17313         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17314         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17315
17316 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17317
17318         * config/ia64/vms.opt: New.
17319         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17320
17321 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
17322
17323         PR target/47580
17324         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17325         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17326         generator functions.
17327         (vsx_floatuns<VSi><mode>2): Ditto.
17328         (vsx_fix_trunc<mode><VSi>2): Ditto.
17329         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17330
17331 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17332
17333         * config/i386/djgpp.opt (posix): New Driver option.
17334
17335 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
17336
17337         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17338         Move to the unsupported targets list.
17339
17340 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
17341
17342         PR rtl-optimization/47525
17343         * df-scan.c: Update copyright years.
17344         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17345         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17346
17347 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17348
17349         * config/i386/sysv4.h (TARGET_VERSION): Remove.
17350         (SUBTARGET_RETURN_IN_MEMORY): Remove.
17351         (ASM_OUTPUT_ASCII): Remove.
17352         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17353
17354 2011-02-02  Jeff Law  <law@redhat.com>
17355
17356         PR middle-end/47543
17357         * reload.c (find_reloads_address): Handle reg+d address where both
17358         components are invalid by reloading the entire address.
17359
17360 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
17361             Richard Guenther  <rguenther@suse.de>
17362
17363         PR tree-optimization/40979
17364         PR bootstrap/47044
17365         * passes.c (init_optimization_passes): After LIM call copy_prop
17366         and DCE to clean up.
17367         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17368
17369 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
17370
17371         PR tree-optimization/47576
17372         PR tree-optimization/47555
17373         * doc/invoke.texi (scev-max-expr-complexity): Documented.
17374         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17375         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17376         * tree-scalar-evolution.c (follow_ssa_edge): Use
17377         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17378
17379 2011-02-02  Richard Guenther  <rguenther@suse.de>
17380
17381         PR tree-optimization/47566
17382         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17383
17384 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17385
17386         PR debug/47106
17387         PR debug/47402
17388         * tree-inline.c (declare_return_variable): Remove unused caller
17389         variable.
17390
17391         PR debug/47106
17392         PR debug/47402
17393         * tree-flow-inline.h (clear_is_used, is_used_p): New.
17394         * cfgexpand.c (account_used_vars_for_block): Use them.
17395         * tree-nrv.c (tree_nrv): Likewise.
17396         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17397         (dump_scope_block): Likewise.
17398         (remove_unused_locals): Likewise.
17399
17400         PR debug/47106
17401         PR debug/47402
17402         * tree-inline.c (declare_return_variable): Add result decl to
17403         local decls only once.
17404         * gimple-low.c (record_vars_into): Mark newly-created variables
17405         as referenced.
17406
17407 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17408
17409         PR debug/47498
17410         PR debug/47501
17411         PR debug/45136
17412         PR debug/45130
17413         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17414         debug insns.
17415         (no_real_insns_p, schedule_block, set_priorities): Drop special
17416         treatment of boundary debug insns.
17417         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17418         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17419         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17420         (BOUNDARY_DEBUG_INSN_P): Likewise.
17421         (SCHEDULE_DEBUG_INSN_P): Likewise.
17422         * sched-rgn.c (init_ready_list): Drop special treatment of
17423         boundary debug insns.
17424         * final.c (rest_of_clean_state): Clear notes' BB.
17425
17426 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17427
17428         * config/openbsd.opt (assert=): New Driver option.
17429
17430 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17431
17432         * config/i386/nto.opt: New.
17433         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17434
17435 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17436
17437         * config/i386/netware.opt: New.
17438         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17439
17440 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17441
17442         * config/interix.opt (posix): New Driver option.
17443
17444 2011-02-01  DJ Delorie  <dj@redhat.com>
17445
17446         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17447
17448         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17449         class for A0/A1.
17450
17451 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
17452
17453         PR tree-optimization/47561
17454         * toplev.c (process_options): Print the Graphite flags.  Add
17455         flag_loop_flatten to the list of options requiring Graphite.
17456
17457 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17458
17459         * config/i386/cygming.opt (posix): New Driver option.
17460
17461 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17462
17463         * config/arm/vxworks.opt: New.
17464         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17465
17466 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17467
17468         * config/alpha/elf.opt: New.
17469         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17470         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17471
17472 2011-02-01  Richard Guenther  <rguenther@suse.de>
17473
17474         PR tree-optimization/47559
17475         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17476         store-motion on references that can throw.
17477
17478 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
17479
17480         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17481         * tree-pass.h (TDF_CSELIB): New macro.
17482         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17483         cselib_lookup): Check for it rather than for TDF_DETAILS.
17484
17485 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
17486
17487         PR driver/47547
17488         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17489         is HOST_BIT_BUCKET.
17490
17491         * opts.c (finish_options): Don't add x_aux_base_name if it is
17492         HOST_BIT_BUCKET.
17493
17494 2011-02-01  Richard Guenther  <rguenther@suse.de>
17495
17496         PR tree-optimization/47555
17497         Revert
17498         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
17499
17500         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17501
17502 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
17503
17504         PR gcc/46692
17505         * config/lm32/t-lm32: Add multilib for all CPU options.
17506
17507 2011-02-01  Richard Guenther  <rguenther@suse.de>
17508
17509         PR tree-optimization/47541
17510         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17511         sure to have a field at offset zero.
17512
17513 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17514
17515         * config/arc/arc.opt (EB, EL): New Driver options.
17516
17517 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17518
17519         * config/alpha/osf5.opt: New.
17520         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17521
17522 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17523
17524         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17525
17526 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
17527
17528         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17529         -floop-interchange.
17530         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17531         is an alias of -floop-interchange and that it requires the
17532         Graphite infrastructure.
17533         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17534         flag_loop_interchange based on the value of flag_tree_loop_linear.
17535
17536 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
17537             Richard Guenther  <rguenther@suse.de>
17538
17539         PR tree-optimization/47538
17540         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17541         type instead of r1type, except for comparisons.  For right
17542         shifts and comparisons punt if there are mismatches in
17543         sizetype vs. non-sizetype types.
17544
17545 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17546
17547         * doc/sourcebuild.texi (Effective-Target Keywords): Document
17548         avx_runtime.
17549
17550 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17551
17552         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17553         version number.
17554         * configure: Regenerate.
17555
17556 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17557
17558         * configure.ac (gcc_cv_ld_static_option): Define.
17559         (gcc_cv_ld_dynamic_option): Define.
17560         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17561         instead.
17562         (HAVE_LD_STATIC_DYNAMIC): Update message.
17563         (LD_STATIC_OPTION): Define.
17564         (LD_DYNAMIC_OPTION): Define.
17565         * configure: Regenerate.
17566         * config.in: Regenerate.
17567         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17568         HAVE_LD_STATIC_DYNAMIC]: Use them.
17569
17570 2011-01-31  Nick Clifton  <nickc@redhat.com>
17571
17572         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17573         registers inside interrupt handlers if the handler is not a leaf
17574         function.
17575
17576 2011-01-31  Nick Clifton  <nickc@redhat.com>
17577
17578         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17579         reg_renumber returning an INVALID_REGNUM.
17580
17581 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17582
17583         PR libgcj/44341
17584         * doc/install.texi: Document host options discarded when cross
17585         configuring target libraries.
17586
17587 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17588
17589         Reverted:
17590         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17591         PR debug/45136
17592         PR debug/45130
17593         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17594         debug insns.
17595         (no_real_insns_p, schedule_block, set_priorities): Drop special
17596         treatment of boundary debug insns.
17597         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17598         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17599         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17600         (BOUNDARY_DEBUG_INSN_P): Likewise.
17601         (SCHEDULE_DEBUG_INSN_P): Likewise.
17602         * sched-rgn.c (init_ready_list): Drop special treatment of
17603         boundary debug insns.
17604         * final.c (rest_of_clean-state): Clear notes' BB.
17605
17606 2011-01-31  Alan Modra  <amodra@gmail.com>
17607
17608         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17609         toc relative expressions as we do in print_operand_address.
17610
17611 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
17612
17613         * doc/extend.texi: Follow spelling conventions.
17614         * doc/invoke.texi: Fix a typo.
17615
17616 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
17617
17618         * config/hpux11.opt: New.
17619         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17620         ia64*-*-hpux*): Use hpux11.opt.
17621
17622 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
17623
17624         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17625         to tmake_file.
17626
17627 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17628
17629         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17630         support sites.
17631
17632 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17633
17634         * doc/install.texi (Binaries): Remove outdated reference for
17635         Motorola 68HC11/68HC12 downloads.
17636
17637 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17638
17639         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17640         Drepper's paper.
17641
17642 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
17643
17644         PR bootstrap/47147
17645         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17646         used by NetBSD.
17647
17648 2011-01-28  Ahmad Sharif  <asharif@google.com>
17649
17650         * value-prof.c (check_counter): Corrected error message.
17651
17652 2011-01-29  Jie Zhang  <jie@codesourcery.com>
17653
17654         * config/arm/arm.c (arm_legitimize_reload_address): New.
17655         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17656         arm_legitimize_reload_address.
17657         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17658
17659 2011-01-28  Ian Lance Taylor  <iant@google.com>
17660
17661         * godump.c (go_define): Ignore macros whose definitions include
17662         two adjacent operands.
17663
17664 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
17665
17666         PR target/42894
17667         * varasm.c (force_const_mem): Store copy of x in desc->constant
17668         instead of x itself.
17669         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17670         itself into REG_EQUAL note.
17671
17672 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
17673
17674         * config/freebsd.opt (posix, rdynamic): New Driver options.
17675
17676 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17677
17678         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17679         -Bstatic/-Bdynamic.
17680         * configure: Regenerate.
17681
17682 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
17683
17684         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17685         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17686
17687 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
17688
17689         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17690         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17691         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17692         (s390_preferred_reload_class): Make static. Change return and
17693         'rclass' argument type to reg_class_t.
17694
17695 2011-01-27  Jan Hubicka  <jh@suse.cz>
17696
17697         PR middle-end/46949
17698         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17699         (process_function_and_variable_attributes): Check defined weakrefs.
17700
17701 2011-01-27  Martin Jambor  <mjambor@suse.cz>
17702
17703         PR tree-optimization/47228
17704         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17705         build_ref_for_offset.
17706
17707 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17708
17709         * config/spu/spu-elf.h (ASM_SPEC): Remove.
17710
17711 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
17712
17713         PR rtl-optimization/46856
17714         * postreload.c (reload_combine_recognize_const_pattern): Do not
17715         separate cc0 setter and user on cc0 targets.
17716
17717 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
17718
17719         PR c/43082
17720         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17721         passed a VOID_TYPE expression, immediately emit an error and
17722         return error_mark_node.
17723
17724 2011-01-26  Jeff Law  <law@redhat.com>
17725
17726         PR rtl-optimization/47464
17727         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17728         rather than may_trap_p as needed.
17729
17730 2011-01-26  DJ Delorie  <dj@redhat.com>
17731
17732         PR rtl-optimization/46878
17733         * combine.c (insn_a_feeds_b): Check for the implicit cc0
17734         setter/user dependency as well.
17735
17736 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
17737
17738         PR rtl-optimization/44469
17739         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17740         after removing trivially dead basic blocks.
17741
17742 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17743
17744         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17745         * config/frv/frv.h (LINK_SPEC): Likewise.
17746         * config/i386/netware.h (LINK_SPEC): Likewise.
17747         * config/m68k/linux.h (ASM_SPEC): Likewise.
17748         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17749         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17750         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17751         * config/sparc/linux.h (ASM_SPEC): Likewise.
17752         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17753         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17754
17755 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17756
17757         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17758         * config/frv/frv.h (ASM_SPEC): Likewise.
17759         * config/m68k/linux.h (ASM_SPEC): Likewise.
17760         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17761         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17762         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17763         * config/sparc/linux.h (ASM_SPEC): Likewise.
17764         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17765         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17766
17767 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17768
17769         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17770         * config/frv/frv.h (LINK_SPEC): Likewise.
17771         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17772
17773 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17774
17775         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17776         * config/frv/frv.h (ASM_SPEC): Likewise.
17777         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17778         * config/m68k/linux.h (ASM_SPEC): Likewise.
17779         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17780         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17781         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17782         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17783         * config/sparc/linux.h (ASM_SPEC): Likewise.
17784         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17785         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17786         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17787
17788 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
17789
17790         PR target/46997
17791         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17792         (*mux2): Ditto.
17793         (vec_extract_evenodd_help): Ditto.
17794         (vec_extract_evenv4hi): Ditto.
17795         (vec_extract_oddv4hi): Ditto.
17796         (vec_interleave_lowv2si): Ditto.
17797         (vec_interleave_highv2si): Ditto.
17798         (vec_extract_evenv2si): Ditto.
17799         (vec_extract_oddv2si: Ditto.
17800         (vec_pack_trunc_v2si): Ditto.
17801
17802 2011-01-22  Jan Hubicka  <jh@suse.cz>
17803
17804         PR target/47237
17805         * cgraph.h (cgraph_local_info): New field can_change_signature.
17806         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17807         signature can change.
17808         (ipcp_estimate_growth): Call sequence simplify only if calle signature
17809         can change.
17810         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17811         (cgraph_function_versioning): We can not change signature of functions
17812         that don't allow that.
17813         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17814         (lto_input_node): Likewise.
17815         * ipa-inline.c (compute_inline_parameters): Compute
17816         local.can_change_signature.
17817         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17818         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17819         functions that can not change signature.
17820         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17821         init_cumulative_args): Do not use local calling conventions
17822         for functions that can not change signature.
17823
17824 2011-01-22  Jan Hubicka  <jh@suse.cz>
17825
17826         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17827
17828 2011-01-26  Richard Guenther  <rguenther@suse.de>
17829
17830         PR tree-optimization/47190
17831         * cgraphunit.c (process_common_attributes): New function.
17832         (process_function_and_variable_attributes): Use it.
17833
17834 2011-01-26  Richard Guenther  <rguenther@suse.de>
17835
17836         PR lto/47423
17837         * cgraphbuild.c (record_eh_tables): Record reference to personality
17838         function.
17839
17840 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
17841
17842         PR debug/45454
17843         * sel-sched.c (moveup_expr): Don't let debug insns prevent
17844         non-debug insns from moving up.
17845
17846 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17847
17848         PR target/40125
17849         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17850         t-dlldir{,-x} fragment for build and add it to tmake_file.
17851         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17852         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17853         * config/i386/t-dlldir: New file.
17854         (SHLIB_DLLDIR): Define.
17855         * config/i386/t-dlldir-x: New file.
17856         (SHLIB_DLLDIR): Define.
17857         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17858         (SHLIB_INSTALL): Use it.
17859
17860 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
17861
17862         PR target/47246
17863         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17864         lower bound of the allowed Thumb-2 coprocessor load/store
17865         index range to -256. Add explaining comment.
17866
17867 2011-01-25  Ian Lance Taylor  <iant@google.com>
17868
17869         * godump.c (go_define): Improve lexing of macro expansion to only
17870         accept expressions which match Go spec.
17871
17872 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17873
17874         PR c++/43601
17875         * tree.c (handle_dll_attribute): Handle it.
17876         * doc/extend.texi (@item dllexport): Mention it.
17877         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17878
17879 2011-01-25  Ian Lance Taylor  <iant@google.com>
17880
17881         PR tree-optimization/26854
17882         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17883         (decl_jump_unsafe): Move higher in file, with no other change.
17884         (bind): Set has_jump_unsafe_decl if appropriate.
17885         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17886         (check_earlier_gotos): Likewise.
17887         (c_check_switch_jump_warnings): Likewise.
17888
17889 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
17890
17891         * doc/invoke.texi (Warning Options): Add missing hyphen.
17892         (-fprofile-dir): Minor grammatical fixes.
17893         (-fbranch-probabilities): Likewise.
17894
17895 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17896
17897         PR debug/45136
17898         PR debug/45130
17899         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17900         debug insns.
17901         (no_real_insns_p, schedule_block, set_priorities): Drop special
17902         treatment of boundary debug insns.
17903         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17904         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17905         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17906         (BOUNDARY_DEBUG_INSN_P): Likewise.
17907         (SCHEDULE_DEBUG_INSN_P): Likewise.
17908         * sched-rgn.c (init_ready_list): Drop special treatment of
17909         boundary debug insns.
17910         * final.c (rest_of_clean-state): Clear notes' BB.
17911
17912 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17913
17914         * Makefile.in (LAMBDA_H): Removed.
17915         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17916         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17917         lambda-trans.o, and tree-loop-linear.o.
17918         (lto-symtab.o): Remove dependence on LAMBDA_H.
17919         (tree-loop-linear.o): Remove rule.
17920         (lambda-mat.o): Same.
17921         (lambda-trans.o): Same.
17922         (lambda-code.o): Same.
17923         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17924         (tree-vect-slp.o): Same.
17925         * hwint.h (gcd): Moved here.
17926         (least_common_multiple): Same.
17927         * lambda-code.c: Removed.
17928         * lambda-mat.c: Removed.
17929         * lambda-trans.c: Removed.
17930         * lambda.h: Removed.
17931         * tree-loop-linear.c: Removed.
17932         * lto-symtab.c: Do not include lambda.h.
17933         * omega.c (gcd): Removed.
17934         * passes.c (init_optimization_passes): Remove pass_linear_transform.
17935         * tree-data-ref.c (print_lambda_vector): Moved here.
17936         (lambda_vector_copy): Same.
17937         (lambda_matrix_copy): Same.
17938         (lambda_matrix_id): Same.
17939         (lambda_vector_first_nz): Same.
17940         (lambda_matrix_row_add): Same.
17941         (lambda_matrix_row_exchange): Same.
17942         (lambda_vector_mult_const): Same.
17943         (lambda_vector_negate): Same.
17944         (lambda_matrix_row_negate): Same.
17945         (lambda_vector_equal): Same.
17946         (lambda_matrix_right_hermite): Same.
17947         * tree-data-ref.h: Do not include lambda.h.
17948         (lambda_vector): Moved here.
17949         (lambda_matrix): Same.
17950         (dependence_level): Same.
17951         (lambda_transform_legal_p): Removed declaration.
17952         (lambda_collect_parameters): Same.
17953         (lambda_compute_access_matrices): Same.
17954         (lambda_vector_gcd): Same.
17955         (lambda_vector_new): Same.
17956         (lambda_vector_clear): Same.
17957         (lambda_vector_lexico_pos): Same.
17958         (lambda_vector_zerop): Same.
17959         (lambda_matrix_new): Same.
17960         * tree-flow.h (least_common_multiple): Removed declaration.
17961         * tree-parloops.c (lambda_trans_matrix): Moved here.
17962         (LTM_MATRIX): Same.
17963         (LTM_ROWSIZE): Same.
17964         (LTM_COLSIZE): Same.
17965         (LTM_DENOMINATOR): Same.
17966         (lambda_trans_matrix_new): Same.
17967         (lambda_matrix_vector_mult): Same.
17968         (lambda_transform_legal_p): Same.
17969         * tree-pass.h (pass_linear_transform): Removed declaration.
17970         * tree-ssa-loop.c (tree_linear_transform): Removed.
17971         (gate_tree_linear_transform): Removed.
17972         (pass_linear_transform): Removed.
17973         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17974         flag_loop_interchange.
17975
17976 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17977
17978         PR tree-optimization/47265
17979         PR tree-optimization/47443
17980         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17981         if name still has some uses.
17982
17983 2011-01-25  Martin Jambor  <mjambor@suse.cz>
17984
17985         PR tree-optimization/47382
17986         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17987         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17988
17989 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
17990
17991         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17992         sjlj_except_unwind_info.
17993
17994 2011-01-25  Richard Guenther  <rguenther@suse.de>
17995
17996         PR tree-optimization/47426
17997         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17998         visible functions results escape.
17999
18000 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
18001
18002         PR target/45701
18003         * config/arm/arm.c (any_sibcall_uses_r3): New function.
18004         (arm_get_frame_offsets): Use it.
18005
18006 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18007             Jakub Jelinek  <jakub@redhat.com>
18008
18009         PR tree-optimization/47271
18010         * tree-if-conv.c (bb_postdominates_preds): New.
18011         (if_convertible_bb_p): Call bb_postdominates_preds.
18012         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
18013         (predicate_scalar_phi): Call bb_postdominates_preds.
18014
18015 2011-01-25  Nick Clifton  <nickc@redhat.com>
18016
18017         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
18018         * config/rx/rx.c (rx_function_value): Likewise.
18019         (rx_promote_function_mode): Likewise.
18020         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18021         in order to make it legitimate.
18022         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18023         make sure that the first operand is the same as the result register.
18024         (addsi3_unspec): Delete.
18025         (subdi3): Do not accept immediate operands.
18026         (subdi3_internal): Likewise.
18027
18028 2011-01-25  Jeff Law  <law@redhat.com>
18029
18030         PR rtl-optimization/37273
18031         * ira-costs.c (scan_one_insn): Detect constants living in memory and
18032         handle them like argument loads from stack slots.  Do not double
18033         count memory for memory constants and argument loads from stack slots.
18034
18035 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
18036
18037         PR tree-optimization/47427
18038         PR tree-optimization/47428
18039         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18040         coalesce if the new root var would be TREE_READONLY.
18041
18042 2011-01-25  Richard Guenther  <rguenther@suse.de>
18043
18044         PR middle-end/47414
18045         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18046         correct type for TBAA.
18047
18048 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18049
18050         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18051         (close_phi_written_to_memory): Call for_each_index with
18052         dr_indices_valid_in_loop.
18053
18054 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18055
18056         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18057         when it is initialized.
18058
18059 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18060
18061         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18062         call to graphite_find_data_references_in_stmt.
18063         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18064         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
18065         call to graphite_find_data_references_in_stmt.
18066         (analyze_drs_in_stmts): Same.
18067         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18068         in which the scalar analysis of indices is performed.
18069         (create_data_ref): Same.  Update call to dr_analyze_indices.
18070         (find_data_references_in_stmt): Update call to create_data_ref.
18071         (graphite_find_data_references_in_stmt): Same.
18072         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18073         declaration.
18074         (create_data_ref): Same.
18075         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18076         call to create_data_ref.
18077
18078 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18079
18080         * graphite-sese-to-poly.c (build_poly_scop): Move
18081         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18082
18083 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18084
18085         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18086         VAR_DECL, PARM_DECL, and RESULT_DECL.
18087
18088 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18089
18090         * graphite-dependences.c (reduction_dr_1): Allow several reductions
18091         in a reduction PBB.
18092         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18093         that have already been marked as PBB_IS_REDUCTION.
18094
18095 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18096
18097         * graphite-scop-detection.c (same_close_phi_node): New.
18098         (remove_duplicate_close_phi): New.
18099         (make_close_phi_nodes_unique): New.
18100         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18101
18102 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18103
18104         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18105         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18106         of both data references to be the same.
18107
18108 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18109
18110         * graphite-dependences.c (build_lexicographical_constraint): Remove
18111         the gdim parameter.
18112         (build_lexicographical_constraint): Adjust call to
18113         ppl_powerset_is_empty.
18114         (dependence_polyhedron): Same.
18115         (graphite_legal_transform_dr): Same.
18116         (graphite_carried_dependence_level_k): Same.
18117         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18118         parameter.
18119         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18120
18121 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18122
18123         * graphite-sese-to-poly.c
18124         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18125         (close_phi_written_to_memory): New.
18126         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18127         and unshare_expr.
18128
18129 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18130
18131         * doc/install.texi: Update the expected version number of PPL to 0.11.
18132         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18133         #if PPL_VERSION_MINOR < 11.
18134
18135 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18136
18137         * graphite-dependences.c: Include graphite-cloog-util.h.
18138         (new_poly_ddr): Inlined into dependence_polyhedron.
18139         (free_poly_ddr): Moved close by new_poly_ddr.
18140         (dependence_polyhedron_1): Renamed dependence_polyhedron.
18141         Early return NULL when ppl_powerset_is_empty returns true.
18142         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
18143         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
18144         (graphite_legal_transform_dr): Call new_poly_ddr.
18145         (graphite_carried_dependence_level_k): Same.
18146         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
18147         (dot_transformed_deps_stmt_1): Removed.
18148         (dot_deps_stmt_1): Call dot_deps_stmt_2.
18149         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
18150         (dot_deps_1): Call dot_deps_2.
18151         * Makefile.in (graphite-dependences.o): Add missing dependence on
18152         graphite-cloog-util.h.
18153
18154 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18155
18156         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18157         (build_lexicographical_constraint): Same.
18158         (dependence_polyhedron_1): Same.
18159         (graphite_legal_transform_dr): Same.
18160         (graphite_carried_dependence_level_k): Same.
18161         * graphite-ppl.c (ppl_powerset_is_empty): New.
18162         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18163         * tree-data-ref.c (dump_data_reference): Print the basic block index.
18164
18165 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18166
18167         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18168         the "a followed by b" relation and document it.
18169
18170 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18171
18172         * graphite-dependences.c (build_lexicographical_constraint): Stop the
18173         iteration when the bag of constraints is empty.
18174
18175 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18176
18177         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18178
18179 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18180
18181         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18182         nest and two loop depths as parameters.
18183         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18184         lst_perfect_nestify.
18185
18186 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18187
18188         * graphite-dependences.c (print_pddr): Call
18189         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18190
18191 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18192
18193         * graphite-ppl.c (debug_gmp_value): New.
18194         * graphite-ppl.h (debug_gmp_value): Declared.
18195
18196 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
18197
18198         * doc/install.texi: Document availability of cloog-0.16.
18199
18200 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
18201
18202         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18203         invalid postdominance info.
18204
18205 2011-01-24  Jan Hubicka  <jh@suse.cz>
18206
18207         PR c/21659
18208         * doc/extend.texi (weak pragma): Drop claim that it must
18209         appear before definition.
18210         * varasm.c (merge_weak, declare_weak): Only sanity check
18211         that DECL is not output at a time it is declared weak.
18212
18213 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
18214
18215         * machmode.def: Fixed comments.
18216
18217 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
18218
18219         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18220
18221 2011-01-24  Paul Koning  <ni1d@arrl.net>
18222
18223         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
18224         WORDS_BIG_ENDIAN.
18225
18226 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
18227
18228         PR target/46519
18229         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18230         (block_info): Add scanned and prev.
18231         (move_or_delete_vzeroupper_2): Return if the basic block
18232         has been scanned and the upper 128bit state is unchanged
18233         from the last scan.
18234         (move_or_delete_vzeroupper_1): Return true if the exit
18235         state is changed.
18236         (move_or_delete_vzeroupper): Visit basic blocks using the
18237         work-list based algorithm based on vt_find_locations in
18238         var-tracking.c.
18239
18240         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18241
18242 2011-01-24  Nick Clifton  <nickc@redhat.com>
18243
18244         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18245         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18246         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
18247         then define __v850e1__.
18248         * doc/invoke.texi: Document -mv850es.
18249
18250 2011-01-24  Richard Henderson  <rth@redhat.com>
18251
18252         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18253         compound unordered comparisons.
18254         * config/rx/rx.c (rx_split_fp_compare): Remove.
18255         * config/rx/rx-protos.h: Update.
18256         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18257         (cbranchsf4): Don't call rx_split_fp_compare.
18258         (*cbranchsf4): Use rx_split_cbranch.
18259         (*cmpsf): Don't accept "i" constraint.
18260         (*conditional_branch): Only valid after reload.
18261         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
18262
18263 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
18264
18265         PR target/47385
18266         * config/rs6000/altivec.md (vector constant splitters): Add
18267         support for creating vector single precision constants if -mvsx is
18268         used and we would create the constant using Altivec primitives.
18269
18270 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
18271             Richard Sandiford  <rdsandiford@googlemail.com>
18272
18273         PR rtl-optimization/47166
18274         * reload1.c (emit_reload_insns): Disable the spill_reg_store
18275         mechanism for PRE_MODIFY and POST_MODIFY.
18276         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18277         reloadreg.
18278
18279 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
18280
18281         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18282
18283 2011-01-22  Jan Hubicka  <jh@suse.cz>
18284
18285         PR lto/47333
18286         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18287
18288 2011-01-22  Jan Hubicka  <jh@suse.cz>
18289
18290         PR tree-optimization/43884
18291         PR lto/44334
18292         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18293         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18294
18295 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
18296
18297         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18298         * config/s390/s390.c (s390_register_move_cost,
18299         s390_memory_move_cost): New.
18300         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18301
18302 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18303
18304         PR middle-end/47401
18305         * except.c (sjlj_assign_call_site_values): Move setting the
18306         crtl->uses_eh_lsda flag to ...
18307         (sjlj_mark_call_sites): ... here.
18308         (sjlj_emit_function_enter): Support NULL dispatch label.
18309         (sjlj_build_landing_pads): In a function with no landing pads
18310         that still has must-not-throw regions, generate code to register
18311         a personality function with empty LSDA.
18312
18313 2011-01-21  Richard Henderson  <rth@redhat.com>
18314
18315         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18316
18317         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18318
18319         * compare-elim.c: New file.
18320         * Makefile.in (OBJS-common): Add it.
18321         (compare-elim.o): New.
18322         * common.opt (fcompare-elim): New.
18323         * opts.c (default_options_table): Add OPT_fcompare_elim.
18324         * tree-pass.h (pass_compare_elim_after_reload): New.
18325         * passes.c (init_optimization_passes): Add it.
18326         * recog.h: Protect against re-inclusion.
18327         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18328         * doc/invoke.texi (-fcompare-elim): Document it.
18329         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18330         * doc/tm.texi: Rebuild.
18331
18332 2011-01-22  Nick Clifton  <nickc@redhat.com>
18333
18334         * config/rx/rx.md (cstoresf4): Pass comparison operator to
18335         rx_split_fp_compare.
18336
18337 2011-01-22  Nick Clifton  <nickc@redhat.com>
18338
18339         * config/rx/rx.md (UNSPEC_CONST): New.
18340         (deallocate_and_return): Wrap the amount popped off the stack in
18341         an UNSPEC_CONST in order to stop it being rejected by
18342         -mmax-constant-size.
18343         (pop_and_return): Add a "(return)" rtx.
18344         (call): Drop the immediate operand.
18345         (call_internal): Likewise.
18346         (call_value): Likewise.
18347         (call_value_internal): Likewise.
18348         (sibcall_internal): Likewise.
18349         (sibcall_value_internal): Likewise.
18350         (sibcall): Likewise.  Generate an explicit call using
18351         sibcall_internal.
18352         (sibcall_value): Likewise.
18353         (mov<>): FAIL if a constant operand is not legitimate.
18354         (addsi3_unpsec): New pattern.
18355
18356         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18357         (ok_for_max_constant): New function.
18358         (gen_safe_add): New function.
18359         (rx_expand_prologue): Use gen_safe_add.
18360         (rx_expand_epilogue): Likewise.
18361         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
18362         UNSPEC CONSTs.
18363
18364 2011-01-21  Jeff Law  <law@redhat.com>
18365
18366         PR tree-optimization/47053
18367         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18368         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18369         statements are deleted.
18370         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
18371         is nonempty, then purge dead edges and cleanup the CFG.
18372
18373 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18374
18375         PR debug/47402
18376         Temporarily revert:
18377         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18378         PR debug/47106
18379         * tree-dfa.c (create_var_ann): Mark variable as used.
18380
18381 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18382
18383         PR middle-end/45566
18384         * except.c (convert_to_eh_region_ranges): Emit queued no-region
18385         notes from other section in hot/cold partitioning even if
18386         last_action is -3.  Increment call_site_base.
18387
18388         PR rtl-optimization/47366
18389         * fwprop.c (forward_propagate_into): Return bool.  If
18390         any changes are made, -fnon-call-exceptions is used and
18391         REG_EH_REGION note is present, call purge_dead_edges
18392         and return true if it purged anything.
18393         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18394         any EH edges were purged.
18395
18396 2011-01-21  Jeff Law  <law@redhat.com>
18397
18398         PR rtl-optimization/41619
18399         * caller-save.c (setup_save_areas): Break out code to determine
18400         which hard regs are live across calls by examining the reload chains
18401         so that it is always used.
18402         Eliminate code which checked REG_N_CALLS_CROSSED.
18403
18404 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18405
18406         PR tree-optimization/47355
18407         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18408         NOP has non-debug uses beyond PHIs in new_bb.
18409
18410 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18411
18412         PR debug/47106
18413         * cfgexpand.c (account_used_vars_for_block): Only account vars
18414         that are annotated as used.
18415         (estimated_stack_frame_size): Don't set TREE_USED.
18416         * tree-dfa.c (create_var_ann): Mark variable as used.
18417
18418 2011-01-21  Richard Guenther  <rguenther@suse.de>
18419
18420         PR middle-end/47395
18421         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18422
18423 2011-01-21  Richard Guenther  <rguenther@suse.de>
18424
18425         PR tree-optimization/47365
18426         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18427         (vn_reference_lookup_pieces): Adjust.
18428         (vn_reference_lookup): Likewise.
18429         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18430         (vn_reference_lookup_3): Only look through kills if in
18431         VN_WALKREWRITE mode.
18432         (vn_reference_lookup_pieces): Adjust.
18433         (vn_reference_lookup): Likewise.
18434         (visit_reference_op_load): Likewise.
18435         (visit_reference_op_store): Likewise.
18436         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18437         (compute_avail): Likewise.
18438         (eliminate): Likewise.
18439
18440 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18441
18442         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18443         DECL_IGNORED_P non-reg vars if they are used.
18444
18445         PR tree-optimization/47391
18446         * varpool.c (const_value_known_p): Return false if
18447         decl is volatile.
18448
18449 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
18450
18451         PR bootstrap/47215
18452         * config/i386/i386.c (ix86_local_alignment): Handle
18453         case for va_list_type_node is nil.
18454         (ix86_canonical_va_list_type): Likewise.
18455
18456 2011-01-21  Alan Modra  <amodra@gmail.com>
18457
18458         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18459         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18460
18461 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18462
18463         * config/arm/arm.md (define_attr type): Rename f_load
18464         and f_store to f_fpa_load and f_fpa_store. Update.
18465         (write_conflict): Deal with rename fallout.
18466         (*push_fp_multi): Likewise.
18467         * config/arm/fpa.md (f_load): Use f_fpa_load.
18468         (f_store): Use f_fpa_store.
18469         (*movsf_fpa): Likewise.
18470         (*movdf_fpa): Likewise.
18471         (*movxf_fpa): Likewise.
18472         (*thumb2_movsf_fpa): Likewise.
18473         (*thumb2_movdf_fpa): Likewise.
18474         (*thumb2_movxf_fpa): Likewise.
18475         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18476         f_loadd and f_stored.
18477         (*thumb2_movdi_vfp): Likewise.
18478         (*thumb2_movsf_vfp): Fix attribute to f_loads.
18479         (*thumb2_movsi_vfp): Likewise.
18480         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18481         Use f_loads instead of f_load.
18482         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18483
18484 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
18485
18486         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18487         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18488         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18489         (xtensa_mode_dependent_address_p): New function.
18490         (constantpool_address_p): Make static. Change return type to bool.
18491         Change argument type to const_rtx. Use CONST_INT_P predicate.
18492
18493 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
18494
18495         PR debug/46583
18496         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18497
18498 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18499
18500         PR debug/47283
18501         * cfgexpand.c (expand_debug_expr): Instead of generating
18502         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18503         etc. handling.
18504
18505 2011-01-20  Richard Guenther  <rguenther@suse.de>
18506
18507         PR middle-end/47370
18508         * tree-inline.c (remap_gimple_op_r): Recurse manually for
18509         the pointer operand of MEM_REFs.
18510
18511 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18512
18513         PR tree-optimization/46130
18514         * ipa-split.c (consider_split): If return_bb contains non-virtual
18515         PHIs other than for retval or if split_function would not adjust it,
18516         refuse to split.
18517
18518 2011-01-20  Richard Guenther  <rguenther@suse.de>
18519
18520         PR tree-optimization/47167
18521         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18522         Revert previous change, only avoid enumeral type changes.
18523
18524 2011-01-19  Mike Stump  <mikestump@comcast.net>
18525
18526         * doc/tm.texi.in (BRANCH_COST): Englishify.
18527         * doc/tm.texi (BRANCH_COST): Likewise.
18528
18529 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
18530
18531         PR c++/47291
18532         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18533         (gen_scheduled_generic_parms_dies): New functions.
18534         (gen_struct_or_union_type_die): Schedule template parameters DIEs
18535         generation for the end of CU compilation.
18536         (dwarf2out_finish): Generate template parameters DIEs here.
18537
18538 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18539
18540         PR debug/46240
18541         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18542         debug bind stmt on merge edges.
18543
18544 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18545
18546         PR debug/47079
18547         PR debug/46724
18548         * function.c (instantiate_expr): Instantiate incoming rtl of
18549         implicit arguments, and recurse on VALUE_EXPRs.
18550         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18551         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18552
18553 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18554
18555         * c-parser.c (c_parser_for_statement): Initialize
18556         collection_expression.
18557
18558 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18559
18560         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18561
18562 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18563
18564         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18565         (LINK_SHLIB_SPEC): Don't use %(link_path).
18566         (SUBTARGET_EXTRA_SPECS): Remove link_path.
18567
18568 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18569
18570         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18571         (NO_SHARED_LIB_SUPPORT): Remove.
18572         (LINK_SHLIB_SPEC): Remove one conditional definition.
18573
18574 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18575
18576         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18577         %{call_shared}.
18578         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18579         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18580         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18581         %{call_shared} and conditionals on these options not being passed.
18582         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18583         %{call_shared}.
18584
18585 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18586
18587         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18588         simplify.
18589
18590         * ipa-split.c: Spelling fixes.
18591
18592 2011-01-19  Richard Henderson  <rth@redhat.com>
18593
18594         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18595         (*mulsi3): Likewise.
18596
18597         * longlong.h [__mn10300__] (count_leading_zeros): New.
18598         [__mn10300__] (umul_ppmm, smul_ppmm): New.
18599         [__mn10300__] (add_ssaaaa, subddmmss): New.
18600         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18601         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18602
18603 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18604
18605         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18606
18607 2011-01-19  Richard Henderson  <rth@redhat.com>
18608
18609         * config/mn10300/mn10300.md (addsi3_flags): New.
18610         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18611         (subsi3_flags, subc_internal, subdi3): New.
18612         (subdi3_internal, *subdi3_degenerate): New.
18613         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18614
18615         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18616         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18617         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
18618         * config/mn10300/mn10300-protos.h: Update.
18619         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18620         (return_ret): Likewise.  Rename from return_internal_regs.
18621         (return_internal): Remove.
18622
18623         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18624         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18625         (mn10300_legitimate_constant_p): Likewise.
18626         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18627         (mn10300_frame_size): New.
18628         (mn10300_expand_prologue): Use it.
18629         (mn10300_expand_epilogue): Likewise.
18630         (mn10300_initial_offset): Likewise.
18631         * config/mn10300/mn10300-protos.h: Update.
18632         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18633         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18634         (prologue, epilogue, return_internal): Tidy output code.
18635         (mn10300_store_multiple_operation, return): Likewise.
18636         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18637         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18638         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18639         (load_pic, am33_load_pic): New.
18640         (mn10300_load_pic0, mn10300_load_pic1): New.
18641
18642         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18643         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18644         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18645         (cc_flags_for_mode, cc_flags_for_code): New.
18646         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18647         overflow flag is not valid.  Validate that the flags we need
18648         for the comparison are valid.
18649         (mn10300_output_cmp): Remove.
18650         (mn10300_output_add): New.
18651         (mn10300_select_cc_mode): Use cc_flags_for_code.
18652         (mn10300_split_cbranch): New.
18653         (mn10300_match_ccmode): New.
18654         (mn10300_split_and_operand_count): New.
18655         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18656         to the function.
18657         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18658         (addsi3): ... here.  Use mn10300_output_add.
18659         (*addsi3_flags): New.
18660         (*am33_subsi3, *mn10300_subsi3): Merge...
18661         (subsi3): ... here.  Use attribute isa.
18662         (*subsi3_flags): New.
18663         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
18664         when possible.
18665         (*am33_andsi3, *mn10300_andsi3): Merge...
18666         (andsi3): ... here.
18667         (*andsi3_flags): New.
18668         (andsi3 splitters): New.
18669         (*am33_iorsi3, *mn10300_iorsi3): Merge...
18670         (iorsi3): ... here.
18671         (*iorsi3_flags): New.
18672         (*am33_xorsi3, *mn10300_xorsi3): Merge...
18673         (xorsi3): ... here.
18674         (*xorsi3_flags): New.
18675         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18676         (one_cmplsi2): ... here.
18677         (*one_cmplsi2_flags): New.
18678         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
18679         instead of "dax" in constraints.  Use mn10300_split_cbranch.
18680         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
18681         use matching constraints to eliminate a self-comparison.
18682         (*integer_conditional_branch): Rename from integer_conditional_branch.
18683         Use int_mode_flags to match CC_REG.
18684         (*cbranchsi4_btst, *btstsi): New.
18685         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
18686         mn10300_split_cbranch.
18687         (*am33_cmpsf): Rename from am33_cmpsf.
18688         (*float_conditional_branch): Rename from float_conditional_branch.
18689         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18690         (zero_extendqisi2): ... here.
18691         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18692         (zero_extendhisi2): ... here.
18693         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18694         (extendqisi2): ... here.
18695         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18696         (extendhisi2): ... here.
18697         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18698         (ashlsi3): ... here.
18699         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18700         (lshrsi3): ... here.
18701         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18702         (ashrsi3): ... here.
18703         (consecutive add peephole): Remove.
18704         * config/mn10300/predicates.md (label_ref_operand): New.
18705         (int_mode_flags): New.
18706         (CCZN_comparison_operator): New.
18707
18708         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18709         (throughput_42_latency_43): New reservation.
18710         (mulsidi3, umulsidi3): New expanders.
18711         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
18712         the MDR register to allocation; separately allocate the low and
18713         high parts of the DImode result.
18714         (umulsidi3_internal): Similarly.
18715         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18716         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
18717         (udivsi3, umodsi3): Remove.
18718         (udivmodsi4, divmodsi4): New expanders.
18719         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
18720         (*divmodsi4): Simiarly.
18721         (ext_internal): New.
18722
18723         * config/mn10300/constraints.md ("z"): New constraint.
18724         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18725         (FIXED_REGISTERS): Don't fix MDR.
18726         (CALL_USED_REGSITERS): Reformat nicely.
18727         (REG_ALLOC_ORDER): Add MDR.
18728         (enum regclass): Add MDR_REGS.
18729         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18730         (IRA_COVER_CLASSES): Add MDR_REGS.
18731         (REGNO_REG_CLASS): Handle MDR_REG.
18732         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18733         (mn10300_register_move_cost): Likewise.
18734         * config/mn10300/mn10300.md (MDR_REG): New.
18735         (*movsi_internal): Handle moves to/from MDR_REGS.
18736
18737         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18738         POST_MODIFY.
18739         (mn10300_secondary_reload): Tidy combination reload classes.
18740         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18741         addresses for AM33.  Allow symbolic offsets for reg+imm.
18742         (mn10300_regno_in_class_p): New.
18743         (mn10300_legitimize_reload_address): New.
18744         * config/mn10300/mn10300.h (enum reg_class): Remove
18745         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18746         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
18747         SP_OR_GENERAL_REGS.
18748         (REG_CLASS_NAMES): Update to match.
18749         (REG_CLASS_CONTENTS): Likewise.
18750         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18751         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18752         (REGNO_IN_RANGE_P): Remove.
18753         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18754         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18755         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18756         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18757         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18758         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18759         (REGNO_GENERAL_P): New.
18760         (HAVE_POST_MODIFY_DISP): New.
18761         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18762         (LEGITIMIZE_RELOAD_ADDRESS): New.
18763         * config/mn10300/mn10300-protos.h: Update.
18764
18765         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18766         DATA_REGS for AM33 stack-pointer destination.
18767         (mn10300_preferred_output_reload_class): Likewise.
18768         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18769         into a form appropriate for ...
18770         (TARGET_SECONDARY_RELOAD): New.
18771         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18772         * config/mn10300/mn10300-protos.h: Update.
18773         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18774         reload_insi; use the "A" constraint for the scratch; handle AM33
18775         moves of sp to non-address registers.
18776
18777         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18778         (*movqi_internal): ... here.
18779         (*am33_movhi, *mn10300_movhi): Merge into...
18780         (*movhi_internal): ... here.
18781         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
18782         as the source/destination of moves from/to SP.
18783         (movsf): Only allow for AM33-2.
18784         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18785         any integer constant constraint.  Only allow for AM33-2.  Tidy
18786         all of the alternative outputs.
18787         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18788         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
18789         for MN103.
18790         (udivsi3, umodsi3): New patterns for MN103 only.
18791
18792 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
18793
18794         * doc/tm.texi.in: Spell out that a lack of register class unions
18795         can lead to ICEs.
18796         * doc/tm.texi: Regenerate.
18797
18798 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18799
18800         PR rtl-optimization/47337
18801         * dce.c (check_argument_store): New function.
18802         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
18803
18804         PR tree-optimization/47290
18805         * tree-eh.c (infinite_empty_loop_p): New function.
18806         (cleanup_empty_eh): Use it.
18807
18808 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
18809
18810         PR target/46997
18811         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18812         (a64_expand_widen_sum): Ditto.
18813         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18814         (vec_extract_evenodd_help): Ditto.
18815         (vec_extract_evenv4hi): Ditto.
18816         (vec_extract_oddv4hi): Ditto.
18817         (vec_extract_evenv2si): Ditto.
18818         (vec_extract_oddv2si): Ditto.
18819         (vec_extract_evenv2sf): Ditto.
18820         (vec_extract_oddv2sf): Ditto.
18821         (vec_pack_trunc_v4hi: Ditto.
18822         (vec_pack_trunc_v2si): Ditto.
18823         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18824         (vec_interleave_highv8qi): Ditto.
18825         (mix1_r): Ditto.
18826         (vec_extract_oddv8qi): Ditto.
18827         (vec_interleave_lowv4hi): Ditto.
18828         (vec_interleave_highv4hi): Ditto.
18829         (vec_interleave_lowv2si): Ditto.
18830         (vec_interleave_highv2si): Ditto.
18831
18832 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18833
18834         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18835         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18836         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
18837         (pa_c_mode_for_suffix): New.
18838         (TARGET_EXPAND_BUILTIN): Define.
18839         (TARGET_C_MODE_FOR_SUFFIX): Define.
18840         (pa_builtins): Define.
18841         (pa_init_builtins): Register __float128 type and init new support
18842         builtins.
18843         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18844         * config/pa/quadlib.c (_U_Qfcopysign): New.
18845
18846 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
18847
18848         PR middle-end/46894
18849         * explow.c (allocate_dynamic_stack_space): Do not assume more than
18850         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18851         are defined.
18852
18853 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18854
18855         PR tree-optimization/47179
18856         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18857         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18858
18859 2011-01-18  Richard Guenther  <rguenther@suse.de>
18860
18861         PR rtl-optimization/47216
18862         * emit-rtl.c: Include tree-flow.h.
18863         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18864         of replicating it with different semantics.
18865         * Makefile.in (emit-rtl.o): Adjust.
18866
18867 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18868
18869         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18870         (cortex_a9_dp): Handle neon types correctly.
18871
18872 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
18873
18874         PR rtl-optimization/47299
18875         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18876         subtarget.  Use normal multiplication if both operands are constants.
18877         * expmed.c (expand_widening_mult): Don't try to optimize constant
18878         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
18879         before using it.
18880
18881 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18882
18883         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
18884         spacing after 'e.g.', typos, comma, hyphenation.
18885
18886 2011-01-17  Richard Henderson  <rth@redhat.com>
18887
18888         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18889         (rx_restricted_mem_operand): New.
18890         (rx_shift_operand): Use register_operand.
18891         (rx_source_operand, rx_compare_operand): Likewise.
18892         * config/rx/rx.md (addsi3_flags): New expander.
18893         (adddi3): Rewrite as expander.
18894         (adc_internal, *adc_flags, adddi3_internal): New patterns.
18895         (subsi3_flags): New expander.
18896         (subdi3): Rewrite as expander.
18897         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18898
18899         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18900         (rx_init_builtins): Remove sat builtin.
18901         (rx_expand_builtin): Likewise.
18902         * config/rx/rx.md (ssaddsi3): New.
18903         (*sat): Rename from sat.  Represent the CC_REG input.
18904
18905         * config/rx/predicates.md (rshift_operator): New.
18906         * config/rx/rx.c (rx_expand_insv): Remove.
18907         * config/rx/rx-protos.h: Update.
18908         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
18909         operand to the canonical position.
18910         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18911         (*bitclr, *bitclr_in_memory): Similarly.
18912         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18913         (insv): Retain the zero_extract in the expansion.
18914
18915         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18916         (bswaphi2, bitinvert, revw): Likewise.
18917
18918         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18919         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18920         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18921         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18922         (bitset, bitset_in_memory): Likewise.
18923         (bitinvert, bitinvert_in_memory): Likewise.
18924         (bitclr, bitclr_in_memory): Likewise.
18925         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18926         (rx_strend, rx_cmpstrn): Likewise.
18927         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
18928         (bitop peep2 patterns): Remove.
18929
18930         * config/rx/rx.c (rx_match_ccmode): New.
18931         * config/rx/rx-protos.h: Update.
18932         * config/rx/rx.md (abssi2): Clobber, don't set flags.
18933         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18934         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18935         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18936         (fix_truncsfsi2, floatsisf2): Likewise.
18937         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18938         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18939         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18940         (*subsi3_flags, *xorsi3_flags): New.
18941
18942         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18943
18944         * config/rx/rx.c (rx_print_operand): Remove workaround for
18945         unsplit comparison operations.
18946
18947         * config/rx/rx.md (movsicc): Split after reload.
18948         (*movsicc): Merge *movsieq and *movsine via match_operator.
18949         (*stcc): New pattern.
18950
18951         * config/rx/rx.c (rx_float_compare_mode): Remove.
18952         * config/rx/rx.h (rx_float_compare_mode): Remove.
18953         * config/rx/rx.md (cstoresi4): Split after reload.
18954         (*sccc): New pattern.
18955
18956         * config/rx/predicates.md (label_ref_operand): New.
18957         (rx_z_comparison_operator): New.
18958         (rx_zs_comparison_operator): New.
18959         (rx_fp_comparison_operator): New.
18960         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18961         Validate that the flags are set properly for the comparison.
18962         (rx_gen_cond_branch_template): Remove.
18963         (rx_cc_modes_compatible): Remove.
18964         (mode_from_flags): New.
18965         (flags_from_code): Rename from flags_needed_for_conditional.
18966         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18967         (rx_select_cc_mode): Likewise.
18968         (rx_split_fp_compare): New.
18969         (rx_split_cbranch): New.
18970         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18971         (*cbranchsi4): Use match_operator and rx_split_cbranch.
18972         (*cbranchsf4): Similarly.
18973         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
18974         match_operator and rx_split_cbranch.
18975         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18976         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
18977         (*cmpsi): Rename from cmpsi.
18978         (*tstsi): Rename from tstsi.
18979         (*cmpsf): Rename from cmpsf; use CC_Fmode.
18980         (*conditional_branch): Rename from conditional_branch.
18981         (*reveresed_conditional_branch): Remove.
18982         (b<code>): Remove expander.
18983         * config/rx/rx-protos.h: Update.
18984
18985         * config/rx/rx.c (rx_compare_redundant): Remove.
18986         * config/rx/rx.md (cmpsi): Don't use it.
18987         * config/rx/rx-protos.h: Update.
18988
18989         * config/rx/rx-modes.def (CC_F): New mode.
18990         * config/rx/rx.c (rx_select_cc_mode): New.
18991         * config/rx/rx.h (SELECT_CC_MODE): Use it.
18992         * config/rx/rx-protos.h: Update.
18993
18994 2011-01-17  Richard Henderson  <rth@redhat.com>
18995
18996         * except.c (dump_eh_tree): Fix stray ; after for statement.
18997
18998 2011-01-17  Richard Guenther  <rguenther@suse.de>
18999
19000         PR tree-optimization/47313
19001         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
19002         handling before copying the body.  Properly deal with
19003         by-reference result in SSA form.
19004
19005 2011-01-17  Ian Lance Taylor  <iant@google.com>
19006
19007         PR target/47219
19008         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
19009         (struct_value_alias_set): Don't define.
19010         (sparc_option_override): Don't set sparc_sr_alias_set and
19011         struct_value_alias_set.
19012         (save_or_restore_regs): Use gen_frame_mem rather than calling
19013         set_mem_alias_set.
19014         (sparc_struct_value_rtx): Likewise.
19015
19016 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
19017
19018         PR target/47318
19019         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
19020         (_mm_maskstore_pd): Likewise.
19021         (_mm_maskload_ps): Likewise.
19022         (_mm_maskstore_ps): Likewise.
19023         (_mm256_maskload_pd): Change mask to __m256i.
19024         (_mm256_maskstore_pd): Likewise.
19025         (_mm256_maskload_ps): Likewise.
19026         (_mm256_maskstore_ps): Likewise.
19027
19028         * config/i386/i386-builtin-types.def: Updated.
19029         (ix86_expand_special_args_builtin): Likewise.
19030
19031         * config/i386/i386.c (bdesc_special_args): Update
19032         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19033         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19034         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19035         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19036
19037         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19038         Use <avxpermvecmode> on mask register.
19039         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19040
19041 2011-01-17  Olivier Hainque  <hainque@adacore.com>
19042             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
19043             Eric Botcazou  <ebotcazou@adacore.com>
19044
19045         PR target/46655
19046         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19047         if <= USHRT_MAX in 32-bit mode.
19048
19049 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19050
19051         * doc/install.texi (Configuration, Specific): Wrap long
19052         lines in examples.  Allow line wrapping in long options
19053         and URLs where beneficial for PDF output.
19054
19055 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
19056
19057         * config/mips/mips.c (mips_classify_symbol): Don't return
19058         SYMBOL_PC_RELATIVE for nonlocal labels.
19059
19060 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
19061
19062         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19063
19064 2011-01-15  Jan Hubicka  <jh@suse.cz>
19065
19066         PR tree-optimization/47276
19067         * ipa.c (function_and_variable_visibility): Do not try to mark alias
19068         declarations as needed.
19069
19070 2011-01-15  Martin Jambor  <mjambor@suse.cz>
19071
19072         * common.opt (fdevirtualize): New flag.
19073         * doc/invoke.texi (Option Summary): Document it.
19074         * opts.c (default_options_table): Add devirtualize flag.
19075         * ipa-prop.c (detect_type_change): Return immediately if
19076         devirtualize flag is not set.
19077         (detect_type_change_ssa): Likewise.
19078         (compute_known_type_jump_func): Likewise.
19079         (ipa_analyze_virtual_call_uses): Likewise.
19080
19081 2011-01-14  Martin Jambor  <mjambor@suse.cz>
19082
19083         PR tree-optimization/45934
19084         PR tree-optimization/46302
19085         * ipa-prop.c (type_change_info): New type.
19086         (stmt_may_be_vtbl_ptr_store): New function.
19087         (check_stmt_for_type_change): Likewise.
19088         (detect_type_change): Likewise.
19089         (detect_type_change_ssa): Likewise.
19090         (compute_complex_assign_jump_func): Check for dynamic type change.
19091         (compute_complex_ancestor_jump_func): Likewise.
19092         (compute_known_type_jump_func): Likewise.
19093         (compute_scalar_jump_functions): Likewise.
19094         (ipa_analyze_virtual_call_uses): Likewise.
19095         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19096
19097 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19098
19099         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19100         * config/i386/i386.opt (msse5): New Alias.
19101
19102 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19103
19104         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19105         * config/sparc/linux64.h (CC1_SPEC): Likewise.
19106         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19107         * config/sparc/sparc.h (CC1_SPEC): Likewise.
19108
19109 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19110
19111         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19112         -mcpu options.
19113         * config/sparc/linux64.h (CC1_SPEC): Likewise.
19114         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19115         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19116         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19117         Likewise.
19118         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19119
19120 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19121
19122         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
19123
19124 2011-01-14  Mike Stump  <mikestump@comcast.net>
19125
19126         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19127         * config/fr30/fr30.md: Likweise
19128         (movsi_push): Likewise.
19129         (movsi_pop): Likewise.
19130         (enter_func): Likewise.
19131         * config/moxie/moxie.md (movsi_push): Likewise.
19132         (movsi_pop): Likewise.
19133
19134 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19135
19136         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19137         %{no_archive} %{exact_version}.
19138         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19139         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19140         %{no_archive} %{exact_version}.
19141         * config/mips/openbsd.h (LINK_SPEC): Likewise.
19142         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19143         * config/mips/vxworks.h: Likewise.
19144
19145 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19146
19147         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19148
19149 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19150
19151         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19152         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19153
19154 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19155
19156         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19157         -nodefaultlib.
19158
19159 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19160
19161         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19162         for mcpu not cpu.
19163         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19164         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19165         not cpu.
19166         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19167         Don't handle -shlib.
19168
19169 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19170
19171         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19172         (CC1_SPEC): Don't handle -profile.
19173
19174 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19175
19176         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19177         * config/mips/mips.h (CC1_SPEC): Likewise.
19178
19179 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19180
19181         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19182         * config/mips/mips.h (CC1_SPEC): Likewise.
19183
19184 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19185
19186         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19187         * config/m32r/linux.h (LINK_SPEC): Likewise.
19188         * config/mips/linux.h (LINK_SPEC): Likewise.
19189         * config/mips/linux64.h (LINK_SPEC): Likewise.
19190         * config/sparc/linux.h (LINK_SPEC): Likewise.
19191         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19192         LINK_SPEC): Likewise.
19193         * config/xtensa/linux.h (LINK_SPEC): Likewise.
19194
19195 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19196
19197         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19198         %{version:-v}.
19199         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19200
19201 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19202
19203         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19204         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19205
19206 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19207
19208         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19209
19210 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19211
19212         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19213         supports -Bstatic/-Bdynamic.
19214         * configure: Regenerate.
19215
19216 2011-01-14  Jan Hubicka  <jh@suse.cz>
19217             Jack Howarth  <howarth@bromo.med.uc.edu>
19218
19219         PR target/46037
19220         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19221         when checking debug_info_level. Test write_symbols instead of
19222         debug_hooks->var_location when setting flag_var_tracking_uninit.
19223
19224 2011-01-14  Richard Guenther  <rguenther@suse.de>
19225
19226         PR tree-optimization/47179
19227         * target.def (ref_may_alias_errno): New target hook.
19228         * targhooks.h (default_ref_may_alias_errno): Declare.
19229         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19230         (default_ref_may_alias_errno): New function.
19231         * target.h (struct ao_ref_s): Declare.
19232         * tree-ssa-alias.c: Include target.h.
19233         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19234         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19235         (targhooks.o): Likewise.
19236         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19237         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19238
19239 2011-01-14  Richard Guenther  <rguenther@suse.de>
19240
19241         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
19242
19243 2011-01-14  Richard Guenther  <rguenther@suse.de>
19244
19245         PR tree-optimization/47280
19246         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19247         return CFG changes.
19248         (tree_ssa_forward_propagate_single_use_vars): Deal with
19249         CFG changes from associate_plusminus.
19250
19251 2011-01-14  Richard Guenther  <rguenther@suse.de>
19252
19253         PR middle-end/47281
19254         Revert
19255         2011-01-11  Richard Guenther  <rguenther@suse.de>
19256
19257         PR tree-optimization/46076
19258         * tree-ssa.c (useless_type_conversion_p): Conversions from
19259         unprototyped to empty argument list function types are useless.
19260
19261 2011-01-14  Richard Guenther  <rguenther@suse.de>
19262
19263         PR tree-optimization/47286
19264         * tree-ssa-structalias.c (new_var_info): Register variables are global.
19265
19266 2011-01-14  Martin Jambor  <mjambor@suse.cz>
19267
19268         PR middle-end/46823
19269         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19270
19271 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
19272
19273         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19274         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19275         * config/xtensa/xtensa.c (xtensa_libcall_value,
19276         xtensa_function_value_regno_p): New functions.
19277         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19278
19279 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
19280
19281         PR c++/47213
19282         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19283         PE specific hook.
19284         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19285         New function prototype.
19286         * config/i386/winnt.c (i386_pe_assemble_visibility):
19287         Warn only if attribute was specified by user.
19288
19289 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
19290
19291         PR target/47251
19292         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19293         floating point.
19294         (floatunsdidf2_fcfidu): Ditto.
19295
19296 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19297
19298         * config/s390/s390.c (print_operand_address): Replace 'error' with
19299         'output_operand_lossage'.
19300         (print_operand): Likewise.
19301
19302 2011-01-13  Jeff Law  <law@redhat.com>
19303
19304         PR rtl-optimization/39077
19305         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19306         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19307         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19308         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19309         * gcse.c (prune_insertions_deletions): New function.
19310         (compute_pre_data): Use it.
19311
19312 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
19313
19314         PR debug/PR46973
19315         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19316         static function.
19317         (prune_unused_types_mark): Use it.
19318
19319 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
19320
19321         PR rtl-optimization/45352
19322         * sel-sched.c: Update copyright years.
19323         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19324         in the advancing loop when we have issued issue_rate insns.
19325
19326 2011-01-12  Richard Henderson  <rth@redhat.com>
19327
19328         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19329         (TARGET_MD_ASM_CLOBBERS): New.
19330
19331         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19332         (TARGET_DELEGITIMIZE_ADDRESS): New.
19333
19334         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19335         (clzsi2, *bsch): New patterns.
19336
19337         * config/mn10300/mn10300.md (INT): New mode iterator.
19338         (*mov<INT>_clr): New pattern, and peep2 to generate it.
19339
19340         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19341         flag_split_wide_types.
19342
19343         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19344         (mn10300_trampoline_init): Rewrite without a template, an immediate
19345         load and a direct branch.
19346         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19347
19348 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
19349
19350         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19351         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19352         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19353         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19354
19355 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
19356
19357         PR debug/47209
19358         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19359         of type.
19360
19361 2011-01-12  Jan Hubicka  <jh@suse.cz>
19362
19363         PR driver/47244
19364         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19365         (PLUGIN_COND_CLOSE): New macro.
19366         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19367
19368 2011-01-12  Richard Guenther  <rguenther@suse.de>
19369
19370         PR lto/47259
19371         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19372         register variables in a MEM_REF.
19373
19374 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
19375
19376         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19377         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19378         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19379         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19380         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19381         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19382         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19383         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19384         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19385         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19386         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19387         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19388         * config/gnu-user.h: New.  Copied from linux.h.
19389         (LINUX_TARGET_STARTFILE_SPEC): Rename to
19390         GNU_USER_TARGET_STARTFILE_SPEC.
19391         (LINUX_TARGET_ENDFILE_SPEC): Rename to
19392         GNU_USER_TARGET_ENDFILE_SPEC.
19393         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19394         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19395         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19396         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19397         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19398         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19399         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19400         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19401         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19402         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19403         * config/arm/linux-eabi.h (CC1_SPEC): Use
19404         GNU_USER_TARGET_CC1_SPEC.
19405         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19406         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19407         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19408         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19409         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19410         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19411         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19412         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19413
19414 2011-01-12  Richard Guenther  <rguenther@suse.de>
19415
19416         PR other/46946
19417         * doc/invoke.texi (ffast-math): Document it is turned on
19418         with -Ofast.
19419
19420 2011-01-12  Jan Hubicka  <jh@suse.cz>
19421
19422         PR tree-optimization/47233
19423         * opts.c (common_handle_option): Disable ipa-reference with profile
19424         feedback.
19425
19426 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19427
19428         * c-parser.c (c_parser_objc_at_property_declaration): Improved
19429         error message.
19430
19431 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19432
19433         * c-parser.c (c_lex_one_token): Updated and reindented some
19434         comments.  No changes in code.
19435
19436 2011-01-11  Ian Lance Taylor  <iant@google.com>
19437
19438         * godump.c (go_output_var): Don't output the variable if there is
19439         already a type with the same name.
19440
19441 2011-01-11  Ian Lance Taylor  <iant@google.com>
19442
19443         * godump.c (go_format_type): Don't generate float80.
19444
19445 2011-01-11  Richard Henderson  <rth@redhat.com>
19446
19447         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19448         declaration.  Rewrite for both speed and size.
19449         (mn10300_address_cost_1): Remove.
19450         (mn10300_register_move_cost): New.
19451         (mn10300_memory_move_cost): New.
19452         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
19453         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
19454         extensions, shifts, BSWAP, CLZ.
19455         (mn10300_wide_const_load_uses_clr): Remove.
19456         (TARGET_REGISTER_MOVE_COST): New.
19457         (TARGET_MEMORY_MOVE_COST): New.
19458         * config/mn10300/mn10300-protos.h: Update.
19459         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19460
19461         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19462         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19463         * config/mn10300/mn10300-protos.h: Update.
19464         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19465         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19466         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19467         (*test_int_bitfield, *test_byte_bitfield): Remove.
19468         (*bit_test, *subreg_bit_test): Remove.
19469         * config/mn10300/predicates.md (const_8bit_operand): Remove.
19470
19471         * config/mn10300/constraints.md ("c"): Rename from "A".
19472         ("A", "D"): New constraint letters.
19473         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19474         (fmssf4, fnmasf4, fnmssf4): Likewise.
19475
19476         * config/mn10300/mn10300.md (isa): New attribute.
19477         (enabled): New attribute.
19478
19479         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19480         (abssf2, negsf2): Define only for hardware fp.
19481         (sqrtsf2): Reformat.
19482         (addsf3, subsf3, mulsf3): Merge expander and insn.
19483
19484         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19485         (DEBUGGER_AUTO_OFFSET): Remove.
19486         (DEBUGGER_ARG_OFFSET): Remove.
19487
19488         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19489         Emit register stores with the same offsets as the hardware.
19490         (mn10300_store_multiple_operation): Don't check that the register
19491         save offsets are monotonic.
19492         * config/mn10300/mn10300-protos.h: Update.
19493
19494         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19495
19496         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19497         in terms of the value on the stack, not the MDR register.
19498
19499 2011-01-11  Jan Hubicka  <jh@suse.cz>
19500
19501         PR lto/45721
19502         PR lto/45375
19503         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19504         (symbol_alias_set_destroy, symbol_alias_set_contains,
19505         propagate_aliases_backward): Declare.
19506         * lto-streamer-out.c (struct sets): New sturcture.
19507         (trivally_defined_alias): New function.
19508         (output_alias_pair_p): Rewrite.
19509         (output_unreferenced_globals): Fix output of alias pairs.
19510         (produce_symtab): Likewise.
19511         * ipa.c (function_and_variable_visibility): Set weak alias destination
19512         as needed in lto.
19513         * varasm.c (symbol_alias_set_t): Remove.
19514         (symbol_alias_set_destroy): Export.
19515         (propagate_aliases_forward, propagate_aliases_backward): New functions
19516         based on ...
19517         (compute_visible_aliases): ... this one; remove.
19518         (trivially_visible_alias): New
19519         (trivially_defined_alias): New.
19520         (remove_unreachable_alias_pairs): Rewrite.
19521         (finish_aliases_1): Reorganize code checking if alias is defined.
19522         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19523         in LTO mode.
19524
19525 2011-01-11  Richard Guenther  <rguenther@suse.de>
19526
19527         PR tree-optimization/46076
19528         * tree-ssa.c (useless_type_conversion_p): Conversions from
19529         unprototyped to empty argument list function types are useless.
19530
19531 2011-01-11  Richard Guenther  <rguenther@suse.de>
19532
19533         PR middle-end/45235
19534         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19535         volatile MEMs as MEM_READONLY_P.
19536
19537 2011-01-11  Richard Guenther  <rguenther@suse.de>
19538
19539         PR tree-optimization/47239
19540         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19541
19542 2011-01-11  Jeff Law  <law@redhat.com>
19543
19544         PR tree-optimization/47086
19545         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19546         IVs from statements that might throw.
19547
19548 2011-01-10  Jan Hubicka  <jh@suse.cz>
19549
19550         PR lto/45375
19551         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19552
19553 2011-01-10  Jan Hubicka  <jh@suse.cz>
19554
19555         PR lto/45375
19556         * profile.c (read_profile_edge_counts): Ignore profile inconistency
19557         when correcting profile.
19558
19559 2011-01-10  Jan Hubicka  <jh@suse.cz>
19560
19561         PR lto/46083
19562         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19563         DECL_FINI_PRIORITY.
19564         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19565         Restore DECL_FINI_PRIORITY.
19566
19567 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19568
19569         * doc/gimple.texi: Fix quoting of multi-word return values in
19570         @deftypefn statements.  Ensure presence of return value.  Wrap
19571         overlong @deftypefn lines.
19572         (is_gimple_operand, is_gimple_min_invariant_address): Remove
19573         descriptions of removed functions.
19574         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19575         of multi-word return value in @deftypefn statement.
19576
19577 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19578
19579         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19580         (Conditional Expressions, Logical Operators)
19581         (Statement and operand traversals): Do not indent smallexample
19582         code.  Fix duplicate function argument in example.
19583
19584 2011-01-10  Jeff Law  <law@redhat.com>
19585
19586         PR tree-optimization/47141
19587         * ipa-split.c (split_function): Handle case where we are
19588         returning a value and the return block has a virtual operand phi.
19589
19590 2011-01-10  Jan Hubicka  <jh@suse.cz>
19591
19592         PR tree-optimization/47234
19593         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19594         (pass_feedback_split_functions): Declare.
19595         * passes.c (init_optimization_passes): Add ipa-split as subpass of
19596         tree-profile.
19597         * ipa-split.c (gate_split_functions): Update comments; disable
19598         split-functions for profile_arc_flag and branch_probabilities.
19599         (gate_feedback_split_functions): New function.
19600         (execute_feedback_split_functions): New function.
19601         (pass_feedback_split_functions): New global var.
19602
19603 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
19604
19605         PR lto/46760
19606         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19607         calling gimple_call_set_cannot_inline.
19608
19609 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
19610
19611         * config/darwin-sections.def: Remove unused section.
19612
19613 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
19614
19615         PR c++/47218
19616         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19617
19618 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
19619
19620         PR objc/47232
19621         * c-parser.c (c_parser_declaration_or_fndef): Improved
19622         error message.
19623
19624 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
19625
19626         * config/i386/winnt.c (i386_pe_start_function): Make sure
19627         to switch back to function's section.
19628
19629 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
19630
19631         PR gcc/46902
19632         PR testsuite/46912
19633         * plugin.c: Move include of dlfcn.h from here...
19634         * system.h: ... to here.
19635
19636 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19637
19638         * doc/cpp.texi (C++ Named Operators): Fix markup for header
19639         file name.
19640         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19641         two extra empty pages in PDF output.
19642
19643 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
19644
19645         PR objc/47078
19646         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19647         for error recovery purposes behave as if it was not specified so
19648         that the default type is usd.
19649
19650 2011-01-07  Jan Hubicka  <jh@suse.cz>
19651
19652         PR tree-optmization/46469
19653         * ipa.c (function_and_variable_visibility): Clear needed flags on
19654         nodes with external decls; handle weakrefs merging correctly.
19655
19656 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
19657
19658         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19659         not false.
19660
19661 2011-01-07  Jan Hubicka  <jh@suse.cz>
19662
19663         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19664         and no longer claim that gold is required for linker plugin.
19665         * configure: Regenerate.
19666         * gcc.c (PLUGIN_COND): New macro.
19667         (LINK_COMMAND_SPEC): Use it.
19668         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19669         * config.in (HAVE_LTO_PLUGIN): New.
19670         * configure.ac (--with-lto-plugin): New parameter; autodetect
19671         HAVE_LTO_PLUGIN.
19672
19673 2011-01-07  Jan Hubicka  <jh@suse.cz>
19674
19675         PR tree-optimization/46367
19676         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19677         when we can update original.
19678         (cgraph_mark_inline_edge): Sanity check.
19679         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19680
19681 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19682
19683         * config/spu/spu.h (ASM_COMMENT_START): Define.
19684
19685 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19686
19687         PR driver/42445
19688         * gcc.c (%>S): New.
19689         (SWITCH_KEEP_FOR_GCC): Likewise.
19690         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19691         (do_spec_1): Handle "%>".
19692
19693         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19694
19695 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
19696
19697         PR target/47201
19698         * config/i386/i386.c (ix86_delegitimize_address): If
19699         simplify_gen_subreg fails, return orig_x.
19700
19701         PR bootstrap/47187
19702         * value-prof.c (gimple_stringop_fixed_value): Handle
19703         lhs of the call properly.
19704
19705 2011-01-07  Jan Hubicka  <jh@suse.cz>
19706
19707         PR lto/45375
19708         * lto-opt.c (lto_reissue_options): Set flag_shlib.
19709
19710 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19711
19712         * target.def (function_switched_text_sections): New hook.
19713         * doc/tm.texi: Regenerated.
19714         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19715         * final.c (default_function_switched_text_sections): New.
19716         (final_scan_insn): Call function_switched_text_sections when a
19717         mid-function section change occurs.
19718         * output.h (default_function_switched_text_sections): Declare.
19719         * config/darwin-protos.h (darwin_function_switched_text_sections):
19720         Likewise.
19721         * config/darwin.c (darwin_function_switched_text_sections): New.
19722         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19723
19724 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19725
19726         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
19727         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
19728         the secondary code fragment when outputting for DWARF == 2.
19729
19730 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
19731
19732         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19733         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19734         Remove.
19735         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19736         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19737
19738 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
19739
19740         PR debug/46704
19741         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19742         when it is not empty.
19743
19744 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
19745
19746         Bobcat Enablement
19747         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19748         (case ${target}): Add btver1.
19749         * config/i386/driver-i386.c (host_detect_local_cpu): Let
19750         -march=native recognize btver1 processors.
19751         * config/i386/i386-c.c (ix86_target_macros_internal): Add
19752         btver1 def_and_undef
19753         * config/i386/i386.c (struct processor_costs btver1_cost): New
19754         btver1 cost table.
19755         (m_BTVER1): New definition.
19756         (m_AMD_MULTIPLE): Includes m_BTVER1.
19757         (initial_ix86_tune_features): Add btver1 tune.
19758         (processor_target_table): Add btver1 entry.
19759         (static const char *const cpu_names): Add btver1 entry.
19760         (software_prefetching_beneficial_p): Add btver1.
19761         (ix86_option_override_internal): Add btver1 instruction sets.
19762         (ix86_issue_rate): Add btver1.
19763         (ix86_adjust_cost): Add btver1.
19764         * config/i386/i386.h (TARGET_BTVER1): New definition.
19765         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19766         (enum processor_type): Add PROCESSOR_BTVER1.
19767         * config/i386/i386.md (define_attr "cpu"): Add btver1.
19768
19769 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19770
19771         PR target/43309
19772         * config/i386/i386.c (legitimize_tls_address)
19773         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19774         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19775         (tls_initial_exec_64_sun): New pattern.
19776
19777 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
19778
19779         * doc/invoke.texi (Overall Options): Improve wording and markup
19780         of the description of -wrapper.
19781
19782 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19783
19784         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19785         rdynamic, threads): New Driver options.
19786
19787 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19788
19789         PR target/38118
19790         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19791         if coming from .tdata.
19792         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19793
19794 2011-01-06  Jan Hubicka  <jh@suse.cz>
19795
19796         PR lto/47188
19797         * collect2.c (main): Do not enable LTOmode when plugin is active.
19798
19799 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19800
19801         PR other/45915
19802         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19803         --version output if supported.
19804         * configure: Regenerate.
19805
19806 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19807
19808         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19809         Driver options.
19810
19811 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
19812
19813         PR c/47150
19814         * c-convert.c (convert): When converting a complex expression
19815         other than COMPLEX_EXPR to a different complex type, ensure
19816         c_save_expr is called instead of save_expr, unless in_late_binary_op.
19817         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19818         when converting COMPLEX_TYPE.
19819
19820 2011-01-06  Ira Rosen  <irar@il.ibm.com>
19821
19822         PR tree-optimization/47139
19823         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19824         only the last reduction value is used outside the loop.  Update
19825         documentation.
19826
19827 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
19828
19829         * config/rtems.opt: New.
19830         * config.gcc (*-*-rtems*): Use rtems.opt.
19831
19832 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
19833
19834         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19835         processors do not support 3DNow instructions.
19836
19837 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19838
19839         * config/spu/spu.c (spu_option_override): Set parameter
19840         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19841
19842 2011-01-05  Jan Hubicka  <jh@suse.cz>
19843
19844         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19845         at the command line.
19846
19847 2011-01-05  Martin Jambor  <mjambor@suse.cz>
19848
19849         PR lto/47162
19850         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19851         deltas on streamed outgoing edges.
19852         (output_node_opt_summary): Output info for outgoing edges only when
19853         the node is in new parameter set.
19854         (output_cgraph_opt_summary): New parameter set, passed to the two
19855         aforementioned functions.  Update its forward declaration and its
19856         callee too.
19857
19858 2011-01-05  Tom Tromey  <tromey@redhat.com>
19859
19860         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19861         operator to c_finish_omp_atomic.
19862         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19863         (build_unary_op): Update.
19864         (build_modify_expr): Update.
19865         (build_asm_expr): Update.
19866
19867 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19868
19869         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19870         newly inserted insns.
19871         (pad_bb): Likewise.
19872         (spu_emit_branch_hint): Likewise.
19873         (insert_hbrp_for_ilb_runout): Likewise.
19874         (spu_machine_dependent_reorg): Call df_finish_pass after
19875         schedule_insns returns.
19876
19877 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19878
19879         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19880
19881 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
19882
19883         PR tree-optimization/47005
19884         * tree-sra.c (struct access): Add 'non_addressable' bit.
19885         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19886         (decide_one_param_reduction): Return 0 if the parameter is passed by
19887         reference and one of the accesses in the group is non_addressable.
19888
19889 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19890
19891         PR tree-optimization/47056
19892         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19893         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
19894         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
19895
19896 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19897
19898         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19899         initializer.  Skip view conversions from aggregate types.
19900
19901 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
19902
19903         PR bootstrap/47055
19904         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19905
19906 2011-01-04  Philipp Thomas  <pth@suse.de>
19907
19908         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19909         obvious typo.
19910
19911 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19912
19913         * function.c (thread_prologue_and_epilogue_insns): Do not crash
19914         on empty epilogue sequences.
19915
19916 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
19917
19918         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19919         non-static): New Driver options.
19920
19921 2011-01-04  Jie Zhang  <jie@codesourcery.com>
19922
19923         PR driver/47137
19924         * gcc.c (default_compilers[]): Set combinable field to 0
19925         for all assembly languages.
19926
19927 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
19928
19929         * config/mips/loongson3a.md: New file.
19930         * config/mips/mips.md: Include loongson3a.md.
19931         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19932         TUNE_LOONGSON_3A.
19933
19934 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
19935
19936         PR middle-end/47017
19937         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19938         instead of convert_memory_address_addr_space on the base expression.
19939
19940 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19941
19942         * config/spu/spu.c (spu_option_override): Update error text
19943         for bad -march= / -mtune= values.
19944
19945 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19946
19947         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19948         if branch-hint optimization will be performed.
19949
19950 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19951
19952         PR tree-optimization/47148
19953         * ipa-split.c (split_function): Convert arguments to
19954         DECL_ARG_TYPE if possible.
19955
19956         PR tree-optimization/47155
19957         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19958         when computing uns.
19959
19960         PR rtl-optimization/47157
19961         * combine.c (try_combine): If undobuf.other_insn becomes
19962         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19963         and set *new_direct_jump_p too.
19964
19965 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
19966
19967         PR tree-optimization/47021
19968         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19969
19970 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19971
19972         * gcc.c (process_command): Update copyright notice dates.
19973         * gcov.c (print_version): Likewise.
19974         * gcov-dump.c (print_version): Likewise.
19975         * mips-tfile.c (main): Likewise.
19976         * mips-tdump.c (main): Likewise.
19977
19978 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19979
19980         PR tree-optimization/46801
19981         * tree-sra.c (type_internals_preclude_sra_p): Check whether
19982         aggregate fields start at byte boundary instead of the bit-field flag.
19983
19984 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19985
19986         PR driver/47137
19987         * gcc.c (main): Revert revision 168407.
19988
19989 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19990
19991         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19992
19993 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19994
19995         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19996         vector optab to expand vector/scalar shift, update gimple to vector.
19997
19998 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19999
20000         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
20001         a thunk.
20002
20003 2011-01-03  Martin Jambor  <mjambor@suse.cz>
20004
20005         PR tree-optimization/46984
20006         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
20007         HOST_WIDE_INT.
20008         (cgraph_create_indirect_edge): Fixed line length.
20009         (cgraph_indirect_call_info): Declare.
20010         (cgraph_make_edge_direct) Update declaration.
20011         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
20012         (cgraph_create_indirect_edge): Use it.
20013         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
20014         callees.
20015         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
20016         the new thunk_delta representation.
20017         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20018         HOST_WIDE_INT.
20019         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20020         (ipa_read_indirect_edge_info): Likewise.
20021         * lto-cgraph.c (output_edge_opt_summary): New function.
20022         (output_node_opt_summary): Call it on all outgoing edges.
20023         (input_edge_opt_summary): New function.
20024         (input_node_opt_summary): Call it on all outgoing edges.
20025
20026 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
20027
20028         PR driver/47137
20029         * gcc.c (main): Don't check have_o when settting combine_inputs.
20030
20031 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
20032
20033         * regrename.c: Add general comment describing the pass.
20034         (struct du_head): Remove 'length' field.
20035         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20036         (regrename_optimize): Do not sort chains.  Rework comments, add others.
20037         Force renaming to the preferred class (if any) in the first pass and do
20038         not consider registers that belong to it in the second pass.
20039         (create_new_chain): Do not set 'length' field.
20040         (scan_rtx_reg): Likewise.
20041
20042 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
20043
20044         PR tree-optimization/47140
20045         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20046         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20047         to bit_value_binop.
20048
20049         PR rtl-optimization/47028
20050         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20051         parm_birth_insn instead of at the beginning of first bb.
20052
20053 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
20054
20055         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20056         Remove the word "see" before "@pxref".
20057         * doc/rtl.texi: Remove the word "see" before "@pxref".
20058
20059 2011-01-01  Jan Hubicka  <jh@suse.cz>
20060
20061         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20062         memory.
20063
20064 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
20065
20066         PR target/38662
20067         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20068
20069 \f
20070 Copyright (C) 2011 Free Software Foundation, Inc.
20071
20072 Copying and distribution of this file, with or without modification,
20073 are permitted in any medium without royalty provided the copyright
20074 notice and this notice are preserved.