OSDN Git Service

2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
2
3         * config.gcc (score-*-elf): Remove score7.o.
4         * config/score/t-score-elf: Likewise.
5         * config/score/score.c: Merge score7 to score.c and
6         remove forwarding functions.
7         * config/score/score7.c: Deleted.
8         * config/score/score7.h: Deleted.
9
10 2011-07-01  Richard Guenther  <rguenther@suse.de>
11
12         PR tree-optimization/49603
13         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
14         assert.
15
16 2011-06-30  Martin Jambor  <mjambor@suse.cz>
17
18         * tree-sra.c (struct access): Rename total_scalarization to
19         grp_total_scalarization
20         (completely_scalarize_var): New function.
21         (sort_and_splice_var_accesses): Set total_scalarization in the
22         representative access.
23         (analyze_access_subtree): Propagate total scalarization accross the
24         tree, no holes in totally scalarized trees, simplify coverage
25         computation.
26         (analyze_all_variable_accesses): Call completely_scalarize_var instead
27         of completely_scalarize_record.
28
29 2011-06-30  Richard Henderson  <rth@redhat.com>
30
31         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
32         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
33         * config/i386/i386.c: Don't include dwarf2out.h.
34         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
35         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
36         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
37         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
38         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
39
40 2011-06-30  Richard Henderson  <rth@redhat.com>
41
42         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
43         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
44         * final.c (final_scan_insn): Look for it, and invoke
45         dwarf2out_frame_debug before the insn if found.
46
47 2011-06-30  Richard Henderson  <rth@redhat.com>
48
49         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
50         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
51
52 2011-06-30  Richard Henderson  <rth@redhat.com>
53
54         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
55         Define a vector of this type.
56         (regs_saved_in_regs): Use a VEC.
57         (num_regs_saved_in_regs): Remove.
58         (compare_reg_or_pc): New.
59         (record_reg_saved_in_reg): Split out from...
60         (dwarf2out_flush_queued_reg_saves): ... here.
61         (clobbers_queued_reg_save): Update for VEC.
62         (reg_saved_in): Likewise.
63         (dwarf2out_frame_debug_init): Likewise.
64         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
65         (dwarf2out_frame_debug_cfa_register): Likewise.
66
67 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
68
69         PR tree-optimization/49572
70         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
71         type of the RHS instead of that of the LHS for the expression type.
72
73 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
74
75         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
76         unconditionally.
77
78 2011-06-30  Richard Guenther  <rguenther@suse.de>
79
80         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
81         * tree-ssa-structalias.c (create_variable_info_for): Do not
82         add initial constraints for non-var-decls.  Properly handle
83         globals in other ltrans partitions.
84         (intra_create_variable_infos): Manually create constraints for
85         the fake no-alias parameter.
86         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
87         and assert there are no clones.
88
89 2011-06-30  Richard Guenther  <rguenther@suse.de>
90
91         PR tree-optimization/46787
92         * tree-data-ref.c (dr_address_invariant_p): Remove.
93         (find_data_references_in_stmt): Invariant accesses are ok now.
94         * tree-vect-stmts.c (vectorizable_load): Handle invariant
95         loads.
96         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
97         invariant loads.
98
99 2011-06-30  Martin Jambor  <mjambor@suse.cz>
100
101         PR tree-optimization/49094
102         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
103         (build_accesses_from_assign): Use it.
104
105 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
106
107         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
108         handling of BUILT_IN_ASSUME_ALIGNED.
109
110         PR debug/49364
111         * dwarf2out.c (output_abbrev_section): Don't return early
112         if abbrev_die_table_in_use is 1.
113         (dwarf2out_finish): Instead don't call output_abbrev_section
114         nor emit abbrev_section_label in that case.
115
116 2011-06-30  Nick Clifton  <nickc@redhat.com>
117
118         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
119         for the V850E.
120
121 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
122
123         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
124         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
125
126 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
127
128         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
129         both pattern and original statements if necessary.
130         (vect_transform_loop): Likewise.
131         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
132         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
133         Mark the pattern statement only if the original statement doesn't
134         have its own uses.
135         (process_use): Call vect_mark_relevant with additional parameter.
136         (vect_mark_stmts_to_be_vectorized): Likewise.
137         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
138         (vect_analyze_stmt): Handle both pattern and original statements
139         if necessary.
140         (vect_transform_stmt): Don't store vectorized pattern statement
141         in the original statement.
142         (vect_is_simple_use_1): Use related pattern statement only if the
143         original statement is irrelevant.
144         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
145
146 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
147
148         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
149         option.
150         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
151         entry.
152         (TARGET_AVX128_OPTIMAL): New definition.
153         * config/i386/i386.c (initial_ix86_tune_features): Initialize
154         X86_TUNE_AVX128_OPTIMAL entry.
155         (ix86_option_override_internal): Enable the generation
156         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
157         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
158         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
159
160 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
161
162         PR tree-optimization/49539
163         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
164         names by means of stmt_references_abnormal_ssa_name.
165         (associate_plusminus): Call can_propagate_from before propagating
166         from definition statements.
167         (ssa_forward_propagate_and_combine): Remove superfluous newline.
168
169 2011-06-29  Richard Guenther  <rguenther@suse.de>
170
171         * doc/invoke.texi: Document -scev dump modifier.
172         * tree-pass.h (TDF_SCEV): New dump flag.
173         * tree-dump.c (dump_option_value_in): Add scev.
174         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
175         * tree-scalar-evolution.c: Likewise.
176
177 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
178
179         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
180         (cxa_type_match): Correct declaration.
181         (__gnu_unwind_pr_common): Reconstruct
182         additional indirection when __cxa_type_match returns
183         succeeded_with_ptr_to_base.
184
185 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
186
187         PR rtl-optimization/49114
188         * reload.c (struct replacement): Remove SUBREG_LOC member.
189         (push_reload): Do not set it.
190         (push_replacement): Likewise.
191         (subst_reload): Remove dead code.
192         (copy_replacements): Remove assertion.
193         (copy_replacements_1): Do not handle SUBREG_LOC.
194         (move_replacements): Likewise.
195         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
196         Detect subregs via recursive descent instead of via SUBREG_LOC.
197
198 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
199         
200         * config/avr/avr.c (avr_encode_section_info): Dispatch to
201         default_encode_section_info.
202
203 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
204
205         PR tree-optimization/49545
206         * builtins.c (get_object_alignment_1): Update function comment.
207         Do not use DECL_ALIGN for functions, but test
208         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
209         * fold-const.c (get_pointer_modulus_and_residue): Don't check
210         for functions here.
211         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
212
213 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
214
215         PR debug/49567
216         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up
217         for non-MODE_INT modes instead of asserting the mode has MODE_INT
218         class.
219
220 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
221         
222         PR target/34734
223         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning 
224         about uninitialized data attributed 'progmem' from here...
225         (avr_encode_section_info): ...to this new function.
226         (TARGET_ENCODE_SECTION_INFO): New define.
227         (avr_section_type_flags): For data in ".progmem.data", remove
228         section flag SECTION_WRITE.
229
230 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
231         
232         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
233         _xmulhisi3_exit.
234         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
235         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
236         (__umulhisi3): Ditto.
237         * config/avr/avr.md (mulhisi3): New insn expender.
238         (umulhisi3): New insn expender.
239         (*mulhisi3_call): New insn.
240         (*umulhisi3_call): New insn.
241
242 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
243
244         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
245
246 2011-06-28  Richard Henderson  <rth@redhat.com>
247
248         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
249         all code and arguments that handled pushes.  Update all callers.
250
251 2011-06-28  Richard Henderson  <rth@redhat.com>
252
253         * config/arm/arm.c (arm_output_function_prologue): Don't call
254         thumb1_output_function_prologue.
255         (arm_expand_prologue): Avoid dead store.
256         (number_of_first_bit_set): Use ctz_hwi.
257         (thumb1_emit_multi_reg_push): New.
258         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
259         to emit the entire prologue as rtl.
260         (thumb1_output_interwork): Split out from
261         thumb1_output_function_prologue.
262         (thumb1_output_function_prologue): Remove.
263         (arm_attr_length_push_multi): Handle thumb1.
264         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
265         (prologue_thumb1_interwork): New.
266         (*push_multi): Allow thumb1; use push_mult_memory_operand.
267         * config/arm/predicates.md (push_mult_memory_operand): New.
268
269 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
270
271         * config/sparc/sync.md (*stbar): Delete.
272         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
273
274 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
275
276         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
277
278 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
279
280         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
281         (TARGET_64BIT_DEFAULT): Define.
282         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
283         of tm_file.
284         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
285
286 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
287
288         * common.opt (in_lto_p): New Variable entry.
289         * flags.h (in_lto_p): Move to common.opt.
290         * gcc.c: Include params.h.
291         (set_option_handlers): Also use common_handle_option and
292         target_handle_option.
293         (main): Call global_init_params, finish_params and
294         init_options_struct.
295         * opts.c (debug_type_names): Move from toplev.c.
296         (print_filtered_help): Access quiet_flag through opts pointer.
297         (common_handle_option): Return early in the driver for some
298         options.  Access in_lto_p, dwarf_version and
299         warn_maybe_uninitialized through opts pointer.
300         * toplev.c (in_lto_p): Move to common.opt.
301         (debug_type_names): Move to opts.c.
302         * Makefile.in (OBJS): Remove opts.o.
303         (OBJS-libcommon-target): Add opts.o.
304         (gcc.o): Update dependencies.
305
306 2011-06-28  Kai Tietz  <ktietz@redhat.com>
307
308         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve
309         type sinking.
310
311 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
312
313         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
314         with '=' constraint modifier.
315         (*divdf3_vfp): Likewise.
316         ("*mulsf3_vfp"): Likewise.
317         ("*muldf3_vfp"): Likewise.
318         ("*mulsf3negsf_vfp"): Likewise.
319         ("*muldf3negdf_vfp"): Likewise.
320
321 2011-06-28  Nick Clifton  <nickc@redhat.com>
322
323         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
324         relaxation when performing an incremental link.
325
326 2011-06-28  Kai Tietz  <ktietz@redhat.com>
327
328         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
329         within BB from last to first.
330
331 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
332
333         * genattr-common.c: New.  Based on genattr.c.
334         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
335         (MOSTLYCLEANFILES): Add insn-attr-common.h.
336         (opts.o): Update dependencies.
337         (.PRECIOUS): Add insn-attr-common.h.
338         (simple_rtl_generated_h): Add insn-attr-common.h.
339         (build/genattr-common.o): New.
340         (genprogrtl): Add attr-common.
341         * genattr.c (main): Include insn-attr-common.h.  Don't generate
342         definitions of DELAY_SLOTS or INSN_SCHEDULING.
343         * opts.c: Include insn-attr-common.h instead of rtl.h and
344         insn-attr.h.
345
346 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
347
348         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
349         avr-*-* and avr-*-rtems* targets.
350
351         * config/avr/elf.h: New file.
352         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
353         (TARGET_ASM_SELECT_SECTION): Define.
354         (INIT_SECTION_ASM_OP): Undefine.
355         (FINI_SECTION_ASM_OP): Undefine.
356         (READONLY_DATA_SECTION_ASM_OP): Undefine.
357         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
358         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
359         * config/avr/avr.h:
360         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
361         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
362         (MAX_OFILE_ALIGNMENT): Move to elf.h.
363         (STRING_LIMIT): Move to elf.h.
364         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
365         (ASM_DECLARE_OBJECT_NAME): Remove.
366         (ESCAPES): Remove.
367         (ASM_OUTPUT_SKIP): Remove.
368         (DWARF2_DEBUGGING_INFO): Remove.
369         (OBJECT_FORMAT_ELF): Remove.
370         (USER_LABEL_PREFIX): Remove.
371         (ASM_OUTPUT_EXTERNAL): Remove.
372         (ASM_OUTPUT_ASCII): Remove.
373         (TYPE_ASM_OP): Remove.
374         (SIZE_ASM_OP): Remove.
375         (WEAK_ASM_OP): Remove.
376         (STRING_ASM_OP): Remove.
377         (SET_ASM_OP): Remove.
378         (ASM_WEAKEN_LABEL): Remove.
379         (TYPE_OPERAND_FMT): Remove.
380         (ASM_DECLARE_FUNCTION_SIZE): Remove.
381         (ASM_FINISH_DECLARE_OBJECT): Remove.
382         (NO_DOLLAR_IN_LABEL): Remove.
383         (ASM_GENERATE_INTERNAL_LABEL): Remove.
384         (ASM_OUTPUT_CASE_LABEL): Remove.
385         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
386         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
387         (gas_output_ascii): Remove.
388         (gas_output_limited_string): Remove.
389         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
390         * config/avr/avr-protos.h
391         (gas_output_ascii): Remove prototye.
392         (gas_output_limited_string): Remove prototype.
393
394 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
395
396         PR target/48637
397         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
398         asm operands.
399
400 2011-06-27  Jan Hubicka  <jh@suse.cz>
401
402         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
403         node instead of references in node.
404
405 2011-06-27  Richard Henderson  <rth@redhat.com>
406
407         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
408         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
409         inside ifdef.
410
411 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
412
413         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
414
415         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
416         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
417         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
418         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
419         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
420         (evaluate_stmt, execute_fold_all_builtins): Handle
421         BUILT_IN_ASSUME_ALIGNED.
422         * tree-ssa-dce.c (propagate_necessity): Likewise.
423         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
424         call_may_clobber_ref_p_1): Likewise.
425         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
426         (expand_builtin_assume_aligned): New function.
427         * doc/extend.texi (__builtin_assume_aligned): Document.
428
429         PR debug/49544
430         * cselib.c (promote_debug_loc): If cselib_preserve_constants
431         and l has two DEBUG_INSN owned locs instead of just one, adjust
432         the second location's setting_insn too.
433
434 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
435
436         PR libmudflap/38738
437         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
438
439 2011-06-27  Nick Clifton  <nickc@redhat.com>
440
441         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
442         convert bit position of highest bit set into a count of the high
443         zero bits.
444
445 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
446
447         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
448
449 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
450
451         PR lto/48492
452         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
453         to a NULL parent.
454
455 2011-06-27  Richard Guenther  <rguenther@suse.de>
456
457         PR tree-optimization/49394
458         * passes.c (execute_one_pass): Restore current_pass after
459         applying IPA transforms.
460
461 2011-06-27  Kai Tietz  <ktietz@redhat.com>
462
463         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
464         out of type precision after operation.
465         (find_bswap): Take for limit value the integer auto-
466         promotion into account.
467
468 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
469
470         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
471         forward scan as well.
472
473 2011-06-27  Tristan Gingold  <gingold@adacore.com>
474
475         PR target/44241
476         * config/vms/vms-protos.h: New file.
477         * config/vms/vms-crtlmap.map: New file.
478         * config/vms/vms.c: New file.
479         * config/vms/make-crtlmap.awk: New file.
480         * config/vms/vms-crtl.h: File removed.
481         * config/vms/vms-crtl-64.h: File removed.
482         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
483         * config/alpha/vms64.h: Do not include vms-crtl-64.h
484         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
485         clear some builtins on VMS.  Calls vms_patch_builtins.
486         (avms_asm_output_external): Remove.
487         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
488         (struct crtl_name_spec): Remove
489         (DO_CTRL_NAMES): Remove.
490         * config/ia64/vms.h (struct crtl_name_spec): Remove
491         (DO_CTRL_NAMES): Remove.
492         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
493         clear some builtins on VMS.  Calls vms_patch_builtins.
494         (ia64_asm_output_external): Remove DO_CRTL_NAME.
495         * config/ia64/vms64.h: Do not include vms-crtl-64.h
496         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
497         tm_p_file.
498
499 2011-06-27  Tristan Gingold  <gingold@adacore.com>
500
501         * config/alpha/alpha.c (alpha_end_function): Always generate .end
502         directive on VMS.
503
504 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
505
506         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
507         the function receives nonlocal gotos.
508
509 2011-06-27  Richard Guenther  <rguenther@suse.de>
510
511         PR tree-optimization/49536
512         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
513         For non-scalar inner types use a scalar type according to
514         the scalar inner mode.
515
516 2011-06-27  Richard Guenther  <rguenther@suse.de>
517
518         PR tree-optimization/49365
519         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
520
521 2011-06-27  Richard Guenther  <rguenther@suse.de>
522
523         PR tree-optimization/49169
524         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
525         the alignment of function decls.
526
527 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
528
529         PR target/47997
530         * config/darwin.c (darwin_mergeable_string_section): Place string
531         constants in '.cstring' rather than '.const' when CF/NSStrings are
532         active.
533
534 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
535
536         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
537         (emit_save_register_window): Likewise.
538         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
539         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
540         Swap back %o7/%i7 in register naming.
541
542 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
543
544         PR driver/49371
545         * config/darwin.c (darwin_override_options): Improve warning when
546         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
547         is given with fpie/fPIE.
548         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
549         * config/darwin9.h (PIE_SPEC): New.
550
551 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
552
553         * timevar.c (timevar_print): Increase width for display of timevar
554         name.
555
556 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
557
558         PR c++/46400
559         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
560         instead of TYPE_CHAIN for chain_next for types.
561
562 2011-06-24  Richard Henderson  <rth@redhat.com>
563
564         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
565         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
566         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
567         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
568         (sparc_flat_expand_prologue): Emit individual instructions
569         instead of one of the above.
570
571 2011-06-24  Easwaran Raman  <eraman@google.com>
572
573         PR rtl-optimization/49429
574         PR target/49454
575         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
576         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
577         used to copy y into x.
578         * calls.c (initialize_argument_information): Mark
579         an argument addressable if it is passed by invisible reference.
580         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
581         if it is passed by reference.
582
583 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
584
585         PR rtl-optimization/49504
586         * rtlanal.c (nonzero_bits1): Properly handle addition or
587         subtraction of a pointer in Pmode if pointers extend unsigned.
588         (num_sign_bit_copies1): Likewise.
589
590 2011-06-24  Martin Jambor  <mjambor@suse.cz>
591
592         PR tree-optimizations/49516
593         * tree-sra.c (sra_modify_assign): Choose the safe path for
594         aggregate copies if we also did scalar replacements.
595
596 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
597
598         PR target/49335
599         * config/arm/predicates.md (add_operator): New.
600         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
601         in Thumb2.
602
603 2011-06-24  Andi Kleen  <ak@linux.intel.com>
604
605         * tree-sra.c (type_internals_preclude_sra_p): Add msg
606         parameter. Split up ifs and report reason in *msg.
607         (reject): Add.
608         (find_var_candiate): Add msg variable.
609         Split up ifs and report reason to reject.
610         (find_param_candidates): Add msg variable.
611         Pass msg to type_internals_preclude_sra_p.
612
613 2011-06-23  Jeff Law  <law@redhat.com>
614
615         PR middle-end/48770
616         * reload.h (reload): Change to return a bool.
617         * ira.c (ira): If requested by reload, run a fast DCE pass after
618         reload has completed.  Fix comment typo.
619         * reload1.c (need_dce): New file scoped static.
620         (reload): Set reload_completed here.  Return whether or not a DCE
621         pass after reload is needed.
622         (delete_dead_insn): Set need_dce as needed.
623
624         PR middle-end/49465
625         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
626         to detect threading through joiner block.  If there was already
627         an edge to the new target, then do not change the PHI nodes.
628
629 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
630
631         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
632         get_pointer_alignment to see if base isn't sufficiently aligned.
633
634 2011-06-23  Jan Hubicka  <jh@suse.cz>
635
636         PR tree-optimize/49373
637         * tree-pass.h (all_late_ipa_passes): Declare.
638         * cgraphunit.c (init_lowered_empty_function): Fix properties.
639         (cgraph_optimize): Execute late passes; remove unreachable funcions
640         after materialization.
641         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
642         LTOing.
643         * passes.c (all_late_ipa_passes): Declare.
644         (dump_passes, register_pass): Handle late ipa passes.
645         (init_optimization_passes): Move ipa_pta to late passes; schedule
646         fixup_cfg at beggining of all_passes.
647         (apply_ipa_transforms): New function.
648         (execute_one_pass): When doing simple ipa pass, apply all transforms.
649
650 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
651
652         * params.c: Include common/common-target.h.  Don't include tm.h.
653         (lang_independent_params): Move from toplev.c.
654         (global_init_params): New.
655         * params.h (global_init_params): Declare.
656         * target.def (default_params): Move to common-target.def.
657         * toplev.c (lang_independent_options): Remove.
658         (lang_independent_params): Move to params.c.
659         (general_init): Use global_init_params.
660         * common/common-target.def (option_default_params): Move from
661         target.def.
662         * common/config/ia64/ia64-common.c: Include params.h.
663         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
664         from ia64.c.
665         * common/config/rs6000/rs6000-common.c: Include params.h.
666         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
667         from rs6000.c.
668         * common/config/sh/sh-common.c: Include params.h.
669         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
670         from sh.c.
671         * common/config/spu/spu-common.c: Include params.h.
672         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
673         from spu.c.
674         * config/ia64/ia64.c (ia64_option_default_params,
675         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
676         * config/rs6000/rs6000.c (rs6000_option_default_params,
677         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
678         * config/sh/sh.c (sh_option_default_params,
679         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
680         * config/spu/spu.c (spu_option_default_params,
681         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
682         * Makefile.in (OBJS): Remove params.o.
683         (OBJS-libcommon-target): Add params.o.
684         (params.o, $(common_out_object_file)): Update dependencies.
685         * doc/tm.texi: Regenerate.
686
687 2011-06-23  Alan Modra  <amodra@gmail.com>
688
689         PR bootstrap/49383
690         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
691         invocation for 2011-06-09 changes.
692
693 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
694
695         PR libgomp/49490
696         * omp-low.c (expand_omp_for_static_nochunk): Only
697         use n ceil/ nthreads size for the first
698         n % nthreads threads in the team instead of
699         all threads except for the last few ones which
700         get less work or none at all.
701
702         PR debug/49496
703         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
704         uses.
705
706 2011-06-22  Richard Guenther  <rguenther@suse.de>
707
708         PR tree-optimization/49493
709         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
710         Refer to the alias target of variables.
711         (associate_varinfo_to_alias_1): Remove.
712         (ipa_pta_execute): Do not associate aliases with anything.
713         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
714         (cgraph_function_node): Likewise.
715         (cgraph_function_or_thunk_node): Likewise.
716         (varpool_variable_node): Likewise.
717
718 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
719
720         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
721         typo.
722         * config.gcc (arm*-*-linux*): Default to gnu tls.
723         (arm*-*-*): Add --with-tls option.
724         (all_defaults): Add 'tls'.
725
726 2011-06-22  Richard Henderson  <rth@redhat.com>
727
728         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
729         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
730         (dwarf2out_frame_debug_cfa_window_save): Rename from
731         dwarf2out_window_save; make static.
732         * tree.h (dwarf2out_window_save): Don't declare.
733
734         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
735         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
736         (emit_save_register_window): Rename from gen_save_register_window;
737         emit the insn and add REG_CFA_* notes.
738         (sparc_expand_prologue): Update to match.
739         * config/sparc/sparc.md (save_register_window_1): Simplify from
740         save_register_window<P:mode>.
741
742 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
743
744         PR target/49497
745         * config/i386/i386.md (*lea_general_2): Always allow SImode.
746         (*lea_general_2_zext): Likewise.
747         (imul to lea peepholes): Use const359_operand and check
748         TARGET_PARTIAL_REG_STALL.
749
750         * config/i386/predicates.md (const359_operand): New.
751
752 2011-06-22  Michael Matz  <matz@suse.de>
753
754         * cgraphunit.c (assemble_thunk): Use correct return type.
755
756 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
757         Dmitry Melnik  <dm@ispras.ru>
758
759         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
760         (neon_output_shift_immediate): Ditto.
761         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
762         prototype.
763         (neon_output_shift_immediate): Ditto.
764         * config/arm/neon.md (vashl<mode>3): Modified constraint.
765         (vashr<mode>3_imm): New insn pattern.
766         (vlshr<mode>3_imm): Ditto.
767         (vashr<mode>3): Modified constraint.
768         (vlshr<mode>3): Ditto.
769         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
770         predicate.
771         (imm_for_neon_rshift_operand): Ditto.
772         (imm_lshift_or_reg_neon): Ditto.
773         (imm_rshift_or_reg_neon): Ditto.
774
775         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
776
777 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
778
779         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
780         builtin calls even if likelyvalue is not CONSTANT.
781         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
782         Return get_value_for_expr of first operand
783         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
784         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
785         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
786         their non-checking counterparts.
787         (call_may_clobber_ref_p_1): Likewise.
788         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
789         like their non-checking counterparts.
790         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
791         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
792         like their non-checking counterparts.
793         (find_func_clobbers): Likewise.
794         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
795         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
796
797         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
798         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
799         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
800         of base type reference as argument.
801         (resolve_addr_in_expr): Likewise.  Fix keep computation.
802         (convert_descriptor_to_signed): Renamed to...
803         (convert_descriptor_to_mode): ... this.  For wider types convert
804         to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
805         untyped.
806         (typed_binop): New function.
807         (scompare_loc_descriptor, ucompare_loc_descriptor,
808         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
809         default to unsigned type instead of signed.
810
811         PR debug/47858
812         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
813         (gimple_build_debug_source_bind_stat): New prototype.
814         (gimple_build_debug_source_bind): Define.
815         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
816         gimple_debug_source_bind_get_value,
817         gimple_debug_source_bind_get_value_ptr,
818         gimple_debug_source_bind_set_var,
819         gimple_debug_source_bind_set_value): New inlines.
820         * gimple.c (gimple_build_debug_source_bind_stat): New function.
821         * gimple-pretty-print.c (dump_gimple_debug): Handle
822         GIMPLE_DEBUG_SOURCE_BIND.
823         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
824         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
825         * tree-parloops.c (eliminate_local_variables,
826         separate_decls_in_region): Likewise.
827         (separate_decls_in_region_debug): Renamed from
828         separate_decls_in_region_debug_bind.  Handle
829         gimple_debug_source_bind_p.
830         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
831         prototypes.
832         (DECL_HAS_DEBUG_ARGS_P): Define.
833         (struct tree_function_decl): Add has_debug_args_flag field.
834         * tree.c (debug_args_for_decl): New variable.
835         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
836         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
837         (rewrite_debug_stmt_uses): New function.
838         (rewrite_stmt): Use it to rewrite debug stmt uses.
839         * rtl.def (DEBUG_PARAMETER_REF): New.
840         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
841         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
842         DEBUG_PARAMETER_REF.
843         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
844         * print-rtl.c (print_rtx): Likewise.
845         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
846         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
847         debug stmts in the first bb.
848         * tree-inline.c (remap_ssa_name): If remapping default def
849         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
850         a source bind debug stmt.
851         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
852         (maybe_move_debug_stmts_to_successors): Likewise.
853         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
854         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
855         debug args vector from old_decl to new_decl.
856         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
857         or modified parameters, add debug bind stmts before call
858         setting DEBUG_EXPR_DECL which is remembered in debug args
859         vector.
860         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
861         on DECL_DEBUG_EXPRs from debug args vector.
862         (expand_debug_source_expr): New function.
863         (expand_debug_locations): Use it for source bind insns.
864         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
865         * var-tracking.c (prepare_call_arguments): Add debug args
866         to call_arguments if any.
867         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
868         output_loc_operands, output_loc_operands_raw,
869         resolve_addr_in_expr, compare_loc_operands): Handle
870         DW_OP_GNU_parameter_ref.
871         (get_ref_die_offset, parameter_ref_descriptor): New functions.
872         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
873         (gen_subprogram_die): Handle parameters identified by
874         DEBUG_PARAMETER_REF.
875
876 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
877
878         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
879         * doc/install.texi (Configuration): Document --with-tls.
880         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
881         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
882         (arm_tls_descseq_addr): New.
883         (legitimize_tls_address): Add tlsdesc support.
884         (arm_cannot_copy_insn_p): Check for tlscall.
885         (arm_emit_tls_decoration): Likewise.
886         * config/arm/arm.h (TARGET_GNU2_TLS): New.
887         (OPTION_DEFAULT_SPECS): Add with-tls support.
888         * config/arm/arm.md (R1_REGNUM): Define.
889         (tlscall): New.
890         * config/arm/arm.opt (tls_type): New enumeration type and values.
891         (mtls-dialect): New switch.
892         * config/arm/arm-opts.h (enum tls_type): New.
893
894 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
895
896         * attribs.c (register_attribute): Added assert to check that all
897         attribute specs are registered with a name that is not empty and
898         does not start with '_'.
899         (decl_attributes): Avoid the lookup of the "naked" attribute spec
900         if the function has no attributes.
901         * tree.c (is_attribute_with_length_p): Removed.
902         (is_attribute_p): Removed.
903         (private_is_attribute_p): New.  
904         (private_lookup_attribute): New.
905         (lookup_attribute): Removed.
906         (lookup_ident_attribute): New.
907         (remove_attribute): Require the first argument to be in the form
908         'text', not '__text__'.  Updated asserts.
909         (merge_attributes): Use lookup_ident_attributes instead of
910         lookup_attribute.
911         (merge_dllimport_decl_attributes): Use remove_attribute.
912         (attribute_list_contained): Likewise.
913         (attribute_list_equal): Immediately return 1 if the arguments are
914         identical pointers.
915         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
916         'int'.  Require the first argument to be in the form 'text', not
917         '__text__'.  Require the second argument to be an identifier.
918         (lookup_attribute): Made inline.  Require the first argument to be
919         in the form 'text', not '__text__'.
920         (private_is_attribute_p, private_lookup_attribute): New.
921         Updated comments.
922         
923 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
924
925         * builtins.c: Add sync_ or SYNC__ to builtin names.
926         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
927         * omp-low.c: Add sync_ or SYNC__ to builtin names.
928
929 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
930
931         PR target/33049
932         * config/avr/avr.md (extzv): New expander.
933         (*extzv): New insn.
934         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
935         * config/avr/constraints.md (C04): New constraint.
936         * doc/md.texi (Machine Constraints): Document it.
937
938 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
939
940         PR middle-end/49489
941         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
942         unsignedp argument instead of 1 for clrsb_optab.
943         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
944         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
945         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
946         * optabs.c (widen_leading): Call widen_operand and expand_unop
947         with 0 as unsignedp argument instead of 1 for clrsb_optab.
948         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
949
950 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
951
952         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
953
954 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
955
956         * gensupport.c (add_define_attr): New static function.
957         (is_predicable): Allow multi-alternative lists for the "predicable"
958         attribute.
959         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
960         (process_one_cond_exec): Call alter_attrs_for_insn.
961         * doc/md.texi (Defining Attributes): Mention some standard names.
962         (Conditional Execution): Update documentation for "predicable".
963
964         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
965         __builtin_clrsbll): Document.
966         * doc/rtl.texi (clrsb): New entry.
967         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
968         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
969         (expand_unop): Handle clrsb_optab.
970         (init_optabs): Initialize it.
971         * optabs.h (enum optab_index): New entry OTI_clrsb.
972         (clrsb_optab): Define.
973         * genopinit.c (optabs): Add an entry for it.
974         * builtins.c (expand_builtin): Handle clrsb builtin functions.
975         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
976         BUILT_IN_CLRSBLL): New.
977         * rtl.def (CLRSB): New code.
978         * dwarf2out.c (mem_loc_descriptor): Handle it.
979         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
980         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
981         and popcount.
982         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
983         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
984         (__ctzDI2): Move declaration.
985         * config/bfin/bfin.md (clrsbsi2): New expander.
986         (signbitssi2): Use the CLRSB rtx.
987         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
988         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
989
990 2011-06-21  Richard Guenther  <rguenther@suse.de>
991
992         * ipa-inline-transform.c (inline_transform): Fix previous change.
993
994 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
995
996         PR tree-optimization/49478
997         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
998         with constant operand.
999
1000 2011-06-21  Richard Guenther  <rguenther@suse.de>
1001
1002         * ipa-inline-transform.c (inline_transform): Fix typo.
1003
1004 2011-06-21  Richard Guenther  <rguenther@suse.de>
1005
1006         PR tree-optimization/49483
1007         * tree-vect-stmts.c (vectorizable_assignment): Also handle
1008         VIEW_CONVERT_EXPR conversions.
1009
1010 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
1011
1012         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1013         * config/avr/avr-tables.opt: New file (generated).
1014         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1015         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1016         avr-mcus.def.
1017         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1018         (avr_option_override): Don't process -mmcu= argument here.  Set
1019         avr_current_device using avr_mcu_index.
1020         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1021         * config/avr/avr.opt (mmcu=): Use Enum.
1022         * config/avr/t-avr (avr-devices.o): Update dependencies.
1023         ($(srcdir)/config/avr/avr-tables.opt): New.
1024         * target.def (help): Remove.
1025         * doc/tm.texi.in (TARGET_HELP): Remove.
1026         * doc/tm.texi: Regenerate.
1027         * opts.c: Don't include target.h.
1028         (common_handle_option): Don't call targetm.help.
1029         * system.h (TARGET_HELP): Poison.
1030         * Makefile.in (opts.o): Update dependencies.
1031
1032 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1033
1034         * config/usegld.h: New file.
1035         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1036         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
1037         (LIB_SPEC): Likewise.  Search /lib.
1038         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1039         (RDYNAMIC_SPEC): Handle GNU ld.
1040         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1041         Define.
1042         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1043         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1044         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1045         (STACK_CHECK_STATIC_BUILTIN): Define.
1046         * config/sol2.opt (compat-bsd): Remove.
1047         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1048         * config/sol2-bi.h: New file.
1049         * config/sol2-gld.h: Remove.
1050         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1051         (NO_DBX_BNSYM_ENSYM): Remove.
1052         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1053         (STACK_CHECK_STATIC_BUILTIN): Remove.
1054         Test USE_GLD instead of TARGET_GNU_LD.
1055         * config/i386/sol2-10.h: Rename to ...
1056         * config/i386/sol2-bi.h .. this.
1057         (SUBTARGET_EXTRA_SPECS): Redefine.
1058         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1059         (MULTILIB_DEFAULTS): Remove.
1060         (DEFAULT_ARCH32_P): Define.
1061         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1062         (ARCH64_SUBDIR): Define.
1063         Test USE_GLD instead of TARGET_GNU_LD.
1064         (I386_EMULATION): Rename to ...
1065         (ARCH32_EMULATION): ... this.
1066         (X86_64_EMULATION): Rename to ...
1067         (ARCH64_EMULATION): ... this.
1068         (TARGET_LD_EMULATION): Remove.
1069         (LINK_ARCH_SPEC): Remove.
1070         * config/i386/sol2-gas.h: Remove.
1071         * config/i386/t-sol2-10: Rename to ...
1072         * config/i386/t-sol2-64: ... this.
1073         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1074         (AS_SPARC64_FLAG): Define.
1075         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1076         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1077         depending on TARGET_CPU_DEFAULT.
1078         (CPP_CPU_SPEC): Redefine.
1079         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1080         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1081         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1082         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1083         ASM_ARCH_DEFAULT_SPEC): Redefine.
1084         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1085         LINK_ARCH_DEFAULT_SPEC.
1086         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1087         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1088         (ARCH64_SUBDIR): Define.
1089         (LINK_ARCH64_SPEC): Redefine.
1090         (CC1_SPEC): Redefine.
1091         (OPTION_DEFAULT_SPECS): Redefine.
1092         (MULTILIB_DEFAULTS): Define.
1093         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1094         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1095         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1096         (NO_DBX_BNSYM_ENSYM): Remove.
1097         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1098         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1099         (TARGET_ASM_NAMED_SECTION): Likewise.
1100         (STACK_CHECK_STATIC_BUILTIN): Remove.
1101         * config/sparc/sol2-bi.h: Remove.
1102         * config/sparc/sol2-gas-bi.h: Remove.
1103         * config/sparc/sol2-gas.h: Remove.
1104         * config/sparc/sol2-gld-bi.h: Remove.
1105         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1106         common parts ...
1107         (*-*-solaris2*): ... here.
1108
1109 2011-06-21  Christian Bruel  <christian.bruel@st.com>
1110
1111         PR other/43564
1112         * ipa-inline.c (can_inline_edge_p): Check
1113         !DECL_DISREGARD_INLINE_LIMITS.
1114
1115 2011-06-21  Christian Bruel  <christian.bruel@st.com>
1116
1117         PR middle-end/49139
1118         * cgraphunit.c (process_function_and_variable_attributes): warn when
1119         always_inline functions that are not inline.
1120         * ipa-inline-transform.c (inline_transform): Always call
1121         optimize_inline.
1122         * tree-inline.c (tree_inlinable_function_p): Use error instead
1123         of sorry.
1124         (expand_call_inline): Likewise.
1125
1126 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
1127
1128         * Makefile.in (dg_target_exps): Set.
1129         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1130         instead of 7, try to divide it more evenly.
1131
1132 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
1133
1134         PR target/49089
1135         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1136         (avx256_split_unaligned_store): New definition.
1137         (ix86_option_override_internal): Enable avx256 unaligned load/store
1138         splitting only when avx256_split_unaligned_load/store is set.
1139
1140 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
1141
1142         * regrename.c (scan_rtx_reg): Handle the case where we write to an
1143         open chain in a smaller mode without failing the entire block.
1144
1145 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1146
1147         PR middle-end/47725
1148         * combine.c (cant_combine_insn_p): Don't check zero/sign
1149         extended hard registers.
1150
1151 2011-06-21  Alan Modra  <amodra@gmail.com>
1152
1153         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1154         CONST high part large-toc address.
1155         (rs6000_tls_referenced_p): Make static.
1156         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1157
1158 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1159
1160         PR middle-end/47725
1161         * combine.c (cant_combine_insn_p): Check zero/sign extended
1162         hard registers.
1163
1164 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1165
1166         PR target/49385
1167         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1168         one of the operands is a register.
1169
1170 2011-06-20  Kai Tietz  <ktietz@redhat.com>
1171
1172         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1173         operations in combination with binary and.
1174
1175 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
1176
1177         * regrename.c (do_replace): Don't update notes.
1178
1179 2011-06-20  Alan Modra  <amodra@gmail.com>
1180
1181         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1182         of toc-relative address in CONST.
1183         (rs6000_delegitimize_address): Recognize changed address.
1184         (rs6000_legitimize_reload_address): Likewise.
1185         (rs6000_emit_move): Don't force these constants to memory.
1186         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1187         toc-relative address in CONST.
1188         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1189         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1190
1191 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1192
1193         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
1194         (count_trailing_zeros): Likewise.
1195
1196 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1197
1198         PR other/49325
1199         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1200         .init_array can be used with .ctors on targets.
1201         * configure: Regenerated.
1202
1203 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
1204
1205         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1206         if the element type is volatile.
1207
1208 2011-06-18  Jan Hubicka  <jh@suse.cz>
1209
1210         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1211         extra name aliases.
1212         (lto_symtab_resolve_can_prevail_p): Likewise.
1213         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1214         * cgraphbuild.c (record_reference): Remove extra body alias code.
1215         (mark_load): Likewise.
1216         (mark_store): Likewise.
1217         * cgraph.h (varpool_node): Remove extra_name filed;
1218         add alias_of and extraname_alias.
1219         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1220         (varpool_alias_aliased_node): New inline function.
1221         (varpool_variable_node): New function.
1222         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1223         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1224         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1225         (input_varpool_node): Likewise.
1226         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1227         (varpool_externally_visible_p): Remove extra body alias code.
1228         (function_and_variable_visibility): Likewise.
1229         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1230         (ipa_pta_execute): Use it.
1231         * varpool.c (varpool_remove_node): Remove extra name alias code.
1232         (varpool_mark_needed_node): Likewise.
1233         (varpool_analyze_pending_decls): Analyze aliases.
1234         (assemble_aliases): New functoin.
1235         (varpool_assemble_decl): Use it.
1236         (varpool_create_variable_alias): New function.
1237         (varpool_extra_name_alias): Rewrite.
1238         (varpool_for_node_and_aliases): New function.
1239
1240 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
1241
1242         PR target/49411
1243         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1244         last_arg_constant and last argument doesn't match its predicate,
1245         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1246         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1247         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1248         spelling of error message.
1249         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1250         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1251         const_0_to_255_operand instead of const_int_operand.
1252
1253         Revert:
1254         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1255
1256         * config/i386/sse.md (blendbits): Remove mode attribute.
1257         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1258         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1259         Check integer value of operand 3 in insn constraint.
1260
1261 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
1262
1263         PR rtl-optimization/48542
1264         * reload.c (find_equiv_reg): Stop looking when finding a
1265         setjmp-type call.
1266         * reload1.c (reload_as_needed): Invalidate all reload
1267         registers when crossing a setjmp-type call.
1268
1269 2011-06-16  Jeff Law  <law@redhat.com>
1270
1271         * tree-ssa-threadupdate.c (struct redirection_data): New field
1272         intermediate_edge.
1273         (THREAD_TARGET2): Define.
1274         (redirection_data_eq): Also check that the intermediate edge is equal.
1275         (lookup_redirection_data): Drop useless argument.  Extract the
1276         outgoing_edge and intermediate edge from E.  Callers updated.
1277         (copy_phi_args, update_destination_phis): New functions.
1278         (fix_duplicate_block_edges): Likewise.
1279         (create_edge_and_update_destination_phis): Duplicate all the edges
1280         hung off e->aux.  Use copy_phi_args.
1281         (create_duplicates): Use fix_duplicate_block_edges.
1282         (fixup_template_block): Likewise.
1283         (redirect_edges): If necessary, redirect the joiner block's incoming
1284         edge to the duplicate of the joiner block.
1285         (thread_block): Don't muck up loops when threading through a joiner
1286         block.
1287         (thread_through_loop_header): Handle threading through a joiner block.
1288         (mark_threaded_blocks, register_jump_thread): Likewise.
1289         * tree-flow.h (register_jump_thread): Add new argument.  Callers
1290         updated.
1291         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1292         (thread_across_edge): Handle threading through a joiner block.
1293
1294 2011-06-16  Martin Jambor  <mjambor@suse.cz>
1295
1296         PR tree-optimization/49343
1297         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1298         calculate offset, provide 2nd operand for the new COMPONENT_REF.
1299
1300 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
1301
1302         * config/darwin-protos.h (machopic_select_rtx_section): Move to
1303         inside RTX_CODE ifdef.
1304
1305 2011-06-16  Tom de Vries  <tom@codesourcery.com>
1306
1307         PR target/45098
1308         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1309         Disallow NULL pointer for pointer arithmetic.
1310
1311 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1312
1313         PR target/49398
1314         Revert.
1315         2011-06-10  Wei Guozhi  <carrot@google.com>
1316
1317         PR target/45335
1318         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1319         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1320         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1321         related peephole2.
1322         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1323         related peephole2.
1324         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1325         (arm_legitimate_ldrd_p): New prototype.
1326         (arm_output_ldrd): New prototype.
1327         * config/arm/arm.c (arm_check_ldrd_operands): New function.
1328         (arm_legitimate_ldrd_p): New function.
1329         (arm_output_ldrd): New function.
1330
1331 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
1332
1333         PR middle-end/46500
1334         * doc/tm.texi.in: Update Copyright date.
1335         * doc/tm.texi: Regenerate.
1336         * targhooks.c (default_setup_incoming_varargs): Replace
1337         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1338         (default_pretend_outgoing_varargs_named): Likewise.
1339         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1340         (hook_callee_copies_named): Likewise.
1341         (default_function_arg_advance): Likewise.
1342         (default_function_arg): Likewise.
1343         (default_function_incoming_arg): Likewise.
1344         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1345         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1346         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1347         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1348         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1349         * targhooks.h (default_setup_incoming_varargs): Likewise.
1350         (default_pretend_outgoing_varargs_named): Likewise.
1351         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1352         (hook_callee_copies_named): Likewise.
1353         (default_function_arg_advance): Likewise.
1354         (default_function_arg): Likewise.
1355         (default_function_incoming_arg): Likewise.
1356         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1357         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1358         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1359         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1360         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1361         * target.def (pass_by_reference): Likewise.
1362         (setup_incoming_varargs, strict_argument_naming): Likewise.
1363         (pretend_outgoing_varargs_named, callee_copies): Likewise.
1364         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1365         (function_incoming_arg): Likewise.
1366         * target.h: Don't include "tm.h" .
1367         (cumulative_args_t): New typedef.
1368         [GCC_TM_H] (get_cumulative_args): New static inline function.
1369         [GCC_TM_H] (pack_cumulative_args): Likewise.
1370         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1371         argument type with cumulative_args_t.
1372         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1373         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1374         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1375         (frv_arg_partial_bytes, frv_function_arg): Likewise.
1376         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1377         (frv_function_arg_1): Likewise.
1378         * config/s390/s390.c (s390_pass_by_reference): Likewise.
1379         (s390_function_arg_advance, s390_function_arg): Likewise.
1380         * config/m32c/m32c.c (m32c_function_arg): Likewise.
1381         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1382         (m32c_strict_argument_naming): Likewise.
1383         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1384         (spu_function_arg_advance): Likewise.
1385         (spu_setup_incoming_varargs): Likewise.  Make static.
1386         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1387         Remove prototype.
1388         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1389         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1390         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1391         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1392         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1393         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1394         (mep_pass_by_reference, mep_function_arg): Likewise.
1395         (mep_function_arg_advance): Likewise.
1396         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1397         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1398         (m32r_function_arg, m32r_function_arg_advance): Likewise.
1399         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1400         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1401         (ix86_function_arg, ix86_pass_by_reference): Likewise.
1402         (ix86_setup_incoming_varargs): Likewise.
1403         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1404         (sh_strict_argument_naming): Likewise.
1405         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1406         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1407         (sh_function_arg_advance, sh_function_arg): Likewise.
1408         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1409         (pdp11_function_arg_advance): Likewise.
1410         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1411         Likewise.
1412         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1413         * config/avr/avr.c (avr_function_arg): Likewise.
1414         (avr_function_arg_advance): Likewise.
1415         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1416         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1417         (xtensa_function_arg_1): Likewise.
1418         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1419         Likewise.
1420         (xstormy16_function_arg): Likewise.
1421         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1422         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1423         (fr30_function_arg_advance): Likewise.
1424         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1425         (lm32_function_arg, lm32_function_arg_advance): Likewise.
1426         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1427         (moxie_function_arg, moxie_function_arg_advance): Likewise.
1428         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1429         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1430         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1431         (cris_function_arg, cris_function_incoming_arg): Likewise.
1432         (cris_function_arg_advance, cris_function_arg_1): Likewise.
1433         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1434         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1435         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1436         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1437         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1438         (mn10300_arg_partial_bytes): Likewise.
1439         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1440         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1441         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1442         (ia64_function_arg_1): Likewise.
1443         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1444         (m68k_function_arg): Likewise.
1445         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1446         (rs6000_function_arg, setup_incoming_varargs): Likewise.
1447         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1448         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1449         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1450         (picochip_arg_advance): Likewise.
1451         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1452         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1453         (mcore_function_arg_advance): Likewise.
1454         * config/score/score.c (score_pass_by_reference): Likewise.
1455         (score_function_arg_advance): Likewise.
1456         (score_arg_partial_bytes): Likewise.  Make static.
1457         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1458         * config/arm/arm.c (arm_arg_partial_bytes): Replace
1459         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1460         (arm_function_arg, arm_function_arg_advance): Likewise.
1461         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1462         * config/pa/pa.c (pa_pass_by_reference): Likewise.
1463         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1464         (pa_function_arg): Likewise.
1465         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1466         (mips_function_arg, mips_function_arg_advance): Likewise.
1467         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1468         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1469         * config/vax/vax.c (vax_function_arg): Likewise.
1470         (vax_function_arg_advance): Likewise.
1471         * config/h8300/h8300.c (h8300_function_arg): Likewise.
1472         (h8300_function_arg_advance): Likewise.
1473         * config/v850/v850.c (v850_pass_by_reference): Likewise.
1474         (v850_strict_argument_naming, v850_function_arg): Likewise.
1475         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1476         (v850_setup_incoming_varargs): Likewise.
1477         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1478         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1479         (mmix_function_arg, mmix_pass_by_reference): Likewise.
1480         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1481         with const void *.
1482         * config/bfin/bfin.c (setup_incoming_varargs): Replace
1483         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1484         (bfin_function_arg_advance, bfin_function_arg): Likewise.
1485         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1486         * calls.c (emit_call_1): Change type of args_so_far to
1487         cumulative_args_t.  Changed all callers.
1488         (initialize_argument_information): Likewise.
1489         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1490         * dse.c (get_call_args): Likewise.
1491         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1492         * function.c (pass_by_reference, reference_callee_copied): Likewise.
1493         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1494         New member args_so_far_v.  Changed all users.
1495         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1496         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1497         * config/mips/mips.c (mips_output_args_xfer): Likewise.
1498         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1499         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1500         * config/microblaze/microblaze.c (microblaze_expand_prologue):
1501         Likewise.
1502         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1503         m32r_pass_by_reference.
1504
1505 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
1506
1507         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1508         argument to be a VEC of statements.
1509         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1510         assert that pattern statements have to have their vector type set.
1511         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1512         Change the first argument to be a VEC of statements.  Update
1513         documentation.
1514         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1515         (vect_handle_widen_mult_by_const): New function.
1516         (vect_recog_widen_mult_pattern):  Change the first argument to be a
1517         VEC of statements.  Update documentation.  Check that the constant is
1518         INTEGER_CST.  Support multiplication by a constant that fits an
1519         intermediate type - call vect_handle_widen_mult_by_const.
1520         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1521         call.  Handle additional pattern statements if necessary.
1522
1523 2011-06-16  Nick Clifton  <nickc@redhat.com>
1524
1525         PR target/49427
1526         * config.gcc: Set cpu_type to v850 for any V850 architecture.
1527         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1528         md_file, extra_modes, out_file and extra_options are these are all
1529         deduced from cpu_type.
1530
1531 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1532
1533         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1534         truncation mask to 63.
1535
1536 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1537
1538         PR target/49313
1539         PR target/29524
1540         * longlong.h: Add AVR support:
1541         (count_leading_zeros): New macro.
1542         (count_trailing_zeros): New macro.
1543         (COUNT_LEADING_ZEROS_0): New macro.
1544         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1545         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1546         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1547         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1548         (LIB2FUNCS_EXCLUDE): Add _clz.
1549         * config/avr/libgcc.S (XCALL): Move up in file.
1550         (XJMP): New C Macro.
1551         (DEFUN): New asm macro.
1552         (ENDF): New asm macro.
1553         (__ffssi2): New function.
1554         (__ffshi2): New function.
1555         (__loop_ffsqi2): New function.
1556         (__ctzsi2): New function.
1557         (__ctzhi2): New function.
1558         (__clzdi2): New function.
1559         (__clzsi2): New function.
1560         (__clzhi2): New function.
1561         (__paritydi2): New function.
1562         (__paritysi2): New function.
1563         (__parityhi2): New function.
1564         (__parityqi2): New function.
1565         (__popcounthi2): New function.
1566         (__popcountsi2): New function.
1567         (__popcountdi2): New function.
1568         (__popcountqi2): New function.
1569         (__bswapsi2): New function.
1570         (__bswapdi2): New function.
1571         (__ashldi3): New function.
1572         (__ashrdi3): New function.
1573         (__lshrdi3): New function.
1574         Fix suspicous lines.
1575
1576 2011-06-16  Richard Guenther  <rguenther@suse.de>
1577
1578         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1579         the same as x != 0.
1580         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1581         to (bool) X & 1.
1582         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1583         equality compares against zero for the lower bit.
1584
1585 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
1586
1587         PR tree-optimization/49419
1588         * tree-vrp.c (execute_vrp): Call init_range_assertions
1589         before estimate_numbers_of_iterations, call
1590         free_number_of_iterations_estimates before calling
1591         remove_range_assertions.
1592
1593 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1594
1595         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1596         (struct partial_schedule): Add rows_length field.
1597         (verify_partial_schedule): Check rows_length.
1598         (ps_insert_empty_row): Handle rows_length.
1599         (create_partial_schedule): Likewise.
1600         (free_partial_schedule): Likewise.
1601         (reset_partial_schedule): Likewise.
1602         (create_ps_insn): Remove rest_count argument.
1603         (remove_node_from_ps): Update rows_length.
1604         (add_node_to_ps): Update rows_length and call create_ps_insn
1605         without passing row_rest_count.
1606         (rotate_partial_schedule): Update rows_length.
1607
1608 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1609
1610         * ddg.c (add_intra_loop_mem_dep): New function.
1611         (build_intra_loop_deps): Call it.
1612
1613 2011-06-13  Jeff Law  <law@redhat.com>
1614
1615         * df-problems.c (df_lr_local_compute): Manually CSE
1616         PIC_OFFSET_TABLE_REGNUM.
1617         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1618         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1619
1620 2011-06-13  Jan Hubicka  <jh@suse.cz>
1621
1622         * cgraphunit.c (handle_alias_pairs): New function.
1623         (cgraph_finalize_compilation_unit): Use it.
1624         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1625         as externally visible.
1626
1627 2011-06-15  Richard Guenther  <rguenther@suse.de>
1628
1629         * expr.c (expand_expr_real_2): Reduce all integral types to
1630         bitfield precision.
1631         (expand_expr_real_1): Likewise.
1632
1633 2011-06-15  Martin Jambor  <mjambor@suse.cz>
1634
1635         PR tree-optimization/48613
1636         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1637         ipa_node_params_vector is NULL.
1638
1639 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
1640
1641         PR debug/49382
1642         * dwarf2out.c (dw_loc_list_node): Add force field.
1643         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1644         location in the list, even if it is modified before first real insn.
1645         (output_loc_list): Emit empty ranges with force flag set.
1646         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1647
1648 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
1649
1650         PR target/49349
1651         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1652         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
1653         above a fence.  Update comments.
1654         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1655         placed just above it.  Do not allow NULL place_to_insert.
1656
1657 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
1658
1659         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1660         (slpeel_tree_peel_loop_to_edge): Don't call
1661         remove_dead_stmts_from_loop.
1662         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1663         remove irrelevant pattern statements.  For irrelevant statements
1664         check if it is the last statement of a detected pattern, use
1665         corresponding pattern statement instead.
1666         (destroy_loop_vec_info): No need to remove pattern statements,
1667         only free stmt_vec_info.
1668         (vect_transform_loop): For irrelevant statements check if it is
1669         the last statement of a detected pattern, use corresponding
1670         pattern statement instead.
1671         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1672         pattern statements.  Set basic block for the new statement.
1673         (vect_pattern_recog): Update documentation.
1674         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1675         operands of pattern statements.
1676         (vectorizable_call): Fix printing.  In case of a pattern statement
1677         use the lhs of the original statement when creating a dummy
1678         statement to replace the original call.
1679         (vect_analyze_stmt): For irrelevant statements check if it is
1680         the last statement of a detected pattern, use corresponding
1681         pattern statement instead.
1682         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1683         statements use gsi of the original statement.
1684
1685 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1686
1687         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1688         common/common-target-def.h.
1689         * target.def (default_target_flags, handle_option,
1690         supports_split_stack, optimization_table, init_struct,
1691         except_unwind_info, unwind_tables_default, have_named_sections):
1692         Move to common/common-target.def.
1693         * target.h (enum opt_levels, struct default_options): Move to
1694         common/common-target.h.
1695         * targhooks.c (default_except_unwind_info,
1696         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1697         default_target_handle_option, empty_optimization_table): Move to
1698         common/common-targhooks.c.
1699         * targhooks.h (default_except_unwind_info,
1700         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1701         default_target_handle_option, empty_optimization_table): Move to
1702         common/common-targhooks.h.
1703         * common/common-target-def.h: Include common/common-targhooks.h.
1704         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1705         defined.
1706         * common/common-target.def (handle_option, option_init_struct,
1707         option_optimization_table, default_target_flags,
1708         except_unwind_info, supports_split_stack, unwind_tables_default,
1709         have_named_sections): Move from target.def.
1710         (HOOK_PREFIX): Undefine at end of file.
1711         * common/common-target.h: Include input.h.
1712         (enum opt_levels, struct default_options): Move from target.h.
1713         * common/common-targhooks.c, common/common-targhooks.h: New.
1714         * config.gcc (target_has_targetm_common): Default to yes.
1715         (moxie*): Set target_has_targetm_common=no.
1716         (hppa*-*-*): Don't set target_has_targetm_common=yes.
1717         * doc/tm.texi: Regenerate.
1718         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1719         (C_TARGET_DEF_H): Add common/common-targhooks.h.
1720         (GCC_OBJS): Remove vec.o.
1721         (OBJS): Remove hooks.o and vec.o.
1722         (OBJS-libcommon-target): Add vec.o, hooks.o and
1723         common/common-targhooks.o.
1724         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1725         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1726         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1727         cfglayout.o, $(out_object_file), $(common_out_object_file)):
1728         Update dependencies.
1729         (common/common-targhooks.o): New.
1730         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
1731         * common/config/pa/pa-common.c: Include more headers.  Take
1732         copyright dates from pa.c.
1733         (pa_option_optimization_table, pa_handle_option,
1734         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1735         TARGET_HANDLE_OPTION): Move from pa.c.
1736         * common/config/alpha/alpha-common.c,
1737         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1738         common/config/bfin/bfin-common.c,
1739         common/config/cris/cris-common.c,
1740         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1741         common/config/h8300/h8300-common.c,
1742         common/config/i386/i386-common.c,
1743         common/config/ia64/ia64-common.c,
1744         common/config/iq2000/iq2000-common.c,
1745         common/config/lm32/lm32-common.c,
1746         common/config/m32c/m32c-common.c,
1747         common/config/m32r/m32r-common.c,
1748         common/config/m68k/m68k-common.c,
1749         common/config/mcore/mcore-common.c,
1750         common/config/mep/mep-common.c,
1751         common/config/microblaze/microblaze-common.c,
1752         common/config/mips/mips-common.c,
1753         common/config/mmix/mmix-common.c,
1754         common/config/mn10300/mn10300-common.c,
1755         common/config/pdp11/pdp11-common.c,
1756         common/config/picochip/picochip-common.c,
1757         common/config/rs6000/rs6000-common.c,
1758         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1759         common/config/score/score-common.c, common/config/sh/sh-common.c,
1760         common/config/sparc/sparc-common.c,
1761         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1762         common/config/vax/vax-common.c,
1763         common/config/xstormy16/xstormy16-common.c,
1764         common/config/xtensa/xtensa-common.c: New.
1765         * config/alpha/alpha.c: Include common/common-target.h.
1766         (alpha_option_optimization_table, alpha_handle_option,
1767         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1768         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1769         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1770         * config/arm/arm.c (arm_option_optimization_table,
1771         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1772         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1773         arm-common.c.
1774         * config/avr/avr.c (avr_option_optimization_table,
1775         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1776         to avr-common.c.
1777         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1778         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1779         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1780         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1781         * config/cris/cris.c (cris_option_optimization_table,
1782         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1783         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1784         cris-common.c.
1785         * config/fr30/fr30.c (fr30_option_optimization_table,
1786         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1787         to fr30-common.c.
1788         * config/frv/frv.c (frv_option_optimization_table,
1789         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1790         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1791         * config/h8300/h8300.c (h8300_option_optimization_table,
1792         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1793         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1794         * config/i386/i386-protos.h (ix86_handle_option): Declare.
1795         * config/i386/i386.c: Include common/common-target.h.
1796         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1797         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1798         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1799         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1800         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1801         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1802         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1803         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1804         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1805         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1806         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1807         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1808         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1809         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1810         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1811         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1812         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1813         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1814         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1815         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1816         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1817         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1818         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1819         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1820         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1821         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1822         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1823         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1824         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1825         ix86_option_optimization_table, ix86_option_init_struct,
1826         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1827         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1828         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1829         i386-common.c.
1830         * config/i386/t-i386 (i386.o): Update dependencies.
1831         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1832         * config/ia64/ia64.c (ia64_option_optimization_table,
1833         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1834         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1835         ia64_handle_option): Move to ia64-common.c.
1836         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1837         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1838         * config/lm32/lm32.c (lm32_option_optimization_table,
1839         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1840         to lm32-common.c.
1841         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1842         m32c-common.c.
1843         * config/m32r/m32r.c (m32r_option_optimization_table,
1844         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1845         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1846         m32r_handle_option): Move to m32r-common.c.
1847         (m32r_memory_move_cost): Remove comment referring to
1848         TARGET_HANDLE_OPTION.
1849         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1850         Move to m68k-common.c.
1851         * config/mcore/mcore.c (mcore_option_optimization_table,
1852         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1853         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1854         * config/mep/mep.c (mep_option_optimization_table,
1855         mep_handle_option, TARGET_HANDLE_OPTION,
1856         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1857         Move to mep-common.c.
1858         * config/microblaze/microblaze.c
1859         (microblaze_option_optimization_table,
1860         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1861         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1862         * config/mips/mips.c (mips_handle_option,
1863         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1864         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1865         mips-common.c.
1866         * config/mmix/mmix.c (mmix_option_optimization_table,
1867         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1868         Move to mmix-common.c.
1869         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1870         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1871         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1872         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1873         * config/pa/pa.c: Include common/common-target.h.
1874         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1875         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1876         pa_handle_option): Move to pa-common.c.
1877         (pa_option_override): Use targetm_common.except_unwind_info.
1878         (pa_asm_output_mi_thunk, pa_function_section): Use
1879         targetm_common.have_named_sections.
1880         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1881         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1882         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1883         pdp11_handle_option, pdp11_option_init_struct): Move to
1884         pdp11-common.c.
1885         * config/picochip/picochip.c (picochip_option_optimization_table,
1886         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1887         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1888         * config/rs6000/rs6000.c: Include common/common-target.h.
1889         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1890         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1891         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1892         rs6000_handle_option): Move to rs6000-common.c.
1893         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1894         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1895         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1896         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1897         * config/s390/s390.c (processor_flags_table,
1898         s390_option_optimization_table, s390_option_init_struct,
1899         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1900         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1901         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1902         * config/s390/s390.h (processor_flags_table): Declare.
1903         * config/score/score.c (score_option_optimization_table,
1904         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1905         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1906         score_handle_option): Move to score-common.c.
1907         * config/sh/sh.c (sh_option_optimization_table,
1908         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1909         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1910         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1911         * config/sparc/sparc.c: Include common/common-target.h.
1912         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1913         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1914         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1915         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1916         spu_option_init_struct): Move to spu-common.c.
1917         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1918         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1919         * config/v850/v850.c (small_memory_physical_max,
1920         v850_handle_memory_optionn v850_handle_option,
1921         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1922         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1923         v850-common.c.
1924         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1925         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1926         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1927         Move to xtensa-common.c.
1928         * cfglayout.c: Include common/common-target.h.
1929         (fixup_reorder_chain): Use targetm_common.have_named_sections.
1930         * cfgrtl.c: Include common/common-target.h.
1931         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1932         targetm_common.have_named_sections.
1933         * dbxout.c: Include common/common-target.h.
1934         (dbxout_function_end): Use targetm_common.have_named_sections.
1935         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1936         targetm_common.except_unwind_info.
1937         * dwarf2out.c: Include common/common-target.h.
1938         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1939         dwarf2out_begin_prologue, dwarf2out_frame_init,
1940         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1941         targetm_common.except_unwind_info.
1942         * except.c: Include common/common-target.h.
1943         (init_eh, finish_eh_generation,
1944         output_one_function_exception_table): Use
1945         targetm_common.except_unwind_info.
1946         (switch_to_exception_section): Use targetm_common.have_named_sections.
1947         * explow.c: Include common/common-target.h.
1948         * expr.c: Include common/common-target.h.
1949         (build_personality_function): Use targetm_common.except_unwind_info.
1950         * function.c: Include common/common-target.h.
1951         (expand_function_end): Use targetm_common.except_unwind_info.
1952         * haifa-sched.c: Include common/common-target.h.
1953         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1954         * lto-opts.c: Include common/common-target.h instead of target.h.
1955         (lto_reissue_options): Use targetm_common.handle_option.
1956         * opts.c: Include common/common-target.h.
1957         (target_handle_option): Use targetm_common.handle_option.
1958         (init_options_struct): Update comment referring to
1959         targetm.target_option.optimization.  Use
1960         targetm_common.default_target_flags,
1961         targetm_common.unwind_tables_default and
1962         targetm_common.option_init_struct.
1963         (default_options_optimization): Use
1964         targetm_common.option_optimization_table.
1965         (finish_options): Use targetm_common.except_unwind_info,
1966         targetm_common.unwind_tables_default,
1967         targetm_common.have_named_sections and
1968         targetm_common.supports_split_stack.
1969         * toplev.c: Include common/common-target.h.
1970         (process_options): Use targetm_common.have_named_sections.
1971         * tree-tailcall.c: Include common/common-target.h.
1972         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
1973         * tree.c: Include common/common-target.h.
1974         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
1975         * varasm.c: Include common/common-target.h.
1976         (resolve_unique_section, hot_function_section,
1977         default_function_section): Use targetm_common.have_named_sections.
1978
1979 2011-06-14  Easwaran Raman  <eraman@google.com>
1980
1981         PR rtl-optimization/44194
1982         * dse.c: Include tree-flow.h
1983         (insn_info): Add new field non_frame_wild_read.
1984         (group_info): Add new fields escaped_n and escaped_p.
1985         (kill_on_calls): New variable.
1986         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1987         (dse_step0): Initialize kill_on_calls.
1988         (can_escape): New function.
1989         (set_usage_bits): Add additional parameter; record information
1990         about escaped locations.
1991         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
1992         (dse_step2_nospill): Set kill_on_calls based on
1993         group->escaped_n and group->escaped_n.
1994         (add_wild_read): Refactor into...
1995         (reset_active_stores): ... New function, and
1996         (free_read_records): ... New function.
1997         (add_non_frame_wild_read): New function.
1998         (scan_insn): Call add_non_frame_wild_read on non-const calls.
1999         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2000         (dse_step5_nospill): Call scan_reads_nospill for instructions
2001         marked as non_frame_wild_read.
2002         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2003
2004 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
2005
2006         * common/common-target-def.h, common/common-target.def,
2007         common/common-target.h, common/config/default-common.c,
2008         common/config/pa/pa-common.c: New files.
2009         * Makefile.in (common_out_file, common_out_object_file,
2010         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2011         (OBJS-libcommon-target): Include $(common_out_object_file).
2012         (prefix.o): Update dependencies.
2013         ($(common_out_object_file), common/common-target-hooks-def.h,
2014         s-common-target-hooks-def-h): New.
2015         (s-tm-texi): Also check timestamp on common-target.def.
2016         (build/genhooks.o): Update dependencies.
2017         * config.gcc (common_out_file, target_has_targetm_common): Define.
2018         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2019         TARGET_ALWAYS_STRIP_DOTDOT.
2020         * configure.ac (common_out_object_file): Define.
2021         (common_out_file, common_out_object_file): Substitute.
2022         (common): Create directory.
2023         * configure: Regenerate.
2024         * doc/tm.texi.in (targetm_common): Document.
2025         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2026         * doc/tm.texi: Regenerate.
2027         * genhooks.c (hook_array): Also include common/common-target.def.
2028         * prefix.c (tm.h): Don't include.
2029         (common/common-target.h): Include.
2030         (ALWAYS_STRIP_DOTDOT): Don't define.
2031         (update_path): Use targetm_common.always_strip_dotdot instead of
2032         ALWAYS_STRIP_DOTDOT.
2033         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2034
2035 2011-06-14  David Li  <davidxl@google.com>
2036
2037         * passes.c (execute_function_todo): Remove TODO_dump_func.
2038         (execute_one_pass): Remove TODO_dump_func.
2039         (execute_function_dump): New function.
2040         * tree-vrp.c: Remove TODO_dump_func.
2041         * regrename.c: Remove TODO_dump_func.
2042         * fwprop.c: Remove TODO_dump_func.
2043         * tree-into-ssa.c: Remove TODO_dump_func.
2044         * tree-complex.c: Remove TODO_dump_func.
2045         * tracer.c: Remove TODO_dump_func.
2046         * tree-loop-distribution.c: Remove TODO_dump_func.
2047         * postreload-gcse.c: Remove TODO_dump_func.
2048         * postreload.c: Remove TODO_dump_func.
2049         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2050         * tree-tailcall.c: Remove TODO_dump_func.
2051         * ipa-cp.c: Remove TODO_dump_func.
2052         * final.c: Remove TODO_dump_func.
2053         * tree-emutls.c: Remove TODO_dump_func.
2054         * omp-low.c: Remove TODO_dump_func.
2055         * tree-ssa-dse.c: Remove TODO_dump_func.
2056         * tree-ssa-uncprop.c: Remove TODO_dump_func.
2057         * auto-inc-dec.c: Remove TODO_dump_func.
2058         * reorg.c: Remove TODO_dump_func.
2059         * tree-ssa-copyrename.c: Remove TODO_dump_func.
2060         * tree-ssa-ccp.c: Remove TODO_dump_func.
2061         * compare-elim.c: Remove TODO_dump_func.
2062         * mode-switching.c: Remove TODO_dump_func.
2063         * modulo-sched.c: Remove TODO_dump_func.
2064         * tree-call-cdce.c: Remove TODO_dump_func.
2065         * cse.c: Remove TODO_dump_func.
2066         * web.c: Remove TODO_dump_func.
2067         * tree-stdarg.c: Remove TODO_dump_func.
2068         * lto-streamer-out.c: Remove TODO_dump_func.
2069         * tree-ssa-math-opts.c: Remove TODO_dump_func.
2070         * tree-ssa-dom.c: Remove TODO_dump_func.
2071         * tree-nrv.c: Remove TODO_dump_func.
2072         * loop-init.c: Remove TODO_dump_func.
2073         * gimple-low.c: Remove TODO_dump_func.
2074         * ipa-inline.c: Remove TODO_dump_func.
2075         * tree-ssa-sink.c: Remove TODO_dump_func.
2076         * jump.c: Remove TODO_dump_func.
2077         * ifcvt.c: Remove TODO_dump_func.
2078         * tree-ssa-loop.c: Remove TODO_dump_func.
2079         * recog.c: Remove TODO_dump_func.
2080         * dse.c: Remove TODO_dump_func.
2081         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2082         * matrix-reorg.c: Remove TODO_dump_func.
2083         * tree-eh.c: Remove TODO_dump_func.
2084         * regmove.c: Remove TODO_dump_func.
2085         * function.c: Remove TODO_dump_func.
2086         * tree-vectorizer.c: Remove TODO_dump_func.
2087         * ipa-split.c: Remove TODO_dump_func.
2088         * gcse.c: Remove TODO_dump_func.
2089         * tree-if-conv.c: Remove TODO_dump_func.
2090         * init-regs.c: Remove TODO_dump_func.
2091         * tree-ssa-phiopt.c: Remove TODO_dump_func.
2092         * implicit-zee.c: Remove TODO_dump_func.
2093         * lower-subreg.c: Remove TODO_dump_func.
2094         * bt-load.c: Remove TODO_dump_func.
2095         * tree-dfa.c: Remove TODO_dump_func.
2096         * except.c: Remove TODO_dump_func.
2097         * emit-rtl.c: Remove TODO_dump_func.
2098         * store-motion.c: Remove TODO_dump_func.
2099         * cfgexpand.c: Remove TODO_dump_func.
2100         * tree-cfgcleanup.c: Remove TODO_dump_func.
2101         * cfgcleanup.c: Remove TODO_dump_func.
2102         * tree-ssa-pre.c: Remove TODO_dump_func.
2103         * tree-sra.c: Remove TODO_dump_func.
2104         * tree-mudflap.c: Remove TODO_dump_func.
2105         * tree-ssa-copy.c: Remove TODO_dump_func.
2106         * cfglayout.c: Remove TODO_dump_func.
2107         * tree-ssa-forwprop.c: Remove TODO_dump_func.
2108         * tree-ssa-dce.c: Remove TODO_dump_func.
2109         * ira.c: Remove TODO_dump_func.
2110         * tree-ssa.c: Remove TODO_dump_func.
2111         * integrate.c: Remove TODO_dump_func.
2112         * tree-optimize.c: Remove TODO_dump_func.
2113         * tree-ssa-phiprop.c: Remove TODO_dump_func.
2114         * tree-object-size.c: Remove TODO_dump_func.
2115         * combine.c: Remove TODO_dump_func.
2116         * bb-reorder.c: Remove TODO_dump_func.
2117         * cprop.c: Remove TODO_dump_func.
2118         * var-tracking.c: Remove TODO_dump_func.
2119         * tree-profile.c: Remove TODO_dump_func.
2120         * tree-vect-generic.c: Remove TODO_dump_func.
2121         * reg-stack.c: Remove TODO_dump_func.
2122         * sched-rgn.c: Remove TODO_dump_func.
2123         * tree-ssa-structalias.c: Remove TODO_dump_func.
2124         * tree-switch-conversion.c: Remove TODO_dump_func.
2125         * tree-cfg.c: Remove TODO_dump_func.
2126         * tree-ssa-reassoc.c: Remove TODO_dump_func.
2127         * combine-stack-adj.c: Remove TODO_dump_func.
2128         * dce.c: Remove TODO_dump_func.
2129         * tree-ssanames.c: Remove TODO_dump_func.
2130         * regcprop.c: Remove TODO_dump_func.
2131
2132 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2133
2134         PR middle-end/47364
2135         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2136         and properly handle result not in Pmode.
2137
2138 2011-06-14  Robert Millan  <rmh@gnu.org>
2139
2140         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2141         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2142         `config/linux.h'.
2143
2144         * config/i386/kfreebsd-gnu64.h: New file.
2145         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2146         with `i386/kfreebsd-gnu64.h'.
2147
2148         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2149         (GNU_USER_LINK_EMULATION64): New macros.
2150         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2151         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2152         of hardcoding `elf_i386' and `elf_x86_64'.
2153
2154 2011-06-14  Nick Clifton  <nickc@redhat.com>
2155
2156         PR target/49403
2157         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2158
2159         PR target/49402
2160         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2161
2162 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
2163
2164         PR fortran/49103
2165         * tree.h (DECL_NONSHAREABLE): Define.
2166         (struct tree_decl_common): Change decl_common_unused to
2167         decl_nonshareable_flag.
2168         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2169         Ignore vars with DECL_NONSHAREABLE bit set.
2170         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2171         on stores to automatic aggregate vars.
2172
2173         PR rtl-optimization/49390
2174         Revert:
2175         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
2176
2177         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2178         MEM_ALIAS_SET.
2179
2180 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
2181             Tom de Vries  <tom@codesourcery.com>
2182
2183         PR target/45098
2184         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2185         Document changed semantics.
2186         (max_stmt_executions, max_stmt_executions_int): Declare.
2187         * tree-data-ref.c (estimated_loop_iterations)
2188         (estimated_loop_iterations_int): Move functions...
2189         * tree-ssa-loop-niter.c (estimated_loop_iterations)
2190         (estimated_loop_iterations_int): here.
2191         (record_estimate): Change nb_iterations_upper_bound and
2192         nb_iterations_estimate semantics.
2193         (max_stmt_executions, max_stmt_executions_int): New function.
2194         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2195         (max_stmt_executions_tree): this.
2196         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2197         estimated_loop_iterations_tree.
2198         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2199         max_stmt_executions_int instead of estimated_loop_iterations_int.
2200         * predict.c (predict_loops): Idem.
2201         * tree-parloops.c (parallelize_loops): Idem.
2202         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2203         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2204         (init_omega_for_ddr_1): Idem.
2205         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2206         (loop_prefetch_arrays): Idem
2207         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2208         max_stmt_executions instead of estimated_loop_iterations.
2209         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2210         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2211         instead of nb_iterations_upper_bound.
2212
2213 2011-06-13  Jan Hubicka  <jh@suse.cz>
2214
2215         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2216
2217 2011-06-14  Richard Henderson  <rth@redhat.com>
2218
2219         PR debug/48459
2220         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2221         (based_loc_descr): Assert it's true.
2222         (compute_frame_pointer_to_fb_displacement): Set it, rather than
2223         aborting immediately.
2224
2225 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
2226             Mingfeng Wu  <mingfeng@faraday-tech.com>
2227
2228         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2229
2230 2011-06-13  Jan Hubicka  <jh@suse.cz>
2231
2232         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2233
2234 2011-06-13  Jan Hubicka  <jh@suse.cz>
2235
2236         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2237         similarly to DECL_COMDAT.
2238         * cgraphunit.c (cgraph_analyze_function): Likewise.
2239         * ipa.c (function_and_variable_visibility): Likewise.
2240
2241 2011-06-13  Jan Hubicka  <jh@suse.cz>
2242
2243         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2244         BINFO_VIRTUALS when streaming for ltrans unit.
2245
2246 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
2247
2248         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2249         (movdi_internal64): Same.
2250
2251 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
2252
2253         PR target/44618
2254         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2255         a set of similar patterns, where the MATCH_OPERAND for the function
2256         argument is replaced with individual references to hardware registers.
2257         (save_fpregs_<mode>): Ditto
2258         (restore_gpregs_<mode>): Ditto
2259         (return_and_restore_gpregs_<mode>): Ditto
2260         (return_and_restore_fpregs_<mode>): Ditto
2261         (return_and_restore_fpregs_aix_<mode>): Ditto
2262
2263 2011-06-13  Jan Hubicka  <jh@suse.cz>
2264
2265         * ipa-utils.c (postorder_stack): New structure.
2266         (ipa_reverse_postorder): Handle aliases.
2267
2268 2011-06-13  Jan Hubicka  <jh@suse.cz>
2269
2270         * ipa-inline.c (reset_edge_caches): Walk aliases.
2271         (update_caller_keys): Do not test inlinability of aliases.
2272         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2273         (do_estimate_growth): Fix typo.
2274
2275 2011-06-13  Jan Hubicka  <jh@suse.cz>
2276
2277         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2278         (can_remove_node_now_p): ... here; handle same comdat groups.
2279         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2280         (inline_call): Update use of can_remove_node_now_p.
2281
2282 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2283
2284         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2285         condition to disallow non-identical memory locations.
2286         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2287         preference to bit manipulation instructions.
2288
2289 2011-06-13  Jan Hubicka  <jh@suse.cz>
2290
2291         * cgraph.c (cgraph_for_node_thunks_and_aliases,
2292         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2293         (nonremovable_p): New function.
2294         (cgraph_can_remove_if_no_direct_calls_p): New function.
2295         (used_from_object_file_p): New functoin.
2296         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2297         references from aliases.
2298         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2299         * ipa-inline.c (check_caller_edge): New function.
2300         (want_inline_function_called_once_p): Use it; accept aliases called
2301         once, too.
2302         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2303
2304 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2305
2306         PR target/48454
2307         * config/arm/neon.md (vec_pack_trunc): Set the lengths
2308         correctly for the case with Quad vectors.
2309
2310 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
2311            Ira Rosen  <ira.rosen@linaro.org>
2312
2313         PR tree-optimization/49352
2314         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2315         all, make sure loop_use_stmt after the loop is a def stmt of a used
2316         SSA_NAME that is the only one defined inside of the loop.  Don't
2317         check for COND_EXPR and GIMPLE_BINARY_RHS.
2318         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2319         check_reduction is true.
2320
2321 2011-06-11  Jan Hubicka  <jh@suse.cz>
2322
2323         PR middle-end/49373
2324         * ipa.c (cgraph_externally_visible_p): Check resolution info.
2325
2326 2011-06-11  Jan Hubicka  <jh@suse.cz>
2327
2328         PR middle-end/48836
2329         * ipa-inline-transform.c: Include tree-pass.h
2330         (inline_transform): Set TODO_update_ssa_only_virtuals.
2331         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2332
2333 2011-06-11  Jan Hubicka  <jh@suse.cz>
2334
2335         PR middle-end/49378
2336         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2337         aliases and thunks.
2338
2339 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
2340
2341         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2342         Take number of iterations to peel into account for equally frequent
2343         misalignment values.
2344
2345 2011-06-11  Jan Hubicka  <jh@suse.cz>
2346
2347         * lto-streamer-out.c (produce_symtab): Stream out the newly
2348         represented aliases.
2349
2350 2011-06-11  Jan Hubicka  <jh@suse.cz>
2351
2352         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2353         varying args.
2354         (ipa_update_after_lto_read): Likewise.
2355         (ipa_write_node_info): Do not sream call_with_var_arguments.
2356         (ipa_read_node_info): Likewise.
2357
2358 2011-06-11  Jan Hubicka  <jh@suse.cz>
2359
2360         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2361
2362 2011-06-11  Jan Hubicka  <jh@suse.cz>
2363
2364         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2365         (lto_symtab_resolve_can_prevail_p): Likewise.
2366         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2367         * cgraph.c (same_body_aliases_done): New global var.
2368         (cgraph_same_body_alias_1): Rename to ...
2369         (cgraph_create_function_alias): ... this one; reorg to new
2370         representation.
2371         (cgraph_same_body_alias): Use cgraph_create_function_alias;
2372         record references when asked to.
2373         (cgraph_add_thunk): Fix formating.
2374         (cgraph_get_node): Kill same body alias code.
2375         (cgraph_node_for_asm): Likewise.
2376         (cgraph_remove_same_body_alias): Remove.
2377         (cgraph_remove_node): Kill same body alias code.
2378         (cgraph_mark_address_taken_node): Mark also the aliased function
2379         as having address taken.
2380         (dump_cgraph_node): Dump same body aliases.
2381         (cgraph_for_node_thunks_and_aliases): Update for new alias
2382         representation.
2383         (cgraph_for_node_and_aliases): Likewise.
2384         * cgraph.h (same_body): Kll pointer.
2385         (same_body_alias): Update comment.
2386         (same_body_aliases_done): Declare.
2387         (cgraph_remove_same_body_alias): Remove declaration.
2388         (cgraph_create_function_alias): Declare.
2389         (cgraph_process_same_body_aliases): Declare.
2390         (cgraph_function_with_gimple_body_p): Check for alias.
2391         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2392         (cgraph_alias_aliased_node): New function.
2393         (cgraph_function_node): Update for new aliases.
2394         (cgraph_function_or_thunk_node): Likewise.
2395         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2396         (inline_call): Remove dead aliases.
2397         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2398         name hack for same body aliases.
2399         (clone_of_p): Look through aliases.
2400         (verify_cgraph_node): Verify aliases.
2401         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2402         (cgraph_process_same_body_aliases): New function.
2403         (process_function_and_variable_attributes): Disable weakref warning on
2404         alias.
2405         (cgraph_analyze_functions): Handle aliases.
2406         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2407         (assemble_thunks): Rename to ...
2408         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2409         (cgraph_expand_function): Remove alias output code.
2410         (cgraph_output_in_order): Skip aliases.
2411         (cgraph_preserve_function_body_p): Aliases don't need preserving.
2412         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2413         (ipa_record_reference): Do not assert on alias references.
2414         (ipa_ref_has_aliases_p): New function.
2415         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2416         (ipa_ref_has_aliases_p): Declare.
2417         * lto-cgraph.c (lto_output_node): Handle aliases.
2418         (input_node): Likewise.
2419         * lto-streamer-out.c (lto_output): Skip aliases.
2420         (produce_symtab): Kill same_body_alias code.
2421         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2422         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2423         * ipa-inline.c (update_caller_keys): Walk aliases.
2424         (inline_small_functions): Fix thinko in previous patch.
2425         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2426         (function_and_variable_visibility): Do not walk same body aliases.
2427         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2428         (ipa_pta_execute): Use it.
2429
2430 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2431
2432         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2433         (*vec_dupv2df): Rename from vec_dupv2df.
2434         (vec_dupv2df): New expander.
2435
2436 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2437
2438         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2439
2440 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2441
2442         * config/i386/i386.md: Use default value in "isa" attribute.
2443         * config/i386/sse.md: Ditto.
2444         * config/i386/mmx.md: Ditto.
2445
2446 2011-06-10  Wei Guozhi  <carrot@google.com>
2447
2448         PR target/45335
2449         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2450         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2451         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2452         related peephole2.
2453         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2454         related peephole2.
2455         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2456         (arm_legitimate_ldrd_p): New prototype.
2457         (arm_output_ldrd): New prototype.
2458         * config/arm/arm.c (arm_check_ldrd_operands): New function.
2459         (arm_legitimate_ldrd_p): New function.
2460         (arm_output_ldrd): New function.
2461
2462 2011-06-10  David Li  <davidxl@google.com>
2463
2464         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2465         * passes.c (passr_eq): New function.
2466         (create_pass_tab): New function.
2467         (pass_traverse): New function.
2468         (dump_one_pass): New function.
2469         (dump_pass_list): New function.
2470         (dump_passes): New function.
2471
2472 2011-06-10  Jan Hubicka  <jh@suse.cz>
2473
2474         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2475         setting the nothrow flag.
2476         * ipa-reference.c (propagate): Skip aliases.
2477         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2478         (propagate_nothrow): Skip aliases; do not update cgraph.
2479         (local_pure_const): Do not update cgraph.
2480         * tree-profile.c (tree_profiling): Do fixup_cfg.
2481
2482 2011-06-10  Jan Hubicka  <jh@suse.cz>
2483
2484         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2485         (cgraph_local_node_p): ... here; handle aliases.
2486         (has_addr_references_p): Break out from ...;
2487         (cgraph_remove_unreachable_nodes) ... here.
2488
2489 2011-06-10  Jan Hubicka  <jh@suse.cz>
2490
2491         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2492         * common.opt (flag_inline_functions_called_once): Do not
2493         initialize to 1.
2494
2495 2011-06-10  Jan Hubicka  <jh@suse.cz>
2496
2497         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2498         (ipcp_initialize_node_lattices): Do not deal with aliases;
2499         Do not try to propagate through thunks.
2500         (ipcp_change_tops_to_bottom): Do not deal with aliases.
2501
2502 2011-06-10  Jan Hubicka  <jh@suse.cz>
2503
2504         * ipa-prop.c (ipa_write_node_info): Stream jump functions
2505         for indirect calls.
2506         (ipa_read_node_info): Likewise.
2507
2508 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2509
2510         PR lto/49302
2511         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2512         (build_and_insert_call): Likewise.
2513         (build_and_insert_ref): New.
2514         (gimple_expand_builtin_pow): Minor cleanup.
2515         (gimple_expand_builtin_cabs): New.
2516         (execute_cse_sincos): Add case for BUILT_IN_CABS.
2517
2518 2011-06-10  Jan Hubicka  <jh@suse.cz>
2519
2520         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2521         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2522         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2523         (ipcp_propagate_stage): Skip aliases when propagating.
2524         (ipcp_need_redirect_p): Skip aliases.
2525         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2526         collect_callers_of_node.
2527         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2528         for aliases.
2529         (ipa_compute_jump_functions): Look through aliases.
2530
2531 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2532
2533         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2534
2535 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2536
2537         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2538         Adjust comments.
2539         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2540
2541 2011-06-10  Jan Hubicka  <jh@suse.cz>
2542
2543         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2544         Update call of gimple_get_virt_method_for_binfo.
2545         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2546         refuse_thunks parameter.
2547         (gimple_fold_call): Update.
2548         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2549
2550 2011-06-10  Jan Hubicka  <jh@suse.cz>
2551
2552         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2553         (not_all_callers_have_enough_arguments_p): ... this one; turn into
2554         worker for cgraph_for_node_and_aliases.
2555         (convert_callers_for_node): Break out from ...
2556         (convert_callers): ... here.
2557         (modify_function): Use collect_callers_of_node.
2558         (ipa_early_sra): Use cgraph_for_node_and_aliases.
2559
2560 2011-06-10  Richard Guenther  <rguenther@suse.de>
2561
2562         PR tree-optimization/49361
2563         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2564         when not already in gimple form.
2565
2566 2011-06-10  Richard Guenther  <rguenther@suse.de>
2567
2568         PR bootstrap/49344
2569         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2570         FOR_EACH_PHI_OR_STMT_USE.
2571
2572 2011-06-10  Jan Hubicka  <jh@suse.cz>
2573
2574         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2575         (clone_inlined_nodes): ... here.
2576         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2577         to real destination prior inlining.
2578         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2579         can_early_inline_edge_p, want_early_inline_function_p,
2580         want_early_inline_function_p, want_inline_small_function_p,
2581         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2582         edge_badness, update_all_callee_keys, lookup_recursive_calls,
2583         add_new_edges_to_heap, inline_small_functions, flatten_function,
2584         inline_always_inline_functions, early_inline_small_functions): Use
2585         cgraph_function_or_thunk_node.
2586         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2587         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2588         (do_estimate_edge_growth_1): Break out from ...
2589         (do_estimate_growth) ... here; walk aliases.
2590         (inline_generate_summary): Skip aliases.
2591
2592 2011-06-10  Richard Guenther  <rguenther@suse.de>
2593
2594         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2595         forward when combining, visit inserted stmts when a stmt was changed.
2596
2597 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
2598
2599         * tree.h (error_operand_p): Add.
2600         * dbxout.c (dbxout_type_fields): Use the latter.
2601         * c-decl.c (add_stmt): Likewise.
2602         * gimplify.c (omp_add_variable, omp_notice_variable,
2603         gimplify_scan_omp_clauses): Likewise.
2604
2605 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
2606
2607         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2608         when a value is actually passed in regs.
2609
2610 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
2611             Laurent Rougé  <laurent.rouge@menta.fr>
2612
2613         * doc/invoke.texi (SPARC options): Add -mflat.
2614         * config/sparc/sparc.opt: Likewise.
2615         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2616         (sparc_flat_expand_prologue): Declare.
2617         (sparc_flat_expand_epilogue): Likewise.
2618         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2619         (CPP_ENDIAN_SPEC): Replace with...
2620         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
2621         (CPP_SPEC): Adjust to above change.
2622         (EXTRA_SPECS): Likewise.
2623         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2624         (INCOMING_REGNO): Likewise.
2625         (OUTGOING_REGNO): Likewise.
2626         (LOCAL_REGNO): Likewise.
2627         (SETUP_FRAME_ADDRESSES): Likewise.
2628         (FIXED_REGISTERS): Set 0 for %fp.
2629         (CALL_USED_REGISTERS): Likewise.
2630         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2631         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2632         (RETURN_ADDR_REGNUM): Define.
2633         (RETURN_ADDR_RTX): Use it.
2634         (INCOMING_RETURN_ADDR_REGNUM): Define.
2635         (INCOMING_RETURN_ADDR_RTX): Use it.
2636         (DWARF_FRAME_RETURN_COLUMN): Likewise.
2637         (EH_RETURN_REGNUM): Define.
2638         (EH_RETURN_STACKADJ_RTX): Use it.
2639         (EH_RETURN_HANDLER_RTX): Delete.
2640         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2641         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2642         Delete.
2643         (struct machine_function): Add frame_size, apparent_frame_size,
2644         frame_base_reg, frame_base_offset, n_global_fp_regs and
2645         save_local_in_regs_p fields.
2646         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2647         sparc_frame_base_offset, sparc_n_global_fp_regs,
2648         sparc_save_local_in_regs_p): New macros.
2649         (sparc_option_override): Error out if -fcall-saved-REG is specified
2650         for Out registers.
2651         (eligible_for_restore_insn): Fix formatting.
2652         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
2653         (eligible_for_sibcall_delay): Likewise.
2654         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2655         (sparc_legitimate_address_p): Adjust to above change.
2656         (save_global_or_fp_reg_p): New predicate.
2657         (return_addr_reg_needed_p): Likewise.
2658         (save_local_or_in_reg_p): Likewise.
2659         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
2660         (SORR_SAVE, SORR_RESTORE): Delete.
2661         (sorr_pred_t): New typedef.
2662         (sorr_act_t): New enum.
2663         (save_or_restore_regs): Rename to...
2664         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
2665         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2666         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
2667         mechanism.  Add CFI information for double-word saves in 32-bit mode.
2668         (emit_adjust_base_to_offset): New function extracted from...
2669         (emit_save_or_restore_regs): ...this.  Rename the rest to...
2670         (emit_save_or_restore_regs_global_fp_regs): ...this.
2671         (emit_save_or_restore_regs_local_in_regs): New function.
2672         (gen_create_flat_frame_[123]): New functions.
2673         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
2674         (sparc_flat_expand_prologue): New function.
2675         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2676         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
2677         (sparc_flat_expand_epilogue): New function.
2678         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2679         (output_return): Likewise.
2680         (output_sibcall): Likewise.
2681         (sparc_output_mi_thunk): Likewise.
2682         (sparc_frame_pointer_required): Likewise.
2683         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2684         function optimization.
2685         * config/sparc/sparc.md (flat): New attribute.
2686         (prologue): Add TARGET_FLAT handling.
2687         (save_register_window): Disable if TARGET_FLAT.
2688         (create_flat_frame_[123]): New patterns.
2689         (epilogue): Add TARGET_FLAT handling.
2690         (sibcall_epilogue): Likewise.
2691         (eh_return): New expander.
2692         (eh_return_internal): New insn and splitter.
2693         (return_internal): Add TARGET_FLAT handling.
2694         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2695         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2696         (nonlocal_goto): Add TARGET_FLAT handling.
2697         * config/sparc/t-elf: Add -mflat multilib.
2698         * config/sparc/t-leon: Likewise.
2699
2700 2011-06-10  Jan Hubicka  <jh@suse.cz>
2701
2702         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2703         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2704         (self_recursive_p): Use cgraph_function_node.
2705         (propagate_pure_const): Likewise.
2706         (propagate_nothrow): Likewise.
2707         * ipa-reference.c (ipa_reference_get_not_read_global): Use
2708         cgraph_function_node.
2709         (propagate_bits): Likewise.
2710         (propagate): Likewise.
2711
2712 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2713             Richard Earnshaw  <rearnsha@arm.com>
2714
2715         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2716         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2717         (*thumb2_movdi_vfp): Delete.
2718         (*arm_movdi_vfp_cortexa8): Delete.
2719         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2720         (*movdi_vfp_cortexa8): Likewise.
2721
2722 2011-06-10  Richard Guenther  <rguenther@suse.de>
2723
2724         * stor-layout.c (initialize_sizetypes): Give names to all
2725         sizetype kinds.
2726
2727 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
2728
2729         PR tree-optimization/49318
2730         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2731         irrelevant pattern statements.
2732
2733 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2734
2735         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2736
2737         PR bootstrap/49354
2738         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2739         to last assignment.
2740
2741 2011-06-09  Jan Hubicka  <jh@suse.cz>
2742
2743         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2744         do not recompute reachable flag.
2745         (cgraph_finalize_function, cgraph_analyze_functions): Set
2746         redefined_extern_inline here.
2747
2748 2011-06-09  Jan Hubicka  <jh@suse.cz>
2749
2750         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2751         (cgraph_only_called_directly_p): ... this one; bring offline.
2752         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2753         varpool_used_from_object_file_p): Drop names from the declaratoin.
2754         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2755         collect_callers_of_node): New.
2756         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2757         (cgraph_edge_recursive_p): Use cgraph_function_node.
2758         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2759         (cgraph_node_cannot_be_local_p_1): Break out from ...
2760         (cgraph_node_can_be_local_p): ... here; walk aliases.
2761         (cgraph_for_node_thunks_and_aliases): New function.
2762         (cgraph_for_node_and_aliases): New function.
2763         (cgraph_make_node_local_1): Break out from ...
2764         (cgraph_make_node_local) ... here; use
2765         cgraph_for_node_thunks_and_aliases.
2766         (cgraph_set_nothrow_flag_1): Break out from ...
2767         (cgraph_set_nothrow_flag) ... here;
2768         use cgraph_for_node_thunks_and_aliases.
2769         (cgraph_set_const_flag_1): Break out from ...
2770         (cgraph_set_const_flag) ... here;
2771         use cgraph_for_node_thunks_and_aliases.
2772         (cgraph_set_pure_flag_1): Break out from ...
2773         (cgraph_set_pure_flag) ... here;
2774         use cgraph_for_node_thunks_and_aliases.
2775         (cgraph_propagate_frequency_1): Break out from ...
2776         (cgraph_propagate_frequency) ... here; use
2777         cgraph_for_node_thunks_and_aliases.
2778         (cgraph_used_from_object_file_p): Do not care about aliases.
2779         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2780         New functions.
2781         (collect_callers_of_node_1, collect_callers_of_node): New functions.
2782
2783 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2784
2785         PR rtl-optimization/49154
2786         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2787         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2788         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2789         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2790         * config/cris/cris.h (cris_register_move_cost): Remove
2791         !TARGET_V32 code.  Tweak comments.
2792
2793 2011-06-09  Jan Hubicka  <jh@suse.cz>
2794
2795         * cgraphbuild.c (record_eh_tables): Mark personality function as having
2796         address taken.
2797
2798 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2799
2800         PR rtl-optimization/49154
2801         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2802         is a matching slot in the hashtable, assign it to classes_ptr.
2803
2804         PR rtl-optimization/49154
2805         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2806         register classes.
2807         * doc/tm.texi: Regenerate.
2808
2809 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2810
2811         PR target/49307
2812         * config/sh/sh.md (UNSPEC_CHKADD): New.
2813         (chk_guard_add): New define_insn_and_split.
2814         (symGOT_load): Use chk_guard_add instead of blockage.
2815
2816 2011-06-09  Kai Tietz  <ktietz@redhat.com>
2817
2818         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2819
2820 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2821
2822         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2823
2824 2011-06-09  Wei Guozhi  <carrot@google.com>
2825
2826         PR target/46975
2827         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2828         (peephole2 for conditional move): Generate 16 bit instructions.
2829
2830 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
2831
2832         * config/i386/i386.md (*movdi_internal_rex64): Merge
2833         alternatives 6 and 8.
2834
2835 2011-06-09  David Li  <davidxl@google.com>
2836
2837         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2838         * passes.c (passr_eq): New function.
2839         (create_pass_tab): New function.
2840         (pass_traverse): New function.
2841         (dump_one_pass): New function.
2842         (dump_pass_list): New function.
2843         (dump_passes): New function.
2844
2845 2011-06-09  David Li  <davidxl@google.com>
2846
2847         * tree-complex.c (tree_lower_complex): Gate cleanup.
2848         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2849         (execute_optimize_stdarg): Ditto.
2850         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2851         (execute_cleanup_eh_1): Ditto.
2852         (execute_cleanup_eh): Ditto.
2853         * gcse.c (gate_rtl_pre): Ditto.
2854         (execute_rtl_pre): Ditto.
2855         * except.c (finish_eh_generation): Ditto.
2856         (convert_to_eh_region_ranges): Ditto.
2857         * cprop.c (one_cprop_pass): Ditto.
2858
2859 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
2860
2861         PR target/48673
2862         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2863         in all basic blocks.
2864
2865 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2866
2867         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2868         (HAVE_ENABLE_EXECUTE_STACK): Define.
2869         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2870         (HAVE_ENABLE_EXECUTE_STACK): Define.
2871         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2872         (HAVE_ENABLE_EXECUTE_STACK): Define.
2873         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2874         (ENABLE_EXECUTE_STACK): Remove.
2875         (HAVE_ENABLE_EXECUTE_STACK): Define.
2876         [IN_LIBGCC2]: Don't include <windows.h>.
2877         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2878         (HAVE_ENABLE_EXECUTE_STACK): Define.
2879         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2880         (HAVE_ENABLE_EXECUTE_STACK): Define.
2881         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2882         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2883         (HAVE_ENABLE_EXECUTE_STACK): Define.
2884         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2885         (HAVE_ENABLE_EXECUTE_STACK): Define.
2886         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2887         (HAVE_ENABLE_EXECUTE_STACK): Define.
2888         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2889         (HAVE_ENABLE_EXECUTE_STACK): Define.
2890         * config/alpha/alpha.c (alpha_trampoline_init): Test
2891         HAVE_ENABLE_EXECUTE_STACK.
2892         * config/i386/i386.c (ix86_trampoline_init): Likewise.
2893         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2894         (sparc64_initialize_trampoline): Likewise.
2895         * libgcc2.c [L_enable_execute_stack]: Remove.
2896         * system.h (ENABLE_EXECUTE_STACK): Poison.
2897         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2898         * doc/tm.texi: Regenerate.
2899         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2900
2901 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
2902
2903         PR middle-end/49308
2904         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2905         variable.  After resetting and rescanning insn continue with previous
2906         statement.
2907
2908 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2909
2910         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2911         (gcc_cv_ld_hidden): Likewise.
2912         * configure: Regenerate.
2913         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2914         (ix86_stack_protect_fail): Mark unused.
2915         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2916         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2917         [TARGET_MACHO]: Don't define.
2918         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2919         (TARGET_STACK_PROTECT_FAIL): Likewise.
2920         (rs6000_stack_protect_fail): Mark unused.
2921         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2922         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
2923
2924 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2925
2926         * varasm.c (get_section): Print location of other conflict
2927         for section conflicts.
2928
2929 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2930
2931         * config/i386/driver-i386.c (host_detect_local_cpu):
2932         Add model 0x2d Intel CPU.
2933
2934 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2935
2936         * reginfo.c (global_regs_decl): Add.
2937         (globalize_reg): Add decl parameter. Compute location.  Pass location
2938         to warnings and add inform. Store decl in global_regs_decl.
2939         * rtl.h (globalize_reg): Update prototype.
2940         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2941
2942 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
2943
2944         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2945
2946 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2947
2948         PR target/49305
2949         * config/sh/predicates.md (general_movsrc_operand): Check
2950         mode for memory with indexed address for QI and HImode.
2951         (general_movdst_operand): Likewise.
2952
2953 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
2954
2955         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2956
2957 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
2958
2959         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2960         (num_ssa_operands): Likewise.
2961         (op_iter_init_phiuse): Forward-declare.
2962         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2963
2964 2011-06-08  Nick Clifton  <nickc@redhat.com>
2965
2966         * doc/invoke.texi (ARM Options): Update description of
2967         -mthumb-interwork.
2968
2969 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
2970
2971         * config/i386/driver-i386.c (host_detect_local_cpu): Support
2972         unknown Intel family 0x6 CPUs.
2973
2974 2011-06-08  Martin Jambor  <mjambor@suse.cz>
2975
2976         * tree-sra.c (mark_rw_status): Removed.
2977         (analyze_access_subtree): New parameter parent instead of
2978         mark_read and mark_write, propagate from that.
2979
2980 2011-06-08  Julian Brown  <julian@codesourcery.com>
2981
2982         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2983         for double-precision helper functions in hard-float mode if only
2984         single-precision arithmetic is supported in hardware.
2985
2986 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
2987
2988         PR rtl-optimization/49303
2989         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
2990         code_motion_path_driver returned 0 or 1.
2991         (sel_region_finish): Clear h_d_i_d.
2992
2993 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2994
2995         * config/sh/sh.c (prepare_move_operands): Set pic register
2996         appropriately for global and local dynamic tls models even
2997         if flag_pic is unset.
2998
2999 2011-06-07  Jason Merrill  <jason@redhat.com>
3000
3001         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3002
3003 2011-06-07  Xinliang David Li  <davidxl@google.com>
3004         * passes.c (enable_disable_pass): Handle assembler name.
3005         (is_pass_explicitly_enabled_or_disabled): Ditto.
3006
3007 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3008
3009         PR tree-optimization/48497
3010         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3011
3012 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3013
3014         PR tree-optimization/46728
3015         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3016         to use gimple_val_nonnegative_real_p.
3017         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3018         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3019
3020 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
3021
3022         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3023
3024 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
3025
3026         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3027         constant vectors.
3028
3029 2011-06-07  Richard Guenther  <rguenther@suse.de>
3030
3031         * stor-layout.c (initialize_sizetypes): Initialize all
3032         sizetypes based on target definitions.
3033         (set_sizetype): Remove.
3034         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3035         * tree.h (set_sizetype): Remove.
3036
3037 2011-06-07  Nick Clifton  <nickc@redhat.com>
3038
3039         * config.gcc: Unify V850 architecture options and add support for
3040         newer V850 architectures.
3041         * config/v850/t-v850e: Delete.
3042
3043 2011-06-07  Richard Guenther  <rguenther@suse.de>
3044
3045         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3046         Call set_sizetype from here.
3047
3048 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
3049
3050         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3051         (*maddhisi4tb, *maddhisi4tt): New define_insns.
3052
3053 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
3054             Andrew Stubbs  <ams@codesourcery.com>
3055
3056         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3057         multiplies.
3058         * doc/md.texi (Canonicalization of Instructions): Document widening
3059         multiply canonicalization.
3060
3061 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
3062
3063         PR gcov-profile/49299
3064         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
3065
3066 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
3067
3068         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3069         a pointer.
3070         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3071         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3072         vect_recog_pow_pattern): Likewise.
3073         (vect_pattern_recog_1): Remove declaration.
3074         (widened_name_p): Remove declaration.  Add new argument to specify
3075         whether to check that both types are either signed or unsigned.
3076         (vect_recog_widen_mult_pattern): Update documentation.  Handle
3077         unsigned patterns and multiplication by constants.
3078         (vect_pattern_recog_1): Update vect_recog_func references.  Use
3079         statement information from the statement returned from pattern
3080         detection functions.
3081         (vect_pattern_recog): Update vect_recog_func reference.
3082         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3083         multiplication by a constant use the type of the other operand.
3084
3085 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
3086
3087         PR rtl-optimization/49145
3088         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3089
3090 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
3091
3092         PR debug/49262
3093         * dwarf2out.c (native_encode_initializer): Decrement count in each
3094         iteration.
3095
3096         PR debug/49294
3097         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3098         non-MODE_INT modes.
3099
3100         PR c++/49264
3101         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3102         if stmt folded into nothing.
3103         * tree-inline.c (fold_marked_statements): If a builtin at the end of
3104         a bb folded into nothing, just update cgraph edges and move to next bb.
3105         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3106         to be NULL.  Don't compute count and frequency if new_call is NULL.
3107
3108 2011-06-04  Diego Novillo  <dnovillo@google.com>
3109
3110         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3111         (cgraph.o): Likewise.
3112         (cgraphunit.o): Likewise.
3113         * cgraphunit.c: Include lto-streamer.h
3114         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3115         if LTO is enabled.
3116         * lto-streamer-in.c (unpack_value_fields): Call
3117         streamer_hooks.unpack_value_fields if set.
3118         (lto_materialize_tree): For unhandled nodes, first try to
3119         call lto_streamer_hooks.alloc_tree, if it exists.
3120         (lto_input_ts_decl_common_tree_pointers): Move reading of
3121         DECL_INITIAL to lto_streamer_read_tree.
3122         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3123         (lto_streamer_read_tree): New.
3124         (lto_reader_init): Rename from lto_init_reader.
3125         Move initialization code to lto/lto.c.
3126         * lto-streamer-out.c (pack_value_fields): Call
3127         streamer_hooks.pack_value_fields if set.
3128         (lto_output_tree_ref): For tree nodes that are not normally indexable,
3129         call streamer_hooks.indexable_with_decls_p before giving up.
3130         (lto_output_ts_decl_common_tree_pointers): Move handling
3131         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3132         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3133         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
3134         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
3135         (lto_streamer_write_tree): New.
3136         (lto_output): Call lto_streamer_init directly.
3137         (lto_writer_init): Remove.
3138         * lto-streamer.c (streamer_hooks): New.
3139         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3140         instead of lto_preload_common_nodes.
3141         (lto_is_streamable): Move from lto-streamer.h
3142         (lto_streamer_hooks_init): New.
3143         (streamer_hooks): New.
3144         (streamer_hooks_init): New.
3145         * lto-streamer.h (struct output_block): Forward declare.
3146         (struct lto_input_block): Likewise.
3147         (struct data_in): Likewise.
3148         (struct bitpack_d): Likewise.
3149         (struct streamer_hooks): Declare.
3150         (streamer_hooks): Declare.
3151         (lto_streamer_hooks_init): Declare.
3152         (lto_streamer_write_tree): Declare.
3153         (lto_streamer_read_tree): Declare.
3154         (streamer_hooks_init): Declare.
3155         (lto_is_streamable): Move to lto-streamer.c
3156
3157 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3158
3159         * longlong.h (smul_ppmm): The resulting register pair contains the
3160         higher order word first.
3161
3162 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3163
3164         PR tree-optimization/46728
3165         * builtins.c (powi_table): Remove.
3166         (powi_lookup_cost): Remove.
3167         (powi_cost): Remove.
3168         (expand_powi_1): Remove.
3169         (expand_powi): Remove.
3170         (expand_builtin_pow_root): Remove.
3171         (expand_builtin_pow): Remove.
3172         (expand_builtin_powi): Eliminate handling of constant exponent.
3173         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
3174
3175 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3176
3177         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3178
3179 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3180
3181         * dce.c (reset_unmarked_insns_debug_uses): New.
3182         (delete_unmarked_insns): Skip debug insns.
3183         (prescan_insns_for_dce): Likewise.
3184         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3185         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3186         active reg can be found.
3187         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
3188         (convert_regs_1): Use it.
3189
3190 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3191
3192         * tree-pretty-print.c (dump_function_header): Add flags.
3193         Don't dump decl_uid with nouid.
3194         * tree-pretty-print.h (dump_function_header): Adjust.
3195         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3196         * passes.c (pass_init_dump_file): Pass dump_flags on.
3197         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3198
3199 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3200
3201         PR bootstrap/49270
3202         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3203
3204 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
3205
3206         PR tree-optimization/49243
3207         * calls.c (setjmp_call_p): Also check if fndecl has the
3208         returns_twice attribute.
3209
3210 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3211
3212         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3213         -ffast-math etc.
3214
3215 2011-06-06  Richard Henderson  <rth@redhat.com>
3216             Georg-Johann Lay  <avr@gjlay.de>
3217
3218         PR target/42210
3219         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3220         New predicates.
3221         * config/avr/avr.md ("insv"): New insn expander.
3222         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3223         "*insv.not.io", "*insv.reg"): New insns.
3224
3225 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
3226
3227         PR target/49285
3228         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3229         to nonimmediate_operand from memory_operand for the operand that is to
3230         be forced to memory by the expander.  Lose the constraints.
3231
3232 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
3233
3234         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3235         EH return when delayed branches are disabled.
3236
3237 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
3238
3239         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3240         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
3241         calculation.
3242         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3243         Simplify MODE_V1DF and MODE_V2SF handling.
3244         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3245         Simplify MODE_SF handling.
3246
3247 2011-06-04  Jan Hubicka  <jh@suse.cz>
3248
3249         PR tree-optimization/48893
3250         PR tree-optimization/49091
3251         PR tree-optimization/49179
3252         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3253         Bounds check.
3254
3255 2011-06-04  Jan Hubicka  <jh@suse.cz>
3256
3257         PR lto/48954
3258         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3259         bitmaps.
3260
3261 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
3262
3263         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3264
3265 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
3266
3267         PR target/49281
3268         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3269         to be strictly smaller than 1 << shiftcount.
3270
3271 2011-06-04  Jan Hubicka  <jh@suse.cz>
3272
3273         PR tree-optimize/48929
3274         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3275         of empty predicate.
3276
3277 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
3278
3279         PR debug/48333
3280         * calls.c (emit_call_1): Prefer the __builtin declaration of
3281         builtin functions.
3282
3283 2011-06-03   Diego Novillo  <dnovillo@google.com>
3284
3285         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3286         (lto_input_tree_pointers): Likewise.
3287         * lto-streamer-out.c (pack_value_fields): Likewise.
3288         (lto_output_tree_pointers): Likewise.
3289         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3290         and OPTIMIZATION_NODE.
3291
3292 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3293
3294         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3295         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3296         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3297         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3298         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3299         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3300         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3301         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3302         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3303         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3304         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3305         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3306         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3307         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3308         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3309         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3310         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3311         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3312         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3313         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3314         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3315         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3316         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3317         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3318         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3319         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3320         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3321         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3322         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3323         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3324         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3325         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3326         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3327         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3328         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3329         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3330         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3331         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3332         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3333         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3334         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3335         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3336         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3337         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3338         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3339         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3340         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3341         * system.h (MD_UNWIND_SUPPORT): Poison.
3342         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3343         * doc/tm.texi: Regenerate.
3344         * unwind-dw2.c: Include md-unwind-support.h instead of
3345         MD_UNWIND_SUPPORT.
3346         * config/ia64/unwind-ia64.c: Likewise.
3347         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3348
3349 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
3350
3351         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3352
3353 2011-06-03  Richard Henderson  <rth@redhat.com>
3354             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3355
3356         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3357         (sigill_hdlr): Correct insn, insn size.
3358         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3359
3360 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3361
3362         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3363         t-slibgcc-dummy.
3364         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3365         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3366         * config/mips/t-iris: Remove.
3367         * config/mips/t-irix6: New file.
3368         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3369
3370 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3371
3372         * Makefile.in (LIB2ADDEHDEP): Remove.
3373         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3374         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3375         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3376         * config/t-darwin (LIB2ADDEHDEP): Remove.
3377         * config/t-freebsd (LIB2ADDEHDEP): Remove.
3378         * config/t-linux (LIB2ADDEHDEP): Remove.
3379
3380 2011-06-03  Diego Novillo  <dnovillo@google.com>
3381
3382         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3383         (lto_register_var_decl_in_symtab): Likewise.
3384         (lto_register_function_decl_in_symtab): Likewise.
3385         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3386         logic to uniquify_nodes.
3387
3388 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3389
3390         * config/alpha/t-osf5: Remove.
3391         * config/alpha/t-osf-pthread: Remove.
3392         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3393         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3394
3395 2011-06-03  Julian Brown  <julian@codesourcery.com>
3396
3397         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3398         (strongarm1110): Use strongarm tuning.
3399         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3400         * config/arm/arm.c (arm_strongarm_tune): New.
3401         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3402         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3403         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3404         setting, using previous defaults or 1 for Cortex-A5.
3405         (arm_option_override): Set max_insns_skipped from current tuning.
3406
3407 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
3408
3409         * doc/install.texi (Options specification): Document --with-specs.
3410
3411 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3412
3413         * config/arm/neon.md (orndi3_neon): Actually split it.
3414
3415 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3416
3417         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3418         * var-tracking.c (reverse_op): Limite recurse depth to 5.
3419
3420 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3421
3422         PR debug/47590
3423         * target.def (delay_sched2, delay_vartrack): New.
3424         * doc/tm.texi.in: Update.
3425         * doc/tm.texi: Rebuild.
3426         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3427         * var-tracking.c (gate_handle_var_tracking): Likewise.
3428         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3429         (bfin_flag_var_tracking): Drop.
3430         (output_file_start): Don't save and override flag_var_tracking.
3431         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3432         (bfin_reorg): Test original variables.
3433         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3434         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3435         (ia64_flag_var_tracking): Drop.
3436         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3437         (ia64_file_start): Don't save and override flag_var_tracking.
3438         (ia64_override_options_after_change): Ditto
3439         flag_schedule_insns_after_reload.
3440         (ia64_reorg): Test original variables.
3441         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3442         (picochip_flag_var_tracking): Drop.
3443         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3444         (picochip_option_override): Don't save and override
3445         flag_schedule_insns_after_reload.
3446         (picochip_asm_file_start): Ditto flag_var_tracking.
3447         (picochip_reorg): Test original variables.
3448         * config/spu/spu.c (spu_flag_var_tracking): Drop.
3449         (TARGET_DELAY_VARTRACK): Define.
3450         (spu_var_tracking): New.
3451         (spu_machine_dependent_reorg): Call it.
3452         (asm_file_start): Don't save and override flag_var_tracking.
3453
3454 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
3455
3456         PR target/49163
3457         * config/sh/predicates.md (general_movsrc_operand): Return 0
3458         for memory and memory subreg of which address is an invalid
3459         indexed address for QI and HImode.
3460         (general_movdst_operand): Likewise.
3461
3462 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3463
3464         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3465         edges only, when there is a non-local label in the function.
3466         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3467
3468 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3469
3470         * config/i386/constraints.md (Y3): New register constraint.
3471         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3472         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3473         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3474         *sse2_interleave_lowv2df.
3475
3476 2011-06-02  Julian Brown  <julian@codesourcery.com>
3477
3478         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3479         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3480         (arm_cortex_a5_tune): New.
3481
3482 2011-06-02  Julian Brown  <julian@codesourcery.com>
3483
3484         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3485         * config/arm/arm.c (arm_default_branch_cost): New.
3486         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3487         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3488         (arm_fa726_tune): Set branch_cost field using
3489         arm_default_branch_cost.
3490         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3491         current_tune structure.
3492         * dojump.c (tm_p.h): Include file.
3493
3494 2011-06-02  Julian Brown  <julian@codesourcery.com>
3495
3496         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3497         tuning.
3498         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3499         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3500         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3501         field.
3502         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3503         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3504         (arm_fa726te_tune): Add prefer_constant_pool setting.
3505         (arm_v6t2_tune, arm_cortex_tune): New.
3506         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3507         prefer_constant_pool setting.
3508
3509 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3510
3511         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3512         switch statement.
3513         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3514         (*movdf_internal) <case 6,7,8>: Ditto.
3515
3516         * config/i386/constraints.md (Y4): New register constraint.
3517         * config/i386/sse.md (vec_set<mode>_0): Merge with
3518         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3519         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3520         *vec_extractv2di_1_sse.
3521         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3522         and *vec_concatv2di_rex64_sse.
3523
3524 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
3525
3526         PR target/48807
3527         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3528         of cgraph_local_info for null before attempting to use it.
3529
3530 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3531
3532         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3533         (current_function_dynamic_alloc_count): Delete.
3534         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3535         (expand_builtin_nonlocal_goto): Remove obsolete comment.
3536         (expand_builtin_update_setjmp_buf): Remove dead code.
3537         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3538         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3539         support.
3540         * function.c (instantiate_virtual_regs): Likewise.
3541         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3542         for a block with a single abnormal incoming edge.
3543         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3544         (SETJMP_VIA_SAVE_AREA): Delete.
3545         * config/sparc/sparc-protos.h (load_got_register): Declare.
3546         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3547         (load_got_register): Make global.
3548         (sparc_frame_pointer_required): Add 'static'.
3549         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
3550         (sparc_builtin_setjmp_frame_value): New function.
3551         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3552         (save_stack_nonlocal): New expander.
3553         (restore_stack_nonlocal): Likewise.
3554         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3555         (nonlocal_goto_internal): New insn.
3556         (goto_handler_and_restore): Delete.
3557         (builtin_setjmp_setup): Likewise.
3558         (do_builtin_setjmp_setup): Likewise.
3559         (setjmp): Likewise.
3560         (builtin_setjmp_receiver): New expander.
3561
3562 2011-06-01  David Li  <davidxl@google.com>
3563
3564         PR middle-end/49261
3565         * tree-pretty-print.c (dump_function_header): Format cleanup.
3566
3567 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
3568
3569         PR target/49238
3570         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3571         needed when original operands are used for msw_skip comparison.
3572
3573 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3574
3575         PR debug/49250
3576         * var-tracking.c (add_uses, add_stores): Don't call
3577         cselib_subst_to_values on ENTRY_VALUE.
3578
3579 2011-06-01  Diego Novillo  <dnovillo@google.com>
3580
3581         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3582         output_record_start with LTO_null instead of output_zero.
3583         (lto_output_ts_binfo_tree_pointers): Likewise.
3584         (lto_output_tree): Likewise.
3585         (output_eh_try_list): Likewise.
3586         (output_eh_region): Likewise.
3587         (output_eh_lp): Likewise.
3588         (output_eh_regions): Likewise.
3589         (output_bb): Likewise.
3590         (output_function): Likewise.
3591         (output_unreferenced_globals): Likewise.
3592         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3593         instead of NUM_TREE_CODES.
3594         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3595         (lto_output_int_in_range): Change << to >> when shifting VAL.
3596
3597 2011-06-01  Diego Novillo  <dnovillo@google.com>
3598
3599         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3600         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3601
3602 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3603
3604         PR target/45074
3605         * optabs.h (valid_multiword_target_p): Declare.
3606         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3607         doing multi-word operations.
3608         * optabs.c (expand_binop): Likewise.
3609         (expand_doubleword_bswap): Likewise.
3610         (expand_absneg_bit): Likewise.
3611         (expand_unop): Likewise.
3612         (expand_copysign_bit): Likewise.
3613         (multiword_target_p): New function.
3614
3615 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3616
3617         PR rtl-optimization/48830
3618         PR rtl-optimization/48808
3619         PR rtl-optimization/48792
3620         * reload.c (push_reload): Check contains_reg_of_mode.
3621         * reload1.c (strip_paradoxical_subreg): New function.
3622         (gen_reload_chain_without_interm_reg_p): Use it to handle
3623         paradoxical subregs.
3624         (emit_output_reload_insns, gen_reload): Likewise.
3625
3626 2011-06-01  David Li  <davidxl@google.com>
3627
3628         * predict.c : Change pass name
3629         * ipa.c: Ditto.
3630         * dce.c: Ditto.
3631         * tree-profile.c: Ditto.
3632         * except.c: Ditto.
3633
3634 2011-06-01  David Li  <davidxl@google.com>
3635
3636         * tree-pretty-print.c (dump_function_header): New function.
3637         * final.c (rest_of_clean_state): Use header dumper.
3638         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3639         * passes.c (pass_init_dump_file): Use header dumper.
3640
3641 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3642
3643         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3644         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3645         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3646         New functions.
3647         (mem_loc_descriptor): Use them.
3648
3649         * var-tracking.c (create_entry_value): New function.
3650         (vt_add_function_parameter): Use it.
3651
3652 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3653
3654         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3655         Include <signal.h>, <ucontext.h>.
3656         (sigill_caught): Define.
3657         (sigill_hdlr): New function.
3658         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3659         insns can be executed.
3660         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3661         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3662
3663 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3664
3665         * config/t-slibgcc-darwin: Move to ...
3666         * config/t-slibgcc-dummy: ... this.  Clarify comments.
3667         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3668         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3669         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3670         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
3671         Remove i386/t-crtstuff from tmake_file.
3672         (i[34567]86-*-solaris2*): Remove t-svr4,
3673         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3674         t-slibgcc-dummy.
3675         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3676         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3677         sparc/t-crtfm from tmake_file.
3678         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3679         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3680         Remove extra_parts.
3681         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3682         * config/i386/t-nwld (SHLIB_LINK): Remove.
3683         * config/i386/t-rtems-i386: Rename to ...
3684         * config/i386/t-rtems: ... this.
3685         ($(T)crti.o, $(T)crtn.o): Remove.
3686         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3687         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3688         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3689         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3690         EXTRA_MULTILIB_PARTS): Remove.
3691         * config/sparc/t-sol2-64: Likewise.
3692         * config/sparc/t-sol2: Remove.
3693         * config/sparc/t-crtin: Remove.
3694         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3695         * config/i386/gmon-sol2.c: Remove.
3696         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3697         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3698         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3699         * config/i386/sol2-gc1.asm: Remove.
3700         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3701         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3702         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3703         * config/t-slibgcc-sld: Remove.
3704
3705 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3706
3707         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3708         base_type_for_mode with op_mode instead of mode.
3709
3710 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
3711
3712         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
3713         Cortex-A15.
3714         * config/arm/arm-tune.md: Regenerate.
3715         * config/arm/arm-tables.opt: Regenerate.
3716         * config/arm/arm.c (FL_DIV): Rename...
3717         (FL_THUMB_DIV): ... to this.
3718         (FL_ARM_DIV): Define.
3719         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3720         (arm_arch_hwdiv): Remove.
3721         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3722         (arm_issue_rate): Add cortexr5.
3723         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3724         __ARM_ARCH_EXT_IDIV__.
3725         (TARGET_IDIV): Define.
3726         (arm_arch_hwdiv): Remove.
3727         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3728         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3729         (divsi3, udivsi3): New patterns.
3730         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3731         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3732
3733 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3734
3735         * ipa-utils.c (ipa_dfs_info): New field scc_no.
3736         * ipa-utils.c (searchc): Set scc_no.
3737
3738 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3739
3740         * ipa-utils.c (searchc_env): New field allow_overwritable.
3741         (searchc): do not ignore edges to overwritable nodes if indicated
3742         by env->allow_overwritable.
3743         (ipa_reduced_postorder): Set env.allow_overwritable.
3744
3745 2011-06-01  Richard Guenther  <rguenther@suse.de>
3746
3747         * tree.c (free_lang_data): Do not reset boolean_type_node nor
3748         char_type_node.
3749         * lto-streamer.c (lto_record_common_node): Take node pointer,
3750         do not register types.
3751         (lto_preload_common_nodes): Explicitly skip preloading nodes
3752         that differ between frontends.
3753
3754 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3755
3756         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3757         NON_FLOAT_REGS.
3758
3759 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3760
3761         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3762         parameter value for dump. Dump cost on outermost call only.
3763         (rs6000_memory_move_cost): Dump cost on outermost call only.
3764
3765 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3766
3767         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3768         DW_OP_GNU_convert ops.
3769
3770         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3771         cselib_preserve_constants.
3772         (cselib_lookup_1): If cselib_preserve_constants,
3773         a new VALUE is being created for REG and there is a VALUE for the
3774         same register in wider mode, add another loc with lowpart SUBREG of
3775         the wider VALUE.
3776         (cselib_subst_to_values): Handle ENTRY_VALUE.
3777         * var-tracking.c  (replace_expr_with_values): Return NULL for
3778         ENTRY_VALUE too.
3779         * dwarf2out.c (convert_descriptor_to_signed): New function.
3780         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3781         instead of two shifts.
3782         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3783         the right mode if needed.
3784         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3785         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3786         convert_descriptor_to_signed.
3787         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3788         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3789
3790         PR target/48688
3791         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3792
3793 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3794
3795         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3796         of X87MODEI12 and SWI48x instead of SSEMODEI24.
3797         (SWI248x): New mode iterator, rename from X87MODEI.
3798         (X87MODEI): Remove mode iterator.
3799         (X87MODEI12): Ditto.
3800         (SSEMODEI24): Ditto.
3801
3802 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3803
3804         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3805         * doc/invoke.texi: Document max-vartrack-expr-depth.
3806         * var-tracking.c (EXPR_DEPTH): New.
3807         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3808
3809 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3810
3811         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3812         * config/i386/sse.md: Add n to negated FMA pattern names.
3813
3814 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3815
3816         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3817
3818 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3819
3820         * gengtype-state.c (read_state_params_structs): Initialize previous.
3821
3822 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3823
3824         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3825         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3826
3827 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3828
3829         * config/i386/i386.md (*movtf_internal): Avoid allocating general
3830         registers.  Penalize F*r->o alternative to prevent partial memory
3831         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
3832         CONST_DOUBLE immediates when optimizing function for size.  Do not move
3833         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3834         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3835         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3836         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3837         alternatives.
3838         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3839
3840         (fp_register_operand splitters): Use fp_register_operand
3841         constraint.  Do not use FP_REG_P in insn condition.
3842         (any_fp_register_operand splitters): Use any_fp_register_operand
3843         constraint.  Do not use ANY_FP_REG_P in insn condition.
3844
3845 2011-05-31  Jan Hubicka  <jh@suse.cz>
3846
3847         * cgraph.h (cgraph_inline_failed_t): Give enum a name
3848         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3849         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3850         (lto_output_edge): Use output_enum and var_len_unsigned.
3851         (lto_output_varpool_node): Likewise.
3852         (input_overwrite_node): Do not take resolution parameter;
3853         extract it from a bitpack.
3854         (input_node): Do not read resolution; use input_enum and
3855         var_len_unsigned.
3856         (input_varpool_node): Likewise.
3857         (input_edge): Likewise.
3858         (input_cgraph_1): Likewise.
3859
3860 2011-05-31  Richard Guenther  <rguenther@suse.de>
3861
3862         * gimple.c (gimple_register_canonical_type): Do not register
3863         any types via gimple_register_type.
3864
3865 2011-05-31  Jan Hubicka  <jh@suse.cz>
3866
3867         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3868         of thunks.
3869
3870 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3871
3872         PR rtl-optimization/49235
3873         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3874         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3875
3876 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
3877
3878         PR tree-optimization/49093
3879         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3880         data references.
3881
3882 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
3883
3884         PR debug/49047
3885         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3886         for concrete functions containing the code of cloned functions.
3887
3888 2011-05-31  Richard Guenther  <rguenther@suse.de>
3889
3890         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3891         to ...
3892         (forward_propagate_into_comparison_1): ... this.
3893         (forward_propagate_comparison): Rename to ...
3894         (forward_propagate_into_comparison): ... this.  Split out
3895         real forward propagation code to ...
3896         (forward_propagate_comparison): ... this.
3897         (forward_propagate_into_gimple_cond): Remove looping.
3898         (forward_propagate_into_cond): Likewise.
3899         (simplify_not_neg_expr): Return whether we have done something.
3900         (simplify_gimple_switch): Likewise.
3901         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3902         (ssa_forward_propagate_and_combine): ... this.  Re-structure
3903         to do a forward forward-propagation walk on BBs and a backward
3904         stmt combining walk on BBs.  Consistently re-scan changed statements.
3905         (pass_forwprop): Adjust.
3906
3907 2011-05-30  Ian Lance Taylor  <iant@google.com>
3908
3909         * godump.c (go_format_type): Correct length of name added to
3910         obstack for anonymous field.
3911
3912 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
3913
3914         PR target/49186
3915         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3916         part of the second operand is 0.
3917
3918 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
3919
3920         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3921         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
3922         to memory for !TARGET_MEMORY_MISMATCH_STALL.
3923         (*movdf_internal_rex64): Do not penalize F->r alternative.
3924         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3925         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
3926         when optimizing function for size.  Do not move CONST_DOUBLEs
3927         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3928         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
3929         SUBREGs.  Do not check for MEM_P operands in the insn condition,
3930         check for ANY_FP_REGNO_P instead.
3931         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3932         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3933         function for speed.
3934         * config/i386/i386.c (ix86_option_override_internal): Do not
3935         set TARGET_INTEGER_DFMODE_MOVES here.
3936
3937 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3938
3939         PR target/49168
3940         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3941
3942 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
3943
3944         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3945         DW_TAG_rvalue_reference_type even for
3946         -gdwarf-4 -fno-debug-types-section.
3947
3948 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3949
3950         PR tree-optimization/46728
3951         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3952         (build_and_insert_binop): New.
3953         (gimple_expand_builtin_pow): Reorder args for
3954         build_and_insert_call; use build_and_insert_binop; add more
3955         optimizations for fractional exponents.
3956
3957 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3958
3959         PR bootstrap/49190
3960
3961         Revert:
3962         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3963
3964         * tree.h (struct tree_identifier): Inherit from tree_typed, not
3965         tree_common.
3966         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3967         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3968         TS_BASE instead of TS_COMMON.
3969         * varasm.c (assemble_name): Remove assert.
3970
3971 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
3972
3973         * config.gcc: Keep obselete list sorted.
3974
3975 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
3976             Eric Botcazou  <ebotcazou@adacore.com>
3977
3978         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3979         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3980         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3981         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3982         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3983
3984 2011-05-30  Richard Guenther  <rguenther@suse.de>
3985
3986         * gimple.c (gimple_types_compatible_p_1): Compare record
3987         and union type members properly.
3988
3989 2011-05-30  Richard Guenther  <rguenther@suse.de>
3990
3991         PR tree-optimization/49210
3992         * ipa-split.c (split_function): Care for the case where the call
3993         result is not trivially convertible to the result holding variable.
3994
3995 2011-05-30  Richard Guenther  <rguenther@suse.de>
3996
3997         PR tree-optimization/49218
3998         * tree-vrp.c (adjust_range_with_scev): Properly check whether
3999         overflow occured.
4000
4001 2011-05-30  Richard Guenther  <rguenther@suse.de>
4002
4003         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4004         New function split out from ...
4005         (forward_propagate_into_gimple_cond): ... here.  Adjust.
4006         (forward_propagate_into_cond): Likewise.
4007         (forward_propagate_comparison): Also propagate into
4008         comparisons on assignment RHS.  Change return value to
4009         behave similar to forward_propagate_into_cond.
4010         (tree_ssa_forward_propagate_single_use_vars): Handle
4011         strict-overflow warnings properly for forward_propagate_comparison.
4012
4013 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4014
4015         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4016         from plugin linker.
4017         * configure: Regenerate.
4018
4019 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
4020
4021         PR tree-optimization/49199
4022         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
4023         non-reduction operands are either defined in the loop or by induction.
4024
4025 2011-05-29  Xinliang David Li  <davidxl@google.com>
4026
4027         * opts-global.c (handle_common_deferred_options): Handle new options.
4028         * passes.c (register_one_dump_file): Call register_pass_name.
4029         (execute_one_pass): Check explicit enable/disable flag.
4030         (passr_hash): New function.
4031         (passr_eq): Ditto.
4032         (register_pass_name): Ditto.
4033         (get_pass_by_name): Ditto.
4034         (pass_hash): Ditto.
4035         (pass_eq): Ditto.
4036         (enable_pass): Ditto.
4037         (disable_pass): Ditto.
4038         (is_pass_explicitly_enabled_or_disabled): Ditto.
4039
4040 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
4041
4042         * config/i386/i386.md (*movoi_internal_avx): Use
4043         standard_sse_constant_opcode for alternative 0.
4044         (*movti_internal_sse): Ditto.
4045         (*movti_internal_rex64): Use standard_sse_constant_opcode for
4046         alternative 2.
4047         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4048         sselog1 type moves.
4049         (*movsi_internal): Ditto.
4050         (*movdi_internal): Ditto.  Add ssecvt type moves.
4051
4052 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4053
4054         PR target/48830
4055         * rtlanal.c (simplify_subreg_regno): Adjust comment.
4056
4057 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
4058
4059         PR rtl-optimization/49095
4060         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4061         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4062
4063 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
4064
4065         PR target/43995
4066         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4067         recurse_p argument.  Only follow register copies if it is set,
4068         and prevent mips_find_pic_call_symbol from recursing.
4069         (mips_find_pic_call_symbol): Add a recurse_p argument.
4070         Pass it to mips_pic_call_symbol_from_set.
4071         (mips_annotate_pic_calls): Update accordingly.
4072
4073 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
4074
4075         * emit-rtl.c (try_split): Use a loop to search for
4076         NOTE_INSN_CALL_ARG_LOCATIONs.
4077
4078 2011-05-29  Richard Guenther  <rguenther@suse.de>
4079
4080         PR tree-optimization/49217
4081         * ipa-pure-const.c (propagate_pure_const): Fix typos.
4082
4083 2011-05-28  Jan Hubicka  <jh@suse.cz>
4084
4085         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4086         length.
4087         (string_slot_free): Remove
4088         (create_output_block): Initialize obstack.
4089         (destroy_output_block): Free obstack.
4090         (lto_string_index): Add PERSISTENT parameter; do not duplicate
4091         the string unless it needs to be added into the hash.
4092         (lto_output_string_with_length): Add persistent attribute;
4093         handle NULL strings.
4094         (lto_output_string): Add PERSISTENT parameter.
4095         (output_string_cst, output_identifier): Simplify.
4096         (lto_output_location_bitpack): Update.
4097         (lto_output_builtin_tree): Update.
4098         * lto-streamer.h (struct output_block): Add obstack.
4099         (lto_output_string, lto_output_string_with_length): Remove
4100         declarations; functions are static now.
4101
4102 2011-05-28  Jan Hubicka  <jh@suse.cz>
4103
4104         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4105         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4106         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4107         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4108         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4109         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4110         unpack_ts_decl_with_vis_value_fields,
4111         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4112         lto_get_builtin_tree): Use enum and variable length i/o.
4113         * basic-block.h (profile_status_d): Add PROFILE_LAST.
4114         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4115         New functions.
4116         (bp_pack_enum, bp_unpack_enum): New macros.
4117
4118 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4119
4120         * genrecog.c: Remove redundant forward declarations.
4121
4122 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4123
4124         * config.gcc: Deprecate mips*-*-openbsd*.
4125
4126 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4127
4128         PR bootstrap/49195
4129         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4130         for match_op_dup.
4131
4132 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
4133
4134         PR middle-end/48981
4135         * gengtype.c (vec_prefix_type): New function.
4136         (note_def_vec): Use vec_prefix_type and change the length
4137         attribute to be based on the prefix.
4138         * vec.c: Include coretypes.h before vec.h.
4139         (struct vec_prefix): Remove.
4140         (vec_gc_p_reserve): Change the offsetof to sizeof.
4141         (vec_gc_p_reserve_exact): Likewise.
4142         (vec_heap_p_reserve): Likewise.
4143         (vec_heap_p_reserve_exact): Likewise.
4144         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4145         (vec_stack_p_reserve): Change the offsetof to sizeof.
4146         (vec_stack_p_reserve_exact): Likewise.
4147         * vec.h (struct vec_prefix): New struct definition.
4148         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4149         (VEC_T_GTY(T,B)): Likewise.
4150         (DEF_VEC_FUNC_P(T)): Use prefix field.
4151         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4152         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4153
4154 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4155
4156         PR tree-optimization/46728
4157         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4158         (powi_as_mults): Add gimple_set_location.
4159         (build_and_insert_call): New.
4160         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4161         0.5, 0.25, 0.75, 1./3., or 1./6.
4162
4163 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
4164
4165         * doc/contrib.texi: Update copyright years.
4166         (Contributors): Add Zdenek Sojka.
4167
4168 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
4169
4170         * c-decl.c (c_push_function_context): Copy the current statement
4171         list stack.
4172         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4173         (finish_struct): Call building_stmt_list_p instead of checking
4174         cur_stmt_list.
4175         * c-parser.c (c_parser_postfix_expression): Likewise.
4176         * c-typeck.c (c_end_compound_stmt): Likewise.
4177         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4178         * tree-iterator.c (stmt_list_cache): Change to a VEC.
4179         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4180         (free_stmt_list): Likewise.
4181         * tree.h (struct tree_statement_list): Include typed_tree instead
4182         of tree_common.
4183         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4184         as TS_TYPED instead of TS_COMMON.
4185
4186 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4187             Uros Bizjak  <ubizjak@gmail.com>
4188
4189         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4190         (HAVE_AS_IX86_TLSGDPTL): Define.
4191         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4192         (HAVE_AS_IX86_TLSLDMPLT): Define.
4193         * configure: Regenerate.
4194         * config.in: Regenerate.
4195         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4196         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4197         TARGET_SUN_TLS, use @tlsgdplt or @plt.
4198         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4199         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4200         @tlsldmplt or @plt.
4201         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4202
4203 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
4204
4205         * sched-int.h (struct _haifa_deps_insn_data): New members cond
4206         and reverse_cond.
4207         (INSN_COND, INSN_REVERSE_COND): New macros.
4208         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4209         once.
4210         (sched_get_condition_with_rev): Cache the results, and look them up
4211         if possible.
4212         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4213         are clobbered by the current insn.
4214         * target.def (exposed_pipline): New sched data hook.
4215         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4216         * doc/tm.texi: Regenerate.
4217
4218 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4219
4220         PR tree-optimization/49170
4221         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
4222         sincos or cexp.
4223
4224 2011-05-27  Richard Guenther  <rguenther@suse.de>
4225
4226         PR middle-end/49189
4227         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4228         of comparisons.
4229
4230 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
4231
4232         * haifa-sched.c (sched_scan_info): Remove.
4233         (schedule_block): Call sched_extend_luids rather than sched_init_luids
4234         with NULL args.
4235         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4236         Remove functions.
4237         (sched_scan): Remove.
4238         (sched_extend_luids): Renamed from luids_extend_insn and no longer
4239         static.  All callers changed.
4240         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4241         static.  All callers changed.
4242         (sched_init_luids): Remove all arguments except the first.  All
4243         callers changed.  Don't use sched_scan.
4244         (haifa_init_h_i_d): Likewise.
4245         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4246         manually rather than using sched_init_luids.  Likewise with
4247         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4248         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4249         rather than sched_init_luids with NULL args.
4250         * sel-sched-ir.c (new_insns): Remove variable.
4251         (sched_scan): New static function, previously in haifa-sched.c.  Remove
4252         all arguments but the first two; all callers changed.
4253         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4254         rather than sched_init_luids.
4255         (sel_init_bbs): Remove second argument.  All callers changed.
4256         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4257         with NULL arguments.
4258         (create_insn_rtx_from_pattern): Likewise.
4259         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4260         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4261         (sched_init_insn_luid, sched_extend_luids): Declare.
4262         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4263         declarations.
4264
4265 2011-05-27  Richard Guenther  <rguenther@suse.de>
4266
4267         PR middle-end/49177
4268         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4269         A CMP B ? (T) true : (T) false for non-integral types T again.
4270
4271 2011-05-27  Jan Hubicka  <jh@suse.cz>
4272
4273         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4274         so 0 means NULL string.
4275         (lto_output_string_with_length): ... here.
4276         (lto_output_string, output_string_cst, output_identifier): Update
4277         handling of NULL strings.
4278         (lto_output_location_bitpack): New function.
4279         (lto_output_location): Use it.
4280         (lto_output_tree_ref): Use output_record_start.
4281         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4282         len values.
4283         * lto-streamer-in.c (string_for_index): Break out from ...; offset
4284         values by 1.
4285         (input_string_internal): ... here;
4286         (input_string_cst, input_identifier, lto_input_string): Update handling
4287         of NULL strings.
4288         (lto_input_location_bitpack): New function
4289         (lto_input_location): Use it.
4290         (unpack_ts_type_common_value_fields): Pack align & alias in var len
4291         values.
4292         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4293         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4294         (bp_pack_value): Sanity check the value range.
4295         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4296         New functions.
4297         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4298         New functions.
4299
4300 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
4301
4302         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4303         call_arg_location instructions down the floor.
4304
4305 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
4306
4307         PR rtl-optimization/49154
4308         * ira.c (setup_pressure_classes): Process class without sublcasses
4309         as a candidate for pressure classes.
4310
4311 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
4312
4313         PR rtl-optimization/48575
4314         * genrecog.c (position_type): New enum.
4315         (position): New structure.
4316         (decision): Use position structure instead of a string.
4317         (root_pos, peep2_insn_pos_list): New variables.
4318         (next_position, compare_positions): New functions.
4319         (new_decision): Use position structures instead of strings.
4320         (maybe_both_true): Likewise.
4321         (change_state): Likewise.
4322         (write_tree): Likewise.
4323         (make_insn_sequence): Likewise.
4324
4325 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4326
4327         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4328         TS_BASE instead of TS_COMMON.
4329         (find_decls_types_r): Check for TS_TYPED structure before looking at
4330         TREE_TYPE.
4331         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4332         Add chain field.
4333         (BLOCK_CHAIN): Use new chain field.
4334
4335 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
4336
4337         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4338         moves expensive on Power7 also.
4339
4340 2011-05-26  Richard Guenther  <rguenther@suse.de>
4341
4342         * fold-const.c (fold_unary_loc): Remove bogus code.
4343
4344 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4345
4346         * tree.h (struct tree_identifier): Inherit from tree_typed, not
4347         tree_common.
4348         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4349         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4350         TS_BASE instead of TS_COMMON.
4351         * varasm.c (assemble_name): Remove assert.
4352
4353 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4354
4355         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4356         substituted first.
4357         * libgcc-std.ver: Delete file.
4358
4359 2011-05-26  Richard Guenther  <rguenther@suse.de>
4360
4361         PR tree-optimization/48702
4362         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4363         only when we know the base address is within bounds.
4364         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4365         assume the base address of TARGET_MEM_REFs is in bounds.
4366
4367 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4368
4369         PR target/49099
4370         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4371         declaration in TARGET_SOLARIS.
4372
4373 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
4374
4375         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4376         The instruction is then expanded explicitly.
4377         (supported_compare): Callable instruction.
4378         (compare): Likewise.
4379
4380 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4381
4382         PR c++/49165
4383         * gimplify.c (shortcut_cond_r): Don't special case
4384         COND_EXPRs if they have void type on one of their arms.
4385
4386 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4387
4388         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4389         to reduce duplication, and to achieve a slightly more logical order
4390         of operations.
4391
4392 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4393
4394         PR tree-optimization/49161
4395         * tree-vrp.c (struct case_info): New type.
4396         (compare_case_labels): Sort case_info structs instead of
4397         trees, and not primarily by CASE_LABEL uids but by
4398         label_for_block indexes.
4399         (find_switch_asserts): Put case labels into struct case_info
4400         array instead of TREE_VEC, adjust sorting, compare label_for_block
4401         values instead of CASE_LABELs.
4402
4403 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4404
4405         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4406         ("orndi3_neon"): Likewise.
4407         ("bic<mode>3_neon"): Likewise.
4408
4409 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
4410
4411         PR tree-optimization/49038
4412         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4413         Ensure at least one epilogue iteration if required by data
4414         accesses with gaps.
4415         * tree-vectorizer.h (struct _loop_vec_info): Add new field
4416         to mark loops that require peeling for gaps.
4417         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4418         (vect_get_known_peeling_cost): Take peeling for gaps into
4419         account.
4420         (vect_transform_loop): Generate epilogue if required by data
4421         access with gaps.
4422         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4423         loop as requiring an epilogue if there are gaps in the end of
4424         the strided group.
4425
4426 2011-05-25  Ian Lance Taylor  <iant@google.com>
4427
4428         * godump.c (go_format_type): Output the first field with a usable
4429         Go type, if any.
4430
4431 2011-05-25  Ian Lance Taylor  <iant@google.com>
4432
4433         * godump.c (go_format_type): Check for invalid type names, pointer
4434         target types, and struct field types.
4435
4436 2011-05-25  Jason Merrill  <jason@redhat.com>
4437
4438         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4439
4440 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
4441
4442         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4443
4444 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4445
4446         * config/i386/i386.md (*movqi_extv_1)): Put back
4447         "register_operand" check in "type" calculation.
4448         (*movqi_extzv_2): Likewise.
4449
4450 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4451
4452         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4453
4454 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4455
4456         PR bootstrap/49160
4457         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4458         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4459         __divxc3, __divtc3): Wrap definitions in #ifndef.
4460
4461 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4462
4463         PR target/49142
4464         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4465         "register_operand" check and replace q_regs_operand with
4466         QIreg_operand in "type" calculation.
4467         (*movqi_extv_1): Likewise.
4468         (*movqi_extzv_2_rex64): Likewise.
4469         (*movqi_extzv_2): Likewise.
4470
4471         * config/i386/predicates.md (QIreg_operand): New.
4472
4473 2011-05-25  Richard Guenther  <rguenther@suse.de>
4474
4475         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4476         type-based offset disambiguation, streamline MEM_REF and
4477         TARGET_MEM_REF handling.
4478
4479 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4480
4481         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4482         (bdesc_special_args): Add pause intrinsic.
4483
4484         * config/i386/i386.md (UNSPEC_PAUSE): New.
4485         (pause): Likewise.
4486         (*pause): Likewise.
4487         * config/i386/ia32intrin.h (__pause): Likewise.
4488
4489         * doc/extend.texi (X86 Built-in Functions): Add documentation for
4490         pause intrinsic.
4491
4492 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4493
4494         PR tree-optimization/46728
4495         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4496         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4497
4498 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
4499
4500         * tree.h (struct tree_exp): Inherit from struct tree_typed.
4501         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4502         instead of TS_COMMON.
4503
4504 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4505
4506         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4507         LIBGCC2_GNU_PREFIX is defined.
4508         (__N): New macro.
4509         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4510         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4511         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4512         __clz_tab): Define using __N.
4513         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4514         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4515         * target.def (libfunc_gnu_prefix): New hook.
4516         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4517         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4518         * doc/tm.texi: Regenerate.
4519         * system.h (LIBGCC2_GNU_PREFIX): Poison.
4520         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4521         account.
4522         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4523         (init_optabs): Likewise for the bswap libfuncs.
4524         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4525         and divide.
4526         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4527         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4528         * libgcc-std.ver: Remove.
4529         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4530         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4531         libgcc-std.ver.
4532         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4533         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4534         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4535         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4536         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4537         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4538         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4539         * config/fixed-bit.h (FIXED_OP): Define differently depending on
4540         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4541         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4542
4543 2011-05-25  Jan Hubicka  <jh@suse.cz>
4544
4545         * lto-streamer-out.c (output_record_start): Use lto_output_enum
4546         (lto_output_tree): Use output_record_start.
4547         * lto-streamer-in.c (input_record_start): Use lto_input_enum
4548         (lto_get_pickled_tree): Use input_record_start.
4549         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4550         (lto_value_range_error): New function.
4551         * lto-streamer.h (lto_value_range_error): Declare.
4552         (lto_output_int_in_range, lto_input_int_in_range): New functions.
4553         (lto_output_enum, lto_input_enum): New macros.
4554
4555 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4556
4557         * common.opt (flag_stack_usage_info): New variable.
4558         (-Wstack-usage): New option.
4559         * doc/invoke.texi (Warning options): Document -Wstack-usage.
4560         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4561         <OPT_fstack_usage>: Likewise.
4562         * toplev.c (output_stack_usage): Handle -Wstack-usage.
4563         * calls.c (expand_call): Test flag_stack_usage_info variable instead
4564         of flag_stack_usage.
4565         (emit_library_call_value_1): Likewise.
4566         * explow.c (allocate_dynamic_stack_space): Likewise.
4567         * function.c (instantiate_virtual_regs ): Likewise.
4568         (prepare_function_start): Likewise.
4569         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4570         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4571         * config/arm/arm.c (arm_expand_prologue): Likewise.
4572         (thumb1_expand_prologue): Likewise.
4573         * config/avr/avr.c (expand_prologue): Likewise.
4574         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4575         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4576         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4577         * config/mips/mips.c (mips_expand_prologue): Likewise.
4578         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4579         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4580         * config/s390/s390.c (s390_emit_prologue): Likewise.
4581         * config/sh/sh.c (sh_expand_prologue): Likewise.
4582         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4583         * config/spu/spu.c (spu_expand_prologue): Likewise.
4584
4585 2011-05-25  Richard Guenther  <rguenther@suse.de>
4586
4587         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4588         (gimple_canonical_types_compatible_p): Likewise.
4589
4590 2011-05-25  Jan Hubicka  <jh@suse.cz>
4591
4592         PR middle-end/49062
4593         * ipa.c (function_and_variable_visibility): Only add to same
4594         comdat group list if DECL_ONE_ONLY.
4595
4596 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
4597
4598         PR rtl-optimization/49014
4599         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4600
4601 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
4602
4603         PR target/49128
4604         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4605
4606 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4607
4608         PR rtl-optimization/48757
4609         * ira-build.c (loop_with_eh_edge_p): Rename to
4610         loop_with_complex_edge_p, check edges on complexity, make function
4611         conditional.
4612         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4613         conditional.
4614
4615 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4616
4617         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4618         force flag_ira_share_save_slots to 0.
4619
4620 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4621
4622         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4623         (vt_initialize): Set PROLOGUE_BB unconditionally.
4624         Add block comment about CFA_BASE_RTX machinery.
4625         Reset FP_CFA_OFFSET to -1 on all invalid paths.
4626         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4627
4628 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
4629
4630         PR objc/48187
4631         * c-parser.c (c_parser_objc_class_instance_variables): More robust
4632         parsing of syntax error in ObjC instance variable lists.  In
4633         particular, avoid an infinite loop if there is a stray ']'.
4634         Updated error message.
4635
4636 2011-05-24  Ian Lance Taylor  <iant@google.com>
4637
4638         * godump.c (go_define): Don't accept a string immediately after
4639         another operand.
4640
4641 2011-05-24  Ian Lance Taylor  <iant@google.com>
4642
4643         * godump.c (struct godump_container): Add invalid_hash field.
4644         (go_format_type): Return false if type is found in invalid_hash.
4645         (go_output_typedef): Add invalid type to invalid_hash.
4646         (go_finish): Create and delete invalid_hash.
4647
4648 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4649
4650         PR tree-optimization/46728
4651         * tree-ssa-math-opts.c (powi_table): New.
4652         (powi_lookup_cost): New.
4653         (powi_cost): New.
4654         (powi_as_mults_1): New.
4655         (powi_as_mults): New.
4656         (gimple_expand_builtin_powi): New.
4657         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4658         (gate_cse_sincos): Remove sincos/cexp restriction.
4659
4660 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4661
4662         PR target/3746
4663         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4664         mips-tdump native.
4665         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4666         * mips-tdump.c: Likewise.
4667
4668 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4669
4670         PR target/49128
4671         * config/i386/driver-i386.c (host_detect_local_cpu): Always
4672         add -mno-XXX.  Handle FMA.
4673
4674 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4675
4676         PR rtl-optimization/48633
4677         * ira-build.c (loop_with_eh_edge_p): New function.
4678         (mark_loops_for_removal): Use it.
4679
4680 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4681
4682         PR rtl-optimization/48971
4683         * ira.c (setup_pressure_classes): Don't check register move cost
4684         for classes with one registers.  Don't add pressure class if there
4685         is a pressure class with the same available hard registers.
4686         Check contains_reg_of_mode.  Fix a typo in collecting
4687         temp_hard_regset.  Ignore hard registers not belonging to a class.
4688
4689 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
4690
4691         PR target/49133
4692         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4693
4694 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4695             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4696
4697         PR gcov-profile/48845
4698         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4699
4700 2011-05-24  Richard Guenther  <rguenther@suse.de>
4701
4702         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4703         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4704         (gimple_types_compatible_p_1): Adjust.
4705         (iterative_hash_canonical_type): Do not bother about complete vs.
4706         incomplete types.
4707         (gimple_canonical_types_compatible_p): Likewise.
4708
4709 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4710
4711         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4712
4713 2011-05-24  Richard Guenther  <rguenther@suse.de>
4714
4715         PR bootstrap/49078
4716         * gimple.c (gimple_register_canonical_type): Revert
4717         previous change.
4718         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4719         does not for a tree for the case where it matters.  Cache
4720         pointer-type alias-sets.
4721
4722 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
4723
4724         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4725         (OBJS): Remove options.o, opts-common.o and prefix.o.
4726         (OBJS-libcommon-target): New.
4727         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4728         (BACKEND): Include libcommon-target.a.
4729         (MOSTLYCLEANFILES): Include libcommon-target.a.
4730         (libcommon-target.a): New.
4731         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4732         prefix.o.
4733
4734 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
4735
4736         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
4737         parts of output shared with the driver.
4738         * optc-gen.awk: Don't generate parts of output not shared with the
4739         driver.
4740         * opth-gen.awk: Remove GCC_DRIVER conditionals.
4741         * doc/options.texi (SourcerInclude): Mention options-save.c.
4742         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4743         (OBJS): Add options-save.o.
4744         (options-save.c, options-save.o): New.
4745         (options.o): Update dependencies.
4746         (gcc-options.o): Remove.
4747         (mostlyclean): Remove options-save.c.
4748
4749 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4750
4751         PR debug/49032
4752         * dbxout.c: Include cgraph.h.
4753         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4754         and without value expr, return NULL if no varpool node exists for
4755         it or if it is not needed.
4756         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4757
4758         PR c/49120
4759         * c-decl.c (start_decl): Convert expr to void_type_node.
4760
4761 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
4762
4763         PR rtl-optimization/48826
4764         * emit-rtl.c (try_split): When splitting a call that is followed
4765         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4766
4767 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4768
4769         * cfgexpand.c (expand_debug_expr): For unused non-addressable
4770         parameters passed in memory prefer using DECL_INCOMING_RTL over
4771         the pseudos it will be copied into.
4772
4773 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4774
4775         PR target/47315
4776         * config/i386/i386.c (ix86_option_override_internal): Save the
4777         initial options after checking vzeroupper.
4778
4779 2011-05-23  David Li  <davidxl@google.com>
4780
4781         PR tree-optimization/48988
4782         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4783         Initialize has_valid_pred for each pred chain.
4784
4785 2011-05-23  Richard Guenther  <rguenther@suse.de>
4786
4787         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4788         (iterative_hash_gimple_type): Always hash type names.
4789
4790 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
4791
4792         * c-typeck.c (build_function_call_vec): Tweak call to
4793         check_function_arguments.
4794
4795 2011-05-23  Richard Guenther  <rguenther@suse.de>
4796
4797         PR tree-optimization/49115
4798         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4799         is not necessarily carried out, do not claim it kills the ref.
4800         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4801
4802 2011-05-23  Richard Guenther  <rguenther@suse.de>
4803
4804         PR middle-end/15419
4805         * builtins.c (fold_builtin_memory_op): Be less restrictive about
4806         what pointer types we accept for folding.
4807
4808 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4809
4810         * gthr-gnat.c: Remove.
4811         * gthr-gnat.h: Remove.
4812         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4813         * config/t-freebsd (LIB2ADDEH): Likewise.
4814         * config/t-linux (LIB2ADDEH): Likewise.
4815         * config/t-sol2 (LIB2ADDEH): Likewise.
4816         * config/ia64/t-vms (LIB2ADDEH): Likewise.
4817         * configure.ac (target_thread_file): Remove gnat handling.
4818         * configure: Regenerate.
4819         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4820
4821 2011-05-23  Tristan Gingold  <gingold@adacore.com>
4822             Eric Botcazou  <ebotcazou@adacore.com>
4823
4824         * gcov.c (create_file_names): If no object directory is specified,
4825         keep the directory of the file.
4826
4827 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4828
4829         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4830         * configure: Regenerate.
4831
4832 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4833
4834         PR middle-end/48973
4835         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4836         failed and the comparison has a single bit signed type, use
4837         constm1_rtx instead of const1_rtx for true value.
4838         (do_store_flag): If ops->type is single bit signed type, disable
4839         signel bit test optimization and pass -1 instead of 1 as last
4840         parameter to emit_store_flag_force.
4841
4842 2011-05-23  Tom de Vries  <tom@codesourcery.com>
4843
4844         PR target/45098
4845         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4846         function.
4847         (infer_loop_bounds_from_undefined): Use new function.
4848
4849 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4850
4851         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4852         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
4853         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4854         and -O0 otherwise.
4855         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4856
4857 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4858
4859         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4860         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4861         returns true.
4862
4863 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4864
4865         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4866
4867 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4868
4869         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4870         UNSPEC_MOVE_PIC pattern.
4871
4872 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4873
4874         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4875         (sparc-*-rtems*): Likewise.
4876         (sparc64-*-elf*): Likewise.
4877         (sparc64-*-rtems*): Likewise.
4878         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
4879         * config/sparc/t-crtin: New file.
4880         * config/sparc/t-sol2 (crti.o): Delete rule.
4881         (crtn.o): Likewise.
4882         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4883         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4884         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4885         (ENDFILE_SPEC): Add crtn.o.
4886
4887 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4888
4889         PR middle-end/48689
4890         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4891         CODE_CONTAINS_STRUCT (TS_COMMON).
4892
4893 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
4894
4895         PR middle-end/49029
4896         * expmed.c (extract_fixed_bit_field): Test whether target can be used
4897         only after deciding which mode to use.
4898
4899 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4900
4901         PR target/45098
4902         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4903         for call to get_shiftadd_cost.
4904
4905 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
4906
4907         PR target/49104
4908         * config/i386/cpuid.h (bit_MMXEXT): New define.
4909
4910 2011-05-22  Nick Clifton  <nickc@redhat.com>
4911
4912         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4913         initialisation of non-existant args[2] element.  Use args[] array
4914         not arg[] array to pass arguments to build_function_type_list.
4915
4916 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
4917
4918         PR tree-optimization/49087
4919         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4920
4921 2011-05-21  Jason Merrill  <jason@redhat.com>
4922
4923         PR c++/49092
4924         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4925         static storage duration.
4926
4927 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4928
4929         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4930         frame pointer.
4931
4932 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4933
4934         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4935         false if there are call-saved registers here...
4936         (sparc_can_use_return_insn_p): ...but here instead.
4937         (save_or_restore_regs): Fix thinko.
4938         (sparc_expand_prologue): Use current_function_is_leaf.
4939         (sparc_frame_pointer_required): Likewise.
4940
4941 2011-05-21  Nick Clifton  <nickc@redhat.com>
4942
4943         PR target/49098
4944         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4945
4946 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4947
4948         * gengtype.c (walk_type): Implemented "atomic" GTY option.
4949         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4950
4951 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
4952
4953         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
4954         * optc-gen.awk: Move common code to opt-read.awk.
4955         * opth-gen.awk: Likewise.
4956         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4957
4958 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
4959
4960         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4961
4962 2011-05-20  Tom de Vries  <tom@codesourcery.com>
4963
4964         PR target/45098
4965         * tree-ssa-loop-ivopts.c: Include expmed.h.
4966         (get_shiftadd_cost): New function.
4967         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
4968
4969 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
4970
4971         PR bootstrap/49086
4972         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4973         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4974
4975 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
4976
4977         * Makefile.in: Update comment referring to $(OBJS-common).
4978
4979 2011-05-20  Ian Lance Taylor  <iant@google.com>
4980
4981         * godump.c (go_output_typedef): Put enum constants in the macro
4982         hash table to avoid duplicate Go const definitions.
4983
4984 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
4985
4986         * Makefile.in (LIBDEPS): Add libcommon.a.
4987         (LIBS): Likewise.
4988         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4989         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4990         pretty-print.o and version.o.
4991         (OBJS-libcommon): New.
4992         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4993         (BACKEND): Add libcommon.a.
4994         (MOSTLYCLEANFILES): Likewise.
4995         (libcommon.a): New.
4996         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4997         (cpp$(exeext)): Likewise.
4998         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4999         pretty-print.o and input.o.
5000         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5001         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5002         (errors.o): Remove.
5003         (mips-tfile): Don't explicitly use version.o.
5004         (mips-tdump): Likewise.
5005         (gcov.o): Depend on $(DIAGNOSTIC_H).
5006         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5007         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5008         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5009         * gcov-dump.c: Include intl.h and diagnostic.h.
5010         (main): Initialize diagnostics.
5011         * gcov.c: Include diagnostic.h.
5012         (fnotice): Remove.
5013         (main): Initialize diagnostics.
5014         * lto-wrapper.c: Include diagnostic.h.
5015         (main): Initialize diagnostics.
5016
5017 2011-05-20  Michael Matz  <matz@suse.de>
5018
5019         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5020
5021 2011-05-20  Michael Matz  <matz@suse.de>
5022             Richard Guenther  <rguenther@suse.de>
5023
5024         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5025         use lto_streamer_cache_append directly instead of returning a VEC.
5026         (preload_common_node): Remove.
5027         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5028         track seen nodes.
5029         (lto_streamer_cache_create): Call lto_preload_common_nodes.
5030
5031 2011-05-20  Richard Guenther  <rguenther@suse.de>
5032
5033         PR tree-optimization/49079
5034         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5035         MEM_REFs correctly for the trailing array access detection.
5036         Special case constants the same way as decls for overall size
5037         constraining.
5038
5039 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
5040
5041         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5042         argument expansion.
5043
5044 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
5045
5046         PR tree-optimization/49073
5047         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5048         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
5049         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5050
5051 2011-05-20  Richard Guenther  <rguenther@suse.de>
5052
5053         PR middle-end/48849
5054         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5055         of pointer types the same way the middle-end does.
5056
5057 2011-05-20  Richard Guenther  <rguenther@suse.de>
5058
5059         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5060         or pointer-to chains.  Delay all fixup to uniquify_nodes.
5061
5062 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
5063
5064         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5065         (fma4_fmaddsub): Likewise
5066
5067 2011-05-19  Jan Hubicka  <jh@suse.cz>
5068
5069         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5070         (GIMPLE_TYPE_PAIR_SIZE): New macro.
5071         (type_pair_cache): New static var.
5072         (lookup_type_pair): Use fixed sized custom hash; make inline.
5073         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5074         calls of lookup_type_pair.
5075         (print_gimple_types_stats): Remove cache stats.
5076         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5077         and gtc_ob.
5078
5079 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
5080
5081         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5082         when TARGET_RDRND is active.
5083         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5084         Generate dummy SImode target register when target is NULL.
5085
5086 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
5087
5088         * config/arm/arm-fpus.def: New.
5089         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5090         arm-fpus.def.
5091         * config/arm/arm-tables.opt: Regenerate.
5092         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5093         (arm_option_override): Don't decode FPU name to string here.
5094         * config/arm/arm.opt (mfpu=): Use Enum.
5095         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5096         Update dependencies.
5097
5098 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
5099
5100         * collect2.c: Include diagnostic.h.
5101         (fatal_perror, fatal, error, fancy_abort): Remove.
5102         (main): Set progname.  Call xmalloc_set_program_name and
5103         diagnostic_initialize.
5104         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5105         scan_libraries, resolve_lib_name): Call fatal_error instead of
5106         fatal and fatal_perror.
5107         * collect2.h (error, fatal, fatal_perror): Don't declare.
5108         * tlink.c: Include diagnostic-core.h.
5109         (recompile_files): Call fatal_error instead of fatal_perror.
5110         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5111         pretty-print.o and input.o.
5112         (collect2.o, tlink.o): Update dependencies.
5113
5114 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5115
5116         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5117
5118 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5119
5120         PR target/40483
5121         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5122         COMDAT group syntax, both SPARC and x86 variants.
5123         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5124         * configure: Regenerate.
5125         * config/sol2.h (TARGET_SOLARIS): Define.
5126         (PUSHSECTION_FORMAT): Remove.
5127         (SECTION_NAME_FORMAT): Define.
5128         * config/sol2.c: Include hashtab.h.
5129         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5130         expansion, using SECTION_NAME_FORMAT.
5131         (solaris_comdat_htab): New variable.
5132         (struct comdat_entry): Define.
5133         (comdat_hash): New function.
5134         (comdat_eq): New function.
5135         (solaris_elf_asm_comdat_section): New function.
5136         (solaris_define_comdat_signature): New function.
5137         (solaris_code_end): New function.
5138         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5139         (solaris_code_end): Declare.
5140         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5141         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5142         solaris_code_end.
5143         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5144         Remove ATTRIBUTE_UNUSED.
5145         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5146         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
5147         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
5148         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5149         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5150         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5151         (PUSHSECTION_FORMAT): Remove.
5152         (SECTION_NAME_FORMAT): Redefine.
5153
5154 2011-05-19  Kai Tietz  <ktietz@redhat.com>
5155
5156         * tree-cfg.c (verify_gimple_assign_binary): Barf on
5157         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5158         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5159
5160 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
5161             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5162
5163         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5164
5165 2011-05-19  Richard Guenther  <rguenther@suse.de>
5166
5167         PR middle-end/48985
5168         * tree-object-size.c (addr_object_size): If the pointed-to
5169         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5170
5171 2011-05-19  Richard Guenther  <rguenther@suse.de>
5172
5173         * gimple.c (gimple_types_compatible_p_1): Compare names of
5174         the types themselves.
5175         (iterative_hash_gimple_type): And hash them that way.
5176         (gimple_register_type_1): If we register a main variant properly
5177         initialize the leader to ourselves.
5178
5179 2011-05-19  Tom de Vries  <tom@codesourcery.com>
5180
5181         PR target/45098
5182         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5183         get_loop_invariant_expr_id.
5184         (get_loop_invariant_expr_id): Use get_expr_id.
5185         (parm_decl_cost): New function.
5186         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5187         Improve bound cost estimation.  Use different inv_expr_id for elim and
5188         express cases.
5189
5190 2011-05-19  Tom de Vries  <tom@codesourcery.com>
5191
5192         PR target/45098
5193         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5194         cost_base.cost == 0.
5195
5196 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5197
5198         PR target/49002
5199         * config/i386/sse.md
5200         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5201         load cast.
5202
5203 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
5204
5205         PR tree-optimization/49039
5206         * tree-vrp.c (extract_range_from_binary_expr): For
5207         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5208         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5209
5210 2011-05-18  Tom de Vries  <tom@codesourcery.com>
5211
5212         PR target/45098
5213         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5214
5215 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
5216
5217         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5218         (*tls_global_dynamic_64): Ditto.
5219         (*tls_local_dynamic_base_32_gnu): Ditto.
5220         (*tls_local_dynamic_base_64): Ditto.
5221         (tls_initial_exec_64_sun): Ditto.
5222
5223 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
5224
5225         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5226         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5227         bf592-none.
5228         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5229         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5230         * config/bfin/bfin.c (bfin_cpus): Add bf592.
5231         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5232         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5233         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5234         * config/bfin/elf.h (LIB_SPEC): Add bf592.
5235
5236 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
5237
5238         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5239         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5240         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5241         target_thread_pointer, arm_structure_size_boundary, struct
5242         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5243         struct abi_name, arm_all_abis): Remove.
5244         (arm_option_override) Don't process most enumerated option values here.
5245         Don't process target_fpe_name here.  Work with integer not string for
5246         structure size boundary; use separate diagnostics for each case.
5247         * config/arm/arm.h (enum float_abi_type, enum
5248         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5249         to arm-opts.h.
5250         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5251         arm_structure_size_boundary): Remove.
5252         * config/arm/arm.opt (mabi=): Use Enum and Init.
5253         (arm_abi_type): New Enum and EnumValue entries.
5254         (mfloat-abi=): Use Enum and Init.
5255         (float_abi_type): New Enum and EnumValue entries.
5256         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5257         (mfp16-format=): Use Enum and Init.
5258         (arm_fp16_format_type): New Enum and EnumValue entries.
5259         (mstructure-size-boundary=): Use UInteger and Init.
5260         (mtp=): Use Enum and Init.
5261         (arm_tp_type): New Enum and EnumValue entries.
5262
5263 2011-05-18  Richard Guenther  <rguenther@suse.de>
5264
5265         PR tree-optimization/49018
5266         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5267         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5268         gimple_has_side_effects.
5269
5270 2011-05-18  Richard Guenther  <rguenther@suse.de>
5271
5272         * gimple.c (gimple_register_type_1): New function, split out from ...
5273         (gimple_register_type): ... here.  Avoid infinite recursion.
5274
5275 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
5276
5277         PR tree-optimization/41881
5278         * tree-vectorizer.h (struct _loop_vec_info): Add new field
5279         reduction_chains along with a macro for its access.
5280         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5281         (destroy_loop_vec_info): Free reduction chains.
5282         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5283         (vect_is_slp_reduction): New function.
5284         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5285         (vect_create_epilog_for_reduction): Support SLP reduction chains.
5286         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5287         definition types for reduction chains.
5288         (vect_supported_load_permutation_p): Don't allow permutations for
5289         reduction chains.
5290         (vect_analyze_slp_instance): Support reduction chains.
5291         (vect_analyze_slp): Try to build SLP instance from reduction chains.
5292         (vect_get_constant_vectors):  Handle reduction chains.
5293         (vect_schedule_slp_instance): Mark the first statement of the
5294         reduction chain as reduction.
5295
5296 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
5297
5298         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5299         names for group elements access.
5300         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5301         reduction chains as well.  Remove data reference and interleaving
5302         related words from the fields names.
5303         * tree-vect-loop.c (vect_transform_loop): Use new names for group
5304         elements access.
5305         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5306         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5307         vect_update_interleaving_chain, vect_same_range_drs,
5308         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5309         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5310         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5311         vect_analyze_group_access, vect_analyze_data_ref_access,
5312         vect_create_data_ref_ptr, vect_transform_strided_load,
5313         vect_record_strided_load_vectors): Likewise.
5314         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5315         vect_model_load_cost, vectorizable_store, vectorizable_load,
5316         vect_remove_stores, new_stmt_vec_info): Likewise.
5317         * tree-vect-slp.c (vect_build_slp_tree,
5318         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5319
5320 2011-05-18  Richard Guenther  <rguenther@suse.de>
5321
5322         PR middle-end/48989
5323         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5324         operand verification.
5325         (verify_gimple_assign_binary): Likewise.
5326         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5327         to non-1-precision BOOLEAN_TYPEs.
5328
5329 2011-05-18  Tom de Vries  <tom@codesourcery.com>
5330
5331         PR target/45098
5332         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5333
5334 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
5335
5336         PR tree-optimization/49000
5337         * tree-ssa.c (execute_update_addresses_taken): Call
5338         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
5339         be rewritten and decl has been marked for renaming, reset
5340         the debug stmt.
5341
5342 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
5343
5344         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5345         enum_opts_set when testing if attributes have set -mfpmath=.
5346
5347 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
5348
5349         * config/mips/mips.c (mips_handle_option): Remove unused variable.
5350
5351 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5352
5353         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5354         info->entry with 0
5355         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
5356         id.transform_lang_insert_block with NULL.
5357
5358 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5359
5360         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5361         (output_fp_compare): Change args 3 and 4 to bool.
5362         (ix86_expand_call): Change arg 6 to bool.
5363         (ix86_attr_length_immediate_default): Change arg 2 to bool.
5364         (ix86_attr_length_vex_default): Change arg 3 to bool.
5365         * config/i386/i386.md: Update all uses.
5366         * config/i386/i386.c: Ditto.
5367         (ix86_flags_dependent): Change return type to bool.
5368
5369 2011-05-17  Richard Guenther  <rguenther@suse.de>
5370
5371         * gimple.c (type_hash_pair_compare): Fix comparison.
5372
5373 2011-05-17  Richard Guenther  <rguenther@suse.de>
5374
5375         * gimple.c (iterative_hash_gimple_type): Simplify singleton
5376         case some more, fix final hash value of the non-singleton case.
5377
5378 2011-05-17  Richard Guenther  <rguenther@suse.de>
5379
5380         PR bootstrap/49013
5381         Revert
5382         2011-05-16  Richard Guenther  <rguenther@suse.de>
5383
5384         * gimple.c (gimple_types_compatible_p_1): Use names of the
5385         type itself, not its main variant.
5386         (iterative_hash_gimple_type): Likewise.
5387
5388 2011-05-17  Richard Guenther  <rguenther@suse.de>
5389
5390         * gimple.c (gimple_register_canonical_type): Use the main-variant
5391         leader for computing the canonical type.
5392
5393 2011-05-17  Nick Clifton  <nickc@redhat.com>
5394
5395         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5396         moves.
5397
5398         * config/rx/rx.md: Add peephole to remove redundant extensions
5399         after loads.
5400         (bitset_in_memory): Use rx_restricted_mem_operand.
5401         (bitinvert_in_memory): Likewise.
5402         (bitclr_in_memory): Likewise.
5403
5404 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
5405             Nick Clifton  <nickc@redhat.com>
5406
5407         * config/rx/rx.md: Add peepholes to match a register move followed
5408         by a comparison of the moved register.  Replace these with an
5409         addition of zero that does both actions in one instruction.
5410
5411 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
5412
5413         PR target/48986
5414         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5415         predicate to allow CONST_INT.
5416         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5417
5418 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5419
5420         * opts-common.c (opt_enum_arg_to_value): New.
5421         * opts.h (opt_enum_arg_to_value): Declare.
5422         * config/i386/i386.opt (fpmath): Remove.
5423         (mfpmath=): Use Enum, Init and Save.
5424         (fpmath_unit): New Enum and EnumValue entries.
5425         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5426         name for function fpmath state.
5427         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5428         * config/i386/i386.c: Include diagnostic.h.
5429         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5430         (ix86_target_string): Take enum fpmath_unit value instead of string.
5431         (ix86_debug_options): Update call to ix86_target_string.
5432         (ix86_option_override_internal): Don't process fpmath strings here.
5433         (x86_function_specific_save, ix86_function_specific_restore):
5434         Don't handle fpmath state specially.
5435         (ix86_function_specific_print): Pass fpmath state to
5436         ix86_target_string instead of printing in this function.
5437         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5438         Handle enum attributes.
5439         (IX86_ATTR_ENUM, ix86_opt_enum): New.
5440         (ix86_valid_target_attribute_tree): Update option_strings
5441         handling.  Handle fpmath as enum option.
5442         (ix86_can_inline_p): Update field names for function fpmath state.
5443         (ix86_expand_builtin): Update call to ix86_target_string.
5444         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5445         (ix86_fpmath): Remove.
5446         * config/i386/t-i386 (i386.o): Update dependencies.
5447
5448 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5449
5450         PR preprocessor/48677
5451         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5452         from decoded_options[0], not from itself.
5453
5454 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
5455
5456         * config/i386/constraints.md (z): New constraint.
5457         * config/i386/i386.c (c): New mode attribute.
5458         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5459         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5460         constraint for operand 0.
5461         (*call_vzeroupper): Ditto.
5462         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
5463         (*call_rex64_ms_sysv_vzeroupper): Ditto.
5464         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5465         Use "lzm" constraint for operand 0.
5466         (*call_pop_vzeroupper): Ditto.
5467         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5468         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
5469         constraint for operand 0.
5470         (*sibcall_vzeroupper): Ditto.
5471         (*sibcall_rex64_ms_sysv): Ditto.
5472         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5473         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5474         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
5475         (*sibcall_pop_vzeroupper): Ditto.
5476         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5477         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5478         mode iterator.  Use "<c>zm" constraint for operand 1.
5479         (*call_value_vzeroupper): Ditto.
5480         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
5481         for operand 1.
5482         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5483         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5484         *call_value_pop_1.  Use "lzm" constraint for operand 1.
5485         (*call_value_pop_vzeroupper): Ditto.
5486         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5487         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5488         mode iterator.  Use "Uz" constraint for operand 1.
5489         (*sibcall_value_vzeroupper): Ditto.
5490         (*sibcall_value_rex64_ms_sysv): Ditto.
5491         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5492         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
5493         constraint for operand 1.
5494         (*sibcall_value_pop_vzeroupper): Ditto.
5495         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5496         and "z" constraint for operand 2.
5497         (*tls_global_dynamic_32_gnu): Ditto.
5498         (*tls_local_dynamic_base_32_gnu): Ditto.
5499         (*tls_local_dynamic_base_64): Ditto.
5500         (*tls_local_dynamic_32_once): Ditto.
5501         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5502         Update all callers.
5503         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5504
5505 2011-05-16  Richard Guenther  <rguenther@suse.de>
5506
5507         * gimple.c (gimple_types_compatible_p_1): Use names of the
5508         type itself, not its main variant.
5509         (iterative_hash_gimple_type): Likewise.
5510
5511 2011-05-16  Richard Guenther  <rguenther@suse.de>
5512
5513         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5514         always visit pointer target and function result and argument types.
5515
5516 2011-05-16  Jason Merrill  <jason@redhat.com>
5517
5518         PR c++/48999
5519         * tree-inline.c (copy_statement_list): Put back recursion.
5520
5521 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5522
5523         PR target/27663
5524         PR target/41076
5525         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5526         * config/avr/avr.md ("*ior<mode>qi.byte0",
5527         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5528
5529 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5530
5531         PR target/45099
5532         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5533         register is needed for a function argument.
5534
5535 2011-05-16  Richard Guenther  <rguenther@suse.de>
5536
5537         * gimple.c (struct type_hash_pair): New type.
5538         (type_hash_pair_compare): New function.
5539         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5540
5541 2011-05-16  Revital Eres  <revital.eres@linaro.org>
5542
5543         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5544
5545 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5546
5547         * config/i386/i386.md (floating point move splitters): Fix
5548         usage of standard_80387_constant_p.
5549         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5550
5551 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5552
5553         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5554
5555 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5556
5557         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5558         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5559         (tree_ssa_lim_finalize): Likewise.
5560
5561 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
5562
5563         * config/i386/constraint.md (Yd, Yx): New register constraints.
5564         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
5565         Yd conditional register constraint.
5566         (*movtf_internal): Use standard_sse_constant_opcode.
5567         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
5568         Yx conditional register constraint.
5569         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
5570         Yd conditional register constraint.  Use standard_sse_constant_p to
5571         check for valid SSE constants and call standard_sse_constant_opcode to
5572         output SSE insn.
5573         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5574         constants and call standard_sse_constant_opcode to output SSE insn.
5575         * config/i386/i386.c (ix86_option_ovverride_internal): Set
5576         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
5577         optimize_size is set.
5578         (standard_sse_constant_opcode): Output conditional AVX insn templates.
5579
5580 2011-05-14  Tobias Burnus  <burnus@net-b.de>
5581
5582         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5583
5584 2011-05-13  Martin Jambor  <mjambor@suse.cz>
5585
5586         * ipa-prop.c (ipa_cst_from_jfunc): New function.
5587         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5588         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5589         (evaluate_conditions_for_ipcp_clone): Removed.
5590         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5591         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5592         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5593
5594 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
5595
5596         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5597         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5598         lieu of MAY_HAVE_DEBUG_STMTS.
5599         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5600         debug statements if !MAY_HAVE_DEBUG_STMTS.
5601
5602 2011-05-13  Martin Thuresson  <martint@google.com>
5603
5604         PR gcov-profile/47793
5605         * libgcov.c (gcov_exit): Support relative profile paths.
5606         * doc/invoke.texi (-fprofile-dir): Update for above change.
5607
5608 2011-05-13  Richard Guenther  <rguenther@suse.de>
5609
5610         * gimple.c (gimple_canonical_types_compatible_p): Do not use
5611         type-pair caching, do not compare hashes.
5612
5613 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
5614
5615         PR middle-end/48965
5616         * tree-cfg.c (edge_to_cases_cleanup): Return true.
5617         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5618
5619 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5620
5621         * gimplify.c (gimplify_expr): Make sure operand is boolified.
5622         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5623         compatible type for TRUTH_NOT_EXPR.
5624
5625 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5626
5627         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5628         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
5629         can_create_pseudo_p ().
5630
5631 2011-05-13  Richard Guenther  <rguenther@suse.de>
5632
5633         PR lto/48978
5634         * gimple.c (iterative_hash_gimple_type): Revert change in
5635         pointer target and function result and argument hashing.
5636
5637 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
5638
5639         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5640         (*movxf_internal_nointeger): Ditto.
5641         (*movdf_internal_rex64): Ditto.
5642         (*movdf_internal): Ditto.
5643         (*movdf_internal_nointeger): Ditto.
5644         (*movsf_internal): Ditto.
5645         (sincos splitters): Use can_create_pseudo ().
5646
5647 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
5648
5649         * config/i386/i386-opts.h: New.
5650         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5651         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5652         ix86_section_threshold): Remove.
5653         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
5654         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5655         OPT_mbranch_cost_.
5656         (ix86_option_override_internal): Don't decode strings for options
5657         other than -march=, -mtune= and -mfpmath=.  Don't allow for
5658         __attribute__ uses in remaining diagnostics for options with
5659         string arguments.  Don't check for integer arguments being negative.
5660         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5661         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5662         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5663         ix86_branch_cost, ix86_section_threshold): Remove.
5664         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5665         HeaderInclude.
5666         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5667         but not Var.
5668         (masm=): Use Enum and Init.
5669         (asm_dialect): New Enum and EnumValue entries.
5670         (mbranch-cost=): Use UInteger.
5671         (mlarge-data-threshold=): Use UInteger and Init.
5672         (mcmodel=): Use Enum and Init.
5673         (cmodel): New Enum and EnumValue entries.
5674         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5675         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5676         mregparm=): Use UInteger.
5677         (mstringop-strategy=): Use Enum and Init.
5678         (stringop_alg): New Enum and EnumValue entries.
5679         (mtls-dialect=): Use Enum and Init.
5680         (tls_dialect): New Enum and EnumValue entries.
5681         (mabi=): Use Enum and Init.
5682         (calling_abi): New Enum and EnumValue entries.
5683         (mveclibabi=): Use Enum and Init.
5684         (ix86_veclibabi): New Enum and EnumValue entries.
5685
5686 2011-05-13  Nick Clifton  <nickc@redhat.com>
5687
5688         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5689         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5690
5691 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5692
5693         PR middle-end/48984
5694         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5695         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5696         (gimple_boolify): Check for cast for boolean_type_node instead for
5697         BOOLEAN_TYPE.
5698
5699 2011-05-13  Richard Guenther  <rguenther@suse.de>
5700
5701         PR tree-optimization/48172
5702         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5703         multiplying by number of iterations for equal step.
5704         (vect_create_cond_for_alias_checks): Likewise.
5705
5706 2011-05-13  Andreas Schwab  <schwab@redhat.com>
5707
5708         * configure.ac: Use AS_HELP_STRING throughout.
5709         * configure: Regenerate.
5710
5711 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5712
5713         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5714         (ix86_emit_restore_regs_using_mov): Likewise.
5715         (ix86_emit_restore_sse_regs_using_mov): Likewise.
5716
5717 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
5718
5719         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5720         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5721         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5722         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5723         RTX_OK_FOR_OLO10_P): ...here.
5724         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5725         SYMBOLIC_CONST.
5726
5727 2011-05-12  Kai Tietz  <ktietz@redhat.com>
5728
5729         * gimplify.c (gimple_boolify): Re-boolify expression
5730         arguments even if expression type is of kind BOOLEAN_TYPE.
5731         (gimplify_boolean_expr): Removed.
5732         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5733         and XOR. Additional take care that we keep expression's type.
5734         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5735         of TRUTH_AND|OR|XOR_EXPR.
5736
5737 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5738
5739         PR tree-optimization/48975
5740         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5741         on all bbs here and free and clear ifc_bbs at the end.
5742
5743 2011-05-12  Richard Guenther  <rguenther@suse.de>
5744
5745         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5746         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
5747         until after simple checks.
5748         (gimple_types_compatible_p): Likewise.
5749         (iterative_hash_gimple_type): Always hash pointer targets
5750         and function return and argument types.
5751         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5752         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
5753         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5754         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
5755         completely in the simple compare section.
5756         (gimple_register_canonical_type): Query the cache again after
5757         registering.
5758
5759 2011-05-12  Richard Guenther  <rguenther@suse.de>
5760
5761         PR tree-optimization/48172
5762         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5763         the number of iterations from the segment size calculation.
5764         (vect_create_cond_for_alias_checks): Adjust.
5765
5766 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5767
5768         PR debug/48967
5769         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5770         if validate_subreg fails.
5771
5772 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
5773
5774         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5775         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5776         early.
5777
5778 2011-05-12  DJ Delorie  <dj@redhat.com>
5779
5780         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5781         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5782         created builtin into rx_builtins array.
5783         (rx_builtin_decl): New function.
5784         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
5785
5786 2011-05-12  DJ Delorie  <dj@redhat.com>
5787             Nick Clifton  <nickc@redhat.com>
5788
5789         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5790         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5791         (rx_is_legitimate_address): Add pre-decrement and post-increment
5792         addressing in HImode and QImode.  Fix test for out of range
5793         REG+INT addressing.
5794         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5795         (rx_align_for_label): Test label before extracting its usage count.
5796         (rx_adjust_insn_lengths): Fix selection of insn codes.
5797         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5798
5799 2011-05-11  Jason Merrill  <jason@redhat.com>
5800
5801         * tree.c (type_hash_canon): Use struct tree_type_non_common.
5802
5803 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5804
5805         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5806         reindent the subsequent block.
5807
5808 2011-05-11  Satoru Takabayashi  <satorux@google.com>
5809             Paul Pluzhnikov  <ppluzhnikov@google.com>
5810
5811         * doc/install.texi (Configuration): Document --with-linker-hash-style.
5812         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5813         * config.in: Add LINKER_HASH_STYLE.
5814         * configure.ac: Add --with-linker-hash-style.
5815         * configure: Regenerate.
5816
5817 2011-05-11  Richard Guenther  <rguenther@suse.de>
5818
5819         PR middle-end/48964
5820         * gimple.c (iterative_hash_canonical_type): Fix typo.
5821
5822 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
5823
5824         * config/i386/i386.c (legitimize_tls_address)
5825         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5826         expanders directly for TARGET_GNU2_TLS.  Determine pic and
5827         __tls_get_addr symbol reference here.  Update call to
5828         gen_tls_global_dynamic_{32,64} for added arguments.
5829         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5830         expanders directly for TARGET_GNU2_TLS.  Determine
5831         __tls_get_addr symbol reference here.  Update call to
5832         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
5833         unique UNSPEC REG_EQUIV to libcall block.
5834         (ix86_tls_get_addr): Declare static.
5835         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5836         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5837         Do not determine pic and __tls_get_addr symbol reference here. Do not
5838         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5839         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5840         (tls_global_dynamic_64): Add operand 2.  Do not determine
5841         __tls_get_addr symbol reference here.  Do not call
5842         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5843         (tls_local_dynamic_base64): Ditto for operand 1.
5844
5845 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5846
5847         * function.c (expand_function_start): Initialize stack_check_probe_note
5848         only if the generic stack checking mechanism is used.
5849
5850 2011-05-11  Richard Guenther  <rguenther@suse.de>
5851
5852         PR tree-optimization/15256
5853         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5854         (A & B) | C, combine (A op CST1) op CST2.
5855         (tree_ssa_forward_propagate_single_use_vars): Only bother to
5856         visit assigns that have uses.
5857
5858 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
5859
5860         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5861         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5862         (unpack_ts_type_common_value_fields): ...this.  Update comment.
5863         (unpack_value_fields): Adjust for renaming.
5864         (lto_input_ts_type_tree_pointers): Split into...
5865         (lto_input_ts_type_common_tree_pointer): ...this and...
5866         (lto_input_ts_type_non_common_tree_pointers): ...this.
5867         (lto_input_tree_pointers): Adjust for above split.
5868         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5869         (pack_ts_type_common_value_fields): ...this.  Update comment.
5870         (lto_output_ts_type_tree_pointers): Split into...
5871         (lto_output_ts_type_common_tree_pointers): ...this and...
5872         (lto_output_ts_type_non_common_tree_pointers): ...this.
5873         (lto_output_tree_pointers): Adjust for above split.
5874         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5875         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5876         * stor-layout.c (vector_type_mode): Adjust location of mode field.
5877         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5878         Define.
5879         (struct tree_type): Split into...
5880         (struct tree_type_common: ...this and...
5881         (struct tree_type_with_lang_specific): ...this and...
5882         (struct tree_type_non_common): ...this.  Adjust accessor macros
5883         accordingly.
5884         (TYPE_VALUES_RAW): Define.
5885         (union tree_node): Update for above changes.
5886         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5887         TS_TYPE_NON_COMMON.
5888         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5889         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5890         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5891         * treestructu.def (TS_TYPE): Remove.
5892         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5893         Define.
5894
5895 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
5896
5897         PR debug/48159
5898         * tree-ssa.c (reset_debug_uses): New function.
5899         * tree-flow.h (reset_debug_uses): New prototype.
5900         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5901         * tree-loop-distribution.c (generate_loops_for_partition): Call
5902         reset_debug_uses on the stmts that will be removed.  Keep around
5903         all debug stmts, don't count them as bits in partition bitmap.
5904         (generate_builtin): Don't count debug stmts or labels as bits in
5905         partition bitmap.
5906
5907 2011-05-11  Richard Guenther  <rguenther@suse.de>
5908
5909         * gimple.c (gimple_type_hash_1): Merge with ...
5910         (gimple_type_hash): ... this.
5911         (gtc_visit): Remove mode parameter and simplify accordingly.
5912         (gimple_types_compatible_p_1): Likewise.
5913         (gimple_types_compatible_p): Likewise.
5914         (iterative_hash_gimple_type): Likewise.
5915         (visit): Likewise.
5916         (gimple_type_eq): Adjust.
5917
5918 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5919
5920         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5921         enters the branch create an anti edge in the opposite direction
5922         to prevent the creation of reg-moves.
5923         * modulo-sched.c: Adjust comment to reflect the fact we are
5924         scheduling closing branch.
5925         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5926         (stage_count): New field in struct partial_schedule.
5927         (calculate_stage_count): New function.
5928         (normalize_sched_times): Rename to reset_sched_times and handle
5929         incrementing the sched time of the nodes by a constant value
5930         passed as parameter.
5931         (duplicate_insns_of_cycles): Skip closing branch.
5932         (sms_schedule_by_order): Schedule closing branch.
5933         (ps_insn_find_column): Handle closing branch.
5934         (sms_schedule): Call reset_sched_times and adjust the code to
5935         support scheduling of the closing branch.
5936         (ps_insert_empty_row): Update calls to normalize_sched_times
5937         and rotate_partial_schedule functions.
5938
5939 2011-05-11  Richard Guenther  <rguenther@suse.de>
5940
5941         PR middle-end/48953
5942         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5943
5944 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
5945
5946         * opts.c (finish_options): Move warning settings from process_options.
5947         * toplev.c (process_options): Move warning settings to finish_options.
5948
5949 2011-05-11  Richard Guenther  <rguenther@suse.de>
5950
5951         PR tree-optimization/18041
5952         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5953         (simplify_bitwise_binary): ... this.  Handle operand conversions
5954         by applying them to the result instead.
5955         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
5956
5957 2011-05-11  Richard Guenther  <rguenther@suse.de>
5958
5959         * gimple.c (gimple_canonical_types_compatible_p): Split out
5960         from gimple_types_compatible_p and friends.  Do not recurse
5961         to pointed-to types.
5962         (gimple_canonical_type_eq): Use it.
5963         (iterative_hash_canonical_type): Split out from
5964         iterative_hash_gimple_type and friends.  Do not recurse
5965         to pointed-to types.
5966         (gimple_canonical_type_hash): Use it, allocate the hash here.
5967
5968 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5969
5970         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5971         recognizing doloop.
5972
5973 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5974
5975         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5976         instead of PREV_INSN.
5977
5978 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5979
5980         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5981         * loop-doloop.c (doloop_condition_get): Likewise.
5982         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5983         (doloop_end): New.
5984         * config/arm/arm.md (*addsi3_compare0): Remove "*".
5985
5986 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
5987
5988         * tree.def (CASE_LABEL_EXPR): Add an operand.
5989         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5990
5991 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5992
5993         * c-decl.c (c_override_global_bindings_to_false): Remove.
5994         (global_bindings_p): Don't check
5995         c_override_global_bindings_to_false.
5996         * c-tree.h (c_override_global_bindings_to_false): Remove.
5997         * c-typeck.c (composite_type): Don't set
5998         c_override_global_bindings_to_false.
5999
6000 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
6001
6002         PR target/48857, 48495
6003         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6004         (VSX_MODE): Ditto.
6005         (VSX_MOVE_MODE): Ditto.
6006         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6007         VSX vector types.  Add V2DImode.
6008         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6009         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6010         (MODES_TIEABLE_P): Ditto.
6011
6012         * config/rs6000/rs6000.c (rs6000_emit_move): Use
6013         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6014         VSX_VECTOR_MODE.
6015         (init_cumulative_args): Ditto.
6016         (rs6000_function_arg_boundary): Ditto.
6017         (rs6000_function_arg_advance_1): Ditto.
6018         (rs6000_function_arg): Ditto.
6019         (rs6000_function_ok_for_sibcall): Ditto.
6020         (emit_frame_save): Ditto.
6021         (rs6000_function_value): Ditto.
6022         (rs6000_libcall_value): Ditto.
6023
6024 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6025
6026         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6027         i386/darwin-lib.h to $libgcc_tm_file.
6028         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6029
6030 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6031
6032         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6033
6034 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6035
6036         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
6037         * config/rs6000/rs6000-tables.opt: New file (generated).
6038         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6039         rs6000/rs6000-tables.opt to extra_options.
6040         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6041         * config/rs6000/rs6000.c (rs6000_select): Remove.
6042         (processor_target_table): Move contents to rs6000-cpus.def.
6043         (darwin_rs6000_override_options): Check
6044         global_options_set.x_rs6000_cpu_index instead of
6045         rs6000_select[1].string.
6046         (rs6000_option_override_internal): Likewise.
6047         (rs6000_handle_option): Don't assert that global structures are in
6048         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
6049         (rs6000_default_cpu): New variable.
6050         (rs6000_file_start): Set it instead of local default_cpu.  Check
6051         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6052         global_options_set.x_rs6000_tune_index instead of rs6000_select.
6053         (rs6000_darwin_file_start): Check rs6000_default_cpu and
6054         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6055         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6056         rs6000_select): Remove.
6057         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6058         Remove.
6059         (mcpu=, mtune=): Use Var, Init, Enum and Save.
6060         * config/rs6000/t-rs6000
6061         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6062         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6063         global_options_set.x_rs6000_cpu_index instead of
6064         rs6000_select[1].string.
6065         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6066         global_options_set.x_rs6000_cpu_index instead of
6067         rs6000_select[1].string.
6068
6069 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6070
6071         * config.gcc (libgcc_tm_file): Define instead of including files
6072         from ../../libgcc/config/ in tm_file.
6073         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6074         * configure: Regenerate.
6075         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6076         libgcc_tm.h, cs-libgcc_tm.h): New.
6077         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6078         (clean): Remove libgcc_tm.h.
6079         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6080         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6081         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6082
6083 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
6084
6085         PR target/48896
6086         * config/avr/avr.c (avr_ret_register): Return unsigned int
6087         instead of int.
6088         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6089         it to avr_libcall_value.
6090         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6091         expand_expr.
6092         (avr_expand_binop_builtin): Ditto.
6093         (avr_expand_unop_builtin): Ditto.
6094
6095 2011-05-10  DJ Delorie  <dj@redhat.com>
6096
6097         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6098         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6099         * config/rx/rx.c (rx_align_for_label): Add label and
6100         uses_threshold parameters.  Do not align when the label is not
6101         used enough.
6102         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6103
6104 2011-05-10  Richard Guenther  <rguenther@suse.de>
6105
6106         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6107         a series of conversions and apply foldings similar to what
6108         fold-const does.
6109         (tree_ssa_forward_propagate_single_use_vars): Call it.
6110
6111 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
6112
6113         PR tree-optimization/48611
6114         PR tree-optimization/48794
6115         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6116         referenced from RESX or EH_DISPATCH arguments.
6117
6118         PR debug/48928
6119         * dfp.c (decimal_to_decnumber): Handle conversion from
6120         dconst{1,2,m1,half}.
6121
6122 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6123
6124         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6125         for !flag_prefer_avx128.
6126         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6127
6128 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
6129
6130         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6131         (fold_ternary_loc): Use expr_location_or.
6132
6133 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6134
6135         PR debug/48853
6136         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6137         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6138         Pmode and mem_mode is not VOIDmode.
6139
6140 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
6141
6142         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6143         TYPE_QUAL_RESTRICT): Convert to enum.
6144
6145 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6146
6147         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6148         (const_pow2_1_to_8_operand): Ditto.
6149         (const_pow2_1_to_128_operand): Ditto.
6150         (const_pow2_1_to_32768_operand): Ditto.
6151         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6152         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
6153         in insn constraint to check integer value of operand 3.
6154         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6155
6156         (PINSR_MODE): New mode iterator.
6157         (sse2p4_1): New mode attribute.
6158         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6159         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6160         iterator.  Use const_int_operand instead of
6161         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
6162         exact_log2 in insn constraint to check integer value of operand 3.
6163
6164 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6165
6166         * config/i386/sse.md (blendbits): Remove mode attribute.
6167         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6168         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6169         Check integer value of operand 3 in insn constraint.
6170
6171 2011-05-09  Richard Guenther  <rguenther@suse.de>
6172
6173         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6174         for diagnostics.
6175         (lto_symtab_merge): Likewise.  Do not register types here.
6176         (lto_symtab_merge_decls_2): Likewise.
6177         (lto_symtab_merge_decls_1): Likewise.
6178         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6179         * gimple.c (enum gtc_mode): Declare.
6180         (gimple_types_compatible_p): Make static.
6181
6182 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6183
6184         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6185         temporary register to match Pmode.
6186
6187 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6188
6189         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6190         and *vec_concatv4si_1_avx.
6191
6192 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6193
6194         PR rtl-optimization/48927
6195         * ira-conflicts.c (commutative_constraint_p): Use
6196         recog_data.alternative_enabled_p to disable alternatives where
6197         "enabled" attribute is false.
6198         (get_dup_num): Ditto.
6199         * ira-lives.c (single_reg_class): Ditto.
6200         (ira_implicitly_set_insn_hard_regs): Ditto.
6201
6202 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
6203
6204         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6205         (dataflow_set_preserve_mem_locs): Likewise.
6206
6207 2011-05-09  Philipp Thomas  <pth@suse.de>
6208
6209         * config/mep/mep.c (mep_validate_vliw): Syntax description
6210         should not be translated.
6211
6212 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
6213
6214         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6215         * config/mips/mips-tables.opt: New file (generated).
6216         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6217         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6218         MIPS_ARCH_OPTION_NATIVE): Define.
6219         * config/mips/mips.c (mips_cpu_info_table): Move contents to
6220         mips-cpus.def.
6221         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6222         mips_parse_cpu): Remove.
6223         (mips_cpu_info_from_opt, mips_default_arch): New.
6224         (mips_handle_option): Don't assert that global structures are in
6225         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6226         (mips_option_override): Use new variables and functions to set
6227         state of these options.  Use strcmp to check for individual CPU names.
6228         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6229         definition.
6230         * config/mips/mips.opt (march=): Use ToLower and Enum.
6231         (mips): Use ToLower, Enum and Var.
6232         (mtune=): Use ToLower and Enum.
6233         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6234
6235 2011-05-08  Jan Hubicka  <jh@suse.cz>
6236
6237         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6238         Arrange type pairs to be UID ordered.
6239         (gimple_lookup_type_leader): Make inline.
6240
6241 2011-05-09  Nick Clifton  <nickc@redhat.com>
6242
6243         PR target/48899
6244         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6245         PROCESSOR_DEFAULT.
6246
6247         PR target/48897
6248         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6249         variable 's'.
6250
6251 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
6252
6253         * combine.c (simplify_comparison): Abstract out parts into...
6254         (simplify_compare_const): ... new function.
6255         (try_combine): Generalize parallel arithmetic/compare combining
6256         to call simplify_compare_const() and CANONICALIZE_COMPARE().
6257
6258 2011-05-08  Jan Hubicka  <jh@suse.cz>
6259
6260         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6261         (cgraph_create_virtual_clone): Call hooks once virtual clone
6262         is finished.
6263         * cgraph.h (cgraph_clone_node): Update prototype.
6264         * ipa-cp.c (ipcp_estimate_growth): Use
6265         estimate_ipcp_clone_size_and_time.
6266         * ipa-inline-transform.c (clone_inlined_nodes): Update.
6267         * lto-cgraph.c (input_node): Update.
6268         * ipa-inline.c (recursive_inlining): Update.
6269         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6270         (evaluate_conditions_for_known_args): Break out from ...
6271         (evaluate_conditions_for_edge): ... here.
6272         (evaluate_conditions_for_ipcp_clone): New function.
6273         (inline_node_duplication_hook): Update clone summary based
6274         on parameter map.
6275         (estimate_callee_size_and_time): Rename to ...
6276         (estimate_node_size_and_time): take NODE instead of EDGE;
6277         take POSSIBLE_TRUTHS as argument.
6278         (estimate_callee_size_and_time): Update.
6279         (estimate_ipcp_clone_size_and_time): New function.
6280         (do_estimate_edge_time): Update.
6281
6282 2011-05-08  Richard Guenther  <rguenther@suse.de>
6283
6284         PR middle-end/48908
6285         PR middle-end/48905
6286         * expmed.c (expand_shift_1): Compute adjusted constant shift
6287         amount manually.
6288
6289 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
6290
6291         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6292
6293 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
6294
6295         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6296
6297 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
6298
6299         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6300
6301 2011-05-07  Jan Hubicka  <jh@suse.cz>
6302
6303         * ipa-inline-transform.c (inline_call): Account when program size
6304         decreases.
6305         * ipa-inline.c (relative_time_benefit): New function.
6306         (edge_badness): Reorganize to be power 2 based; fix thinko when
6307         computing badness for negative growth; update comments to match
6308         reality; better dumps.
6309
6310 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6311
6312         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6313         type to bool and adjust comment.
6314         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6315         (fold_mathfn_compare): Remove calls to global_bindings_p.
6316         (fold_inf_compare): Likewise.
6317         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6318         * c-tree.h (global_bindings_p): Adjust prototype.
6319         * c-decl.c (global_bindings_p): Return bool and simplify.
6320
6321 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
6322
6323         PR tree-optimization/48837
6324         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6325         when accumulator transformation is performed.
6326
6327 2011-05-06  Jan Hubicka  <jh@suse.cz>
6328
6329         * i386.h (ix86_tune_indices): Add
6330         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6331         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6332         * i386.c (initial_ix86_tune_features): Add
6333         X86_SOFTARE_PREFETCHING_BENEFICIAL.
6334         (software_prefetching_beneficial_p): Remove predicate.
6335         (ix86_option_override_internal): Use new macro.
6336
6337 2011-05-06  Jan Hubicka  <jh@suse.cz>
6338
6339         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6340
6341 2011-05-06  Jan Hubicka  <jh@suse.cz>
6342
6343         * cgraph.c (cgraph_add_thunk): Create real function node instead
6344         of alias node; finalize it and mark needed/reachale; arrange visibility
6345         to be right and add it into the corresponding same comdat group list.
6346         (dump_cgraph_node): Dump thunks.
6347         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6348         cgraph_function_with_gimple_body_p,
6349         cgraph_first_function_with_gimple_body,
6350         cgraph_next_function_with_gimple_body): New functions.
6351         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6352         New macros.
6353         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6354         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6355         * cgraphunit.c (cgraph_finalize_function): Only look into possible
6356         devirtualization when optimizing.
6357         (verify_cgraph_node): Verify thunks.
6358         (cgraph_analyze_function): Analyze thunks.
6359         (cgraph_mark_functions_to_output): Output thunks only in combination
6360         with function they are assigned to.
6361         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6362         alias into normal node.
6363         (assemble_thunks): New functoin.
6364         (cgraph_expand_function): Use it.
6365         * lto-cgraph.c (lto_output_node): Stream thunks.
6366         (input_overwrite_node): Stream in thunks.
6367         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6368         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6369         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6370         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6371         (inline_analyze_function): Do not care about thunk jump functions.
6372         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6373         * ipa-prop.c (ipa_prop_write_jump_functions): Use
6374         cgraph_function_with_gimple_body_p.
6375         * passes.c (do_per_function_toporder): Use
6376         cgraph_function_with_gimple_body_p.
6377         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6378         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6379         (function_called_by_processed_nodes_p): Likewise.
6380
6381 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6382
6383         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6384         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6385         entries.
6386         (mabi=): Replace with separate entries for mabi=altivec,
6387         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6388         mabi=ieeelongdouble and mabi=ibmlongdouble.
6389         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6390         check for -mabi=spe without SPE ABI support here.
6391         (rs6000_handle_option): Replace OPT_mabi_ handling with
6392         OPT_mabi_altivec and OPT_mabi_spe handling.
6393
6394 2011-05-06  Cary Coutant  <ccoutant@google.com>
6395
6396         * dwarf2out.c (contains_subprogram_definition): New function.
6397         (should_move_die_to_comdat): Call it.
6398
6399 2011-05-06  Jeff Law  <law@redhat.com>
6400
6401         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6402         remove_ctrl_stmt_and_useless_edges.
6403         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6404         (fixup_template_block, thread_single_edge): Likewise.
6405         (mark_threaded_blocks): Use THREAD_TARGET.
6406
6407 2011-05-06  Alan Modra  <amodra@gmail.com>
6408
6409         PR target/48900
6410         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6411         const0_rtx as the arg to the dummy __tls_get_addr libcall.
6412
6413 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6414
6415         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6416         constraint modifier to "r".
6417
6418 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6419
6420         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6421         fall through for OPT_mcmodel_.
6422
6423 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6424
6425         * config/s390/s390.c (s390_asm_trampoline_template): Comment
6426         instruction sizes.
6427         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6428
6429 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6430
6431         PR target/47930
6432         * config/arm/arm.opt (marm): Document it.
6433         (mthumb): Reject negative variant.
6434
6435 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6436
6437         PR target/48898
6438         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6439         Fix typo in "ccvt" variable name.
6440
6441 2011-05-06  Tristan Gingold  <gingold@adacore.com>
6442
6443         PR target/48895
6444         * config/vms/vms-ar.c (main): Remove cwd variable.
6445
6446 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
6447
6448         PR debug/48902
6449         * var-tracking.c (prepare_call_arguments): Move else before #endif.
6450
6451 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
6452
6453         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6454         * gimplify.c (gimplify_switch_expr): Likewise.
6455         * omp-low.c (expand_omp_sections): Likewise.
6456         * tree-eh.c (lower_try_finally_switch): Likewise.
6457         (lower_eh_dispatch): Likewise.
6458         * tree.h (build_case_label): Declare.
6459         * tree.c (build_case_label): Define.
6460
6461 2011-05-05  Jason Merrill  <jason@redhat.com>
6462
6463         PR c++/40975
6464         * tree-inline.c (copy_tree_r): Use copy_statement_list.
6465         (copy_statement_list): Don't recurse.
6466         * stor-layout.c (copy_self_referential_tree_r): Don't allow
6467         STATEMENT_LIST.
6468
6469 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6470
6471         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6472         through from -mfpu= handling.
6473         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6474
6475 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
6476
6477         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6478         POST_MODIFY.
6479
6480 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
6481
6482         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6483         for 11.31.
6484         (hppa[12]*-*-hpux11*): Ditto.
6485         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6486         * config/ia64/hpux-unix2003.h: New.
6487         * config/pa/pa-hpux1131.opt: New.
6488         * config/pa/pa-hpux1131.h: New.
6489         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6490         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6491         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6492
6493 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6494
6495         PR debug/48853
6496         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6497         instead of mode as 3rd argument to recursive call.
6498         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6499         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6500         VOIDmode.
6501         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6502         don't give up if mode is Pmode and mem_mode is not VOIDmode.
6503         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6504         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6505
6506 2011-05-05  Julian Brown  <julian@codesourcery.com>
6507
6508         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6509         parenthesis in D-register case.
6510
6511 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6512
6513         * opt-functions.awk (var_type_struct): Handle Enum options.
6514         * optc-gen.awk: Don't check range of variables of character type.
6515         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6516         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6517         rs6000_sdata_name, rs6000_explicit_options): Remove.
6518         (rs6000_option_override_internal): Check for -malign-power here.
6519         Use global_options_set instead of rs6000_explicit_options.
6520         (rs6000_parse_fpu_option): Remove.
6521         (rs6000_handle_option): Access variables via opts and opts_set
6522         pointers.  Use error_at and warning_at.  Add fall-through
6523         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6524         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6525         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6526         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6527         here.  Don't use rs6000_parse_fpu_option.
6528         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6529         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6530         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6531         (mrecip=): Use Var.
6532         (mspe): Use Var and Save.
6533         (mtraceback=): Use Enum and Var.
6534         (rs6000_traceback_type): New Enum and EnumValue entries.
6535         (mfloat-gprs=): Use Enum, Var and Save.
6536         (rs6000_float_gprs): New Enum and EnumValue entries.
6537         (mlong-double-): use Var and Save.
6538         (msched-costly-dep=, minsert-sched-nops=): Use Var.
6539         (malign-): Use Enum and Var.
6540         (rs6000_alignment_flags): New Enum and EnumValue entries.
6541         (mfpu=): Use Enum.
6542         (fpu_type_t): New Enum and EnumValue entries.
6543         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6544         global_options_set instead of rs6000_explicit_options.
6545         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6546         global_options_set instead of rs6000_explicit_options.
6547         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6548         global_options_set instead of rs6000_explicit_options.
6549         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6550         global_options_set instead of rs6000_explicit_options.
6551         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6552         global_options_set instead of rs6000_explicit_options.
6553         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6554         global_options_set instead of rs6000_explicit_options.
6555         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6556         definition.
6557         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6558         global_options_set instead of rs6000_explicit_options.
6559         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6560         (rs6000_cmodel): New Enum and EnumValue entries.
6561         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6562         global_options_set instead of rs6000_explicit_options.
6563         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6564         (mtls-size=): Use Enum and Var.
6565         (rs6000_tls_size): New Enum and EnumValue entries.
6566
6567 2011-05-05  Michael Matz  <matz@suse.de>
6568
6569         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6570         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6571         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6572         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6573         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6574         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6575         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6576         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6577         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6578         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6579         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6580         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6581         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6582         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6583         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6584         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6585
6586 2011-05-05  Richard Guenther  <rguenther@suse.de>
6587
6588         * expmed.c (expand_variable_shift): Rename to ...
6589         (expand_shift_1): ... this.  Take an expanded shift amount.
6590         For rotates recurse directly not building trees for the shift amount.
6591         (expand_variable_shift): Wrap around expand_shift_1.
6592         (expand_shift): Adjust.
6593
6594 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6595
6596         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6597
6598 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
6599
6600         * tree.h (get_pending_sizes): Remove prototype.
6601         (put_pending_size): Likewise.
6602         (put_pending_sizes): Likewise.
6603         * stor-layout.c (pending_sizes): Delete.
6604         (get_pending_sizes): Likewise.
6605         (put_pending_size): Likewise.
6606         (put_pending_sizes): Likewise.
6607         (variable_size): Do not call put_pending_size and tidy up.
6608         * function.h (struct function): Remove dont_save_pending_sizes_p.
6609         * lto-streamer-in.c (input_function): Do not stream it.
6610         * lto-streamer-out.c (output_function): Likewise.
6611         * tree-inline.c (initialize_cfun): Do not copy it.
6612         * c-decl.c (store_parm_decls): Do not set it.
6613         * omp-low.c (create_task_copyfn): Likewise.
6614         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6615
6616 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
6617
6618         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6619         conditions.
6620         (*movdf_internal): Ditto.
6621         (*movdf_internal_nointeger): Ditto.
6622         (*movsf_internal): Ditto.
6623
6624 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6625
6626         * c-decl.c (finish_decl): Don't call get_pending_sizes.
6627         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
6628         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
6629         (c_variable_size): Remove.
6630         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
6631         call put_pending_sizes.
6632         (get_parm_info): Add parameter expr.  Use it to set
6633         arg_info->pending_sizes.
6634         (store_parm_decls): Use arg_info->pending_sizes instead or calling
6635         get_pending_sizes.
6636         * c-parser.c (c_parser_parms_declarator): Update call to
6637         c_parser_parms_list_declarator.
6638         (c_parser_parms_list_declarator): Take parameter expr.  Update
6639         call to push_parm_decl.  Update recursive call.  Don't call
6640         get_pending_sizes.  Update calls to get_parm_info.
6641         (c_parser_objc_method_definition): Update calls to
6642         c_parser_objc_method_decl and objc_start_method_definition.
6643         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6644         (c_parser_objc_method_decl): Add parameter expr.  Update call to
6645         grokparm.
6646         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6647         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6648         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6649
6650 2011-05-05  Michael Hope  <michael.hope@linaro.org>
6651
6652         PR pch/45979
6653         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6654         __ARM_EABI__ hosts.
6655
6656 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6657
6658         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6659         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6660         (spu_output_mi_thunk): New function.
6661
6662 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6663
6664         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6665         targetm.asm_out.print_operand.
6666         * config/sol2.c: Include target.h.
6667
6668 2011-05-04  Jan Hubicka  <jh@suse.cz>
6669
6670         * ipa-inline.c (reset_edge_caches): New function.
6671         (update_caller_keys): Add check_inlinablity_for; do not
6672         reset edge caches; remove now unnecesary loop.
6673         (update_callee_keys): Add comments; reset node_growth_cache of callee.
6674         (update_all_callee_keys): Likewise.
6675         (inline_small_functions): Sanity check cache; update code
6676         recomputing it.
6677
6678 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
6679
6680         PR rtl-optimization/47612
6681         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6682         as the last insn of the sequence to be moved.
6683
6684 2011-05-04  Tobias Burnus  <burnus@net-b.de>
6685
6686         PR fortran/48864
6687         * doc/invoke.texi (Ofast): Document that it
6688         enables Fortran's -fno-protect-parens.
6689
6690 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6691
6692         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6693
6694 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
6695
6696         * stor-layout.c (variable_size): Do not issue errors.
6697
6698 2011-05-04  Richard Guenther  <rguenther@suse.de>
6699
6700         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6701         for array-ref indices.
6702         (tree_coverage_counter_addr): Likewise.
6703         (build_fn_info_type): Use size_int for index types.
6704         (build_gcov_info): Likewise.
6705
6706 2011-05-04  Richard Guenther  <rguenther@suse.de>
6707
6708         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6709         to build_int_cst.
6710         * c-typeck.c (really_start_incremental_init): Use bitsize_int
6711         for constructor indices.
6712         (push_init_level): Likewise.
6713
6714 2011-05-04  Richard Guenther  <rguenther@suse.de>
6715
6716         * explow.c (promote_mode): Move variable declarations before code.
6717
6718 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
6719
6720         * tree.h (build_function_type_array): Declare.
6721         (build_varargs_function_type_array): Declare.
6722         (build_function_type_vec, build_varargs_function_type_vec): Define.
6723         * tree.c (build_function_type_array_1): New function.
6724         (build_function_type_array): New function.
6725         (build_varargs_function_type_array): New function.
6726
6727 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
6728
6729         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6730         before setting STMT_VINFO_TYPE.
6731
6732 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6733
6734         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6735         instead of spu_pass_by_reference.
6736
6737 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6738
6739         * calls.c (emit_library_call_value_1): Invoke
6740         promote_function_mode hook on libcall arguments.
6741         * explow.c (promote_function_mode, promote_mode): Handle TYPE
6742         argument being NULL.
6743         * targhooks.c (default_promote_function_mode): Lisewise.
6744         * config/s390/s390.c (s390_promote_function_mode): Likewise.
6745         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6746
6747         * doc/tm.texi: Document that TYPE argument might be NULL.
6748
6749 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6750
6751         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6752
6753 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6754
6755         From Bernd Schmidt
6756         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6757
6758 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6759
6760         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6761         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6762         Move ...
6763         * mips-tfile.c: ... here.
6764         Don't include coretypes.h, tm.h, filenames.h.
6765         (saber_stop): Remove definition and all calls.
6766         [__SABER__]: Remove.
6767         (__LINE__): Remove default.
6768         (Size_t, Ptrdiff_t): Remove definitions.
6769         Replace by size_t, ptrdiff_t.
6770         [!MIPS_DEBUGGING_INFO]: Remove.
6771         (SHASH_SIZE, THASH_SIZE): Remove defaults.
6772         (progname): Add const.
6773         (STATIC): Remove.
6774         Replace all uses by static.
6775         (ALIGN_SYMTABLE_OFFSET): Remove default.
6776         * mips-tdump.c: Don't include coretypes.h, tm.h.
6777         Remove !MIPS_IS_STAB guard.
6778         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6779         $(TM_H), filenames.h dependencies.
6780         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6781
6782 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6783
6784         From Jie Zhang
6785         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6786         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6787
6788 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6789
6790         From Bernd Schmidt
6791         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6792         account and save/restore RETS.
6793         (PROFILE_BEFORE_PROLOGUE): Define.
6794         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
6795         the push insn to use predecrement.
6796
6797 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6798
6799         From Jie Zhang
6800         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6801
6802 2011-05-04  Nick Clifton  <nickc@redhat.com>
6803
6804         * config/mn10300/mn10300.c: Include cfgloop.h.
6805         (DUMP): New macro.
6806         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
6807         Lcc or a FLcc insn into the instruction stream.
6808         (mn10300_block_contains_call): New function.  Returns true if the
6809         given basic block contains a CALL insn.
6810         (mn10300_loop_contains_call_insn): New function.  Returns true if
6811         the given loop contains a CALL insn.
6812         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
6813         to use the SETLB and Lcc or FLcc insns.
6814         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6815         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6816         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
6817         disable the SETLB optimization.
6818         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6819         __SETLB__ or __NO_SETLB__.
6820         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6821         (movsf_internal): Handle MDR register.
6822         (cmpsi): Make visible.
6823         (setlb): New pattern.
6824         (Lcc): New pattern.
6825         (FLcc): New pattern.
6826
6827 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6828
6829         PR target/48860
6830         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6831         for reg<->xmm moves.
6832         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6833         (vec_concatv2di_rex64_sse): Ditto.
6834         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6835         (*vec_extractv2di_1_rex64): Ditto.
6836
6837         Revert:
6838         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6839
6840         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6841         reg<->xmm moves.
6842         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6843
6844 2011-05-04  Richard Guenther  <rguenther@suse.de>
6845
6846         * tree.h (int_const_binop): Remove notrunc argument.
6847         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
6848         create integer constants that are properly truncated.
6849         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6850         (const_binop): Remove zero notrunc argument to int_const_binop.
6851         (size_binop_loc): Likewise.
6852         (fold_div_compare): Likewise.
6853         (maybe_canonicalize_comparison_1): Likewise.
6854         (fold_comparison): Likewise.
6855         (fold_binary_loc): Likewise.
6856         (multiple_of_p): Likewise.
6857         * expr.c (store_constructor): Likewise.
6858         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6859         (maybe_fold_stmt_addition): Likewise.
6860         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6861         * stor-layout.c (layout_type): Likewise.
6862         * tree-data-ref.c (tree_fold_divides_p): Likewise.
6863         * tree-sra.c (build_ref_for_offset): Likewise.
6864         (build_user_friendly_ref_for_offset): Likewise.
6865         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6866         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6867         * tree-ssa-loop-niter.c (inverse): Likewise.
6868         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6869         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6870         * tree-switch-conversion.c (check_range): Likewise.
6871         (build_constructors): Likewise.
6872         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6873         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6874         (extract_range_from_assert): Likewise.
6875         (vrp_int_const_binop): Likewise.
6876         (extract_range_from_binary_expr): Likewise.
6877         (extract_range_from_unary_expr): Likewise.
6878         (check_array_ref): Likewise.
6879         (find_case_label_range): Likewise.
6880         (simplify_div_or_mod_using_ranges): Likewise.
6881         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6882         comparing case labels for merging.
6883
6884 2011-05-03  Mark Wielaard  <mjw@redhat.com>
6885
6886         * dwarf2out.c (debug_str_hash_forced): Removed.
6887         (gen_label_for_indirect_string): Removed.
6888         (get_debug_string_label): Removed.
6889         (AT_string_form): Generate label directly.
6890         (output_indirect_string): Test indirect_string_node for
6891         DW_FORM_strp instead of checking label and refcount.
6892         (prune_indirect_string): Removed.
6893         (prune_unused_types): Don't check debug_str_hash_forced or
6894         call prune_indirect_string.
6895
6896 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6897
6898         PR other/48093
6899         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6900
6901 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6902
6903         PR debug/47994
6904         PR debug/47919
6905         * combine.c (try_combine): Skip debug insns at m_split tests.
6906
6907 2011-04-26  Mark Wielaard  <mjw@redhat.com>
6908
6909         PR42288
6910         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6911         when info_section_emitted.
6912
6913 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
6914
6915         * config/mips/mips-opts.h: New.
6916         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6917         to mips-opts.h.
6918         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6919         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6920         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
6921         via opts pointer.
6922         * config/mips/mips.h (enum mips_code_readable_setting): Move to
6923         mips-opts.h.
6924         (mips_abi, mips_code_readable): Don't declare.
6925         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6926         (mabi=): Use Enum and Var.
6927         (mips_abi): New Enum and EnumValue entries.
6928         (mcode-readable=): Use Enum and Var.
6929         (mips_code_readable_setting): New Enum and EnumValue entries.
6930         (mr10k-cache-barrier=): Use Enum and Var.
6931         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6932
6933 2011-05-03  Jan Hubicka  <jh@suse.cz>
6934
6935         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6936         replace hash by pointer map.
6937         (cgraph_node_set_element_def, cgraph_node_set_element,
6938         const_cgraph_node_set_element, varpool_node_set_element_def,
6939         varpool_node_set_element, const_varpool_node_set_element): Remove.
6940         (free_cgraph_node_set, free_varpool_node_set): New function.
6941         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6942         * tree-emutls.c: Free varpool node set.
6943         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6944         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6945         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6946         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6947         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6948         Move here from ipa.c; implement using pointer_map
6949         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6950         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6951         debug_cgraph_node_set, varpool_node_set_new,
6952         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6953         dump_varpool_node_set, debug_varpool_node_set):
6954         Move to ipa-uitls.c.
6955         * passes.c (ipa_write_summaries): Update.
6956
6957 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6958
6959         From Mike Frysinger:
6960         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6961         bf542/bf544/bf547/bf548/bf549.
6962
6963 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
6964
6965         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6966
6967 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6968
6969         From Bernd Schmidt:
6970         * config/bfin/bfin.md (MOVCC): New mode_macro.
6971         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6972         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
6973         comments from generated assembly.
6974
6975 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6976
6977         From Bernd Schmidt
6978         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6979         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6980         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6981         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6982         * config/bfin/lib1funcs.asm (___muldi3): New function.
6983
6984 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6985
6986         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6987         build_function_type_list instead of build_function_type.
6988         Rearrange initialization of `args' to do so.
6989
6990 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6991
6992         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6993         instead of build_function_type.
6994
6995 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6996
6997         * config/rs6000/rs6000.c (spe_init_builtins): Call
6998         build_function_type_list instead of build_function_type.
6999         (paired_init_builtins, altivec_init_builtins): Likewise.
7000         (builtin_function_type): Likewise.
7001
7002 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7003
7004         * config/sh/sh.c (sh_media_init_builtins): Call
7005         build_function_type_list instead of build_function_type.
7006
7007 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7008
7009         * config/sparc/sparc.c (sparc_file_end): Call
7010         build_function_type_list instead of build_function_type.
7011
7012 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7013
7014         * config/alpha/alpha.c (alpha_init_builtins): Call
7015         build_function_type_list instead of build_function_type.
7016
7017 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7018
7019         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7020         build_function_type_list instead of build_function_type.
7021
7022 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7023
7024         * config/iq2000/i2000.c (iq2000_init_builtins): Call
7025         build_function_type_list instead of build_function_type.
7026         Delete `endlink' variable.
7027
7028 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7029
7030         * config/avr/avr.c (avr_init_builtins): Call
7031         build_function_type_list instead of build_function_type.
7032
7033 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7034
7035         * config/picochip/picochip.c (picochip_init_builtins): Call
7036         build_function_type_list instead of build_function_type.
7037         Delete `endlink' variable.
7038
7039 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7040
7041         * config/bfin/bfin.c (bfin_init_builtins): Call
7042         build_function_type_list instead of build_function_type.
7043
7044 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7045
7046         From Bernd Schmidt
7047         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7048         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
7049
7050 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7051
7052         From Jie Zhang:
7053         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7054         libbffastfp overrides libgcc when -mfast-fp.
7055
7056 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7057
7058         Originally from Bernd Schmidt
7059         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7060         * config/bfin/bfin.c (override_options): Test it and error if
7061         TARGET_FDPIC.
7062
7063 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7064
7065         Originally From Bernd Schmidt
7066         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7067         FD-PIC.
7068
7069 2011-05-03  Jeff Law  <law@redhat.com>
7070
7071         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7072         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7073         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7074         than accessing AUX field directly.  Free the AUX field before
7075         clearing it.
7076         (thread_block, thread_through_loop_header): Likewise.
7077         (thread_single_edge, mark_threaded_blocks): Likewise.
7078         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
7079         (register_jump_thread): Do not attempt to thread to a NULL edge.
7080
7081 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
7082
7083         * function.c (init_function_start): Call decide_function_section.
7084         * varasm.c (decide_function_section): New function.
7085         (assemble_start_function): When not using
7086         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7087         or first_function_block_is_cold.
7088         * rtl.h (decide_function_section): Declare.
7089
7090 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
7091             Jakub Jelinek  <jakub@redhat.com>
7092
7093         PR target/48774
7094         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7095         only succeed if req_mode is the same as set_mode.
7096
7097 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
7098
7099         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7100         * genemit.c (gen_exp): Handle RETURN.
7101         * emit-rtl.c (verify_rtx_sharing): Likewise.
7102         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7103         * rtl.c (copy_rtx): RETURN is shared.
7104         * rtl.h (enum global_rtl_index): Add GR_RETURN.
7105         (ret_rtx): New.
7106         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7107         * config/s390/s390.c (s390_emit_epilogue): Likewise.
7108         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7109         * config/cris/cris.c (cris_expand_return): Likewise.
7110         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7111         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7112         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7113         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7114         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7115         Likewise.
7116         * config/v850/v850.c (expand_epilogue): Likewise.
7117         * config/bfin/bfin.c (bfin_expand_call): Likewise.
7118         * config/arm/arm.md (epilogue): Likewise.
7119         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7120         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7121         variable to ret_reg.
7122
7123 2011-05-03  Richard Guenther  <rguenther@suse.de>
7124
7125         PR lto/48846
7126         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7127         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7128         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7129
7130 2011-05-03  Richard Guenther  <rguenther@suse.de>
7131
7132         * c-decl.c (grokdeclarator): Instead of looking at
7133         TREE_OVERFLOW check if the constant fits in the index type.
7134
7135 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7136
7137         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7138         (vec_store_lanes<mode><mode>): Likewise.
7139
7140 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7141
7142         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7143         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7144         convert_optab_index values.
7145         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7146         * genopinit.c (optabs): Initialize the new optabs.
7147         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7148         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7149         (expand_STORE_LANES): New functions.
7150         * tree.h (build_array_type_nelts): Declare.
7151         * tree.c (build_array_type_nelts): New function.
7152         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7153         (vect_model_load_cost): Likewise.
7154         (vect_store_lanes_supported, vect_load_lanes_supported)
7155         (vect_record_strided_load_vectors): Declare.
7156         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7157         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7158         (vect_transform_strided_load): Split out statement recording into...
7159         (vect_record_strided_load_vectors): ...this new function.
7160         * tree-vect-stmts.c (create_vector_array, read_vector_array)
7161         (write_vector_array, create_array_ref): New functions.
7162         (vect_model_store_cost): Add store_lanes_p argument.
7163         (vect_model_load_cost): Add load_lanes_p argument.
7164         (vectorizable_store): Try to use store-lanes functions for
7165         interleaved stores.
7166         (vectorizable_load): Likewise load-lanes and loads.
7167         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7168         to vect_model_store_cost.
7169         (vect_build_slp_tree): Likewise vect_model_load_cost.
7170
7171 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7172
7173         * hooks.h (hook_bool_mode_uhwi_false): Declare.
7174         * hooks.c (hook_bool_mode_uhwi_false): New function.
7175         * target.def (array_mode_supported_p): New hook.
7176         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7177         * doc/tm.texi: Regenerate.
7178         * stor-layout.c (mode_for_array): New function.
7179         (layout_type): Use it.
7180         * config/arm/arm.c (arm_array_mode_supported_p): New function.
7181         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7182
7183 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
7184
7185         PR target/48723
7186         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7187         for -fstack-check if the size to allocate is negative.
7188
7189 2011-05-02  Lawrence Crowl  <crowl@google.com>
7190
7191         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7192         (timevar_cond_start): New for starting a timer only when it is not
7193         already running.
7194         (timevar_cond_stop): New for stopping a timer when it was not already
7195         running.
7196
7197         * timevar.c (timevar_stop): Enable start/stop timers to start again.
7198         (timevar_cond_start): New as above.
7199         (timevar_cond_stop): New as above.
7200
7201         * timevar.def: Add start/stop timers for compiler phases,
7202         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7203         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7204         and TV_PHASE_FINALIZE.
7205         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7206         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7207         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7208         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7209         Make unused TV_OVERLOAD into a start/stop timer.
7210
7211         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7212         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7213         to indicate that they are start/stop timers.
7214
7215         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7216         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7217         Move initialization to do_compile.
7218         (do_compile): Add initialization from above.
7219         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7220
7221         * c-decl.c (c_write_global_declarations): Add start/stop of
7222         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7223
7224         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7225         or TV_PARSE_INLINE, as appropriate.
7226         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7227         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7228
7229 2011-05-02  Jason Merrill  <jason@redhat.com>
7230
7231         PR c++/40975
7232         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7233
7234 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
7235
7236         PR c/35445
7237         * c-decl.c (finish_decl): Only create a composite if the types are
7238         compatible.
7239
7240 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
7241
7242         * config/fr30/fr30-protos.h (Mmode): Don't define.
7243         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
7244         definition where used.
7245         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7246         define.  Expand definitions where used.
7247         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7248         Expand definitions where used.
7249         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7250         rx_function_arg, rx_function_arg_advance,
7251         rx_function_arg_boundary): Expand definitions of those macros.
7252         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
7253         definition where used.
7254
7255 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7256
7257         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7258         reg<->xmm moves.
7259         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7260         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
7261         with *movv2sf_internal_rex64_avx.
7262         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7263         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7264         Use %v prefix in insn mnemonic to handle TARGET_AVX.
7265         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
7266         "vex" in "prefix" attribute calculation.
7267         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
7268
7269 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
7270
7271         PR target/47951
7272         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7273         inputs match the output.
7274
7275 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
7276
7277         PR target/47955
7278         * config/m68k/m68k.c (m68k_expand_prologue): Set
7279         current_function_static_stack_size.
7280
7281 2011-05-02   Jan Hubicka  <jh@suse.cz>
7282
7283         * lto-streamer.c (lto_streamer_cache_insert_1,
7284         lto_streamer_cache_lookup, lto_streamer_cache_create,
7285         lto_streamer_cache_delete): Use pointer map instead of hashtable.
7286         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7287
7288 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
7289
7290         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7291         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7292         config/m68k/t-opts: New files.
7293         * config/m68k/m68k-tables.opt: New file (generated).
7294         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7295         extra_options and m68k/t-opts to tmake_file.
7296         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7297         (all_isas): Initialize using m68k-isas.def.
7298         (all_microarchs): Initialize using m68k-microarchs.def.
7299         (m68k_find_selection): Remove.
7300         (m68k_handle_option): Don't assert that global structures are in
7301         use.  Use error_at.  Access variables via opts pointer.  Don't
7302         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
7303         directly for -m68020-40 and -m68020-60.
7304         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7305         m68k_tune_entry here.
7306         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7307         to m68k-opts.h.
7308         (m68k_library_id_string): Remove declaration.
7309         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7310         (m68k_library_id_string): New Variable.
7311         (march=, mcpu=, mtune=): Use Enum and Var.
7312
7313 2011-05-02  Richard Guenther  <rguenther@suse.de>
7314
7315         * varasm.c (output_constructor_regular_field): Compute zero-based
7316         index with double-ints.  Make sure to ICE instead of producing
7317         wrong code.
7318         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7319         in asserts.  Properly use a signed type.
7320
7321 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7322
7323         * config/i386/sse.md (V): New mode iterator.
7324         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
7325         TARGET_SSE2.
7326         (V_256): Rename from AVX256MODE.
7327         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
7328         condition to all users.
7329         (VF1): Ditto.
7330         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
7331         condition to all users.
7332         (VF_128): Make V4SF mode unconditional.
7333         (VF_256): Rename from AVX256MODEF2P.
7334         (VI4F_128): Rename from SSEMODE4S.
7335         (VI8F_128): Rename from SSEMODE2D.
7336         (VI4F_256): Rename from AVX256MODE8P.
7337         (VI8F_256): Rename from AVX256MODE4P.
7338         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7339         (ssescalarmodesuffix): Remove SF and DF modes.
7340         (SSEMODE124): Remove.
7341         (SSEMODE1248): Ditto.
7342         (SSEMODEF2P): Ditto.
7343         (AVXMODEF2P): Ditto.
7344         (AVXMODEFDP): Ditto.
7345         (AVXMODEFSP): Ditto.
7346         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7347         unconditional.
7348         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
7349         unconditional.
7350         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7351         xop_pcmov_<mode>256.  Use V mode iterator.
7352
7353         Adjust RTX patterns globally for renamed mode attributes.
7354
7355 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7356
7357         * haifa-sched.c (sched_emit_insn): Emit insn before first
7358         non-scheduled insn.  Inform back-end about new insn.  Add
7359         new insn to scheduled_insns list.
7360
7361 2011-05-02  Richard Guenther  <rguenther@suse.de>
7362
7363         PR tree-optimization/48822
7364         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7365         (process_scc): Indicate which iteration we start.
7366
7367 2011-05-02  Jan Hubicka  <jh@suse.cz>
7368
7369         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7370         (lto_section_overrun): New.
7371         * lto-section-out.c (append_block): Rename to ...
7372         (lto_append_block): ... this one; export.
7373         (lto_output_1_stream): Move lto lto-streamer.h
7374         (lto_output_data_stream): Update.
7375         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7376         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7377         functions.
7378
7379 2011-05-02  Richard Guenther  <rguenther@suse.de>
7380
7381         * tree.c (tree_code_counts): New global array.
7382         (record_node_allocation_statistics): Count individual tree codes.
7383         (dump_tree_statistics): Dump individual code stats.
7384
7385 2011-05-01  Jan Hubicka  <jh@suse.cz>
7386
7387         * ipa-inline.c (caller_growth_limits): Fix thinko when
7388         looking for largest stack frame.
7389         * ipa-inline.h (dump_inline_summary): Declare.
7390         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7391         on stack usage.
7392         (dump_inline_summary): Export.
7393         (debug_inline_summary): Declare as DEBUG_FUNCTION.
7394
7395 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
7396
7397         * reginfo.c (memory_move_cost): Change rclass argument type form
7398         'enum reg_class' to reg_class_t.
7399         * reload.h (memory_move_cost): Update prototype.
7400         * postreload.c reload_cse_simplify_set): Change type dclass var to
7401         reg_class_t.
7402         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7403         Update prototype.
7404         (ira_allocate_and_set_costs): Change aclass argument type form
7405         'enum reg_class' to reg_class_t.
7406         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7407         Change aclass argument type to reg_class_t.
7408         (update_conflict_hard_reg_costs): Change type aclass and pref vars
7409         to reg_class_t.
7410         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7411         memory_move_cost call.
7412
7413         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7414         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7415         Change type tmp var to reg_class_t.
7416
7417 2011-04-30  Jan Hubicka  <jh@suse.cz>
7418
7419         * ipa-inline.c (can_inline_edge_p): Disregard limits when
7420         inlining into function with flatten attribute.
7421         (want_inline_small_function_p): Be more realistic about inlining
7422         cold calls where callee size grows.
7423
7424 2011-04-30  Jan Hubicka  <jh@suse.cz>
7425
7426         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7427         flags.
7428
7429 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
7430
7431         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7432         PRINT_OPERAND_PUNCT_VALID_P): Remove.
7433         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7434         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7435         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7436         (print_operand): Rename to...
7437         (sparc_print_operand): ...this. Make static. Adjust
7438         sparc_print_operand function call.
7439         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7440         functions.
7441
7442 2011-04-30  Jan Hubicka  <jh@suse.cz>
7443
7444         PR middle-end/48752
7445         * ipa-inline.c (early_inliner): Disable when doing late
7446         addition of function.
7447
7448 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
7449
7450         * dwarf2out.c (get_address_mode): New inline.
7451         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7452         if not dwarf_strict emit
7453         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7454         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7455         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
7456         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7457         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7458         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7459         mem_loc_descriptor callers.
7460         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7461         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7462         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7463         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7464         (base_types): New variable.
7465         (get_base_type_offset, calc_base_type_die_sizes,
7466         base_type_for_mode, mark_base_types, base_type_cmp,
7467         move_marked_base_types): New functions.
7468         (calc_die_sizes): Assert that die_offset is 0 or equal to
7469         next_die_offset.
7470         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7471         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
7472         callers.  If not dwarf_strict, call mem_loc_descriptor even for
7473         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7474         (gen_subprogram_die): Don't give up on call site parameters
7475         with non-integral or large integral modes.  Adjust
7476         mem_loc_descriptor callers.
7477         (prune_unused_types): Call prune_unused_types_mark on base_types
7478         vector entries.
7479         (resolve_addr): Call mark_base_types.
7480         (dwarf2out_finish): Call move_marked_base_types.
7481
7482         PR tree-optimization/48809
7483         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7484         type.
7485         (gen_inbound_check): Don't compute index_expr - range_min in utype
7486         again, instead reuse SSA_NAME initialized in build_arrays.
7487         Remove two useless gsi_for_stmt calls.
7488
7489 2011-04-29  Jeff Law  <law@redhat.com>
7490
7491         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7492
7493 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7494
7495         * cgraph.h (cgraph_postorder): Remove declaration.
7496         * ipa-utils.h (ipa_free_postorder_info): Declare.
7497         (ipa_reverse_postorder): Likewise.
7498         * cgraphunit.c: Include ipa-utils.h.
7499         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7500         * ipa-inline.c: Include ipa-utils.h.
7501         (ipa_inline): Update call to ipa_reverse_postorder.
7502         * ipa-pure-const.c (propagate_pure_const): Update call to
7503         ipa_reduced_postorder and ipa_print_order.  Call
7504         ipa_free_postorder_info to clean up.
7505         (propagate_nothrow): Likewise.
7506         * ipa-reference.c (propagate): Removed a useless call to
7507         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7508         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
7509         * ipa.c: Include ipa-utils.h.
7510         (ipa_profile): Update call to ipa_reverse_postorder.
7511         (cgraph_postorder): Moved to...
7512         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7513         (ipa_utils_print_order): Renamed to ipa_print_order.
7514         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7515         comments.
7516         (ipa_free_postorder_info): New function.
7517         * passes.c: Include ipa-utils.h.
7518         (do_per_function_toporder): Update call to ipa_reverse_postorder.
7519         (ipa_write_summaries): Likewise.
7520         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7521         (cgraphunit.o): Likewise.
7522         (ipa.o): Likewise.
7523         (ipa-inline.o): Likewise.
7524
7525 2011-04-29  Jan Hubicka  <jh@suse.cz>
7526
7527         * gcc.dg/tree-ssa/inline-10.c: New testcase.
7528         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7529         * ipa-inline.h (clause_t): Turn into unsigned int.
7530         * ipa-inline-analysis.c (add_clause): Do more simplification.
7531         (and_predicates): Shortcut more cases.
7532         (predicates_equal_p): Move forward; check that clauses are properly
7533         ordered.
7534         (or_predicates): Shortcut more cases.
7535         (edge_execution_predicate): Rewrite as...
7536         (set_cond_stmt_execution_predicate): ... this function; handle
7537         __builtin_constant_p.
7538         (set_switch_stmt_execution_predicate): New .
7539         (compute_bb_predicates): New.
7540         (will_be_nonconstant_predicate): Update TODO.
7541         (estimate_function_body_sizes): Use compute_bb_predicates
7542         and free them later, always try to estimate if stmt is constant.
7543         (estimate_time_after_inlining, estimate_size_after_inlining):
7544         Gracefully handle optimized out edges.
7545         (read_predicate): Fix off by one error.
7546
7547 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7548
7549         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7550
7551 2011-04-27  Xinliang David Li  <davidxl@google.com>
7552
7553         * tree-profile.c (init_ic_make_global_vars): Set
7554         tls attribute on ic vars.
7555         * coverage.c (coverage_end_function): Initialize
7556         function_list with zero.
7557
7558 2011-04-29  Richard Guenther  <rguenther@suse.de>
7559
7560         * builtins.c (fold_builtin_classify_type): Use integer_type_node
7561         for the type of the result.
7562         (fold_builtin_isascii): Likewise.
7563         (fold_builtin_toascii): Use integer_type_node where appropriate.
7564         (fold_builtin_logb): Likewise.
7565         (fold_builtin_frexp): Likewise.
7566         (fold_builtin_strstr): Likewise.
7567         (fold_builtin_strpbrk): Likewise.
7568         (fold_builtin_fputs): Likewise.
7569         (fold_builtin_sprintf): Likewise.
7570         (fold_builtin_snprintf): Likewise.
7571         (fold_builtin_printf): Likewise.
7572         (do_mpfr_remquo): Use a proper type for the assigned constant.
7573         (do_mpfr_lgamma_r): Likewise.
7574         * dwarf2out.c (resolve_one_addr): Use size_int.
7575         * except.c (init_eh): Likewise.
7576         (assign_filter_values): Use integer_type_node for filter values.
7577         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7578         indices.
7579         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7580         for EH region numbers.
7581         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7582         for the shift amount.
7583
7584 2011-04-29  Richard Guenther  <rguenther@suse.de>
7585
7586         * expr.h (expand_shift): Rename to ...
7587         (expand_variable_shift): ... this.
7588         (expand_shift): Take a constant shift amount.
7589         * expmed.c (expand_shift): Rename to ...
7590         (expand_variable_shift): ... this.
7591         (expand_shift): New wrapper around expand_variable_shift.
7592         * expr.c (convert_move, emit_group_load_1, emit_group_store,
7593         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7594         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7595         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7596         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7597         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7598         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7599         emit_store_flag_1, emit_store_flag): Likewise.
7600         * builtins.c (expand_builtin_signbit): Likewise.
7601         * calls.c (load_register_parameters): Likewise.
7602         * function.c (assign_parm_setup_block): Likewise.
7603         * lower-subreg.c (resolve_shift_zext): Likewise.
7604         * optabs.c (widen_bswap, expand_abs_nojump,
7605         expand_one_cmpl_abs_nojump, expand_float): Likewise.
7606         * spu/spu.c (spu_expand_extv): Likewise.
7607         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7608
7609 2011-04-29  Richard Guenther  <rguenther@suse.de>
7610
7611         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7612         for the remapped region number.
7613         * predict.c (build_predict_expr): Use integer_type_node for the
7614         predict kind.
7615         * fold-const.c (fold_binary_loc): Use integer_type_node for
7616         the shift amount.  Use a proper type for the PLUS_EXPR operand.
7617
7618 2011-04-29  Michael Matz  <matz@suse.de>
7619
7620         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7621         other trees that just builtins.
7622         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7623
7624 2011-04-29  Richard Guenther  <rguenther@suse.de>
7625
7626         * tree-nested.c (get_trampoline_type): Use size_int.
7627         (get_nl_goto_field): Likewise.
7628         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7629         for all indexes.
7630         (lower_eh_constructs_2): Likewise.
7631         (lower_resx): Likewise.
7632         (lower_eh_dispatch): Likewise.
7633         * tree-mudflap.c (mf_build_string): Use size_int.
7634         (mudflap_register_call): Use integer_type_node for the flag.
7635         (mudflap_enqueue_constant): Use size_int.
7636         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7637         instead of rebuilding it.
7638
7639 2011-04-29  Richard Guenther  <rguenther@suse.de>
7640
7641         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7642         Handle OBJ_TYPE_REF.
7643         (find_func_aliases_for_call): Use it more consistently.
7644
7645 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
7646
7647         * haifa-sched.c (last_nondebug_scheduled_insn): New.
7648         (rank_for_schedule): Use it.
7649         (schedule_block): Set it.
7650
7651 2011-04-28  David Li  <davidxl@google.com>
7652
7653         * tree.c (crc32_string): Use crc32_byte.
7654         (crc32_byte): New function.
7655         * tree.h (crc32_byte): New function.
7656         * gcov.c (read_graph_file): Handle new cfg_cksum.
7657         (read_count_file): Ditto.
7658         * profile.c (instrument_values): Ditto.
7659         (get_exec_counts): Ditto.
7660         (read_profile_edge_counts): Ditto.
7661         (compute_branch_probabilities): Ditto.
7662         (compute_value_histograms): Ditto.
7663         (branch_prob): Ditto.
7664         (end_branch_prob): Ditto.
7665         * coverage.c (read_counts_file): Ditto.
7666         (get_coverage_counts): Ditto.
7667         (tree_coverage_counter_addr): Ditto.
7668         (coverage_checksum_string): Ditto.
7669         (coverage_begin_output): Ditto.
7670         (coverage_end_function): Ditto.
7671         (build_fn_info_type): Ditto.
7672         (build_fn_info_value): Ditto.
7673         * libgcov.c (gcov_exit): Ditto.
7674         * gcov-dump.c (tag_function): Ditto.
7675         (compute_checksum): Remove.
7676
7677 2011-04-29  Alan Modra  <amodra@gmail.com>
7678
7679         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7680         unspec plus offset.  Tidy macho code.
7681
7682 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7683
7684         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7685         node instead of a decl.  Update all callers.
7686         * cgraph.h: Update declaration.
7687
7688 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
7689
7690         PR tree-optimization/48765
7691         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7692         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7693         to indicate if loop aware SLP is being used.  Scan the statements
7694         and update the vectorization factor according to the type of
7695         vectorization before statement analysis.
7696         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7697         pass it to vect_analyze_loop_operations.
7698         (vectorizable_reduction): Set number of copies to 1 in case of pure
7699         SLP statement.
7700         * tree-vect-stmts.c (vectorizable_conversion,
7701         vectorizable_assignment, vectorizable_shift,
7702         vectorizable_operation, vectorizable_type_demotion,
7703         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7704         Likewise.
7705         (vectorizable_condition): Move the check that it is not SLP
7706         vectorization before the number of copies check.
7707         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7708         to vectorize the loop using SLP.
7709
7710 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
7711
7712         PR middle-end/48597
7713         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7714         inline asm.
7715
7716 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
7717
7718         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7719         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7720         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7721         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7722         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7723         linux*.h headers.
7724         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7725         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7726         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7727         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7728         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7729         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7730         REG_NAME.
7731         * config/i386/linux.h (REG_NAME): Don't define.
7732         * config/i386/linux64.h (REG_NAME): Don't define.
7733         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7734         Undefine before defining.
7735
7736 2011-04-28  Jan Hubicka  <jh@suse.cz>
7737
7738         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7739         nonconstant_names array.
7740         (estimate_function_body_sizes): Build nonconstant_names array; handle
7741         BUILT_IN_CONSTANT_P.
7742
7743 2011-04-28  Richard Guenther  <rguenther@suse.de>
7744
7745         PR bootstrap/48804
7746         Revert
7747         2011-04-28  Richard Guenther  <rguenther@suse.de>
7748
7749         * tree-ssa-structalias.c (solve_constraints): Build succ graph
7750         as late as possible.
7751
7752 2011-04-28  Richard Guenther  <rguenther@suse.de>
7753
7754         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7755         (debug_constraint): Do it here.
7756         (dump_constraints): And here.
7757         (rewrite_constraints): And here.
7758         (dump_constraint_edge): Remove.
7759         (dump_constraint_graph): Rewrite to produce DOT output.
7760         (solve_constraints): Build succ graph as late as possible.
7761         Dump constraint graphs before and after solving.
7762
7763 2011-04-28  Richard Guenther  <rguenther@suse.de>
7764
7765         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7766         New function split out from ...
7767         (find_func_aliases): ... here.  Call it.
7768         (find_func_aliases_for_call): Likewise.
7769
7770 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7771
7772         * internal-fn.h (internal_fn_name_array): Declare.
7773         (internal_fn_flags_array): Likewise.
7774
7775 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7776
7777         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
7778         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7779         Move from sse.md.
7780         (ssemodefsuffix): Remove.
7781         (ssevecmodesuffix): New mode attribute.
7782         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7783         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7784         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7785         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7786         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7787         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7788         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7789         ssemodesuffix mode attribute.
7790         (float splitters): Use ssevecmodesuffix mode attribute.
7791         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7792         (sseinsmode): Rename from avxvecmode.
7793         (avxsizesuffix): Rename from avxmodesuffix.
7794         (sseintvecmode): Rename from avxpermvecmode.
7795         (ssedoublevecmode): Rename from ssedoublesizemode.
7796         (ssehalfvecmode): Rename from avxhalfvecmode.
7797         (ssescalarmode): Rename from avxscalarmode.
7798         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7799         templates for ssemodesuffix mode attribute.
7800         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7801         mode attribute.
7802
7803         Adjust RTX patterns globally for renamed mode attributes.
7804
7805 2011-04-27  Jan Hubcika  <jh@suse.cz>
7806
7807         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7808         * ipa-inline-analysis.c: Include alloc-pool.h.
7809         (edge_predicate_pool): New.
7810         (trye_predicate_p): New function
7811         (false_predicate_p): New function.
7812         (add_clause): Sanity check that false clauses are "optimized";
7813         never add clauses to predicate that is already known to be false.
7814         (and_predicate): Use flase_predicate_p.
7815         (evaulate_predicate): Rename to ...
7816         (evaluate_predicate): ... this one; update all callers; assert
7817         that false is not listed among possible truths.
7818         (dump_predicate): Use true_predicate_p.
7819         (account_size_time): Use false_predicate_p.
7820         (evaulate_conditions_for_edge): Rename to ...
7821         (evaluate_conditions_for_edge) ... this one.
7822         (edge_set_predicate): New function.
7823         (inline_edge_duplication_hook): Duplicate edge predicates.
7824         (inline_edge_removal_hook): Free edge predicates.
7825         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7826         (dump_inline_summary): Update.
7827         (estimate_function_body_sizes): Set edge predicates.
7828         (estimate_calls_size_and_time): Handle predicates.
7829         (estimate_callee_size_and_time): Update.
7830         (remap_predicate): Add toplev_predicate; update comment.
7831         (remap_edge_predicates): New function.
7832         (inline_merge_summary): Compute toplev predicate; update.
7833         (read_predicate): New function.
7834         (read_inline_edge_summary): Use it.
7835         (inline_read_section): Likewise.
7836         (write_predicate): New function.
7837         (write_inline_edge_summary): Use it.
7838         (inline_write_summary): Likewise.
7839         (inline_free_summary): Free alloc pool and edge summary vec.
7840
7841 2011-04-27  Richard Guenther  <rguenther@suse.de>
7842
7843         * tree-ssa-structalias.c (changed_count): Remove.
7844         (changed): Use a bitmap.
7845         (unify_nodes): Adjust.
7846         (do_sd_constraint): Likewise.
7847         (do_ds_constraint): Likewise.
7848         (do_complex_constraint): Likewise.
7849         (solve_graph): Likewise.
7850
7851 2011-04-27  Jan Hubicka  <jh@suse.cz>
7852
7853         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7854
7855 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7856
7857         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7858         (avx_vperm2f128_*_operand): Ditto.
7859         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7860         Use avx_vpermilp_parallel in insn condition.
7861         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7862         Use avx_vperm2f128_parallel in insn condition.
7863
7864 2011-04-27  Richard Guenther  <rguenther@suse.de>
7865
7866         * Makefile.in (tree-ssa-structalias.o): Remove
7867         gt-tree-ssa-structalias.h dependency.
7868         (GTFILES): Remove tree-ssa-structalias.c.
7869         * tree.c (allocate_decl_uid): New function.
7870         (make_node_stat): Use it.
7871         (copy_node_stat): Likewise.
7872         * tree.h (allocate_decl_uid): Declare.
7873         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7874         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7875         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7876         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7877         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7878         (struct heapvar_map): Likewise.
7879         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7880         heapvar_insert): Likewise.
7881         (make_heapvar_for): Rename to ...
7882         (make_heapvar): ... this.  Simplify.
7883         (fake_var_decl_obstack): New global var.
7884         (build_fake_var_decl): New function.
7885         (make_constraint_from_heapvar): Adjust.
7886         (handle_lhs_call): Likewise.
7887         (create_function_info_for): Likewise.
7888         (intra_create_variable_infos): Likewise.
7889         (init_alias_vars): Allocate fake_var_decl_obstack.
7890         (init_alias_heapvars, delete_alias_heapvars): Remove.
7891         (compute_points_to_sets): Do not call init_alias_heapvars.
7892         (ipa_pta_execute): Likewise.
7893         (delete_points_to_sets): Free fake_var_decl_obstack.
7894
7895 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7896
7897         * config/spu/divmovti4.c (union qword_UTItype): New data type.
7898         (si_from_UTItype, si_to_UTItype): New functions.
7899         (__udivmodti4): Use them to implement type-punning.
7900         * config/spu/multi3.c (union qword_TItype): New data type.
7901         (si_from_TItype, si_to_TItype): New functions.
7902         (__multi3): Use them to implement type-punning.
7903
7904 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7905
7906         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7907
7908 2011-04-27  Jan Hubicka  <jh@suse.cz>
7909
7910         * ipa-prop.c (function_insertion_hook_holder): New holder.
7911         (ipa_add_new_function): New function.
7912         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7913         Register/deregister holder.
7914
7915 2011-04-27  Richard Guenther  <rguenther@suse.de>
7916
7917         PR tree-optimization/48772
7918         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7919
7920 2011-04-27  Richard Guenther  <rguenther@suse.de>
7921
7922         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7923         TARGET_MEM_REF handling.
7924
7925 2011-04-27  Nick Clifton  <nickc@redhat.com>
7926
7927         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7928         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7929         (REG_CLASS_NAMES): Likewise.
7930         (REG_CLASS_CONTENTS): Likewise.
7931         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7932         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7933         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
7934         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
7935         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
7936         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7937         duplicate register classes.
7938         (frv_class_likely_spilled_p): Likewise.
7939         (frv_register_move_cost): Likewise.
7940
7941         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7942         end of the regno_reg_class array.
7943
7944 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
7945
7946         PR c/48742
7947         * c-typeck.c (build_binary_op): Don't wrap arguments if
7948         int_operands is true.
7949
7950 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
7951
7952         PR target/48767
7953         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7954         targetm.calls.must_pass_in_stack for void type.
7955
7956 2011-04-26  Jan Hubicka  <jh@suse.cz>
7957
7958         * cgraphbuild.c (build_cgraph_edges): Update call
7959         of cgraph_create_edge and cgraph_create_indirect_edge.
7960         * cgraph.c (cgraph_create_edge_including_clones,
7961         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7962         cgraph_update_edges_for_call_stmt_node): Do not take nest
7963         argument; do not initialize call_stmt_size/time.
7964         (dump_cgraph_node): Do not dump nest.
7965         (cgraph_clone_edge): Do not take loop_nest argument;
7966         do not propagate it; do not clone call_stmt_size/time.
7967         (cgraph_clone_node): Likewise.
7968         (cgraph_create_virtual_clone): Update.
7969         * cgraph.h (struct cgraph_edge): Remove
7970         call_stmt_size/call_stmt_time/loop_nest.
7971         (cgraph_create_edge, cgraph_create_indirect_edge,
7972         cgraph_create_edge_including_clones, cgraph_clone_node): Update
7973         prototype.
7974         * tree-emutls.c (gen_emutls_addr): Update.
7975         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7976         loop_nest; handle indirect calls, too.
7977         (clone_inlined_nodes): Do not care about updating inline summaries.
7978         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7979         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7980         stream call_stmt_size/call_stmt_time/loop_nest.
7981         * ipa-inline.c (edge_badness): Update.
7982         (ipa_inline): dump summaries after inlining.
7983         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7984         New.
7985         (inline_edge_summary): New function.
7986         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7987         (inline_edge_removal_hook): Handle edge summaries.
7988         (inline_edge_duplication_hook): New hook.
7989         (inline_summary_alloc): Alloc hooks.
7990         (initialize_growth_caches): Do not register removal hooks.
7991         (free_growth_caches); Do not free removal hook.
7992         (dump_inline_edge_summary): New function.
7993         (dump_inline_summary): Use it.
7994         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7995         (inline_update_callee_summaries): New function.
7996         (inline_merge_summary): Use it.
7997         (do_estimate_edge_time, do_estimate_edge_growth): Update.
7998         (read_inline_edge_summary): New function.
7999         (inline_read_section): Use it.
8000         (write_inline_edge_summary): New function.
8001         (inline_write_summary): Use it.
8002         (inline_free_summary): Free edge new holders.
8003         * tree-inline.c (copy_bb): Update.
8004
8005 2011-04-26  Jason Merrill  <jason@redhat.com>
8006
8007         * tree-eh.c (lower_try_finally_switch): Create the label along with
8008         the CASE_LABEL_EXPR.
8009
8010 2011-04-26  David S. Miller  <davem@davemloft.net>
8011             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8012
8013         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8014         * configure: Regenerate.
8015
8016 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
8017
8018         PR target/48258
8019         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8020         reduction.
8021         (VEC_reduc): New code iterator and splitters for vector reduction.
8022         (VEC_reduc_name): Ditto.
8023         (VEC_reduc_rtx): Ditto.
8024         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8025         (reduc_<VEC_reduc_name>_v4sf): Ditto.
8026
8027         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8028         support for extracting SF on VSX.
8029
8030         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8031         generating xscvspdp.
8032         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8033         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8034         double add, minimum, maximum vector reduction.
8035         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8036         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8037         optimize double vector reduction.
8038         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8039
8040 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
8041
8042         * config/fr30/fr30.h (inhibit_libc): Don't define.
8043         * config/m32r/m32r-protos.h: Correct comment.
8044         * config/v850/v850.h (GHS_default_section_names,
8045         GHS_current_section_names): Use tree, not union tree_node *.
8046
8047 2011-04-26  Xinliang David Li  <davidxl@google.com>
8048
8049         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8050         * c-family/c-opts.c (c_common_handle_option): Set
8051         warn_maybe_uninitialized.
8052         * opts.c (common_handle_option): Ditto.
8053         * common.opt:  New option.
8054         * tree-ssa.c (warn_uninit): Add one more parameter.
8055         (warn_uninitialized_var): Pass warning code.
8056         * tree-flow.h: Interface change.
8057
8058 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8059
8060         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
8061         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8062         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8063
8064 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8065
8066         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8067         * config/mips/mips.opt (mmips-tfile): Remove.
8068
8069         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8070         mips-tdump reference to ...
8071         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
8072         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8073         reference by Tru64 UNIX.
8074
8075 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
8076
8077         PR debug/48768
8078         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8079         is error_mark_node, set value to NULL.
8080
8081         PR tree-optimization/48734
8082         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8083         if return value from maybe_fold_*_comparsions isn't something
8084         the code is prepared to handle.
8085
8086 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
8087
8088         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8089         mode check.
8090         (ext_QIreg_nomode_operands): Remove.
8091         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8092         (*andsi_1): Ditto.
8093         (*andhi_1): Ditto.
8094
8095 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
8096
8097         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8098
8099 2011-04-26  Richard Guenther  <rguenther@suse.de>
8100
8101         * c-typeck.c (build_unary_op): Do not expand array-refs via
8102         pointer arithmetic.  Only adjust qualifiers for function types.
8103
8104 2011-04-26  Richard Guenther  <rguenther@suse.de>
8105
8106         PR middle-end/48694
8107         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8108         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
8109         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
8110         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
8111
8112 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
8113
8114         * doc/extend.texi: Document __underlying_type.
8115
8116 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
8117
8118         * config/rs6000/titan.md (automata_option "progress"): Remove.
8119
8120 2011-04-25  Jeff Law  <law@redhat.com>
8121
8122         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8123
8124 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8125
8126         * system.h (ENUM_BITFIELD): Remove.
8127
8128 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
8129             Eric Botcazou  <ebotcazou@adacore.com>
8130
8131         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8132         for STORE_FLAG_VALUE==-1 case.
8133
8134 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
8135
8136         PR target/43804
8137         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8138         LEGITIMATE_PIC_OPERAND_P.
8139
8140 2011-04-24  Jan Hubicka  <jh@suse.cz>
8141
8142         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8143         WPA hack.
8144         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8145         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8146         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
8147         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8148         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8149         Sanity check predicate length.
8150         (remap_predicate): Likewise; sanity check jump functions.
8151         (inline_read_section, inline_write_summary): Sanity check
8152         predicate length.
8153
8154 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
8155
8156         PR other/48748
8157         * doc/extend.texi (Type Traits): Document __is_standard_layout,
8158         __is_literal_type, and __is_trivial; update throughout about
8159         possibly cv-qualified void types.
8160
8161 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
8162
8163         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8164         testsuite and make it version agnostic.
8165
8166 2011-04-22  Jan Hubicka  <jh@suse.cz>
8167
8168         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8169
8170 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
8171
8172         PR c/48685
8173         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8174         to VOID_TYPE even around MODIFY_EXPR.
8175
8176 2011-04-22  Mike Stump  <mikestump@comcast.net>
8177
8178         * gensupport.c (read_md_rtx): Fix typo in comment.
8179         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8180         comment.
8181
8182 2011-04-22  Jan Hubicka  <jh@suse.cz>
8183
8184         * gengtype.c (open_base_files): Add ipa-inline.h include.
8185         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8186         ipa-prop.c; update all uses.
8187         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
8188         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8189         merge summary of inlined function into former caller.
8190         * ipa-inline.c (max_benefit): Remove.
8191         (edge_badness): Compensate for removal of benefits.
8192         (update_caller_keys): Use
8193         reset_node_growth_cache/reset_edge_growth_cache.
8194         (update_callee_keys): Likewise.
8195         (update_all_callee_keys): Likewise.
8196         (inline_small_functions): Do not collect max_benefit; do not reset
8197         estimated_growth; call free_growth_caches and initialize_growth_caches.
8198         * ipa-inline.h (struct condition, type clause_t, struct predicate,
8199         struct size_time_entry): New structures.
8200         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
8201         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8202         and estimated_growth.
8203         (edge_growth_cache_entry): New structure.
8204         (node_growth_cache, edge_growth_cache): New global vars.
8205         (estimate_growth): Turn into inline.
8206         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8207         initialize_growth_caches, free_growth_caches): Declare.
8208         (estimate_edge_growth): Rewrite.
8209         (estimate_edge_time): Implement as inline cache lookup.
8210         (reset_node_growth_cache, reset_edge_growth_cache): New inline
8211         functions.
8212         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8213         (NUM_CONDITIONS): New constant.
8214         (predicate_conditions): New enum.
8215         (IS_NOT_CONSTANT): New constant.
8216         (edge_removal_hook_holder): New var.
8217         (node_growth_cache, edge_growth_cache): New global vars.
8218         (true_predicate, single_cond_predicate, false_predicate,
8219         not_inlined_predicate, add_condition, add_clause, and_predicates,
8220         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8221         dump_clause, dump_predicate, account_size_time,
8222         evaulate_conditions_for_edge): New functions.
8223         (inline_summary_alloc): Move to heap.
8224         (inline_node_removal_hook): Clear condition and entry vectors.
8225         (inline_edge_removal_hook): New function.
8226         (initialize_growth_caches, free_growth_caches): New function.
8227         (dump_inline_summary): Update.
8228         (edge_execution_predicate): New function.
8229         (will_be_nonconstant_predicate): New function.
8230         (estimate_function_body_sizes): Compute BB and constantness predicates.
8231         (compute_inline_parameters): Do not clear estimated_growth.
8232         (estimate_edge_size_and_time): New function.
8233         (estimate_calls_size_and_time): New function.
8234         (estimate_callee_size_and_time): New function.
8235         (remap_predicate): New function.
8236         (inline_merge_summary): New function.
8237         (do_estimate_edge_time): New function based on...
8238         (estimate_edge_time): ... this one.
8239         (do_estimate_edge_growth): New function.
8240         (do_estimate_growth): New function based on....
8241         (estimate_growth): ... this one.
8242         (inline_analyze_function): Analyze after deciding on jump functions.
8243         (inline_read_section): New function.
8244         (inline_read_summary): Use it.
8245         (inline_write_summary): Write all the new data.
8246         * ipa-prop.c (ipa_get_param_decl_index): Export.
8247         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8248         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8249         Declare.
8250         (ipa_get_lattice): Move here from ipa-cp.c
8251         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8252         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8253         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8254         cgraph_edge_inlinable_p): Remove.
8255         * cgraphunit.c: Include ipainline.h
8256         (cgraph_process_new_functions): Update call of
8257         compute_inline_parameters.
8258
8259 2011-04-22  Richard Guenther  <rguenther@suse.de>
8260
8261         * tree.c (build_int_cst): Properly create canonicalized integer
8262         constants.
8263         (build_int_cst_type): Remove scary comments.
8264
8265 2011-04-22  Xinliang David Li  <davidxl@google.com>
8266
8267         * toplev.c (process_options): Enable -Werror=coverage-mismatch
8268         by default when -Wno-error is not specified.
8269         * opts-global.c (decode_options): Remove call to
8270         control_warning_options.
8271
8272 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
8273
8274         PR tree-optimization/48717
8275         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8276         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8277
8278 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
8279
8280         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
8281         definition where used.
8282
8283 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
8284
8285         PR c/48716
8286         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8287         TREE_STATIC variables declared inside of some OpenMP construct.
8288
8289 2011-04-22  Martin Jambor  <mjambor@suse.cz>
8290
8291         PR middle-end/48585
8292         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8293
8294 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
8295
8296         PR c/36750
8297         * c-typeck.c (pop_init_level): Do not warn about initializing
8298         with ` = {0}'.
8299
8300 2011-04-22  Alan Modra  <amodra@gmail.com>
8301
8302         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8303         when returning call_cookie.
8304         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8305         pointers, to functions with no more vector args than the current
8306         function, and some non-local calls for ABI_V4.
8307         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8308         sibcall_nonlocal_aix64): Combine to ..
8309         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
8310         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8311         (sibcall_value_nonlocal_aix<mode>): ..likewise.
8312         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8313         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
8314         operand.
8315         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8316         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8317         sibcall_value_symbolic_64): Delete.
8318
8319 2011-04-21  Xinliang David Li  <davidxl@google.com>
8320
8321         * cgraph.h: Remove pid.
8322         * cgraph.c: Remove pid.
8323         * value-prof.c (init_node_map): New function.
8324         (del_node_map): New function.
8325         (find_func_by_funcdef_no): New function.
8326         (gimple_ic_transform): Call new function.
8327         * cgraphunit.c (cgraph_finalize_function): Remove pid.
8328         * function.c (get_last_funcdef_no): New function.
8329         * function.h (get_last_funcdef_no): New function.
8330         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8331         to libgcov function.
8332         (tree-profiling): Call node map init and delete function.
8333
8334 2011-04-21  Ian Lance Taylor  <iant@google.com>
8335
8336         * godump.c (go_format_type): Use exported Go name for anonymous
8337         field name.
8338
8339 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8340
8341         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8342         Call builtin_function_type_list instead of builtin_function_type.
8343         (UNARY, BINARY, TRINARY, QUAD): Likewise.
8344
8345 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8346
8347         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8348         build_function_type_list instead of build_function_type.
8349         Delete variable `endlink'.
8350
8351 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8352
8353         * config/s390/s390.c (s390_init_builtins): Call
8354         build_function_type_list instead of build_function_type.
8355
8356 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8357
8358         * config/ia64/ia64.c (ia64_init_builtins): Call
8359         build_function_type_list instead of builtin_function_type.
8360
8361 2011-04-21  Easwaran Raman  <eraman@google.com>
8362
8363         * cfgexpand.c (stack_var): Remove OFFSET...
8364         (add_stack_var): ...and its reference here...
8365         (expand_stack_vars): ...and here.
8366         (stack_var_cmp): Sort by descending order of size.
8367         (partition_stack_vars): Change heuristic.
8368         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8369         (dump_stack_var_partition): Add newline after each partition.
8370
8371 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
8372             Jeff Law  <law@redhat.com>
8373
8374         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8375         * gengtype.c (matching_file_name_substitute): Likewise.
8376
8377 2011-04-21  Richard Guenther  <rguenther@suse.de>
8378
8379         PR lto/48703
8380         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8381
8382 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
8383
8384         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8385
8386 2011-04-21  Richard Guenther  <rguenther@suse.de>
8387
8388         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8389         file name.
8390
8391 2011-04-21  Richard Guenther  <rguenther@suse.de>
8392
8393         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8394         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8395         Use DECL_P, not SSA_VAR_P.
8396         (ptr_derefs_may_alias_p): Likewise.
8397         (ptr_deref_may_alias_ref_p_1): Likewise.
8398         (decl_refs_may_alias_p): Likewise.
8399         (refs_may_alias_p_1): Likewise.
8400         (ref_maybe_used_by_call_p_1): Likewise.
8401         (call_may_clobber_ref_p_1): Likewise.
8402         (indirect_ref_may_alias_decl_p): Assume indirect refrences
8403         are either MEM_REF or TARGET_MEM_REF.
8404         (indirect_refs_may_alias_p): Likewise.
8405         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8406         for MEM_EXPR of indirect calls.
8407
8408 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8409
8410         * vmsdbgout.c (write_srccorr): Compute file length from the string.
8411         (dst_file_info_struct): Remove flen field.
8412         (lookup_filename): Remove code that set flen field.
8413
8414 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8415
8416         * config/ia64/ia64.c (ia64_start_function): Add a guard.
8417
8418 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
8419
8420         PR target/48708
8421         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8422         vec_extract and vec_concat for non-SSE4_1 targets.
8423
8424 2011-04-21  Richard Guenther  <rguenther@suse.de>
8425
8426         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8427         return statements.
8428
8429 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8430
8431         * config/i386/cygming.h (union tree_node, TREE): Don't define or
8432         undefine.
8433         (FILE): Don't undefine.
8434
8435 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8436
8437         * config/alpha/alpha.c (struct machine_function): Use rtx, not
8438         struct rtx_def *.
8439         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8440         struct rtx_def *.
8441         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8442         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8443         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8444         rtx_def *.
8445         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
8446         definitions where used.
8447         * config/microblaze/microblaze.h (struct microblaze_args): Use
8448         rtx, not struct rtx_def *.
8449         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8450         rtx_def *.
8451         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8452         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8453         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8454         not struct rtx_def *.
8455         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8456         struct rtx_def *.
8457         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8458         rtx_def *.
8459         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8460
8461 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8462
8463         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8464         operand_equal_p to compare DR_BASE_ADDRESSes.
8465         (vect_check_interleaving): Likewise.
8466
8467 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8468
8469         PR target/46329
8470         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8471         for all Neon struct constants.
8472
8473 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8474
8475         * target.def (legitimate_constant_p): New hook.
8476         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8477         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8478         * doc/tm.texi: Regenerate.
8479         * hooks.h (hook_bool_mode_rtx_true): Declare.
8480         * hooks.c (hook_bool_mode_rtx_true): Define.
8481         * system.h (LEGITIMATE_CONSTANT_P): Poison.
8482         * calls.c (precompute_register_parameters): Replace uses of
8483         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8484         (emit_library_call_value_1): Likewise.
8485         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8486         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8487         * ira-costs.c (scan_one_insn): Likewise.
8488         * recog.c (general_operand, immediate_operand): Likewise.
8489         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8490         * reload1.c (init_eliminable_invariants): Likewise.
8491
8492         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8493         mode argument.
8494         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8495         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8496         argument.
8497         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8498         * config/alpha/predicates.md (input_operand): Update call to
8499         alpha_legitimate_constant_p.
8500
8501         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8502         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8503         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8504         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8505         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8506         (arm_legitimate_constant_p): New functions.
8507         (arm_cannot_force_const_mem): Make static.
8508
8509         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8510
8511         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8512         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8513         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8514         instead of bfin_legitimate_constant_p.
8515         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
8516         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8517
8518         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8519
8520         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8521
8522         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8523         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8524         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8525         (frv_legitimate_constant_p): Make static.  Add a mode argument.
8526
8527         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8528         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8529         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8530
8531         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8532         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8533         * config/i386/i386.c (legitimate_constant_p): Rename to...
8534         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
8535         argument.
8536         (ix86_cannot_force_const_mem): Update accordingly.
8537         (ix86_legitimate_address_p): Likewise.
8538         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8539         * config/i386/i386.md: Update commentary.
8540
8541         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8542         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8543         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8544         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
8545
8546         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8547
8548         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8549         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8550         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8551         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
8552
8553         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8554         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8555         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8556
8557         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8558         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8559         (m32r_legitimate_constant_p): New function.
8560
8561         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8562         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8563         LEGITIMATE_CONSTANT_P.
8564         (LEGITIMATE_CONSTANT_P): Delete.
8565         * config/m68k/m68k.c (m68k_expand_prologue): Call
8566         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8567         (m68k_legitimate_constant_p): New function.
8568         * config/m68k/m68k.md: Update comments.
8569
8570         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8571         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8572         (mcore_legitimate_constant_p): New function.
8573
8574         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8575         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8576         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8577         Add a mode argument.
8578         (mep_legitimate_address): Update accordingly.
8579         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8580
8581         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8582         Delete.
8583         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8584         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8585         static.  Check OP's mode for VOIDmode.
8586         (microblaze_legitimate_constant_p): New function.
8587         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8588
8589         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8590         * config/mips/mips.c (mips_legitimate_constant_p): New function.
8591         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8592         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8593         * config/mips/predicates.md: Update comments.
8594
8595         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8596         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8597         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8598         (mmix_legitimate_constant_p): Make static, return a bool, and take
8599         a mode argument.
8600         (mmix_print_operand_address): Update accordingly.
8601
8602         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8603         Delete.
8604         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8605         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8606         static.  Add a mode argument.
8607         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8608
8609         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8610
8611         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8612         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8613         (pa_legitimate_constant_p): New function.
8614
8615         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8616
8617         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8618         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8619         (pdp11_legitimate_constant_p): New function.
8620
8621         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8622         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8623         (rs6000_legitimate_constant_p): New function.
8624
8625         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8626         (rx_legitimate_constant_p): ...this.
8627         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8628         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8629         (rx_legitimate_constant_p): ...this.
8630         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8631         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8632
8633         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8634         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8635         * config/s390/s390.c (legitimate_constant_p): Rename to...
8636         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
8637         and add a mode argument.
8638         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8639
8640         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8641
8642         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8643         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8644         (sh_legitimate_constant_p): New function.
8645
8646         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8647         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8648         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8649         (legitimate_constant_p): Rename to...
8650         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
8651         argument.
8652         (constant_address_p): Update accordingly.
8653
8654         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8655         argument and return a bool.
8656         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8657         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8658         (spu_legitimate_constant_p): Add a mode argument and return a bool.
8659         (spu_rtx_costs): Update accordingly.
8660         * config/spu/predicates.md (vec_imm_operand): Likewise.
8661
8662         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8663
8664         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8665         * config/v850/v850.c (v850_legitimate_constant_p): New function.
8666         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8667
8668         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8669         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8670         * config/vax/vax.c (legitimate_constant_p): Likewise.
8671
8672         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8673         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8674         (xtensa_legitimate_constant_p): New function.
8675
8676 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8677
8678         * target.def (cannot_force_const_mem): Add a mode argument.
8679         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8680         * doc/tm.texi: Regenerate.
8681         * hooks.h (hook_bool_mode_rtx_false): Declare.
8682         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8683         (hook_bool_mode_const_rtx_true): Likewise.
8684         (hook_bool_mode_rtx_false): New function.
8685         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8686         to be non-VOID.  Update call to cannot_force_const_mem.
8687         (find_reloads): Update accordingly.
8688         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8689         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8690         argument.
8691         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8692         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8693         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8694         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8695         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8696         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8697         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8698         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8699         (m68k_cannot_force_const_mem): ...this new function.
8700         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8701         argument.
8702         (mips_const_insns, mips_legitimize_const_move): Update calls.
8703         (mips_secondary_reload_class): Likewise.
8704         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8705         (pa_cannot_force_const_mem): ...this new function.
8706         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8707         (rs6000_cannot_force_const_mem): ...this new function.
8708         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8709         argument.
8710         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8711         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8712         to...
8713         (xtensa_cannot_force_const_mem): ...this new function.
8714
8715 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8716
8717         * config/mips/mips.c (mips16_build_function_stub): Call
8718         build_function_type_list instead of build_function_type.
8719         (mips16_build_call_stub): Likewise.
8720
8721 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8722
8723         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8724         instead of build_function_type.
8725
8726 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8727
8728         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8729         instead of build_function_type.
8730
8731 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
8732
8733         PR target/48678
8734         * config/i386/i386.md (insv): Change operand 0 constraint to
8735         "register_operand".  Change operand 1 and 2 constraint to
8736         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
8737         * config/i386/sse.md (sse4_1_pinsrb): Export.
8738         (sse2_pinsrw): Ditto.
8739         (sse4_1_pinsrd): Ditto.
8740         (sse4_1_pinsrq): Ditto.
8741         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8742         * config/i386/i386.c (ix86_expand_pinsr): New.
8743
8744 2011-04-20  Easwaran Raman  <eraman@google.com>
8745
8746         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8747         containing union type only with -fstrict-aliasing.
8748
8749 2011-04-20  Jim Meyering  <meyering@redhat.com>
8750
8751         Remove useless if-before-free tests.
8752         * calls.c (expand_call, save_area): Likewise.
8753         * cfgcleanup.c (try_forward_edges): Likewise.
8754         * collect2.c (collect_execute): Likewise.
8755         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8756         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8757         * coverage.c (coverage_checksum_string): Likewise.
8758         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8759         * cselib.c (cselib_init): Likewise.
8760         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8761         (df_set_clean_cfg): Likewise.
8762         * function.c (free_after_compilation): Likewise.
8763         * gcc.c (do_spec_1, main): Likewise.
8764         * gcov.c (create_file_names): Likewise.
8765         * gensupport.c (identify_predicable_attribute): Likewise.
8766         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8767         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8768         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8769         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8770         * ipa-pure-const.c (local_pure_const): Likewise.
8771         * ipa-reference.c (propagate): Likewise.
8772         * ira-costs.c (free_ira_costs): Likewise.
8773         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8774         * matrix-reorg.c (mat_free): Likewise.
8775         * prefix.c (get_key_value): Likewise.
8776         * profile.c (compute_value_histograms): Likewise.
8777         * reload1.c (free_reg_equiv): Likewise.
8778         * sched-deps.c (free_deps): Likewise.
8779         * sel-sched-ir.c (fence_clear): Likewise.
8780         * sese.c (set_rename, if_region_set_false_region): Likewise.
8781         * tree-data-ref.c (free_rdg): Likewise.
8782         * tree-eh.c (lower_try_finally): Likewise.
8783         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8784         * tree-ssa-live.c (delete_var_map): Likewise.
8785         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8786         * tree-ssa-pre.c (phi_trans_add): Likewise.
8787
8788 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
8789
8790         PR tree-optimization/48611
8791         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8792         beyond ERT_MUST_NOT_THROW region.
8793
8794 2011-04-20  Catherine Moore  <clm@codesourcery.com>
8795
8796         * config/mips/mips.opt (mfix-24k): New.
8797         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8798         * config/mips/mips.md (length): Increase by 4 for stores if
8799         fixing 24K errata.
8800         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8801         all noreorder if fixing 24K errata.
8802         * doc/invoke.texi: Document mfix-24k.
8803
8804 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
8805
8806         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8807         quad-word modes, reduce to 9-bit index range when above 1016 limit.
8808
8809 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8810
8811         * config/arm/arm.c (arm_gen_constant): Move movw support ....
8812         (const_ok_for_op): ... to here.
8813
8814 2011-04-20  Kai Tietz  <ktietz@redhat.com>
8815
8816         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8817         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8818
8819 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8820
8821         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8822
8823 2011-04-20  Richard Guenther  <rguenther@suse.de>
8824
8825         PR tree-optimization/47892
8826         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8827         are if-convertible.
8828
8829 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8830
8831         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8832
8833 2011-04-20  Tristan Gingold  <gingold@adacore.com>
8834
8835         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8836
8837 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
8838
8839         PR target/18145
8840
8841         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8842         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8843         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8844         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8845         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8846
8847         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8848         New prototype.
8849
8850         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8851         (avr_asm_named_section, avr_asm_output_aligned_common,
8852         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8853         New functions to update...
8854         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8855         (avr_asm_init_sections): Overwrite section callbacks for
8856         data_section, bss_section.
8857         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8858         from here to...
8859         (avr_file_end): ...here.
8860
8861 2011-04-20  Richard Guenther  <rguenther@suse.de>
8862
8863         PR middle-end/48695
8864         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8865         objects and types here.  Adjust for their offset before comparing.
8866
8867 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8868
8869         * tree-vect-stmts.c (vectorizable_store): Only chain one related
8870         statement per copy.
8871
8872 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8873
8874         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8875         (GIMPLE_H): Include $(INTERNAL_FN_H).
8876         (OBJS-common): Add internal-fn.o.
8877         (internal-fn.o): New rule.
8878         * internal-fn.def: New file.
8879         * internal-fn.h: Likewise.
8880         * internal-fn.c: Likewise.
8881         * gimple.h: Include internal-fn.h.
8882         (GF_CALL_INTERNAL): New gf_mask.
8883         (gimple_statement_call): Put fntype into a union with a new
8884         internal_fn field.
8885         (gimple_build_call_internal): Declare.
8886         (gimple_build_call_internal_vec): Likewise.
8887         (gimple_call_same_target_p): Likewise.
8888         (gimple_call_internal_p): New function.
8889         (gimple_call_internal_fn): Likewise.
8890         (gimple_call_fntype): Return null for internal calls.
8891         (gimple_call_set_fntype): Assert that the function is not internal.
8892         (gimple_call_set_fn): Likewise.
8893         (gimple_call_set_fndecl): Likewise.
8894         (gimple_call_set_internal_fn): New function.
8895         (gimple_call_addr_fndecl): Handle null functions.
8896         (gimple_call_return_type): Likewise null types.
8897         * gimple.c (gimple_build_call_internal_1): New function.
8898         (gimple_build_call_internal): Likewise.
8899         (gimple_build_call_internal_vec): Likewise.
8900         (gimple_call_same_target_p): Likewise.
8901         (gimple_call_flags): Handle calls to internal functions.
8902         (gimple_call_fnspec): New function.
8903         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8904         (gimple_has_side_effects): Handle null functions.
8905         (gimple_rhs_has_side_effects): Likewise.
8906         (gimple_call_copy_skip_args): Handle calls to internal functions.
8907         * cfgexpand.c (expand_call_stmt): Likewise.
8908         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8909         * gimple-fold.c (gimple_fold_call): Handle null functions.
8910         (gimple_fold_stmt_to_constant_1): Don't fold
8911         calls to internal functions.
8912         * gimple-low.c (gimple_check_call_args): Handle calls to internal
8913         functions.
8914         * gimple-pretty-print.c (dump_gimple_call): Likewise.
8915         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8916         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8917         (do_warn_unused_result): Likewise.
8918         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8919         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8920         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8921         the target of a call.
8922         (initialize_hash_element): Update accordingly.
8923         (hashable_expr_equal_p): Use gimple_call_same_target_p.
8924         (iterative_hash_hashable_expr): Handle calls to internal functions.
8925         (print_expr_hash_elt): Likewise.
8926         * tree-ssa-pre.c (can_value_number_call): Likewise.
8927         (eliminate): Handle null functions.
8928         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8929         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8930         (find_func_aliases): Likewise.
8931         * value-prof.c (gimple_ic_transform): Likewise.
8932         (gimple_indirect_call_to_profile): Likewise.
8933         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8934         * lto-streamer-out.c (output_gimple_stmt): Likewise.
8935
8936 2011-04-19  Jan Hubicka  <jh@suse.cz>
8937
8938         * ipa-inline-transform.c (save_inline_function_body): Add comments.
8939         * ipa-inline.c (inline_small_functions): Compute summaries first,
8940         populate heap later.
8941
8942 2011-04-19  Jan Hubicka  <jh@suse.cz>
8943
8944         * cgraph.h (save_inline_function_body): Remove.
8945         * ipa-inline-transform.c: New file, broke out of...
8946         * ipa-inline.c: ... this one; Update toplevel comment.
8947         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8948         make global.
8949         (update_noncloned_frequencies): Move to ipa-inline-transform.c
8950         (cgraph_mark_inline_edge): Rename to inline_call; move to
8951         ipa-inline-transform.c.
8952         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8953         move to ipa-inline-transform.c
8954         (recursive_inlining, inline_small_functions, flatten_function,
8955         ipa_inline, inline_always_inline_functions,
8956         early_inline_small_functions): Update.
8957         (inline_transform): Move to ipa-inline-transform.c.
8958         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8959         Declare.
8960         * Makefile.in (ipa-inline-transform.o): New file.
8961         * cgraphunit.c (save_inline_function_body): Move to
8962         ipa-inline-transform.c
8963
8964 2011-04-19  DJ Delorie  <dj@redhat.com>
8965
8966         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8967         registers if we already know there aren't any.
8968         (m32c_emit_epilogue): Don't emit a barrier here.
8969         (m32c_emit_eh_epilogue): Likewise.
8970         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8971         operands at expand time.
8972         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8973         int" wchar type.
8974         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8975         duplicates.  Provide aliases instead.
8976         * config/m32c/prologue.md (eh_return): Emit a barrier here.
8977         (eh_epilogue): Add a "(return)" here as a hint to other parts of
8978         the compiler.
8979
8980 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
8981
8982         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8983         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8984         (general_or_i64_p, sparc_register_move_cost): New function.
8985
8986 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8987
8988         * doc/install.texi (Configuration, --enable-threads): Remove mach.
8989         Add lynx, mipssde.  Sort table.
8990
8991 2011-04-19  Xinliang David Li  <davidxl@google.com>
8992
8993         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8994         not negative.
8995
8996 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
8997
8998         PR target/48678
8999         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9000         is a SUBREG with non-MODE_INT mode inside of it.
9001
9002 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9003
9004         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9005         also according to actual contants.
9006         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9007         (gimple_fold_call): Use it.
9008         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9009
9010 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9011
9012         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9013         non-pointer assignments.
9014
9015 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9016
9017         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9018         account anc_offset and otr_type from the indirect edge info.
9019         * ipa-prop.c (get_ancestor_addr_info): New function.
9020         (compute_complex_ancestor_jump_func): Assignment analysis moved to
9021         get_ancestor_addr_info, call it.
9022         (ipa_note_param_call): Do not initialize information about polymorphic
9023         calls, return the indirect call graph edge.  Remove the last
9024         parameter, adjust all callers.
9025         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9026         parameters.  Initialize polymorphic information in the indirect edge.
9027
9028 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9029
9030         PR lto/48148
9031         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9032         the types if they have different enumeration identifiers.
9033
9034 2011-04-19  Jan Hubicka  <jh@suse.cz>
9035
9036         * cgraph.h (cgraph_optimize_for_size_p): Declare.
9037         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9038         * predict.c (cgraph_optimize_for_size_p): Break out from ...
9039         (optimize_function_for_size_p) ... here.
9040
9041 2011-04-19  Richard Guenther  <rguenther@suse.de>
9042
9043         PR lto/48207
9044         * tree.c (free_lang_data): Do not reset the decl-assembler-name
9045         langhook.
9046
9047 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9048
9049         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9050         if DECL_NO_INLINE_WARNING_P is set on the function.
9051
9052 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
9053
9054         PR fortran/47976
9055         * reload1.c (inc_for_reload): Return void. All callers changed.
9056         (emit_input_reload_insns): Don't try to delete previous output
9057         reloads to a register, or record spill_reg_store for autoincs.
9058
9059 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
9060
9061         * gengtype.h: Updated copyright year.
9062         (struct input_file_st): Add inpisplugin field.
9063         (type_fileloc): New function.
9064         * gengtype.c
9065         (write_typed_struct_alloc_def): Add gcc_assert.
9066         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9067         (write_typed_alloc_defns): Don't output for plugin files.
9068         (input_file_by_name): Clear inpisplugin field.
9069         (main): Set inpisplugin field for plugin files.
9070
9071 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
9072
9073         * gengtype-state.c (string_eq): New.
9074         (read_state): Use string_eq instead of strcmp when creating the
9075         state_ident_tab.
9076
9077 2011-04-19  Wei Guozhi  <carrot@google.com>
9078
9079         PR target/47855
9080         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9081         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9082         linkage.
9083         * config/arm/constraints.md (Uu): New constraint.
9084         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9085
9086 2011-04-19  Tristan Gingold  <gingold@adacore.com>
9087
9088         * config.gcc (-*-*-*vms): Added.
9089         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9090         definitions moved.
9091         * config/vms/vms-ld.c: New file.
9092         * config/vms/vms-ar.c: New file.
9093         * config/vms/t-vmsnative: New file.
9094
9095 2011-04-18  Xinliang David Li  <davidxl@google.com>
9096
9097         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9098
9099 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
9100
9101         PR middle-end/48661
9102         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9103         if TREE_TYPE (v) is non-NULL.
9104
9105         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9106         gimple_get_virt_mehtod_for_binfo.
9107         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9108         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9109         callers.
9110         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9111
9112 2011-04-18  Michael Matz  <matz@suse.de>
9113             Steve Ellcey  <sje@cup.hp.com>
9114
9115         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9116         use its mode as source mode if it isn't VOIDmode.
9117
9118 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
9119
9120         * doc/passes.texi: Fill crossref nodes.
9121
9122 2011-04-18  Jim Meyering  <meyering@redhat.com>
9123
9124         Fix doubled-word typos in comments and strings
9125         * config/alpha/vms-unwind.h: s/for for/for/
9126         * config/arm/unwind-arm.h: Likewise.
9127         * config/microblaze/microblaze.c: Likewise.
9128         * config/sh/constraints.md: s/in in/in/
9129         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9130
9131 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
9132
9133         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9134         (AVX_FLOAT_MODE_P): Ditto.
9135         (AVX128_VEC_FLOAT_MODE_P): Ditto.
9136         (AVX256_VEC_FLOAT_MODE_P): Ditto.
9137         (AVX_VEC_FLOAT_MODE_P): Ditto.
9138         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9139         (UNSPEC_MASKSTORE): Ditto.
9140         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9141         Merge from <sse>_movmsk<ssemodesuffix> and
9142         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
9143         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
9144         iterator.
9145         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9146         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9147         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9148
9149 2011-04-18  Jan Hubicka  <jh@suse.cz>
9150
9151         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9152
9153         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9154         (want_inline_function_called_once_p): Break out the logic from
9155         ipa_inline.
9156         (edge_badness): Ensure that profile is not misupdated.
9157         (lookup_recursive_calls): Prioritize by call frequencies.
9158         (inline_small_functions): Move program size estimates here;
9159         actually process whole queue even when unit growth has been
9160         met. (to properly compute inline_failed reasons and for the
9161         case unit size decrease.) Revisit comments on recursive inlining.
9162         (ipa_inline): Remove unit summary code; first inline hot calls
9163         of functions called once, cold calls next.
9164         (order, nnodes): Remove unused variables.
9165         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9166         (GTFILES): Remove ipa-inline.c
9167         * sel-sched.c (fill_insns): Silence uninitialized var warning.
9168
9169 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9170
9171         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9172
9173 2011-04-18  Jie Zhang  <jie@codesourcery.com>
9174             Richard Earnshaw  <rearnsha@arm.com>
9175
9176         * arm.c (neon_builtin_type_bits): Remove.
9177         (typedef enum neon_builtin_mode): New.
9178         (T_MAX): Don't define.
9179         (typedef enum neon_builtin_datum): Remove bits, codes[],
9180         num_vars and base_fcode.  Add mode, code and fcode.
9181         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9182         VAR10): Change accordingly.
9183         (neon_builtin_data[]): Change accordingly
9184         (arm_init_neon_builtins): Change accordingly.
9185         (neon_builtin_compare): Remove.
9186         (locate_neon_builtin_icode): Remove.
9187         (arm_expand_neon_builtin): Change accordingly.
9188
9189         * arm.h (enum arm_builtins): Move to ...
9190         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9191
9192         * arm.c (arm_builtin_decl): Declare.
9193         (TARGET_BUILTIN_DECL): Define.
9194         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9195         (arm_builtin_decls[]): New.
9196         (arm_init_neon_builtins): Store builtin declarations in
9197         arm_builtin_decls[].
9198         (arm_init_tls_builtins): Likewise.
9199         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
9200         (arm_builtin_decl): New.
9201
9202 2011-04-18  Richard Guenther  <rguenther@suse.de>
9203
9204         * tree.c (upper_bound_in_type): Build properly canonicalized
9205         INTEGER_CSTs.
9206         (lower_bound_in_type): Likewise.
9207
9208 2011-04-18  Richard Guenther  <rguenther@suse.de>
9209
9210         * gimple.h (gimple_call_addr_fndecl): New function.
9211         (gimple_call_fndecl): Use it.
9212         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9213         for direct calls.
9214         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9215         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9216
9217 2011-04-18  Richard Guenther  <rguenther@suse.de>
9218
9219         PR middle-end/48650
9220         * tree.c (build_string): STRING_CST is now derived from tree_typed.
9221
9222 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9223
9224         PR lto/48492
9225         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9226         DECL_IN_CONSTANT_POOL without RTL.
9227
9228 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
9229             Ira Rosen  <ira.rosen@linaro.org>
9230
9231         PR target/48252
9232         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9233         to match neon_vzip/vuzp/vtrn_internal.
9234         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9235         outputs explicitly dependent on both inputs.
9236         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9237
9238 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
9239
9240         PR tree-optimization/48616
9241         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9242         whether the shift is by scalar or vector based on whether all SLP
9243         scalar stmts have the same rhs.
9244
9245 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
9246
9247         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9248         memory operands.
9249
9250 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
9251
9252         PR target/43700
9253         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9254         registers.
9255
9256 2011-04-17  Jan Hubicka  <jh@suse.cz>
9257
9258         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9259         * cgrpahunit.c (cgraph_finalize_function): Do not set
9260         finalized_by_frontend.
9261         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9262         finalized_by_frontend.
9263
9264 2011-04-17  Jan Hubicka  <jh@suse.cz>
9265
9266         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9267         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9268         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9269         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9270         method.
9271         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9272         gimple-fold.c
9273         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9274
9275 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
9276
9277         PR lto/48538
9278         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9279         is non-null before accessing it.
9280         (input_cgraph): Remove trailing spaces.
9281
9282 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9283
9284         * params.def (sms-min-sc): New param flag.
9285         * modulo-sched.c (sms_schedule): Use it.
9286         * doc/invoke.texi (sms-min-sc): Document it.
9287
9288 2011-04-17  Jan Hubicka  <jh@suse.cz>
9289
9290         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9291         present, also set gimple_call_set_cannot_inline.
9292         * ipa-inline.c: Update toplevel comment.
9293         (MAX_TIME): Remove.
9294         (cgraph_clone_inlined_nodes): Fix linebreaks.
9295         (cgraph_check_inline_limits): Restructure to ...
9296         (caller_growth_limits): ... this one; be more tolerant
9297         on growth in nested inline chains; add explanatory comment;
9298         fix stack accounting thinko introduced by previous patch.
9299         (cgraph_default_inline_p): Remove.
9300         (report_inline_failed_reason): New function.
9301         (can_inline_edge_p): New function.
9302         (can_early_inline_edge_p): New function.
9303         (leaf_node_p): Move upwards in file.
9304         (want_early_inline_function_p): New function.
9305         (want_inline_small_function_p): New function.
9306         (want_inline_self_recursive_call_p): New function.
9307         (cgraph_edge_badness): Rename to ...
9308         (edge_badness) ... this one; fix linebreaks.
9309         (update_edge_key): Update call of edge_baddness; add
9310         detailed dump about queue updates.
9311         (update_caller_keys): Use can_inline_edge_p and
9312         want_inline_small_function_p.
9313         (cgraph_decide_recursive_inlining): Rename to...
9314         (recursive_inlining): Use can_inline_edge_p and
9315         want_inline_self_recursive_call_p; simplify and remove no longer
9316         valid FIXME.
9317         (cgraph_set_inline_failed): Remove.
9318         (add_new_edges_to_heap): Use can_inline_edge_p and
9319         want_inline_small_function_p.
9320         (cgraph_decide_inlining_of_small_functions): Rename to ...
9321         (inline_small_functions): ... this one; cleanup; use
9322         can/want predicates; cleanup debug ouput; work edges till fibheap
9323         is exhausted and do not stop once unit growth is reached; remove
9324         later loop processing remaining edges.
9325         (cgraph_flatten): Rename to ...
9326         (flatten_function): ... this one; use can_inline_edge_p
9327         and can_early_inline_edge_p predicates.
9328         (cgraph_decide_inlining): Rename to ...
9329         (ipa_inline): ... this one; remove unreachable nodes before
9330         inlining functions called once; simplify the pass.
9331         (cgraph_perform_always_inlining): Rename to ...
9332         (inline_always_inline_functions): ... this one; use
9333         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9334         (cgraph_decide_inlining_incrementally): Rename to ...
9335         (early_inline_small_functions): ... this one; simplify
9336         using new predicates; cleanup; make dumps prettier.
9337         (cgraph_early_inlining): Rename to ...
9338         (early_inliner): newer inline regular functions into always-inlines;
9339         fix updating of call stmt summaries.
9340         (pass_early_inline): Update for new names.
9341         (inline_transform): Fix formating.
9342         (gate_cgraph_decide_inlining): Rename to ...
9343         (pass_ipa_inline): ... this one.
9344         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9345         * ipa-inline-analysis.c (dump_inline_summary): Update.
9346         (compute_inline_parameters): Do not compute disregard_inline_limits;
9347         look for mismatching arguments.
9348         (estimate_growth): Fix handlig of non-trivial self recursion.
9349         (inline_read_summary): Do not read info->disregard_inline_limits.
9350         (inline_write_summary): Do not write info->disregard_inline_limits.
9351         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9352         and move all checks into can_inline_edge_p predicate; re-enable code
9353         comparing optimization levels.
9354         (expand_call_inline): Do not test inline_forbidden_into_p.
9355         * Makefile.in (ipa-inline.o): Update arguments.
9356
9357 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9358
9359         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9360
9361 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9362
9363         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9364
9365 2011-04-17  Michael Matz  <matz@suse.de>
9366
9367         PR tree-optimization/48622
9368         PR lto/48645
9369         * ipa-inline-analysis.c (inline_read_summary): Read size/time
9370         in same order as they're written.
9371
9372 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9373
9374         * config/pa/predicates.md: Reorganize and simplify predicates.
9375         Eliminate duplicate code checks.
9376         (arith_operand): Rename to arith14_operand
9377         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9378         * config/pa/pa.md: Use renamed operands.
9379         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9380         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9381         arith11_operand, adddi3_operand, indexed_memory_operand,
9382         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9383         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9384         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9385         move_dest_operand, move_src_operand, prefetch_cc_operand,
9386         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9387         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9388         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9389         div_operand, int5_operand, movb_comparison_operator,
9390         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9391         arith_double_operand, ireg_operand, lhs_lshift_operand,
9392         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9393         integer_store_memory_operand): Likewise.
9394         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9395         (integer_store_memory_operand, read_only_operand,
9396         function_label_operand, borx_reg_operand,
9397         non_hard_reg_operand): Likewise.
9398         (eq_neq_comparison_operator): Delete unused operator.
9399         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9400         function_label_operand.
9401         (emit_move_sequence): Likewise.
9402
9403 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9404
9405         * config/i386/sse.md (sseunpackmode): New mode attribute.
9406         (ssepackmode): Ditto.
9407         (vec_pack_trunc_<mode>): Macroize expander from
9408         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9409         (vec_unpacks_lo_<mode>): Macroize expander from
9410         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9411         (vec_unpacks_hi_<mode>): Macroize expander from
9412         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9413         (vec_unpacku_lo_<mode>): Macroize expander from
9414         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9415         (vec_unpacku_hi_<mode>): Macroize expander from
9416         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9417         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9418         ix86_expand_sse4_unpack.
9419         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9420
9421 2011-04-16  Jan Hubicka  <jh@suse.cz>
9422
9423         * cgraphbuild.c: Include ipa-inline.h.
9424         (reset_inline_failed): Use initialize_inline_failed.
9425         * cgraph.c: Include ipa-inline.h.
9426         (cgraph_create_node_1): Do not initialize estimated_growth.
9427         (initialize_inline_failed): More to ipa-inline-analysis.c
9428         (dump_cgraph_node): Do not dump inline flags.
9429         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9430         and disregard_inline_limits flags.
9431         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9432         time, size, estimated_growth.
9433         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9434         Update.
9435         * cgraphunit.c (cgraph_decide_is_function_needed): Use
9436         DECL_DISREGARD_INLINE_LIMITS.
9437         (cgraph_analyze_function): Do not initialize
9438         node->local.disregard_inline_limits.
9439         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9440         inlinable, versionable and disregard_inline_limits.
9441         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9442         cgraph_check_inline_limits, cgraph_default_inline_p,
9443         cgraph_edge_badness, update_caller_keys, update_callee_keys,
9444         add_new_edges_to_heap): Update.
9445         (cgraph_decide_inlining_of_small_function): Update; set
9446         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9447         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9448         cgraph_decide_inlining_incrementally): Update.
9449         * ipa-inline.h (inline_summary): Add inlinable, versionable,
9450         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9451         time, size and estimated_growth parameters.
9452         (estimate_edge_growth): Update.
9453         (initialize_inline_failed): Declare.
9454         * ipa-split.c: Include ipa-inline.h
9455         (execute_split_functions): Update.
9456         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9457         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9458         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9459         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9460         estimated_growth to INT_MIN.
9461         (inline_node_duplication_hook): Likewise.
9462         (dump_inline_summary): Dump new fields.
9463         (compute_inline_parameters): Update.
9464         (estimate_edge_time, estimate_time_after_inlining,
9465         estimate_size_after_inlining, estimate_growth, inline_read_summary,
9466         inline_write_summary):
9467         (initialize_inline_failed): Move here from cgraph.c.
9468         * tree-sra.c: Include ipa-inline.h.
9469         (ipa_sra_preliminary_function_checks): Update.
9470         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9471         ipa-inline.h.
9472
9473 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9474
9475         * config/i386/sse.md (V16): New mode iterator.
9476         (VI1, VI8): Ditto.
9477         (AVXMODEQI, AVXMODEDI): Remove.
9478         (sse2, sse3): New mode attribute.
9479         (mov<mode>): Use V16 mode iterator.
9480         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9481         (push<mode>1): Use V16 mode iterator.
9482         (movmisalign<mode>): Ditto.
9483         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9484         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9485         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9486         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9487         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9488         avx_movdqu<avxmodesuffix>.
9489         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9490         *avx_movdqu<avxmodesuffix>.
9491         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9492         avx_lddqu<avxmodesuffix>.
9493         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9494         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9495         avx_movnt<AVXMODEDI:mode>.
9496         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9497         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9498
9499 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
9500
9501         PR target/48629
9502         * haifa-sched.c (prune_ready_list, schedule_block): Use
9503         sched_pressure_p rather than flag_sched_pressure.
9504
9505 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
9506
9507         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9508         cgraph_get_node instead of cgraph_get_create_node.
9509
9510 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
9511
9512         * cfgexpand.c (expand_debug_expr): Use
9513         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9514
9515 2011-04-15  Michael Matz  <matz@suse.de>
9516
9517         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9518         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9519         * function.c (gimplify_parameters): Ditto.
9520         * gimplify.c (gimplify_vla_decl): Ditto.
9521
9522         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9523         (gimple_call_set_alloca_for_var): New inline function.
9524         (gimple_call_alloca_for_var_p): Ditto.
9525         * gimple.c (gimple_build_call_from_tree): Remember
9526         CALL_ALLOCA_FOR_VAR_P state.
9527         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9528
9529         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9530         calls if they were for VLA objects.
9531
9532 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9533
9534         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9535         of ADR_EXPRs.
9536
9537 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9538
9539         PR middle-end/48601
9540         * tree-emutls.c (lower_emutls_function_body): Call
9541         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
9542         result is non-NULL.
9543
9544 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
9545
9546         * c-decl.c (detect_field_duplicates): Call
9547         objc_detect_field_duplicates instead of objc_get_interface_ivars.
9548
9549 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
9550
9551         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9552         * gimple.c (gimple_asm_clobbers_memory_p): Define.
9553         * ipa-pure-const.c (check_stmt): Call it.
9554         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9555
9556 2011-04-15  Richard Guenther  <rguenther@suse.de>
9557
9558         PR tree-optimization/48290
9559         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9560         Properly decide inhibiting propagation based on the valueized
9561         operand.  Do loop-closed SSA form preserving here ...
9562         (init_copy_prop): ... not here.
9563
9564 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
9565
9566         PR target/48612
9567         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9568         (*ieee_smax<mode>3): Likewise.
9569
9570 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9571
9572         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9573         Replace match_operand with match_dup for the third operand in
9574         these expanders.
9575
9576 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9577
9578         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9579         to track processing of conditionals.  Update all callers.
9580         (try_combine, simplify_if_then_else): Update.
9581
9582 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9583
9584         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9585         -fsched-pressure.
9586
9587 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
9588
9589         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9590         instead of match_operand for operand 3.
9591
9592 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
9593
9594         * recog.h (insn_operand_data): Add an "allows_mem" field.
9595         * genoutput.c (output_operand_data): Initialize it.
9596         * optabs.c (maybe_legitimize_operand_same_code): New function.
9597         (maybe_legitimize_operand): Use it when matching the original
9598         op->value.
9599
9600 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9601
9602         * gimplify.c: Fix issues in comments throughout.
9603         (voidify_wrapper_expr): Fix long line.
9604         (build_stack_save_restore): Likewise.
9605         (gimplify_loop_expr): Likewise.
9606         (gimplify_compound_lval): Likewise.
9607         (gimplify_init_ctor_eval): Likewise.
9608         (gimplify_modify_expr_rhs): Likewise.
9609         (omp_notice_threadprivate_variable): Likewise.
9610
9611 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9612
9613         * cfgexpand.c (expand_call_stmt): Convert the function type to the
9614         original one if this is not a builtin function.
9615
9616 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
9617
9618         PR target/48605
9619         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9620         offset it as needed based on top 2 bits in operands[3], change
9621         MEM mode to SFmode and mask those 2 bits away from operands[3].
9622
9623 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9624
9625         * c-parser.c (c_parser_objc_protocol_definition): Updated for
9626         change from objc_declare_protocols() to objc_declare_protocol().
9627
9628 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
9629
9630         * config/i386/sse.md (sse4_1): New mode attribute.
9631         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9632         avx_blend<ssemodesuffix><avxmodesuffix> and
9633         sse4_1_blend<ssemodesuffix> using VF mode iterator.
9634         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9635         avx_blendv<ssemodesuffix><avxmodesuffix> and
9636         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9637         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9638         avx_dp<ssemodesuffix><avxmodesuffix> and
9639         sse4_1_dp<ssemodesuffix> using VF mode iterator.
9640         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9641         (sse4_1_packusdw): Merge with *avx_packusdw.
9642         (sse4_1_pblendvb): Merge with *avx_pblendvb.
9643         (sse4_1_pblendw): Merge with *avx_pblendw.
9644         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9645         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9646         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9647         VF mode iterator.
9648         (sse4_1_round<ssescalarmodesuffix>): Merge with
9649         *avx_round<ssescalarmodesuffix>.
9650         (aesenc): Merge with *avx_aesenc.
9651         (aesenclast): Merge with *avx_aesenclast.
9652         (aesdec): Merge with *avx_aesdec.
9653         (aesdeclast): Merge with *avx_aesdeclast.
9654         (pclmulqdq): Merge with *pclmulqdq.
9655         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9656         New predicate.
9657         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9658
9659 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
9660
9661         PR middle-end/48608
9662         * cfgexpand.c (get_decl_align_unit): Renamed to ...
9663         (align_local_variable): This.  Update DECL_ALIGN.
9664         (add_stack_var): Updated.
9665         (expand_one_stack_var): Likewise.
9666
9667 2011-04-14  Richard Guenther  <rguenther@suse.de>
9668
9669         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9670         Remove.
9671         (dse_initialize_block_local_data, dse_leave_block,
9672         record_voperand_set, get_stmt_uid): Likewise.
9673         (dse_possible_dead_store_p): Allow any kind of killing stmt.
9674         (dse_optimize_stmt): Remove voperand set handling code.
9675         Simplify and improve to handle any kind of killing stmt.
9676         (dse_record_phi): Remove.
9677         (dse_enter_block): Simplify.
9678         (tree_ssa_dse): Likewise.
9679         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9680
9681 2011-04-14  Jan Hubicka  <jh@suse.cz>
9682
9683         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9684         * cgraph.h (struct inline_summary): Move to ipa-inline.h
9685         (cgraph_local_info): Remove inline_summary.
9686         * ipa-cp.c: Include ipa-inline.h.
9687         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9688         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9689         accesor.
9690         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9691         (input_overwrite_node): Do not set inline summary.
9692         (input_node): Do not stream inline summary.
9693         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9694         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9695         growth; we do not have inline parameters computed for that anyway.
9696         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9697         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9698         (inline_summary_t): New type and VECtor.
9699         (debug_inline_summary, dump_inline_summaries): Declare.
9700         (inline_summary): Use VOCtor.
9701         (estimate_edge_growth): Kill hack computing call stmt size directly.
9702         * lto-section-in.c (lto_section_name): Add inline section.
9703         * ipa-inline-analysis.c: Include lto-streamer.h
9704         (node_removal_hook_holder, node_duplication_hook_holder): New holders
9705         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9706         (inline_summary_vec): Define.
9707         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9708         dump_inline_summaries): New functions.
9709         (estimate_function_body_sizes): Properly compute size/time of outgoing
9710         calls.
9711         (compute_inline_parameters): Alloc inline_summary; do not compute
9712         size/time of incomming calls.
9713         (estimate_edge_time): Avoid missing time summary hack.
9714         (inline_read_summary): Read inline summary info.
9715         (inline_write_summary): Write inline summary info.
9716         (inline_free_summary): Free all hooks and inline summary vector.
9717         * lto-streamer.h: Add LTO_section_inline_summary section.
9718         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9719         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9720
9721 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9722
9723         * tree-vectorizer.h (vect_strided_store_supported): Add a
9724         HOST_WIDE_INT argument.
9725         (vect_strided_load_supported): Likewise.
9726         (vect_permute_store_chain): Return void.
9727         (vect_transform_strided_load): Likewise.
9728         (vect_permute_load_chain): Delete.
9729         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9730         count argument.  Check that the count is a power of two.
9731         (vect_strided_load_supported): Likewise.
9732         (vect_permute_store_chain): Return void.  Update after above changes.
9733         Assert that the access is supported.
9734         (vect_permute_load_chain): Likewise.
9735         (vect_transform_strided_load): Return void.
9736         * tree-vect-stmts.c (vectorizable_store): Update calls after
9737         above interface changes.
9738         (vectorizable_load): Likewise.
9739         (vect_analyze_stmt): Don't check for strided powers of two here.
9740
9741 2011-04-14  Richard Guenther  <rguenther@suse.de>
9742
9743         PR tree-optimization/48590
9744         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9745         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9746         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9747         BUILT_IN_STACK_SAVE.
9748         * tree-ssa-dce.c (propagate_necessity): Handle
9749         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9750
9751 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9752
9753         * c-parser.c (c_parser_objc_class_declaration): Updated call to
9754         objc_declare_class.
9755
9756 2011-04-14  Richard Guenther  <rguenther@suse.de>
9757
9758         * tree.h (get_object_alignment_1): Declare.
9759         * builtins.c (get_object_alignment_1): Split out worker from ...
9760         (get_object_alignment): ... here.
9761         * fold-const.c (get_pointer_modulus_and_residue): Use
9762         get_object_alignment_1.
9763
9764 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9765
9766         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9767         type parameter.
9768         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9769         parameter.  Generalise code to handle arrays as well as vectors.
9770         (vect_setup_realignment): Update accordingly.
9771         * tree-vect-stmts.c (vectorizable_store): Likewise.
9772         (vectorizable_load): Likewise.
9773
9774 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9775
9776         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9777         within the per-copy loop.
9778
9779 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9780
9781         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9782         in the dump file.
9783
9784 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9785
9786         * doc/options.texi (Negative): Explicitly mention that the
9787         Negative chain must be circular.
9788
9789 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
9790
9791         * function.h (block_chainon): Declare.
9792         * function.c (block_chainon): Define.
9793
9794 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
9795             Eric Weddington  <eric.weddington@atmel.com>
9796             Georg-Johann Lay  <avr@gjlay.de>
9797
9798         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9799         New Includes
9800         (avr_init_builtins, avr_expand_builtin,
9801         avr_expand_delay_cycles, avr_expand_unop_builtin,
9802         avr_expand_binop_builtin ): New functions.
9803         (avr_builtin_id): New enum
9804         (struct avr_builtin_description): New struct
9805         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9806         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9807
9808         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9809         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9810         UNSPECV_DELAY_CYCLES): new enumeration values
9811         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9812         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9813         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9814         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9815         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9816         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9817         "fmulsu"): New insns
9818
9819         * config/avr/avr-c.c: fix line endings
9820         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9821         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9822         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9823         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9824         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9825
9826         * doc/extend.texi (AVR Built-in Functions): New node
9827         (Target Builtins): Add documentation of AVR
9828         built-in functions.
9829
9830 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
9831
9832         PR target/44643
9833         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9834         alone. Error if non-const data has attribute progmem.
9835
9836 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9837
9838         * tree.h (struct tree_constructor): Include tree_typed instead of
9839         tree_common.
9840         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9841         TS_TYPED instead of TS_COMMON.
9842
9843 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9844
9845         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9846         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9847         (sse2_psadbw): Merge with *avx_psadbw.
9848         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9849         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9850         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9851         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9852         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9853         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9854         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9855         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9856         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9857         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9858         (ssse3_palignrti): Merge with *avx_palignrti.
9859
9860 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9861
9862         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9863         * tree-ssanames.c (fini_ssanames): VEC_free it.
9864         (make_ssa_name_fn): Update for VECness of free_ssanames.
9865         (release_ssa_name, release_dead_ssa_names): Likewise.
9866         * tree.h (struct tree_ssa_name): Include tree_typed instead of
9867         tree_common.
9868         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9869         TS_TYPED instead of TS_COMMON.
9870
9871 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9872
9873         * postreload-gcse.c (gcse_after_reload_main): Add calls to
9874         statistics_counter_event.
9875         * tree-ssa-copyrename.c (stats): Define.
9876         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
9877         statistics_counter_event.
9878         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9879         (bswap_stats, widen_mul_stats): Define.
9880         (insert_reciprocals): Increment rdivs_inserted.
9881         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
9882         rfuncs_inserted.  Add calls to statistics_counter_event.
9883         (execute_cse_sincos_1): Increment inserted.
9884         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
9885         statistics_counter_event.
9886         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
9887         of bswap_stats.  Add calls to statistics_counter_event.
9888         (convert_mult_to_widen): Increment widen_mults_inserted.
9889         (convert_plusminus_to_widen): Increment maccs_inserted.
9890         (convert_mult_to_fma): Increment fmas_inserted.
9891         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
9892         calls to statistics_counter_event.
9893
9894 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
9895
9896         PR rtl-optimization/48455
9897         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9898         `temp_costs->mem_cost'.
9899
9900 2011-04-13  Jan Hubicka  <jh@suse.cz>
9901
9902         * ipa-inline.h: New file.
9903         * ipa-inline-analysis.c: New file. Broken out of ...
9904         * ipa-inline.c: ... this file; update toplevel comment;
9905         include ipa-inline.h
9906         (inline_summary): Move to ipa-inline.h
9907         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9908         ipa-inline-analysis.c.
9909         (cgraph_estimate_time_after_inlining): Rename to
9910         estiamte_time_after_inlining; move to ipa-inline-analysis.c
9911         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9912         to estimate_edge_growth.
9913         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9914         rename to estimate_size_after_inlining.
9915         (cgraph_mark_inline_edge): Update for new naming convention.
9916         (cgraph_check_inline_limits): Likewise.
9917         (cgraph_edge_badness): Likewise.
9918         (cgraph_decide_recursive_inlining): Likewise.
9919         (cgraph_decide_inlining_of_small_functions): Likewise.
9920         (cgraph_decide_inlining_incrementally): Likewise.
9921         (cgraph_estimate_growth): Rename to estimate_growth; move to
9922         ipa-inline-analysis.c.
9923         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9924         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9925         (compute_inline_parameters): Likewise.
9926         (compute_inline_parameters_for_current): Likewise.
9927         (pass_inline_parameters): Likewise.
9928         (inline_indirect_intraprocedural_analysis): Likewise.
9929         (analyze_function): Rename to inline_analyze_function; likewise.
9930         (add_new_function): Move to ipa-inline-analysis.c.
9931         (inline_generate_summary): Likewise.
9932         (inline_read_summary): Likewise.
9933         (inline_write_summary): Likewise.
9934         * Makefile.in (ipa-inline-analysis.c): New file.
9935
9936 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9937
9938         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9939         * configure: Regenerate.
9940
9941 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9942
9943         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9944         instead of tree_common.
9945         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9946         Likewise.
9947         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9948         TS_TYPED rather than TS_COMMON.
9949         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9950
9951 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
9952
9953         PR target/45263
9954         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9955         r20 around calls of __tablejump_elpm__
9956
9957 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
9958
9959         PR middle-end/48591
9960         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9961         NULL.
9962         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9963
9964 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
9965
9966         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9967         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9968         (cfi_vec): New typedef.
9969         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9970         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9971         (cie_cfi_vec): New static variable.
9972         (cie_cfi_head): Delete.
9973         (add_cfi): Accept a cfi_vec * as first argument. All callers and
9974         declaration changed. Use vector rather than list operations.
9975         (new_cfi): Don't initialize the dw_cfi_next field.
9976         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9977         rather than list operations.
9978         (lookup_cfa): Use vector rather than list operations.
9979         (output_cfis): New argument upto. Accept a cfi_vec rather than
9980         a dw_cfi_ref list head as argument. All callers changed.
9981         Iterate over the vector using upto as a maximum index.
9982         (output_all_cfis): New static function.
9983         (output_fde): Use vector rather than list operations. Use the
9984         new upto argument for output_cfis rather than manipulating a
9985         list.
9986         (dwarf2out_begin_prologue): Change initializations to match
9987         new struct members.
9988         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9989         from the vector length rather than searching for the end of a list.
9990         Use output_all_cfis.
9991         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9992
9993 2011-04-13  Nick Clifton  <nickc@redhat.com>
9994
9995         * config/rx/rx.md (movmemsi): Do not use this pattern when
9996         volatile pointers are involved.
9997
9998 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9999
10000         * config/i386/sse.md (pinsrbits): Remove.
10001         (sse2_packsswb): Merge with *avx_packsswb.
10002         (sse2_packssdw): Merge with *avx_packssdw.
10003         (sse2_packuswb): Merge with *avx_packuswb.
10004         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10005         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10006         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10007         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10008         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10009         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10010         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10011         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10012         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10013         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10014         (sse2_loadld): Merge with *avx_loadld.
10015         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10016         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10017         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10018         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10019         (vec_concatv2di): Merge with *vec_concatv2di_avx.
10020
10021 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
10022
10023         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10024         calling TREE_CHAIN.
10025         * print-tree.c (print_node): Likewise.
10026         * tree-inline.c (copy_tree_r): Likewise.
10027         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10028         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10029         instead of TS_COMMON.
10030         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10031         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10032         (copy_node_stat): Zero TREE_CHAIN only if necessary.
10033         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10034         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10035         ...and these...
10036         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10037         * tree.h: ...here.
10038         (TREE_CHAIN): Check for a TS_COMMON structure.
10039         (TREE_TYPE): Check for a TS_TYPED structure.
10040
10041 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
10042
10043         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10044         cgraph_get_create_node instead of cgraph_node.
10045
10046 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10047
10048         * c-parser.c (c_parser_initelt): Updated call to
10049         objc_build_message_expr.
10050         (c_parser_postfix_expression): Likewise.
10051
10052 2011-04-12  Kai Tietz  <ktietz@redhat.com>
10053
10054         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10055         MASK_MS_BITFIELD_LAYOUT bit.
10056
10057 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10058
10059         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10060         assert it is always true.
10061         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10062         moves.
10063
10064 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10065
10066         * c-parser.c (c_lex_one_token): Rewritten conditional used when
10067         compiling Objective-C to be more efficient.
10068
10069 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
10070
10071         * opts-common.c (decode_cmdline_options_to_array): Remove variable
10072         argv_copied.
10073
10074 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10075
10076         * recog.h, genoutput.c, optabs.c: Revert last patch.
10077
10078 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10079
10080         PR target/48090
10081         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10082
10083 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10084
10085         * recog.h (insn_operand_data): Add an "allows_mem" field.
10086         * genoutput.c (output_operand_data): Initialize it.
10087         * optabs.c (maybe_legitimize_operand_same_code): New function.
10088         (maybe_legitimize_operand): Use it when matching the original
10089         op->value.
10090
10091 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10092
10093         * genpreds.c (process_define_predicate): Move most processing
10094         to gensupport.c.  Continue to validate the expression.
10095         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10096         (process_define_predicate): Move processing to gensupport.c.
10097         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10098         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10099         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
10100         argument.
10101         (valid_predicate_name_p): New function, split out from old
10102         genpreds.c:process_define_predicate.
10103         (process_define_predicate): New function, combining code from
10104         old genpreds.c and genrecog.c functions.
10105         (process_rtx): Call it for DEFINE_PREDICATE and
10106         DEFINE_SPECIAL_PREDICATE.
10107
10108 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10109
10110         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10111         size of a '%A' memory reference.
10112         (T_DREG, T_QREG): New neon_builtin_type_bits.
10113         (arm_init_neon_builtins): Assert that the load and store operands
10114         are neon_struct_operands.
10115         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10116         (NEON_ARG_MEMORY): New builtin_arg.
10117         (neon_dereference_pointer): New function.
10118         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10119         Handle NEON_ARG_MEMORY.
10120         (arm_expand_neon_builtin): Update after above interface changes.
10121         Use NEON_ARG_MEMORY for loads and stores.
10122         * config/arm/predicates.md (neon_struct_operand): New predicate.
10123         * config/arm/iterators.md (V_two_elem): Tweak formatting.
10124         (V_three_elem): Use BLKmode for accesses that have no associated mode.
10125         (V_four_elem): Tweak formatting.
10126         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10127         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10128         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10129         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10130         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10131         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10132         (neon_vst4<mode>): Replace pointer operand with a memory operand.
10133         Use %A in the output template.
10134         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10135         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10136         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10137         the width of the memory access.  Remove post-increment.
10138         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10139
10140 2011-04-12  Nick Clifton  <nickc@redhat.com>
10141
10142         * config/v850/v850.c (expand_prologue): Do not use the CALLT
10143         instruction for interrupt handlers if the target is the basic V850
10144         architecture.
10145         (expand_epilogue): Likewise.
10146
10147 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10148
10149         PR rtl-optimization/48549
10150         * combine.c (propagate_for_debug): Also stop after BB_END of
10151         this_basic_block.  Process LAST and just stop processing after it.
10152         (combine_instructions): If last_combined_insn has been deleted,
10153         set last_combined_insn to its PREV_INSN.
10154
10155 2011-04-12  Richard Guenther  <rguenther@suse.de>
10156
10157         PR tree-optimization/46076
10158         * gimple.h (struct gimple_statement_call): Add fntype field.
10159         (gimple_call_fntype): Adjust.
10160         (gimple_call_set_fntype): New function.
10161         * gimple.c (gimple_build_call_1): Set the call function type.
10162         * gimplify.c (gimplify_call_expr): Preserve the function
10163         type the frontend used for the call.
10164         (gimplify_modify_expr): Likewise.
10165         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10166         function type.
10167         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10168         function type.
10169         * tree-ssa.c (useless_type_conversion_p): Function pointer
10170         conversions are useless.
10171
10172 2011-04-12  Martin Jambor  <mjambor@suse.cz>
10173
10174         * cgraph.h (cgraph_node): Remove function declaration.
10175         (cgraph_create_node): Declare.
10176         (cgraph_get_create_node): Likewise.
10177         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10178         Updated all callers.
10179         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10180         the decl does not already exist.  Call cgraph_get_create_node instead
10181         of cgraph_node.
10182         (cgraph_get_create_node): New function.
10183         (cgraph_same_body_alias): Update comment.
10184         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10185         assert it does not return NULL.
10186         (cgraph_update_edges_for_call_stmt): Likewise.
10187         (cgraph_clone_edge): Likewise.
10188         (cgraph_create_virtual_clone): Likewise.
10189         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10190         instead of cgraph_node.
10191         (cgraph_add_new_function): Call cgraph_create_node or
10192         cgraph_get_create_node instead of cgraph_node.
10193         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10194         instead of cgraph_node.
10195         (record_eh_tables): Likewise.
10196         (mark_address): Likewise.
10197         (mark_load): Likewise.
10198         (build_cgraph_edges): Call cgraph_get_create_node instead
10199         of cgraph_node.
10200         (rebuild_cgraph_edges): Likewise.
10201         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10202         instead of cgraph_node.
10203         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10204         cgraph_node.
10205         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10206         cgraph_create_node instead of cgraph_node.
10207         * c-decl.c (finish_function): Call cgraph_get_create_node instead
10208         of cgraph_node.
10209         * lto-cgraph.c (input_node): Likewise.
10210         * lto-streamer-in.c (input_function): Likewise.
10211         * varasm.c (mark_decl_referenced): Likewise.
10212         (assemble_alias): Likewise.
10213
10214 2011-04-12  Martin Jambor  <mjambor@suse.cz>
10215
10216         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10217         instead of cgraph_node and assert it does not return NULL.
10218         * lto-streamer-in.c (lto_read_body): Likewise.
10219         * omp-low.c (new_omp_context): Likewise.
10220         (create_task_copyfn): Likewise.
10221         * tree-emutls.c (lower_emutls_function_body): Likewise.
10222         * matrix-reorg.c (transform_allocation_sites): Likewise.
10223
10224 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10225
10226         PR c/48552
10227         * c-typeck.c (build_asm_expr): Error out on attempts to use
10228         void type outputs or inputs for constraints that allow reg or
10229         don't allow memory.
10230
10231 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
10232             Richard Earnshaw  <rearnsha@arm.com>
10233
10234         PR target/48250
10235         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10236         to use sign-magnitude offsets. Reject unsupported unaligned
10237         cases. Add detailed description in comments.
10238         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10239         condition from TARGET_32BIT to TARGET_ARM.
10240
10241 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
10242
10243         * tree.h (struct typed_tree): New.
10244         (struct tree_common): Include it instead of tree_base.
10245         (TREE_TYPE): Update for new location of type field.
10246         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10247         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10248         (union tree_node): Add typed field.
10249         * treestruct.def (TS_TYPED): New.
10250         * lto-streamer.c (check_handled_ts_structures): Handle it.
10251         * tree.c (MARK_TS_TYPED): New macro.
10252         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10253
10254 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
10255
10256         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10257         (force_nonfallthru): Do not alter the loop nest if no basic block
10258         was created.
10259
10260 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10261
10262         * config/i386/sse.md (VI): New mode iterator.
10263         (SSEMODEI): Remove.
10264         (AVX256MODEI): Ditto.
10265         (AVXMODEF4P): Ditto.
10266         (avxvecpsmode): Ditto.
10267         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
10268         (sse2_andnot<mode>3): New expander.
10269         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10270         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
10271         (<any_logic:code><mode>3): Use VI mode iterator.
10272         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10273         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
10274         (*andnottf3): Handle AVX three-operand constraints.
10275         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10276
10277 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10278             Robert Millan  <rmh@gnu.org>
10279
10280         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10281         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10282         GNU_USER_DYNAMIC_LINKER64): Define.
10283         (REG_NAME): Don't undefine.
10284         (MD_UNWIND_SUPPORT): Undefine.
10285         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10286         (REG_NAME): Don't undefine.
10287         (MD_UNWIND_SUPPORT): Undefine.
10288         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10289
10290 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10291
10292         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10293         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10294
10295 2011-04-11  Xinliang David Li  <davidxl@google.com>
10296
10297         * value-profile.c (check_ic_target): New function.
10298         (gimple_ic_transform): Sanity check indirect call target.
10299         * gimple-low.c (gimple_check_call_args): Interface change.
10300         (gimple_check_call_matching_types): New function.
10301         * tree-inline.c (tree_can_inline_p): Call new function.
10302
10303 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
10304
10305         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10306         tree-pretty-print.h & realmpfr.h.
10307
10308 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
10309
10310         PR middle-end/48464
10311         * ira.c (setup_pressure_classes): Fix typo in loop condition.
10312         (setup_allocno_and_important_classes): Ditto.
10313
10314 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10315
10316         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10317         GNU_USER_DYNAMIC_LINKER.
10318         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10319         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10320         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10321         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10322         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10323         GNU_USER_TARGET_OS_CPP_BUILTINS.
10324         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10325         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10326         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10327         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10328         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10329         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10330         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10331         GNU_USER_TARGET_OS_CPP_BUILTINS.
10332         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10333         GNU_USER_DYNAMIC_LINKER.
10334         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10335         GNU_USER_TARGET_OS_CPP_BUILTINS.
10336         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10337         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10338         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10339         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10340         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10341         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10342         GNU_USER_DYNAMIC_LINKER64): Remove.
10343         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10344         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10345         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10346         GNU_USER_DYNAMIC_LINKER.
10347         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10348         GNU_USER_TARGET_OS_CPP_BUILTINS.
10349         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10350         GNU_USER_TARGET_OS_CPP_BUILTINS.
10351         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10352         to GNU_USER_TARGET_OS_CPP_BUILTINS.
10353         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10354         GNU_USER_TARGET_OS_CPP_BUILTINS.
10355         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10356         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10357         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10358         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10359         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10360         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10361         GNU_USER_DYNAMIC_LINKER.
10362         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10363         GNU_USER_TARGET_OS_CPP_BUILTINS.
10364         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10365         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10366         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10367         GNU_USER_DYNAMIC_LINKER.
10368         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10369         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10370         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10371         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10372         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10373         GNU_USER_DYNAMIC_LINKER.
10374         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10375         GNU_USER_DYNAMIC_LINKERN32.
10376         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10377         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
10378         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
10379         GNU_USER_DYNAMIC_LINKER32.
10380         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10381         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10382         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10383         GNU_USER_DYNAMIC_LINKER.
10384         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10385         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10386         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10387         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10388         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10389         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10390         GNU_USER_DYNAMIC_LINKER32.
10391         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10392         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10393         GNU_USER_DYNAMIC_LINKER.
10394         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10395         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10396         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10397         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
10398         GNU_USER_DYNAMIC_LINKER64.
10399         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10400         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10401         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10402         GNU_USER_DYNAMIC_LINKER.
10403         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10404         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10405         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10406         GNU_USER_DYNAMIC_LINKER.
10407         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10408         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10409         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10410         GNU_USER_DYNAMIC_LINKER32.
10411         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10412         GNU_USER_DYNAMIC_LINKER64.
10413         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10414         GNU_USER_DYNAMIC_LINKER64.
10415         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10416         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10417         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10418         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10419         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10420
10421 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10422
10423         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
10424         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10425         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10426         GNU_USER_DYNAMIC_LINKER.
10427         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10428         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
10429         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10430         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10431         GNU_USER_DYNAMIC_LINKER64.
10432         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10433         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10434         GNU_USER_LINK_EMULATION.
10435         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10436         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10437         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10438         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10439         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10440         CPP_SPEC, CC1_SPEC): Remove.
10441         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10442         (GNU_USER_DYNAMIC_LINKER): Define.
10443         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10444         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10445         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10446         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10447         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10448         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10449         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10450         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10451         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10452         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10453         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10454         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10455         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10456         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10457         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10458         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10459         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10460         GNU_USER_DYNAMIC_LINKER.
10461         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10462         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10463         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10464         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10465         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10466         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10467         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10468         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10469         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10470         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10471
10472 2011-04-11  Kai Tietz  <ktietz@redhat.com>
10473
10474         PR target/9601
10475         PR target/11772
10476         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10477         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10478         comment.
10479         (ix86_is_msabi_thiscall): Removed.
10480         (ix86_is_type_thiscall): Likewise.
10481         (ix86_get_callcvt): New function.
10482         (ix86_comp_type_attributes): Simplify check.
10483         (ix86_function_regparm): Use ix86_get_callcvt for calling
10484         convention attribute checks.
10485         (ix86_return_pops_args): Likewise.
10486         (ix86_static_chain): Likewise.
10487         (x86_this_parameter): Likewise.
10488         (x86_output_mi_thunk): Likewise.
10489         (ix86_function_type_abi): Optimize check for types without attributes.
10490         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10491         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10492         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10493         by flag-values.
10494         (IX86_BASE_CALLCVT): Helper macro.
10495         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10496         Use ix86_get_callcvt for calling convention attribute checks and avoid
10497         symbol-decoration for stdcall in TARGET_RTD case.
10498         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10499         Likewise.
10500         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10501         for declaration.
10502
10503 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10504
10505         * config/i386/sse.md (VI_128): New mode iterator.
10506         (VI12_128): Rename from SSEMODE12.
10507         (VI14_128): Rename from SSEMODE14.
10508         (VI124_128): New mode iterator.
10509         (VI24_128): Rename from SSEMODE248.
10510         (VI248_128): Rename from SSEMODE248.
10511         (SSEMODE124C8): Remove.
10512         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10513         (*sse2_<plusminus_insn><mode>3): Merge with
10514         *avx_<plusminus_insn><mode>3.
10515         (*mulv8hi3): Merge with *avx_mulv8hi3.
10516         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10517         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10518         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10519         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10520         (ashr<mode>3): Merge with *avx_ashr<mode>3.
10521         (lshr<mode>3): Merge with *avx_lshr<mode>3.
10522         (ashl<mode>3): Merge with *avx_ashl<mode>3.
10523         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10524         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10525         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10526         (*<smaxmin:code>v8hi3): Ditto.
10527         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10528         (*<smaxmin:code>v16qi3): Ditto.
10529         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10530         (*sse2_eq<mode>3): Ditto.
10531         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10532         (*sse2_gt<mode>3): Ditto.
10533         (vcondv2di): Split out of vcond<mode>.
10534         (vconduv2di): Split out of vcondu<mode>.
10535
10536 2011-04-11  Richard Guenther  <rguenther@suse.de>
10537
10538         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10539         before calling tree_low_cst.
10540
10541 2011-04-11  Richard Guenther  <rguenther@suse.de>
10542
10543         * stor-layout.c (layout_type): Compute all array index size operations
10544         in the original type.
10545         (initialize_sizetypes): Add comment.
10546         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10547
10548 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10549
10550         * common.opt (Tbss=, Tdata=, Ttext=): New options.
10551
10552 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10553
10554         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10555         of cgraph_node, handle NULL return value.
10556         (cgraph_global_info): Likewise.
10557         (cgraph_rtl_info): Likewise.
10558         * tree-inline.c (estimate_num_insns): Likewise.
10559         * gimplify.c (unshare_body): Likewise.
10560         (unvisit_body): Likewise.
10561         (gimplify_body): Likewise.
10562         * predict.c (optimize_function_for_size_p): Likewise.
10563         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10564         (call_may_clobber_ref_p_1): Likewise.
10565         * varasm.c (function_section_1): Likewise.
10566         (assemble_start_function): Likewise.
10567
10568 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10569
10570         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10571         of cgraph_node.
10572         * final.c (rest_of_clean_state): Likewise.
10573         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10574         * passes.c (pass_init_dump_file): Likewise.
10575         (execute_all_ipa_transforms): Likewise.
10576         (function_called_by_processed_nodes_p): Likewise.
10577         * predict.c (maybe_hot_frequency_p): Likewise.
10578         (probably_never_executed_bb_p): Likewise.
10579         (compute_function_frequency): Likewise.
10580         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10581         (unnest_nesting_tree_1): Likewise.
10582         (lower_nested_functions): Likewise.
10583         * tree-optimize.c (execute_fixup_cfg): Likewise.
10584         (tree_rest_of_compilation): Likewise.
10585         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10586         * tree-sra.c (ipa_early_sra): Likewise.
10587         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10588         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10589         * ipa.c (record_cdtor_fn): Likewise.
10590         * ipa-inline.c (cgraph_early_inlining): Likewise.
10591         (compute_inline_parameters_for_current): Likewise.
10592         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10593         * ipa-pure-const.c (local_pure_const): Likewise.
10594         * ipa-split.c (split_function): Likewise.
10595         (execute_split_functions): Likewise.
10596         * cgraphbuild.c (build_cgraph_edges): Likewise.
10597         (rebuild_cgraph_edges): Likewise.
10598         (cgraph_rebuild_references): Likewise.
10599         (remove_cgraph_callee_edges): Likewise.
10600         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10601         (verify_cgraph_node): Likewise.
10602         (cgraph_analyze_functions): Likewise.
10603         (cgraph_preserve_function_body_p): Likewise.
10604         (save_inline_function_body): Likewise.
10605         (save_inline_function_body): Likewise.
10606         * tree-inline.c (copy_bb): Likewise.
10607         (optimize_inline_calls): Likewise.
10608
10609 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10610
10611         PR tree-optimization/48195
10612         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10613         ipa_check_create_edge_args.
10614         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10615         ipa_check_create_edge_args.
10616         * ipa-inline.c (inline_generate_summary): Do not call
10617         ipa_check_create_node_params and ipa_check_create_edge_args.
10618         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10619         ipa_check_create_edge_args.
10620
10621 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
10622
10623         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10624         instead of loop.
10625         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10626         * function.c (record_hard_reg_sets): Likewise.
10627         * ira.c (compute_regs_asm_clobbered): Likewise.
10628         * sched-deps.c (sched_analyze_1): Likewise.
10629         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10630
10631 2011-04-09  Xinliang David Li  <davidxl@google.com>
10632
10633         PR tree-optimization/PR48484
10634         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10635         has_valid_pred lazily
10636
10637 2011-04-09  Duncan Sands  <baldrick@free.fr>
10638
10639         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10640
10641 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
10642
10643         * combine.c (combine_validate_cost): Adjust comments.  Set registered
10644         cost of I0 to zero at the end, if any.
10645
10646 2011-04-08  Xinliang David Li  <davidxl@google.com>
10647
10648         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10649         to insane profile data.
10650
10651 2011-04-08  Xinliang David Li  <davidxl@google.com>
10652
10653         * ipa-cp.c (ipcp_update_profiling): Correct
10654          negative scale factor due to insane profile data.
10655
10656 2011-04-08  Xinliang David Li  <davidxl@google.com>
10657
10658         * final.c (dump_basic_block_info): New function.
10659         (final): Dump basic block.
10660         (final_scan_insn): Remove old dump.
10661
10662 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
10663
10664         PR target/47829
10665         * config.gcc (i386-*-freebsd): Disable unwind table generation for
10666         crtbegin/crtend.
10667
10668 2011-04-08  Michael Matz  <matz@suse.de>
10669
10670         PR middle-end/48389
10671         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10672         functions.
10673         (rebuild_jump_labels): Call rebuild_jump_labels_1.
10674         * rtl.h (rebuild_jump_labels_chain): Declare.
10675         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10676         insns inserted on edges.
10677
10678 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
10679
10680         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10681         * config/arm/arm-arches.def: New.
10682         * config/arm/arm-opts.h: New.
10683         * config/arm/genopt.sh: New.
10684         * config/arm/arm-tables.opt: New (generated).
10685         * config/arm/arm.c (arm_handle_option, arm_target_help,
10686         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10687         (all_architectures): Get most table contents from arm-arches.def.
10688         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10689         arm_selected_tune here.
10690         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10691         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10692         (march=, mcpu=, mtune=): Use Enum and Var.
10693         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10694         (arm.o): Update dependencies.
10695
10696 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
10697
10698         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10699         of header_file.
10700         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10701         (write_typed_alloc_defns): Likewise.
10702         (main): Calls write_typed_alloc_defns with output_header.
10703
10704 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
10705
10706         PR inline-asm/48435
10707         * ira-color.c (setup_profitable_hard_regs): Add comments.
10708         Don't take prohibited hard regs into account.
10709         (setup_conflict_profitable_regs): Rename to
10710         get_conflict_profitable_regs.
10711         (check_hard_reg_p): Check prohibited hard regs.
10712
10713 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
10714
10715         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10716         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10717         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10718
10719 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10720
10721         PR target/48366
10722         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10723         move from floating point to shift amount register.
10724         (emit_move_sequence): Remove secondary reload support for floating
10725         point to shift amount amount register copies.
10726         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10727         amount register copies.
10728         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10729         register, return false if mode isn't a scalar integer mode.
10730         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10731
10732 2011-04-08  Richard Guenther  <rguenther@suse.de>
10733
10734         * gimple.c (gimple_call_flags): Remove kludge.
10735
10736 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10737
10738         * sel-sched.c (sel_region_init): Move call to
10739         sel_setup_region_sched_flags after setup_current_loop_nest.
10740
10741 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
10742
10743         PR rtl-optimization/48272
10744         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10745         init_insn_reg_pressure_info.  Adjust a caller.
10746         * sched-int.h (init_insn_reg_pressure_info): Declare.
10747         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10748         when sched-pressure is enabled.
10749
10750 2011-04-08  Richard Guenther  <rguenther@suse.de>
10751
10752         * gimple.c (gimple_set_modified): Do not queue calls to
10753         MODIFIED_NORETURN_CALLS here ...
10754         * tree-ssa-operands.c (update_stmt_operands): ... but here.
10755
10756 2011-04-08  Richard Guenther  <rguenther@suse.de>
10757
10758         PR lto/48467
10759         * toplev.c (lang_dependent_init): Do not open asm_out_file
10760         in WPA mode, nor perform debug machinery initialization.
10761         (finalize): Do not unlink asm_out_file in WPA mode.
10762
10763 2011-04-08  Richard Guenther  <rguenther@suse.de>
10764
10765         * gimple.h (gimple_call_fntype): New function.
10766         (gimple_call_return_type): Use it.
10767         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10768         * gimple-low.c (gimple_check_call_args): Likewise.
10769         * gimple.c (gimple_call_flags): Likewise.
10770         (gimple_call_arg_flags): Likewise.
10771         (gimple_call_return_flags): Likewise.
10772         * tree-cfg.c (verify_gimple_call): Likewise.
10773         (do_warn_unused_result): Likewise.
10774         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10775         * value-prof.c (gimple_ic_transform): Fix fndecl check.
10776
10777 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
10778
10779         PR rtl-optimization/48235
10780         * sel-sched.c (code_motion_process_successors): Recompute the last
10781         insn in basic block if control flow changed.
10782         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
10783         Update condition for ilist_remove.
10784
10785 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10786
10787         PR rtl-optimization/48302
10788         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10789         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
10790         it to record added preheader blocks.
10791         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
10792         on to sel_add_loop_preheaders.
10793         (sel_region_init): Move call to setup_current_loop_nest after
10794         sel_init_bbs.
10795
10796 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10797
10798         PR target/48273
10799         * cfgloop.h (loop_has_exit_edges): New helper.
10800         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10801         non-clonable.
10802         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10803         that have no exit edges.
10804
10805 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10806
10807         PR rtl-optimization/48442
10808         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
10809         all callers.  Adjust assert.
10810
10811 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
10812
10813         PR tree-optimization/48377
10814         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10815         is_packed to true even for types with smaller TYPE_ALIGN than
10816         TYPE_SIZE.
10817
10818 2011-04-08  Richard Guenther  <rguenther@suse.de>
10819
10820         PR bootstrap/48513
10821         * doc/tm.texi: Re-generate.
10822
10823 2011-04-08  Wei Guozhi  <carrot@google.com>
10824
10825         PR target/47855
10826         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10827         * config/arm/arm.c (arm_attr_length_push_multi): New function.
10828         * config/arm/arm.md (*push_multi): Change the length computation to
10829         call a C function.
10830
10831 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
10832
10833         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10834         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10835         * doc/tm.texi: Regenerate.
10836         * system.h (ASM_OUTPUT_BSS): Poison.
10837         * varasm.c (asm_output_bss): Remove function.
10838         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10839
10840         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10841         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10842         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10843         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10844         Likewise.
10845         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10846         Likewise.
10847         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10848         Likewise.
10849         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10850
10851 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10852
10853         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10854         EnumValue lines.
10855
10856 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10857
10858         * config/m68k/m68k.c (m68k_handle_option): Don't handle
10859         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10860         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10861         OPT_mcpu32.
10862         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10863         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10864         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10865         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10866         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10867         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10868         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10869         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10870         options.  Don't map other m68k options manually.  Don't handle
10871         old-style options as canonical.
10872         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10873         * doc/install.texi (m68k-*-*): Document binutils version requirement.
10874
10875 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10876
10877         * basic-block.h (force_nonfallthru): Move to...
10878         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10879         (force_nonfallthru): ...here.
10880         * cfghooks.c (force_nonfallthru): New function.
10881         * cfgrtl.c (force_nonfallthru): Rename into...
10882         (rtl_force_nonfallthru): ...this.
10883         (commit_one_edge_insertion): Do not set AUX field.
10884         (commit_edge_insertions): Do not discover new basic blocks.
10885         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10886         (cfg_layout_rtl_cfg_hooks): Likewise.
10887         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10888         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
10889         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10890
10891 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
10892
10893         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10894         Remove macros.
10895
10896 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
10897
10898         * config/i386/sse.md: Update copyright year.
10899         (avxcvtvecmode): Remove.
10900         (sse_movhlps): Merge with *avx_movhlps.
10901         (sse_movlhps): Merge with *avx_movlhps.
10902         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10903         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10904         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10905         (sse_loadhps): Merge with *avx_loadhps.
10906         (sse_storelps): Merge with *avx_storelps.
10907         (sse_loadlps): Merge with *avx_loadlps.
10908         (sse_movss): Merge with *avx_movss.
10909         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10910         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10911         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10912         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10913         (vec_set<mode>_0): Ditto.
10914         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10915         (sse4_1_insertps): Merge with *avx_insertps.
10916         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10917         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10918         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10919         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10920         (sse2_storehpd): Merge with *avx_storehpd.
10921         (sse2_loadhpd): Merge with *avx_loadhpd.
10922         (sse2_loadlpd): Merge with *avx_loadlpd.
10923         (sse2_movsd): Merge with *avx_movsd.
10924         (*vec_concatv2df): Merge with *vec_concatv2df.
10925
10926 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
10927
10928         PR debug/48343
10929         * combine.c (combine_instructions): Add last_combined_insn,
10930         update it if insn is after it, pass it to all try_combine calls.
10931         (try_combine): Add last_combined_insn parameter, pass it instead of
10932         i3 to propagate_for_debug.
10933
10934 2011-04-07  Nick Clifton  <nickc@redhat.com>
10935
10936         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10937         to handle MDR <-> data register transfers.
10938         (movhi_internal): Likewise.
10939
10940 2011-04-07  Alan Modra  <amodra@gmail.com>
10941
10942         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10943         previous stack info.
10944
10945 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10946
10947         PR target/43920
10948         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
10949         flow_find_cross_jump.  Swap variables to implement backward replacement.
10950         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10951
10952 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10953
10954         PR target/43920
10955         * cfgcleanup.c (walk_to_nondebug_insn): New function.
10956         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
10957         and bb2.
10958         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10959         src1 or src2.  Redirect edges to the last basic block.  Update
10960         frequency and count on multiple basic blocks in case of fallthru.
10961
10962 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10963
10964         PR target/43920
10965         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10966         function.
10967         (old_insns_match_p): Change return type.  Replace return false/true
10968         with return dir_none/dir_both.  Use can_replace_by.
10969         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
10970         direction from dir_p.  Register replacement direction in dir, last_dir
10971         and afterlast_dir.  Handle new return type of old_insns_match_p using
10972         merge_dir.  Return replacement direction in dir_p.
10973         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10974         return type of old_insns_match_p.
10975         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10976         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10977         flow_find_cross_jump.
10978         * basic-block.h (enum replace_direction): New type.
10979         (flow_find_cross_jump): Add parameter to declaration.
10980
10981 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
10982
10983         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10984         (AVXMODEDCVTPS2DQ): Ditto.
10985         (VEC_FLOAT_MODE): Ditto.
10986         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
10987         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10988         (<any_logic:code><mode>3): Use VF mode iterator.
10989         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10990         Use VF mode iterator.
10991         (copysign<mode>3): Use VF mode iterator.
10992         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
10993         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10994         (*<any_logic:code><MODEF:mode>3): Merge with
10995         *avx_<any_logic:code><MODEF:mode>3.
10996         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10997         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10998         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10999         (avx_cvtdq2ps<avxmodesuffix>): Remove.
11000         (sse2_cvtdq2ps): Use %v modifier.
11001         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11002         (avx_cvtps2dq<avxmodesuffix>): Remove.
11003         (sse2_cvtps2dq): Use %v modifier.
11004         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11005         (avx_cvttps2dq<avxmodesuffix>): Remove.
11006         (sse2_cvttps2dq): Use %v modifier.
11007         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11008         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11009         (sse2_cvtsd2siq): Fix insn template.
11010         (sse2_cvtsd2siq_2): Ditto.
11011         (sse2_cvttsd2siq): Ditto.
11012         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11013         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11014
11015 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
11016
11017         * gcov-io.c: Use GCC Runtime Library Exception.
11018
11019 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
11020
11021         PR debug/48466
11022         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11023         as base_reg whatever register reg has been eliminated to, instead
11024         of hardcoding STACK_POINTER_REGNUM.
11025
11026 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
11027
11028         * doc/tm.texi.in: Document C target hooks as separate from general
11029         target hooks.
11030         * doc/tm.texi: Regenerate.
11031         * genhooks.c (struct hook_desc): Add docname field.
11032         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
11033         docname field.
11034         (hook_array): Include c-target.def.
11035         (emit_documentation): Use docname field in output.
11036         (emit_init_macros): Take docname argument.  Only emit definitions
11037         for hooks matching docname.
11038         (main): Expect additional arguments in all cases.  Pass argument
11039         to emit_init_macros.
11040         * target.def: Move initial macro definitions and comments to
11041         target-hooks-macros.h.
11042         (gcc_targetcm): Move to c-family/c-target.def.
11043         * target.h (targetcm): Move declaration to c-family/c-target.h.
11044         * targhooks.c (default_handle_c_option): Move to
11045         c-family/c-opts.c.
11046         * targhooks.h (default_handle_c_option): Move declaration to
11047         c-family/c-common.h.
11048         * target-hooks-macros.h: New file.
11049         * config.gcc (target_has_targetcm): Define and use to add to
11050         c_target_objs and cxx_target_objs.
11051         * config/default-c.c: New file.
11052         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11053         of target.h and target-def.h.
11054         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11055         (darwin_objc_construct_string, darwin_cfstring_ref_p,
11056         darwin_check_cfstring_format_arg): Make static.
11057         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11058         TARGET_STRING_OBJECT_REF_TYPE_P,
11059         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11060         * config/darwin-protos.h (darwin_objc_construct_string,
11061         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11062         declare.
11063         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11064         TARGET_STRING_OBJECT_REF_TYPE_P,
11065         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11066         * config/t-darwin (darwin-c.o): Update dependencies.
11067         * system.h (TARGET_HAS_TARGETCM): Poison.
11068         * Makefile.in (TARGET_H): Update.
11069         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11070         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11071         (default-c.o): New target.
11072         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11073         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11074         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
11075         c-target.def.
11076         (build/genhooks.o): Update dependencies.
11077
11078 2011-04-06  Richard Guenther  <rguenther@suse.de>
11079
11080         * ipa-inline.c (enum inlining_mode): Remove.
11081         (cgraph_flatten): Use some other token.
11082         (cgraph_edge_early_inlinable_p): New function, split out from ...
11083         (cgraph_perform_always_inlining): New function, split out from ...
11084         (cgraph_decide_inlining_incrementally): ... here.
11085         (cgraph_mark_inline_edge): Adjust.
11086         (cgraph_early_inlining): Re-structure.
11087         (pass_early_inline): Require SSA form.
11088
11089 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
11090             Julian Brown  <julian@codesourcery.com>
11091             Mark Shinwell  <shinwell@codesourcery.com>
11092
11093         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11094         LO_REGS only for Thumb-1.
11095         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11096         be used in short instructions when optimising for size on Thumb-2.
11097
11098 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
11099
11100         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11101         associated with user returns to be preserved.
11102
11103 2011-04-06  Tristan Gingold  <gingold@adacore.com>
11104
11105         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11106         symbol_queue_size, DBXOUT_DECR_NESTING,
11107         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11108         if XCOFF_DEBUGGING_INFO.
11109
11110 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
11111
11112         * config/i386/i386.md (attribute isa): New.
11113         (attribute enabled): New.
11114         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11115         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11116         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11117         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11118         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11119         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11120         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11121         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11122
11123         * config/i386/sse.md (VF): New mode iterator.
11124         (VF1): Ditto.
11125         (VF2): Ditto.
11126         (VF_128): Ditto.
11127         (SSEMODEF4): Remove.
11128         (attribute sse): Handle V8SF and V4DF modes.
11129         (<absneg:code><mode>2): Use VF mode iterator.
11130         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
11131         mode iterator.
11132         (<plusminus_insn><mode>3): Use VF mode iterator.
11133         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11134         Use VF mode iterator.
11135         (<sse>_vm<plusminus_insn><mode>3): Merge with
11136         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
11137         (mul<mode>3): Use VF mode iterator.
11138         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
11139         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
11140         mode iterator.
11141         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11142         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11143         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
11144         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
11145         mode iterator.
11146         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11147         Use VF1 mode iterator.
11148         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11149         (sqrt<VF2:mode>2): New expander.
11150         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11151         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11152         and sqrtv2df2.  Use VF mode iterator.
11153         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
11154         mode iterator.
11155         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11156         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11157         Use VF1 mode iterator.
11158         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11159         (<smaxmin:code><mode>3): Use VF mode iterator.
11160         (*<smaxmin:code><mode>3_finite): Merge with
11161         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
11162         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11163         (<sse>_vm<smaxmin:code><mode>2): Merge with
11164         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
11165         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
11166         mode iterator.
11167         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
11168         mode iterator.
11169         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11170         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11171         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11172         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11173         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
11174         VF mode iterator.
11175         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11176         Use VF_128 mode iterator.
11177         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
11178         mode iterator.
11179         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
11180         VF_128 mode iterator.
11181         (vcond<mode>): Use VF mode iterator.
11182         * config/i386/predicates.md (sse_comparison_operator): Merge with
11183         avx_comparison_float_operator.  Do not declare as special_predicate.
11184         * config/i386/i386.c (struct builtin_description): Update for renamed
11185         compare patterns.
11186         (ix86_expand_args_builtin): Ditto.
11187         (ix86_expand_sse_compare_mask): Ditto.
11188
11189 2011-04-06  Richard Guenther  <rguenther@suse.de>
11190
11191         * tree-inline.c (estimate_num_insns): For calls simply account
11192         for all passed arguments and a used return value.
11193
11194 2011-04-06  Richard Guenther  <rguenther@suse.de>
11195
11196         PR tree-optimization/47663
11197         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11198         call_stmt_time fields.
11199         (cgraph_edge_inlinable_p): Declare.
11200         (cgraph_edge_recursive_p): New inline function.
11201         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11202         (cgraph_clone_edge): Copy it.
11203         * ipa-inline.c (cgraph_estimate_edge_time): New function.
11204         Account for call stmt time.
11205         (cgraph_estimate_time_after_inlining): Take edge argument.
11206         (cgraph_estimate_edge_growth): Account call stmt size.
11207         (cgraph_estimate_size_after_inlining): Take edge argument.
11208         (cgraph_mark_inline_edge): Adjust.
11209         (cgraph_check_inline_limits): Likewise.
11210         (cgraph_recursive_inlining_p): Remove.
11211         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11212         (cgraph_decide_recursive_inlining): Take edge argument and
11213         adjust.
11214         (cgraph_decide_inlining_of_small_functions): Do not avoid
11215         diags for recursive inlining here.
11216         (cgraph_flatten): Adjust.
11217         (cgraph_decide_inlining_incrementally): Likewise.
11218         (estimate_function_body_sizes): Remove call cost handling.
11219         (compute_inline_parameters): Initialize caller edge call costs.
11220         (cgraph_estimate_edge_growth): New function.
11221         (cgraph_estimate_growth): Use it.
11222         (cgraph_edge_badness): Likewise.
11223         (cgraph_check_inline_limits): Take an edge argument.
11224         (cgraph_decide_inlining_of_small_functions): Adjust.
11225         (cgraph_decide_inlining): Likewise.
11226         * tree-inline.c (estimate_num_insns): Only account for call
11227         return value if it is used.
11228         (expand_call_inline): Avoid diagnostics on recursive inline
11229         functions here.
11230         * lto-cgraph.c (lto_output_edge): Output edge call costs.
11231         (input_edge): Input edge call costs.
11232
11233 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11234
11235         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11236
11237 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
11238
11239         * doc/invoke.texi (Spec Files): Fix typo.
11240
11241 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
11242
11243         * profile.c (branch_prob): Move declaration of local variable.  Remove
11244         obsolete ??? comment.  Expand the location explicitly instead of using
11245         the LOCATION_FILE and LOCATION_LINE macros.
11246
11247 2011-04-06  Wei Guozhi  <carrot@google.com>
11248
11249         PR target/47855
11250         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11251         (arm_cond_branch): Likewise.
11252         (arm_cond_branch_reversed): Likewise.
11253         (arm_jump): Likewise.
11254         (push_multi): Likewise.
11255         * config/arm/constraints.md (Py): New constraint.
11256
11257 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11258
11259         PR bootstrap/48471
11260         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11261         Move these...
11262         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11263         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11264         #ifdef DBX_DEBUGGING_INFO.
11265
11266 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
11267
11268         PR bootstrap/48403
11269         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11270         if old and new states differ.
11271
11272 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
11273
11274         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11275         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11276         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11277         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11278         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11279         mcfv4e): Use Alias.
11280         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11281         ColdFire options to -mcpu= options.
11282
11283 2011-04-05  Jeff Law  <law@redhat.com>
11284
11285         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11286         check if BB is a successor of LOOP->header and return
11287         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11288
11289 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
11290
11291         * cprop.c (struct reg_use): Remove.
11292         (reg_use_table): Make an array of RTX.
11293         (find_used_regs, constprop_register, local_cprop_pass,
11294         bypass_block): Simplify users of reg_use_table.
11295         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
11296         on one of the uses found by find_used_regs.
11297
11298 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11299
11300         PR bootstrap/48469
11301         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11302         declaration.
11303
11304 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11305
11306         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11307         as an rtx.
11308         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11309
11310 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
11311
11312         PR middle-end/48441
11313         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11314
11315 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11316
11317         * combine.c: Include obstack.h.
11318         (struct insn_link): Define.
11319         (uid_log_links): Adjust type.
11320         (FOR_EACH_LOG_LINK): New macro.
11321         (insn_link_obstack): Declare.
11322         (alloc_insn_link): Define.
11323         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
11324         type of link variables.
11325         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11326         (try_combine, record_promoted_values, distribute_notes): Likewise.
11327         (distribute_links): Likewise.  Tweak prototype.
11328         (clear_log_links): Delete.
11329         (adjust_for_new_dest): Call alloc_insn_link.
11330         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11331
11332 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11333
11334         * gcse.c (modify_mem_list): Convert to an array of VECs.
11335         (canon_modify_mem_list, compute_transp): Tweak formatting.
11336         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
11337         (load_killed_in_block_p): Likewise.
11338         (record_last_mem_set_info): Likewise.
11339         (clear_modify_mem_tables): Likewise.
11340
11341 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11342
11343         PR middle-end/48461
11344         * function.c (emit_use_return_register_into_block): Only define if
11345         HAVE_return.
11346
11347 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
11348
11349         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11350
11351 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
11352
11353         * config/rx/rx-opts.h: New.
11354         * config/rx/rx.c (rx_cpu_type): Remove.
11355         (rx_handle_option): Don't assert that global structures are in
11356         use.  Access variables via opts pointer.  Defer most handling of
11357         OPT_mint_register_.  Use error_at.
11358         (rx_option_override): Handle deferred OPT_mint_register_ here.
11359         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11360         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11361         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11362         (rx_cpu_types): New Enum and EnumValue entries.
11363         (mint-register=): Use Defer and use Var accordingly.
11364
11365 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11366
11367         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11368         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11369         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11370         Move these...
11371         (debug_free_queue, debug_nesting, symbol_queue_index):
11372         ...and these...
11373         * dbxout.c: ...to here.  Make static.
11374
11375 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11376
11377         * gcse.c (modify_pair): Define.  Define a VEC of it.
11378         (canon_modify_mem_list): Convert to an array of VECs.
11379         (free_insn_expr_list_list): Delete.
11380         (clear_modify_mem_tables): Call VEC_free instead.
11381         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11382         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11383         (canon_list_insert, compute_transp): Likewise.
11384
11385 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11386
11387         PR target/43920
11388         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11389         for size.
11390
11391 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11392
11393         PR target/43920
11394         * function.c (emit_use_return_register_into_block): New function.
11395         (thread_prologue_and_epilogue_insns): Use
11396         emit_use_return_register_into_block.
11397
11398 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11399
11400         PR target/43920
11401         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11402         insn.
11403
11404 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11405
11406         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11407
11408 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
11409
11410         * config/arm/arm.md (define_constants for unspec): Replace with
11411         define_c_enum.
11412         (define_constants for unspecv): Replace with define_c_enum.
11413         * config/arm/neon.md (define_constants for unspec): Replace with
11414         define_c_enum.
11415
11416 2011-04-04  Richard Henderson  <rth@redhat.com>
11417
11418         PR bootstrap/48400
11419         * dwarf2out.c (output_line_info): Always emit line info from
11420         at least one section.
11421         (dwarf2out_init): Create text_section_line_info here ...
11422         (set_cur_line_info_table): ... not here.
11423
11424 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
11425
11426         PR target/48380
11427         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11428         not called.
11429
11430         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11431
11432 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
11433
11434         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11435         (expr_equiv_p): Remove.
11436         (insert_set_in_table): Look at <dest, src> pair instead of expr.
11437         (hash_scan_set): Update call to insert_set_in_table.
11438         (dump_hash_table): Dump <dest, src> pair.
11439         (lookup_set): Simplify.  Lookup <dest, src> pair.
11440         (compute_transp): Remove, fold heavily simplified code into...
11441         (compute_local_properties): ...here.  Expect COMP and TRANSP
11442         unconditionally.
11443         (find_avail_set): Take set directly from struct expr.
11444         (find_bypass-set): Likewise.
11445         (bypass_block): Likewise.
11446         (cprop_insn): Likewise.  Remove redundant INSN_P test.
11447
11448         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11449         checks on form of COND from find_implicit_sets to here.
11450         (find_implicit_sets): Cleanup control flow. Split critical edges
11451         if it exposes implicit sets.  Allocate/resize implicit_sets as
11452         necessary.
11453         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11454         changed something.  Run df_analyze after find_implicit_sets if any
11455         edges were split.  Do not allocate implicit_sets here.
11456
11457         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11458         (gcse_obstack): Renamed to cprop_obstack.
11459         (GNEW, GNEWVEC, GNEWVAR): Remove.
11460         (gmalloc): Remove.
11461         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11462         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11463         (gcse_alloc): Likewise, and rename to cprop_alloc.
11464         (alloc_gcse_men, free_gcse_mem): Remove.
11465         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11466         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11467         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11468
11469         * cprop.c (oprs_not_set_p): Remove.
11470         (mark_set, mark_clobber): Remove.
11471         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11472         (reg_not_set_p): New function.
11473         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11474         (cprop_insn): Likewise.
11475         (cprop_jump): Use FOR_EACH_EDGE.
11476
11477 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
11478
11479         PR bootstrap/48403
11480         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11481         (rank_for_schedule): Use scheduled_insns vector instead of
11482         last_scheduled_insn.
11483         (ok_for_early_queue_removal): Likewise.
11484         (queue_to_ready): Search forward in nonscheduled_insns_begin if
11485         we have a dbg_cnt.
11486         (choose_ready): Likewise.
11487         (commit_schedule): Use VEC_iterate.
11488         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
11489         a dbg_cnt, use it and ensure the first insn is in the ready list.
11490         (haifa_sched_init): Allocate scheduled_insns.
11491         (sched_extend_ready_list): Don't allocate it; reserve space.
11492         (haifa_sched_finish): Free it.
11493
11494 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11495
11496         * optc-gen.awk: Always remove type from Variable entry before
11497         recording in var_seen.
11498
11499 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
11500
11501         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11502         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11503         call to tidy_fallthru_edges.
11504
11505 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11506
11507         * doc/options.texi (ToLower): Document.
11508         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11509         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11510         * opts.h (cl_option): Add cl_tolower field.
11511         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11512         arguments with lowercase strings.
11513         * config/rx/rx.opt (mcpu=): Add ToLower.
11514         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11515         argument.
11516
11517 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11518
11519         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11520
11521 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11522
11523         * config/vax/vax.c: Include reload.h.
11524
11525 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
11526
11527         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11528         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11529         (sparc_preferred_reload_class): New function.
11530
11531 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
11532
11533         PR debug/48401
11534         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11535         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11536
11537 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
11538
11539         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11540         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11541
11542 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
11543
11544         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11545         (ASM_OUTPUT_ALIGNED_BSS): Define.
11546
11547 2011-04-03  Michael Matz  <matz@suse.de>
11548
11549         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11550         and next_slot members.
11551         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11552         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11553         (lto_streamer_cache_append): Declare.
11554         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11555         unsigned index, remove offset parameter, ensure that we append
11556         or update existing entries.
11557         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11558         parameter, update next_slot for append.
11559         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11560         parameter.
11561         (lto_streamer_cache_insert_at): Likewise.
11562         (lto_streamer_cache_append): New function.
11563         (lto_streamer_cache_lookup): Use unsigned index.
11564         (lto_streamer_cache_get): Likewise.
11565         (lto_record_common_node): Don't test tree_node_can_be_shared.
11566         (preload_common_node): Adjust call to lto_streamer_cache_insert.
11567         (lto_streamer_cache_delete): Don't free offsets member.
11568         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11569         (lto_output_string_with_length): Use lto_output_data_stream.
11570         (lto_output_tree_header): Remove ix parameter, don't write it.
11571         (lto_output_builtin_tree): Likewise.
11572         (lto_write_tree): Adjust callers to above, don't track and write
11573         offset, write unsigned index.
11574         (output_unreferenced_globals): Don't emit all global vars.
11575         (write_global_references): Use unsigned indices.
11576         (lto_output_decl_state_refs): Likewise.
11577         (write_symbol): Likewise.
11578         * lto-streamer-in.c (lto_input_chain): Move earlier.
11579         (input_function): Use unsigned index.
11580         (input_alias_pairs): Don't read and then ignore all global vars.
11581         (lto_materialize_tree): Remove ix_p parameter, don't read index,
11582         don't pass it back, use lto_streamer_cache_append.
11583         (lto_register_var_decl_in_symtab): Use unsigned index.
11584         (lto_register_function_decl_in_symtab): Likewise.
11585         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11586         index.
11587         (lto_get_builtin_tree): Don't read index, use
11588         lto_streamer_cache_append.
11589         (lto_read_tree): Adjust call to lto_materialize_tree.
11590
11591         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11592         don't use function calls in arguments to MIN.
11593
11594         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11595         twice.
11596
11597         * gimple.c (gimple_type_leader_entry): Mark deletable.
11598
11599 2011-04-03  Alan Modra  <amodra@gmail.com>
11600
11601         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11602
11603 2011-04-03  Michael Matz  <matz@suse.de>
11604
11605         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11606         an integer.
11607         * tree.h (tree_decl_non_common.vindex): Adjust comment.
11608
11609 2011-04-03  Michael Matz  <matz@suse.de>
11610
11611         * cgraphbuild.c (record_reference): Canonicalize constructor values.
11612         * gimple-fold.c (canonicalize_constructor_val): Accept being called
11613         without function context.
11614         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11615         current_function_decl and cfun.
11616
11617 2011-04-03  Michael Matz  <matz@suse.de>
11618
11619         * tree.c (decl_init_priority_insert): Don't create entry for
11620         default priority.
11621         (decl_fini_priority_insert): Ditto.
11622         (fields_compatible_p, find_compatible_field): Remove.
11623         * tree.h (fields_compatible_p, find_compatible_field): Remove.
11624         * gimple.c (gimple_compare_field_offset): Adjust block comment.
11625
11626 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
11627
11628         * combine.c (try_combine): Remove useless local variable.
11629
11630 2011-04-03  Richard Guenther  <rguenther@suse.de>
11631             Ira Rosen  <ira.rosen@linaro.org>
11632
11633         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11634         non-variable offsets and compare the remaining bases of the two
11635         accesses instead of looking for exact same data-ref.
11636
11637 2011-04-02  Kai Tietz  <ktietz@redhat.com>
11638
11639         PR target/48416
11640         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11641
11642         * i386.c (ix86_is_msabi_thiscall): New helper function.
11643         (ix86_is_type_thiscall): New helper function.
11644         (ix86_comp_type_attributes): Handle thiscall for method-functions
11645         special.
11646         (init_cumulative_args): Likewise.
11647         (find_drap_reg): Likewise.
11648         (ix86_static_chain): Likewise.
11649         (x86_this_parameter): Likewise.
11650         (x86_output_mi_thunk): Likewise.
11651
11652 2011-04-01  Olivier Hainque  <hainque@adacore.com>
11653             Nicolas Setton  <setton@adacore.com>
11654             Eric Botcazou  <ebotcazou@adacore.com>
11655
11656         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11657         (add_gnat_descriptive_type_attribute): New function.
11658         (gen_array_type_die): Call it.
11659         (gen_enumeration_type_die): Likewise.
11660         (gen_struct_or_union_type_die): Likewise.
11661         (modified_type_die): Likewise.
11662         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11663         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11664         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11665
11666 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11667
11668         PR bootstrap/48148
11669         * dwarf2out.c (resolve_addr): Don't call force_decl_die
11670         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11671
11672         Revert:
11673         2011-03-17  Richard Guenther  <rguenther@suse.de>
11674
11675         PR bootstrap/48148
11676         * lto-cgraph.c (input_overwrite_node): Clear the abstract
11677         origin for decls in other ltrans units.
11678         (input_varpool_node): Likewise.
11679
11680 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11681
11682         PR middle-end/48335
11683         * expr.c (expand_assignment): Handle all possibilities
11684         if TO_RTX is CONCAT.
11685         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11686         (store_split_bit_field): If SUBREG_REG (op0) or
11687         op0 itself has smaller mode than word, return it
11688         for offset 0 and const0_rtx for out-of-bounds stores.
11689         If word is const0_rtx, skip it.
11690
11691 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
11692
11693         * config/h8300/h8300.c (print_operand_address): Rename to...
11694         (h8300_print_operand_address): ...this. Make static. Adjust comments.
11695         Call h8300_print_operand and h8300_print_operand_address instead of
11696         print_operand and print_operand_address. Declare.
11697         (print_operand): Renake to...
11698         (h8300_print_operand): ...this. Make static. Adjust comments.
11699         Call h8300_print_operand instead of print_operand. Declare.
11700         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11701         (h8300_register_move_cost): Likewise.
11702         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11703         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11704         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11705         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11706         * config/h8300/h8300-protos.h (print_operand): Delete.
11707         (print_operand_address): Delete.
11708
11709 2011-04-01  Richard Henderson  <rth@redhat.com>
11710
11711         PR 48400
11712         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11713         in strict mode before dwarf4.  Re-order tests to early out
11714         before switching sections.
11715
11716 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
11717
11718         * config/h8300/constraints.md: New file.
11719         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
11720         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11721         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11722         * config/h8300/predicates.md (bit_operand): Likewise.
11723         (incdec_operand): Use satisfies_constraint_M and
11724         satisfies_constraint_O.  Don't use C code block.
11725         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11726         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11727         (compute_mov_length): Use satisfies_constraint_G.
11728         (fix_bit_operand): Use satisfies_constraint_U.
11729         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11730         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11731         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11732         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11733         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11734         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11735         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11736         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11737         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11738         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11739         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11740         (EXTRA_MEMORY_CONSTRAINT): Delete.
11741
11742 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
11743             Michael Meissner  <meissner@linux.vnet.ibm.com>
11744
11745         PR target/48262
11746         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11747         operands, as per the specifications.
11748
11749         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11750         (vec_extract_evenv4sf): Ditto.
11751         (vec_extract_evenv8hi): Ditto.
11752         (vec_extract_evenv16qi): Ditto.
11753         (vec_extract_oddv4si): Ditto.
11754
11755 2011-03-31  Mark Wielaard  <mjw@redhat.com>
11756
11757         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11758         high_pc attribute if the CU has no associated code. Only output
11759         DW_AT_entry_pc for CU if not generating strict dwarf and
11760         dwarf_version < 4.
11761
11762 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
11763
11764         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11765         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11766         out of ...
11767         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11768         * final.c (final_start_function): Call the new function rather
11769         than using a NULL argument for dwarf2out_frame_debug.
11770
11771         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11772         that contains the prologue.
11773
11774         * haifa-sched.c (queue_insn): New arg REASON.  All callers
11775         changed.  Print it in debugging output.
11776
11777         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11778
11779         * sched-ebb.c (begin_schedule_ready): Remove second argument.
11780         Split most of the code into...
11781         (begin_move_insn): ... here.  New function.
11782         (ebb_sched_info): Add a pointer to it.
11783         * haifa-sched.c (scheduled_insns): New static variable.
11784         (sched_extend_ready_list): Allocate it.
11785         (schedule_block): Use it to record the order of scheduled insns.
11786         Perform RTL changes to move insns only after all scheduling
11787         decisions have been made.
11788         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11789         begin_move_insn field.
11790         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11791         * sched-int.h (struct haifa_sched_info): Remove second argument
11792         from begin_schedule_ready hook.  Add new member begin_move_insn.
11793         * sched-rgn.c (begin_schedule_ready): Remove second argument.
11794         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11795
11796         * haifa-sched.c (prune_ready_list): New function, broken out of
11797         schedule_block.
11798         (schedule_block): Use it.
11799
11800 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11801
11802         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11803
11804 2011-04-01  Kai Tietz  <ktietz@redhat.com>
11805
11806         * config.gcc (*-*-mingw*): Allow as option the
11807         posix threading model.
11808         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
11809         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11810         definition.
11811         (CPP_SPEC): Add pthread/no-pthread handling.
11812         (LIB_SPEC): Likewise.
11813         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11814         (LIB_SPEC): Likewise.
11815         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11816         flag to pass -pthread option for shared libgcc build.
11817         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11818         for shared libgcc build.
11819         * config/i386/t-mingw-pthread: New file.
11820         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11821         New define to enable use of library pthread by default.
11822         * config/i386/mingw.opt (pthread): New driver option.
11823         (no-pthread): New driver option.
11824         * config/i386/cygming.opt: Make sure trailing empty line is retained.
11825         * config/i386/mingw-w64.opt: Likewise.
11826
11827 2011-04-01  Gary Funck  <gary@intrepid.com>
11828
11829         * c-decl.c (grokdeclarator): Fix formatting.
11830
11831 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11832
11833         * expr.c (emit_block_move_via_movmem): Use n_generator_args
11834         instead of n_operands.
11835         (set_storage_via_setmem): Likewise.
11836         * optabs.c (maybe_gen_insn): Likewise.
11837         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11838         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11839         (mips_expand_builtin_direct): Likewise.
11840         * config/spu/spu.c (expand_builtin_args): Likewise.
11841
11842 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11843
11844         * recog.h (insn_data_d): Add n_generator_args.
11845         * genoutput.c (data): Likewise.
11846         (output_insn_data): Print it.
11847         (max_opno, num_dups): Delete.
11848         (scan_operands): Just fill in "d->operand[...]".
11849         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11850
11851 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11852
11853         * gensupport.h (pattern_stats): New structure.
11854         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11855         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11856         (max_operand_1, max_operand_vec): Delete.
11857         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11858
11859 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
11860
11861         * emit-rtl.c (emit_pattern_after_setloc): New function.
11862         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11863         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11864         (emit_pattern_after): New function.
11865         (emit_insn_after, emit_jump_insn_after): Call it.
11866         (emit_call_insn_after, emit_debug_insn_after): Likewise.
11867         (emit_pattern_before_setloc): New function.
11868         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11869         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11870         Likewise.
11871         (emit_pattern_before): New function.
11872         (emit_insn_before, emit_jump_insn_before): Call it.
11873         (emit_call_insn_before, emit_debug_insn_before): Likewise.
11874
11875 2011-03-31  Richard Henderson  <rth@redhat.com>
11876
11877         * dwarf2out.c (dw_separate_line_info_ref): Remove.
11878         (dw_separate_line_info_entry): Remove.
11879         (enum dw_line_info_opcode): New.
11880         (dw_line_info_entry): Use it.
11881         (dw_line_info_table, dw_line_info_table_p): New.
11882         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11883         (line_info_table, line_info_label_num): Remove.
11884         (line_info_table_in_use): Remove.
11885         (separate_line_info_table): Remove.
11886         (separate_line_info_table_allocated): Remove.
11887         (separate_line_info_table_in_use): Remove.
11888         (LINE_INFO_TABLE_INCREMENT): Remove.
11889         (line_info_label_num): New.
11890         (cur_line_info_table): New.
11891         (text_section_line_info, cold_text_section_line_info): New.
11892         (separate_line_info): New.
11893         (SEPARATE_LINE_CODE_LABEL): Remove.
11894         (print_dwarf_line_table): Remove.
11895         (debug_dwarf): Don't dump it.
11896         (output_one_line_info_table): New.
11897         (output_line_info): Use it.
11898         (new_line_info_table): New.
11899         (set_cur_line_info_table): New.
11900         (dwarf2out_switch_text_section): Use it.
11901         (dwarf2out_begin_function): Likewise.
11902         (push_dw_line_info_entry): New.
11903         (dwarf2out_source_line): Rewrite for new line info tables.
11904         (dwarf2out_init): Remove dead initailizations.
11905
11906 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11907
11908         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
11909         various flags.
11910         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11911         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11912         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11913         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11914         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11915         * opt-functions.awk (flag_init, switch_bit_fields): New.
11916         (switch_flags): Don't handle flags moved to bit-fields.  Don't
11917         generate CL_MISSING_OK or CL_SAVE.
11918         * optc-gen.awk: Update to generate bit-field output as well as
11919         flags field.
11920         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11921         bit-field instead of CL_REJECT_DRIVER flag.
11922         * opts-common.c (generate_canonical_option,
11923         decode_cmdline_option): Use bit-fields instead of CL_* flags.
11924         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11925         instead of CL_REJECT_NEGATIVE flag.
11926         * toplev.c (print_switch_values): Use cl_report bit-field instead
11927         of CL_REPORT flag.
11928
11929 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11930
11931         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11932         a zero minimum index only if it is redundant.
11933
11934 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
11935
11936         PR rtl-optimization/48381
11937         * ira-color.c (assign_hard_reg): Use hard reg set intersection
11938         instead of ira_class_hard_reg_index for calculating conflicting
11939         hard registers.
11940
11941 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
11942
11943         * cprop.c: Clean up hash table building.
11944         (reg_avail_info): Remove.
11945         (oprs_available_p): Remove.
11946         (record_last_reg_set_info): Remove.
11947         (record_last_set_info): Remove.
11948         (reg_available_p): New function.
11949         (gcse_constant_p): Do not treat unfolded conditions as constants.
11950         (make_set_regs_unavailable): New function.
11951         (hash_scan_set): Simplify with new reg_available_p.
11952         (compute_hash_table_work): Traverse insns stream only once.
11953         Do not compute reg_avail_info. Traverse insns in reverse order.
11954         Record implicit sets after recording explicit sets from the block.
11955
11956 2011-03-31  Michael Matz  <matz@suse.de>
11957
11958         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11959
11960 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
11961
11962         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11963         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11964         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11965         (h8300_mode_dependent_address_p): New function.
11966         (h8300_get_index): Make static.
11967
11968 2011-03-31  Jeff Law  <law@redhat.com>
11969
11970         * reload1.c (elimination_effects): Fix typo in recent change.
11971
11972         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11973         typo potentially leading to null pointer dereference.
11974
11975         * caller-save.c (new_saved_hard_reg): Eliminate return value.
11976         (setup_save_areas): Corresponding changes to avoid useless
11977         assignments.
11978
11979         * jump.c (reversed_comparison_code_parts): Avoid successive return
11980         statements when REVERSE_CONDITION is defined.
11981
11982         * expr.c (expand_assignment): Avoid useless assignments.
11983         (expand_expr_real_1): Likewise.
11984         (expand_expr_real_2): Avoid useless statements.
11985
11986         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11987
11988         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11989
11990         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11991         statements.
11992
11993         * stmt.c (expand_expr_stmt): Avoid useless assignment.
11994
11995 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11996
11997         PR target/47109
11998         * doc/tm.texi.in (TARGET_VERSION): Remove.
11999         * doc/tm.texi: Regenerate.
12000         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12001         * collect2.c (main): Don't use TARGET_VERSION.
12002         * mips-tdump.c (main): Don't use TARGET_VERSION.
12003         * mips-tfile.c (main): Don't use TARGET_VERSION.
12004         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12005         * config/rs6000/vxworksae.h: Remove.
12006         * config/alpha/alpha.h (TARGET_VERSION): Remove.
12007         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12008         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12009         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12010         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12011         * config/arm/arm.h (TARGET_VERSION): Remove.
12012         * config/arm/coff.h (TARGET_VERSION): Remove.
12013         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12014         * config/arm/elf.h (TARGET_VERSION): Remove.
12015         * config/arm/freebsd.h (TARGET_VERSION): Remove.
12016         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12017         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12018         * config/arm/pe.h (TARGET_VERSION): Remove.
12019         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12020         * config/arm/semi.h (TARGET_VERSION): Remove.
12021         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12022         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12023         * config/arm/vxworks.h (TARGET_VERSION): Remove.
12024         * config/avr/avr.h (TARGET_VERSION): Remove.
12025         * config/bfin/bfin.h (TARGET_VERSION): Remove.
12026         * config/fr30/fr30.h (TARGET_VERSION): Remove.
12027         * config/frv/frv.h (TARGET_VERSION): Remove.
12028         * config/h8300/h8300.h (TARGET_VERSION): Remove.
12029         * config/i386/cygwin.h (TARGET_VERSION): Remove.
12030         * config/i386/darwin.h (TARGET_VERSION): Remove.
12031         * config/i386/darwin64.h (TARGET_VERSION): Remove.
12032         * config/i386/djgpp.h (TARGET_VERSION): Remove.
12033         * config/i386/freebsd.h (TARGET_VERSION): Remove.
12034         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12035         * config/i386/gnu.h (TARGET_VERSION): Remove.
12036         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12037         * config/i386/i386elf.h (TARGET_VERSION): Remove.
12038         * config/i386/linux.h (TARGET_VERSION): Remove.
12039         * config/i386/linux64.h (TARGET_VERSION): Remove.
12040         * config/i386/lynx.h (TARGET_VERSION): Remove.
12041         * config/i386/mingw32.h (TARGET_VERSION): Remove.
12042         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12043         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12044         * config/i386/netware.h (TARGET_VERSION): Remove.
12045         * config/i386/nto.h (TARGET_VERSION): Remove.
12046         * config/i386/openbsd.h (TARGET_VERSION): Remove.
12047         * config/i386/vxworks.h (TARGET_VERSION): Remove.
12048         * config/ia64/elf.h (TARGET_VERSION): Remove.
12049         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12050         * config/ia64/hpux.h (TARGET_VERSION): Remove.
12051         * config/ia64/linux.h (TARGET_VERSION): Remove.
12052         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12053         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12054         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12055         * config/lm32/lm32.h (TARGET_VERSION): Remove.
12056         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12057         * config/m32c/m32c.h (TARGET_VERSION): Remove.
12058         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12059         * config/m32r/m32r.h (TARGET_VERSION): Remove.
12060         * config/m68k/linux.h (TARGET_VERSION): Remove.
12061         * config/m68k/m68k.h (TARGET_VERSION): Remove.
12062         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12063         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12064         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12065         * config/mep/mep.h (TARGET_VERSION): Remove.
12066         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12067         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12068         * config/mips/iris6.h (MACHINE_TYPE): Remove.
12069         * config/mips/linux.h (TARGET_VERSION): Remove.
12070         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12071         * config/mips/vxworks.h (TARGET_VERSION): Remove.
12072         * config/mmix/mmix.h (TARGET_VERSION): Remove.
12073         * config/mn10300/linux.h (TARGET_VERSION): Remove.
12074         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12075         * config/pa/pa.h (TARGET_VERSION): Remove.
12076         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12077         * config/picochip/picochip.h (TARGET_VERSION): Remove.
12078         * config/rs6000/aix.h (TARGET_VERSION): Remove.
12079         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12080         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12081         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12082         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12083         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12084         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12085         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12086         * config/rs6000/linux.h (TARGET_VERSION): Remove.
12087         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12088         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12089         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12090         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12091         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12092         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12093         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12094         * config/s390/linux.h (TARGET_VERSION): Remove.
12095         * config/s390/s390.h (TARGET_VERSION): Remove.
12096         * config/s390/tpf.h (TARGET_VERSION): Remove.
12097         * config/score/score.h (TARGET_VERSION): Remove.
12098         * config/sh/linux.h (TARGET_VERSION): Remove.
12099         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12100         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12101         * config/sh/sh.h (TARGET_VERSION): Remove.
12102         * config/sh/sh64.h (TARGET_VERSION): Remove.
12103         * config/sh/superh.h (TARGET_VERSION): Remove.
12104         * config/sh/vxworks.h (TARGET_VERSION): Remove.
12105         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12106         * config/sparc/linux.h (TARGET_VERSION): Remove.
12107         * config/sparc/linux64.h (TARGET_VERSION): Remove.
12108         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12109         TARGET_NAME32, TARGET_NAME): Remove.
12110         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12111         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12112         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12113         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12114         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12115         * config/spu/spu.h (TARGET_VERSION): Remove.
12116         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12117         * config/v850/v850.h (TARGET_VERSION): Remove.
12118         * config/vax/linux.h (TARGET_VERSION): Remove.
12119         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12120         * config/xtensa/elf.h (TARGET_VERSION): Remove.
12121         * config/xtensa/linux.h (TARGET_VERSION): Remove.
12122
12123 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
12124
12125         PR target/48142
12126         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12127         frame-related from frame-unrelated adjustments to the stack pointer.
12128
12129 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
12130
12131         * common.opt (fdebug-types-section): Move earlier.
12132         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12133
12134 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
12135
12136         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12137         var.
12138
12139 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
12140
12141         * tree.h (CASE_CHAIN): Define.
12142         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12143         (gimple_redirect_edge_and_branch): Likewise.
12144
12145 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
12146
12147         PR middle-end/48367
12148         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12149         calculation.
12150
12151 2011-03-30  Jeff Law  <law@redhat.com>
12152
12153         * PR bootstrap/48371
12154         * reload1.c (reload): Fix botch in last change.
12155
12156         * reload.h (struct reload): Fix typo introduced in last change.
12157
12158 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12159
12160         * config/arm/arm.opt (mhard-float, msoft-float): Mark
12161         Undocumented.  Remove help text.
12162         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12163         -mhard-float.
12164
12165 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12166
12167         * doc/options.texi (NegativeAlias): Document.
12168         (Alias): Mention NegativeAlias.
12169         * opt-functions.awk: Handle NegativeAlias.
12170         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
12171         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12172         * opts.h (CL_NEGATIVE_ALIAS): Define.
12173         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12174         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12175         OPT_mspe_.
12176         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12177         Alias entries.
12178         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12179         mno-spe and mno-isel instead of mspe=no and -misel=no.
12180
12181 2011-03-29  Mark Wielaard  <mjw@redhat.com>
12182
12183         * common.opt (fdebug-types-section): New flag.
12184         * doc/invoke.texi: Document new -fno-debug-types-section flag.
12185         * dwarf2out.c (use_debug_types): New define.
12186         (struct die_struct): Mark die_id with GTY desc use_debug_types.
12187         (print_die): Guard output of type unit signatures using
12188         use_debug_types.
12189         (build_abbrev_table): Replace assert of dwarf_version >= 4
12190         with assert on use_debug_types.
12191         (size_of_die): Likewise.
12192         (unmark_dies): Likewise.
12193         (value_format): Decide AT_ref_external form on use_debug_types.
12194         (output_die): Replace dwarf_version version check guard with
12195         use_debug_types where appropriate.
12196         (modified_type_die): Likewise.
12197         (gen_reference_type_die): Likewise.
12198         (dwarf2out_start_source_file): Likewise.
12199         (dwarf2out_end_source_file): Likewise.
12200         (prune_unused_types_walk_attribs): Likewise.
12201         (dwarf2out_finish): Likewise.
12202
12203 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
12204
12205         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12206
12207 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12208
12209         PR rtl-optimization/48332
12210         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12211         mode of input operand N and modeN to its actual mode.
12212
12213 2011-03-30  Jeff Law  <law@redhat.com>
12214
12215         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12216         define accessor macro.
12217         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12218         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12219         (reg_equiv_init): Likewise.
12220         (reg_equivs_size): New variable.
12221         (reg_equiv_init_size): Remove.
12222         (allocate_initial_values): Move prototype to here from....
12223         * integrate.h (allocate_initial_values): Remove prototype.
12224         * integrate.c: Include reload.h.
12225         (allocate_initial_values): Corresponding changes.
12226         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12227         (fix_reg_equiv_init, no_equiv): Corresponding changes.
12228         (update_equiv_regs): Corresponding changes.
12229         (ira): Corresponding changes.
12230         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12231         (push_secondary_reload): Corresponding changes.
12232         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12233         (make_memloc, find_reloads_address): Corresponding changes.
12234         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12235         (find_reloads_address_1): Corresponding changes.
12236         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12237         (refers_to_regno_for_reload_p): Corresponding changes.
12238         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12239         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12240         * reload1.c: Include ggc.h.
12241         (grow_reg_equivs): New function.
12242         (replace_pseudos_in, reload): Corresponding changes.
12243         (calculate_needs_all_insns, alter_regs): Corresponding changes.
12244         (eliminate_regs_1, elimination_effects): Corresponding changes.
12245         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12246         (delete_output_reload): Likewise.
12247         * caller-save.c (mark_referenced_regs): Corresponding changes.
12248         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12249         * frv/predicates.md (frv_load_operand): Corresponding changes.
12250         * microblaze/microblaze.c (double_memory_operand): Corresponding
12251         changes.
12252         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12253         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12254         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12255         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12256         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12257         changes.
12258         * pa/pa.c (emit_move_sequence): Corresponding changes.
12259         * vax/vax.c (nonindexed_address_p): Corresponding changes.
12260
12261 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12262
12263         PR target/47551
12264         * config/arm/arm.c (coproc_secondary_reload_class): Handle
12265         structure modes.  Don't check neon_vector_mem_operand for
12266         vector or structure modes.
12267
12268 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12269             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12270
12271         PR target/43590
12272         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12273         operand 1 and reshuffle the operands to match.
12274         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12275
12276 2011-03-30  Christian Schüler  <cschueler@gmx.de>
12277
12278         PR driver/48208
12279         * config/c.opt (F): Added 'Driver' to -F option.
12280
12281         PR driver/48260
12282         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12283           handler function.
12284         * config/darwin.opt: Added '-arch' option.
12285
12286 2011-03-30  Nick Clifton  <nickc@redhat.com>
12287
12288         * config/rx/rx.md: Add peepholes and patterns to combine
12289         extending loads and simple arithmetic instructions.
12290         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12291         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12292         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12293         modes to use pre-decrement and post-increment addressing.
12294         (rx_is_restricted_memory_address): Add range checking of REG+INT
12295         addresses.
12296         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
12297         (rx_memory_move_cost): Adjust cost of stores.
12298         (rx_adjust_insn_length): New function.
12299
12300 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
12301
12302         PR c/48305
12303         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12304         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12305         matching arg00/arg01 types.
12306
12307 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
12308
12309         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12310         last_location to UNKNOWN_LOCATION.
12311
12312 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
12313
12314         PR target/48349
12315         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12316         FLOAT_SSE_REGS.
12317
12318 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12319             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12320
12321         PR bootstrap/48337
12322         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12323         Init(PROCESSOR_V7).
12324         (sparc_cpu): Likewise.
12325         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12326         PROCESSOR_V7.
12327
12328 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12329
12330         PR target/48336
12331         PR middle-end/48342
12332         PR rtl-optimization/48345
12333         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12334         hard regs for given mode from profitable regs when doing secondary
12335         allocation.
12336
12337 2011-03-29  Jeff Law  <law@redhat.com>
12338
12339         PR bootstrap/48327
12340         * tree-ssa-threadupdate.c (struct redirection_data): Remove
12341         do_not_duplicate field.
12342         (lookup_redirection_data): Corresponding changes.
12343         (create_duplicates): Always create a template block.
12344         (redirect_edges): Remove code which reused the original block
12345         when it was going to become unreachable code.
12346         (thread_block): Don't set do_not_duplicate field.
12347
12348 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
12349
12350         * lto-opts.c (register_user_option_p, lto_register_user_option):
12351         Make type argument unsigned.
12352         * lto-streamer.h (lto_register_user_option): Make type argument
12353         unsigned.
12354         * opth-gen.awk: Make CL_* macros unsigned.
12355         * opts-common.c (find_opt): Make lang_mask argument unsigned.
12356         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12357         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12358         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12359         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12360         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12361         (find_opt): Make lang_mask argument unsigned.
12362
12363 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12364
12365         PR rtl-optimization/48331
12366         PR rtl-optimization/48334
12367         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12368         for any used algorithm.
12369
12370 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12371
12372         * ira-conflicts.c (build_object_conflicts): Add unused attribute
12373         to parent_max.
12374
12375 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
12376
12377         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12378         (alpha_option_override): Don't set alpha_sr_alias_set.
12379         (emit_frame_store_1): Use gen_frame_mem rather than calling
12380         set_mem_alias_set.
12381         (alpha_expand_epilogue): Ditto.
12382
12383 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
12384
12385         PR tree-optimization/48290
12386         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12387         vectorization, check that relevant phis in the basic block after
12388         the inner loop are really inner loop's exit phis.
12389
12390 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
12391
12392         PR debug/48190
12393         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12394         (cached_dw_loc_list_def): New structure.
12395         (cached_dw_loc_list): New typedef.
12396         (cached_dw_loc_list_table): New variable.
12397         (cached_dw_loc_list_table_hash): New function.
12398         (cached_dw_loc_list_table_eq): Likewise.
12399         (add_location_or_const_value_attribute): Take a bool cache_p.
12400         Cache the list when the parameter is true.
12401         (gen_formal_parameter_die): Update caller.
12402         (gen_variable_die): Likewise.
12403         (dwarf2out_finish): Likewise.
12404         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12405         while generating debug info for the decl.
12406         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12407         (dwarf2out_init): Initialize cached_dw_loc_list_table.
12408         (resolve_addr): Cache the result of resolving a chain of
12409         location lists.
12410
12411 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
12412
12413         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12414         conflict object hard regset nodes have intersecting hard reg sets.
12415
12416         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12417         after regstat_init_n_sets_and_refs.
12418
12419         * ira.c: Add more comments at the top.
12420         (setup_stack_reg_pressure_class, setup_pressure_classes):
12421         Add comments how we compute the register pressure classes.
12422         (setup_allocno_and_important_classes): Add more comments.
12423         (setup_class_translate_array, reorder_important_classes)
12424         (setup_reg_class_relations): Add comments.
12425
12426         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
12427         start of the file.
12428
12429         * ira-color.c: Add 2011 to the Copyright line.
12430         (assign_hard_reg):  Add more comments.
12431         (improve_allocation): Ditto.
12432
12433         * ira-costs.c: Add 2011 to the Copyright line.
12434         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12435         comments.
12436         (setup_regno_cost_classes_by_mode): Ditto.
12437
12438         Initial patches from ira-improv branch:
12439
12440         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12441
12442         * ira-build.c (ira_create_object): Remove initialization of
12443         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
12444         (ira_create_allocno): Remove initialization of
12445         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12446         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12447         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12448         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12449         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12450         Initialize ALLOCNO_ADD_DATA.
12451         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12452         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12453         ALLOCNO_REG.
12454         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
12455         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12456
12457         * ira.c (ira_reallocate): Remove.
12458         (setup_pressure_classes): Call
12459         ira_init_register_move_cost_if_necessary.  Use
12460         ira_register_move_cost instead of ira_get_register_move_cost.
12461         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12462         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12463
12464         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12465         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12466         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12467         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12468         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12469         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12470         Fix formatting.
12471         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12472         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12473         (struct allocno_color_data): New.
12474         (allocno_color_data_t): New typedef.
12475         (allocno_color_data): New definition.
12476         (ALLOCNO_COLOR_DATA): New macro.
12477         (struct object_color_data): New.
12478         (object_color_data_t): New typedef.
12479         (object_color_data): New definition.
12480         (OBJECT_COLOR_DATA): New macro.
12481         (update_copy_costs, calculate_allocno_spill_cost): Call
12482         ira_init_register_move_cost_if_necessary.  Use
12483         ira_register_move_cost instead of ira_get_register_move_cost.
12484         (move_spill_restore, update_curr_costs): Ditto.
12485         (allocno_spill_priority): Make it inline.
12486         (color_pass): Allocate and free allocno_color_dat and object_color_data.
12487         (struct coalesce_data, coalesce_data_t): New.
12488         (allocno_coalesce_data): New definition.
12489         (ALLOCNO_COALESCE_DATA): New macro.
12490         (merge_allocnos, coalesced_allocno_conflict_p): Use
12491         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12492         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12493         (coalesce_allocnos): Ditto.
12494         (setup_coalesced_allocno_costs_and_nums): Ditto.
12495         (collect_spilled_coalesced_allocnos): Ditto.
12496         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12497         (setup_slot_coalesced_allocno_live_ranges): Ditto.
12498         (coalesce_spill_slots): Ditto.
12499         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
12500         free allocno_coalesce_data.
12501
12502         * ira-conflicts.c: Fix formatting.
12503         (process_regs_for_copy): Call
12504         ira_init_register_move_cost_if_necessary.  Use
12505         ira_register_move_cost instead of ira_get_register_move_cost.
12506         (build_object_conflicts): Optimize.
12507
12508         * ira-costs.c (record_reg_classes): Optimize.  Call
12509         ira_init_register_move_cost_if_necessary.  Use
12510         ira_register_move_cost, ira_may_move_in_cost, and
12511         ira_may_move_out_cost instead of ira_get_register_move_cost and
12512         ira_get_may_move_cost.
12513         (record_address_regs): Ditto.
12514         (scan_one_insn): Optimize.
12515         (find_costs_and_classes): Optimize.
12516         (process_bb_node_for_hard_reg_moves): Call
12517         ira_init_register_move_cost_if_necessary.  Use
12518         ira_register_move_cost instead of ira_get_register_move_cost.
12519
12520         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12521         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12522         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12523         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12524         definitions.
12525         (ira_initiate_emit_data, ira_finish_emit_data)
12526         (create_new_allocno): New functions.
12527         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12528         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12529         Use ira_register_move_cost instead of ira_get_register_move_cost.
12530
12531         * ira-int.h: Fix some comments.
12532         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12533         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12534         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12535         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
12536         add_data.
12537         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
12538         bitfield after mode.  Make hard_regno a short int.  Make
12539         hard_regno short.  Remove first_coalesced_allocno and
12540         next_coalesced_allocno.  Move mem_optimized_dest_p,
12541         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12542         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
12543         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12544         temp, colorable_p.  Add new member add_data.
12545         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12546         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12547         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12548         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12549         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12550         (ALLOCNO_ADD_DATA): New macro.
12551         (ira_emit_data_t): New typedef.
12552         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
12553         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12554         from struct ira_allocno.
12555         (ALLOCNO_EMIT_DATA): New macro.
12556         (ira_allocno_emit_data, allocno_emit_reg): New.
12557         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12558         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12559         (OBJECT_ADD_DATA): New macro.
12560         (ira_reallocate): Remove.
12561         (ira_initiate_emit_data, ira_finish_emit_data): New.
12562         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12563         (ira_init_register_move_cost_if_necessary): New.
12564         (ira_object_conflict_iter_next): Merge into
12565         ira_object_conflict_iter_cond.
12566         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12567
12568         * ira-live.c (process_single_reg_class_operands): Call
12569         ira_init_register_move_cost_if_necessary.  Use
12570         ira_register_move_cost instead of ira_get_register_move_cost.
12571
12572         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12573
12574         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12575
12576         * ira-costs.c: Fix formatting.
12577         (cost_classes, cost_classes_num): Remove.
12578         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12579         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12580         (cost_classes_del, cost_classes_htab): New.
12581         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12582         (initiate_regno_cost_classes, setup_cost_classes): New.
12583         (setup_regno_cost_classes_by_aclass): New.
12584         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12585         (record_reg_classes): Use regno_cost_classes instead of
12586         cost_classes.  Move checking opposite operand up.
12587         (record_address_regs): Use regno_cost_classes
12588         instead of cost_classes.
12589         (scan_one_insn): Ditto.  Use always general register.
12590         (print_allocno_costs): Use regno_cost_classes instead of
12591         cost_classes.
12592         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
12593         (find_costs_and_classes): Set up cost classes for each registers.
12594         Use also their mode for this.  Use regno_cost_classes instead of
12595         cost_classes.
12596         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12597         cost_classes.
12598         (free_ira_costs, ira_init_costs): Don't use cost_classes.
12599         (ira_costs, ira_set_pseudo_classes): Call
12600         initiate_regno_cost_classes and finish_regno_cost_classes.
12601
12602         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
12603
12604         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12605
12606         * target.def (ira_cover_classes): Remove.
12607
12608         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12609
12610         * doc/tm.texi.in: Ditto.
12611
12612         * ira-conflicts.c: Remove mentioning cover classes from the file.
12613         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
12614         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
12615
12616         * targhooks.c (default_ira_cover_classes): Remove.
12617
12618         * targhooks.h (default_ira_cover_classes): Ditto.
12619
12620         * haifa-sched.c: Remove mentioning cover classes from the file.
12621         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12622         ira_pressure_classes and ira_pressure_classes_num instead of
12623         ira_reg_class_cover_size and ira_reg_class_cover.  Use
12624         sched_regno_pressure_class instead of sched_regno_cover_class.
12625         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12626         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12627
12628         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
12629         classes from the file.
12630         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12631         (struct object_hard_regs, struct object_hard_regs_node): New.
12632         (struct ira_object): New members profitable_hard_regs,
12633         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12634         (struct ira_allocno): Rename cover_class to aclass.  Rename
12635         cover_class_cost and updated_cover_class_cost to class_cost and
12636         updated_class_cost.  Remove splay_removed_p and
12637         left_conflict_size.  Add new members colorable_p.
12638         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12639         (ALLOCNO_COLORABLE_P): New macro.
12640         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12641         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12642         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12643         (OBJECT_...): Rename parameter C to O.
12644         (OBJECT_PROFITABLE_HARD_REGS): New macro.
12645         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12646         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12647         (struct target_ira_int): New members x_ira_max_memory_move_cost,
12648         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12649         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12650         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12651         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
12652         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
12653         x_ira_reg_class_subunion.
12654         (ira_max_memory_move_cost, ira_max_register_move_cost)
12655         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12656         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12657         (ira_important_class_nums, ira_reg_class_superunion): New macros.
12658         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12659         (ira_reg_class_union): Rename to ira_reg_class_subunion.
12660         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12661         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12662         (ira_tune_allocno_costs_and_cover_classes): Rename to
12663         ira_tune_allocno_costs.
12664         (ira_debug_hard_regs_forest): New.
12665         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12666         (ira_object_conflict_iter_next): Fix comments.
12667         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12668         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12669         cover_class to aclass.
12670         (ira_allocate_and_accumulate_costs): Ditto.
12671         (ira_allocate_and_set_or_copy_costs): Ditto.
12672
12673         * opts.c (decode_options): Remove ira_cover_class check.
12674
12675         * ira-color.c: Remove mentioning cover classes from the file.  Use
12676         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12677         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12678         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12679         (splay-tree.h): Remove include.
12680         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12681         before copy_freq_compare_func.
12682         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12683         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12684         New definitions.
12685         (hard_regs_roots, hard_regs_node_vec): Ditto.
12686         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12687         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12688         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12689         (create_new_object_hard_regs_node): Ditto.
12690         (add_new_object_hard_regs_node_to_forest): Ditto.
12691         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12692         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12693         Ditto.
12694         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12695         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12696         (remove_unused_object_hard_regs_nodes): Ditto.
12697         (enumerate_object_hard_regs_nodes): Ditto.
12698         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12699         (object_hard_regs_subnode_t): Ditto.
12700         (struct object_hard_regs_subnode): Ditto.
12701         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12702         (setup_object_hard_regs_subnode_index): Ditto.
12703         (get_object_hard_regs_subnodes_num): Ditto.
12704         (form_object_hard_regs_nodes_forest): Ditto.
12705         (finish_object_hard_regs_nodes_tree): Ditto.
12706         (finish_object_hard_regs_nodes_forest): Ditto.
12707         (allocnos_have_intersected_live_ranges_p): Rename to
12708         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12709         (pseudos_have_intersected_live_ranges_p): Rename to
12710         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12711         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12712         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12713         (update_copy_costs): Remove assert.  Skip cost update if the hard
12714         reg does not belong the class.
12715         (assign_hard_reg): Process only profitable hard regs.
12716         (uncolorable_allocnos_num): Make it scalar.
12717         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12718         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12719         and ira_reg_class_max_nregs.
12720         (bucket_allocno_compare_func): Check frequency first.
12721         (sort_bucket): Add compare function as a parameter.
12722         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12723         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12724         (push_allocno_to_stack): Rewrite for checking new allocno
12725         colorability.
12726         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
12727         (push_only_colorable): Pass new parameter to sort_bucket.
12728         (push_allocno_to_spill): Remove.
12729         (allocno_spill_priority_compare): Make it inline and rewrite.
12730         (splay_tree_allocate, splay_tree_free): Remove.
12731         (allocno_spill_sort_compare): New function.
12732         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
12733         build and use splay tree.  Choose first allocno in uncolorable
12734         allocno bucket to spill.  Remove setting spill cost.
12735         (all_conflicting_hard_regs): Remove.
12736         (setup_allocno_available_regs_num): Check only profitable hard
12737         regs.  Print info about hard regs nodes.
12738         (setup_allocno_left_conflicts_size): Remove.
12739         (put_allocno_into_bucket): Don't call
12740         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
12741         (improve_allocation): New.
12742         (color_allocnos): Call setup_profitable_hard_regs,
12743         form_object_hard_regs_nodes_forest, improve_allocation,
12744         finish_object_hard_regs_nodes_forest.  Setup spill cost.
12745         (print_loop_title): Use pressure classes.
12746         (color_allocnso): Ditto.
12747         (do_coloring): Remove allocation and freeing splay_tree_node_pool
12748         and allocnos_for_spilling.
12749         (ira_sort_regnos_for_alter_reg): Don't setup members
12750         {first,next}_coalesced_allocno.
12751         (color): Remove allocating and freeing removed_splay_allocno_vec.
12752         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12753         prohibited_class_mode_regs.
12754
12755         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
12756         formatting.
12757         (update_allocno_pressure_excess_length): Use pressure classes.
12758         (inc_register_pressure, dec_register_pressure): Check for pressure
12759         class.
12760         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12761         pressure class.  Use ira_reg_class_nregs instead of
12762         ira_reg_class_max_nregs.
12763         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12764         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12765         (single_reg_class): Use ira_reg_class_nregs instead of
12766         ira_reg_class_max_nregs.
12767         (process_bb_node_lives): Use pressure classes.
12768
12769         * ira-emit.c: Remove mentioning cover classes from the file.  Use
12770         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12771         (change_loop): Use pressure classes.
12772         (modify_move_list): Call ira_set_allocno_class instead of
12773         ira_set_allocno_cover_class.
12774
12775         * ira-build.c: Remove mentioning cover classes from the file.  Use
12776         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12777         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
12778         ALLOCNO_UPDATED_CLASS_COST instead of
12779         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12780         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12781         (ira_create_allocno): Remove initialization of
12782         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
12783         ALLOCNO_COLORABLE_P.
12784         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12785         Update conflict regs for the objects.
12786         (create_cap_allocno): Remove assert.  Don't propagate
12787         ALLOCNO_AVAILABLE_REGS_NUM.
12788         (ira_free_allocno_costs): New function.
12789         (finish_allocno): Change a part of code into call of
12790         ira_free_allocno_costs.
12791         (low_pressure_loop_node_p): Use pressure classes.
12792         (object_range_compare_func): Don't compare classes.
12793         (setup_min_max_conflict_allocno_ids): Ditto.
12794
12795         * loop-invariant.c: Remove mentioning cover classes from the file.
12796         Use ira_pressure_classes and ira_pressure_classes_num instead of
12797         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
12798         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12799         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12800         Use reg_allocno_class instead of reg_cover_class.
12801         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12802         STACK_REG_COVER_CLASS.
12803         (get_regno_cover_class): Rename to get_regno_pressure_class.
12804         (move_loop_invariants): Initialize and finalize regstat.
12805
12806         * ira.c: Remove mentioning cover classes from the file.  Add
12807         comments about coloring without cover classes.  Use ALLOCNO_CLASS
12808         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12809         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12810         setup_class_subset_and_memory_move_costs.
12811         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12812         (setup_cover_and_important_classes): Rename to
12813         setup_allocno_and_important_classes.
12814         (setup_class_translate_array): New.
12815         (setup_class_translate): Call it for allocno and pressure classes.
12816         (cover_class_order): Rename to allocno_class_order.
12817         (comp_reg_classes_func): Use ira_allocno_class_translate instead
12818         of ira_class_translate.
12819         (reorder_important_classes): Set up ira_important_class_nums.
12820         (setup_reg_class_relations): Set up ira_reg_class_superunion.
12821         (print_class_cover): Rename to print_classes.  Add parameter.
12822         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12823         Print pressure classes too.
12824         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
12825         setup_reg_subclasses.
12826         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12827         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12828         (setup_prohibited_class_mode_regs): Use
12829         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12830         (clarify_prohibited_class_mode_regs): New function.
12831         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12832         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12833         (ira_init_once): Initialize them.
12834         (free_register_move_costs): Process them.
12835         (ira_init): Move calls of find_reg_classes and
12836         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12837         Call clarify_prohibited_class_mode_regs.
12838         (ira_no_alloc_reg): Remove.
12839         (too_high_register_pressure_p): Use pressure classes.
12840
12841         * sched-deps.c: Remove mentioning cover classes from the file.
12842         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12843         ira_pressure_classes and ira_pressure_classes_num instead of
12844         ira_reg_class_cover_size and ira_reg_class_cover.
12845         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12846         sched_regno_pressure_class instead of sched_regno_cover_class.
12847         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
12848         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12849
12850         * ira.h: Add 2010 to Copyright.
12851         (ira_no_alloc_reg): Remove external.
12852         (struct target_ira): Rename x_ira_hard_regno_cover_class,
12853         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12854         x_ira_class_translate to x_ira_hard_regno_allocno_class,
12855         x_ira_allocno_classes_num, x_ira_allocno_classes, and
12856         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
12857         x_ira_pressure_classes, x_ira_pressure_class_translate, and
12858         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
12859         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
12860         x_ira_no_alloc_regs.
12861         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12862         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12863         ira_allocno_classes_num and ira_allocno_classes.
12864         (ira_class_translate): Rename to ira_allocno_class_translate.
12865         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12866         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12867         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12868         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12869         (ira_no_alloc_regs): New.
12870
12871         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
12872         classes from the file.  Use ALLOCNO_CLASS instead of
12873         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
12874         ALLOCNO_COVER_CLASS_COST.
12875         (regno_cover_class): Rename to regno_aclass.
12876         (record_reg_classes): Use ira_reg_class_subunion instead of
12877         ira_reg_class_union.
12878         (record_address_regs): Check overflow.
12879         (scan_one_insn): Ditto.
12880         (print_allocno_costs): Print total mem cost fore regional allocation.
12881         (print_pseudo_costs): Use REG_N_REFS.
12882         (find_costs_and_classes): Use classes intersected with them on the
12883         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
12884         ira_reg_class_union.  Use ira_allocno_class_translate and
12885         regno_aclass instead of ira_class_translate and regno_cover_class.
12886         Modify code for finding regno_aclass.  Setup preferred classes for
12887         the next pass.
12888         (setup_allocno_cover_class_and_costs): Rename to
12889         setup_allocno_class_and_costs.  Use regno_aclass instead of
12890         regno_cover_class.  Use ira_set_allocno_class instead of
12891         ira_set_allocno_cover_class.
12892         (init_costs, finish_costs): Use regno_aclass instead of
12893         regno_cover_class.
12894         (ira_costs): Use setup_allocno_class_and_costs instead of
12895         setup_allocno_cover_class_and_costs.
12896         (ira_tune_allocno_costs_and_cover_classes): Rename to
12897         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
12898         by processing objects.  Use ira_reg_class_max_nregs instead of
12899         ira_reg_class_nregs.
12900
12901         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12902
12903         * sched-int.h: Remove mentioning cover classes from the file.
12904         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12905
12906         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
12907         classes from the file.
12908         (struct reg_pref): Rename coverclass into allocnoclass.
12909         (reg_cover_class): Rename to reg_allocno_class.
12910
12911         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12912
12913         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12914
12915         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12916
12917         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12918
12919         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12920
12921         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12922
12923         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12924
12925         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12926
12927         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12928
12929         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12930
12931         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12932         (i386_ira_cover_classes): Ditto.
12933
12934         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12935
12936         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12937
12938         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12939
12940         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12941
12942         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12943
12944         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12945
12946         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12947         (mips_ira_cover_classes): Ditto.
12948
12949         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12950
12951         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12952
12953         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12954
12955         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12956
12957         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12958
12959         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12960         (IRA_COVER_CLASSES_VSX): Ditto.
12961
12962         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12963         (rs6000_ira_cover_classes): Ditto.
12964
12965         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12966
12967         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12968
12969         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12970
12971         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12972
12973         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12974
12975         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12976
12977         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12978
12979         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12980
12981         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12982
12983         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12984
12985 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
12986
12987         PR debug/48253
12988         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12989         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12990         dw_fde_unlikely_section_end_label, cold_in_std_section,
12991         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12992         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12993         fields.
12994         (output_fde): Use dw_fde_second_{begin,end} if second is
12995         true, otherwise dw_fde_{begin,end}.
12996         (output_call_frame_info): Test dw_fde_second_begin != NULL
12997         instead of dw_fde_switched_sections.
12998         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12999         fields, initialize new fields.  Initialize in_std_section
13000         unconditionally from the first partition.
13001         (dwarf2out_end_epilogue): Don't override dw_fde_end when
13002         dw_fde_second_begin is non-NULL.
13003         (dwarf2out_switch_text_section): Stop initializing removed
13004         dw_fde_struct fields, initialize new fields, initialize
13005         also dw_fde_end here.  Set dw_fde_switch_cfi even when
13006         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
13007         (struct var_loc_list_def): Add last_before_switch field.
13008         (arange_table, arange_table_allocated, arange_table_in_use,
13009         ARANGE_TABLE_INCREMENT, add_arange): Removed.
13010         (size_of_aranges): Count !in_std_section and !second_in_std_section
13011         hunks in fdes, instead of looking at arange_table_in_use.
13012         (output_aranges): Add aranges_length argument, don't call
13013         size_of_aranges here.  Instead of using aranges_table*
13014         emit ranges for fdes when !in_std_section resp.
13015         !second_in_std_section.
13016         (dw_loc_list): Break ranges crossing section switch.
13017         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
13018         use dw_fde_second_end instead of dw_fde_end as end of last range.
13019         (gen_subprogram_die): Don't call add_arange.  Use
13020         dw_fde_{begin,end} for first partition and if switched
13021         section dw_fde_second_{begin,end} for the second.
13022         (var_location_switch_text_section_1,
13023         var_location_switch_text_section): New functions.
13024         (dwarf2out_begin_function): Initialize cold_text_section even
13025         when function_section () isn't text_section.
13026         (prune_unused_types): Don't walk arange_table.
13027         (dwarf2out_finish): Don't needlessly test
13028         flag_reorder_blocks_and_partition when testing cold_text_section_used.
13029         If info_section_emitted, call size_of_aranges and if it indicates
13030         non-empty .debug_aranges, call output_aranges with the computed
13031         size.  Stop using removed dw_fde_struct fields, use
13032         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13033         for second.
13034
13035         PR debug/48203
13036         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13037         create ENTRY_VALUE if incoming or address of incoming's MEM
13038         is a hard REG.
13039         * dwarf2out.c (mem_loc_descriptor): Don't emit
13040         DW_OP_GNU_entry_value of DW_OP_fbreg.
13041         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13042         on ENTRY_VALUE is able to find the canonical parameter VALUE.
13043         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13044         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13045         ENTRY_VALUE_EXPs.
13046         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13047         is a REG_P or MEM_P with REG_P address, compute hash directly
13048         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13049         (preserve_only_constants): Don't clear VALUES forwaring
13050         ENTRY_VALUE to some other VALUE.
13051
13052 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
13053
13054         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13055         instead of GEN_INT.
13056
13057 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
13058
13059         * cfgexpand.c (expand_gimple_cond): Always set the source location and
13060         block before expanding the statement.
13061         (expand_gimple_stmt_1): Likewise.  Set them here...
13062         (expand_gimple_stmt): ...and not here.  Tidy.
13063         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13064         unknown.
13065
13066 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
13067
13068         * Makefile.in: New rule for cprop.o.
13069         * gcse.c: Move constant/copy propagation to cprop.c.
13070         (compute_local_properties): Only handle expression tables.
13071         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13072         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13073         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13074         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13075         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13076         compute_cprop_data, find_used_regs, try_replace_reg,
13077         find_avail_set, cprop_jump, constprop_register, cprop_insn,
13078         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13079         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13080         find_bypass_set, reg_killed_on_edge, bypass_block,
13081         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13082         execute_rtl_cprop, pass_rtl_cprop): Move to...
13083         * cprop.c: ...here.  New file, constant/copy propagation for RTL
13084         moved from gcse.c to here with minor cleanups in duplicated code.
13085
13086 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
13087
13088         * config/i386/i386.c (flag_opts): Fix a typo in
13089         -mavx256-split-unaligned-store.
13090
13091 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
13092
13093         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13094         LIBCALL_VALUE): Remove macros.
13095         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13096         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13097         (h8300_function_value, h8300_libcall_value,
13098         h8300_function_value_regno_p): New functions.
13099
13100 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
13101
13102         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13103
13104 2011-03-28  Jeff Law  <law@redhat.com>
13105
13106         * tree-ssa-threadupdate.c (redirect_edges): Call
13107         create_edge_and_update_destination_phis as needed.
13108         (create_edge_and_update_destination_phis): Accept new BB argument.
13109         All callers updated.
13110         (thread_block): Do not update the profile when threading around
13111         intermediate blocks.
13112         (thread_single_edge): Likewise.
13113         (determine_bb_domination_status): If BB is not a successor of the
13114         loop header, return NONDOMINATING.
13115         (register_jump_thread): Note when we register a jump thread around
13116         an intermediate block.
13117         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13118         (thread_across_edge): Use it.
13119
13120 2011-03-28  Tristan Gingold  <gingold@adacore.com>
13121
13122         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13123         when for_return is 2.
13124
13125 2011-03-28  Jeff Law  <law@redhat.com>
13126
13127         * var-tracking.c (canonicalize_values_mark): Delete unused
13128         lhs assignment.
13129         (canonicalize_values_star, set_variable_part): Likewise.
13130         (clobber_variable_part, delete_variable_part): Likewise.
13131
13132 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
13133
13134         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13135
13136 2011-03-28  Martin Jambor  <mjambor@suse.cz>
13137
13138         * tree-inline.c (expand_call_inline): Do not check that destination
13139         node is analyzed.
13140         (optimize_inline_calls): Assert that destination node is analyzed.
13141         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13142         not call tree_lowering_passes.
13143         * cgraph.h (cgraph_analyze_function): Declare.
13144         * cgraphunit.c (cgraph_analyze_function): Make public.
13145
13146 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
13147
13148         * config/sparc/sparc-opts.h: New.
13149         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13150         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13151         (sparc_option_override): Store processor_type enumeration rather
13152         than string in cpu_default.  Remove name and enumeration from
13153         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
13154         without using sparc_select.  Use target_flags_explicit instead of
13155         fpu_option_set.
13156         * config/sparc/sparc.h (enum processor_type): Move to
13157         sparc-opts.h.
13158         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13159         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13160         HeaderInclude entry.
13161         (mcpu=, mtune=): Use Var and Enum.
13162         (sparc_processor_type): New Enum and EnumValue entries.
13163
13164 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13165             Iain Sandoe  <iains@gcc.gnu.org>
13166
13167         PR target/48245
13168         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13169
13170 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
13171
13172         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13173         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13174         Insert new statements at it in lieu of STMT.
13175         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13176         * tree-vect-stmts.c (vectorizable_store): Likewise.
13177         (vectorizable_load): Likewise.
13178
13179 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
13180
13181         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13182         (divtf3): Ditto.
13183         (multf3): Ditto.
13184         (subtf3): Ditto.
13185
13186 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
13187
13188         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13189         unaligned 256bit load/store.
13190         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13191         (*avx_movdqu<avxmodesuffix>): Likewise.
13192
13193 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13194
13195         PR target/48288
13196         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13197         * config/pa/pa.md (iordi3): Use new predicate in expander.
13198         (iorsi3): Likewise.
13199
13200 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
13201
13202         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13203         FUNCTION_VALUE_REGNO_P): Remove macros.
13204         * config/mips/mips-protos.h (mips_function_value): Remove.
13205         * config/mips/mips.c (mips_function_value): Rename to...
13206         (mips_function_value_1): ... this. Make static.  Handle receiving
13207         the function type in 'fn_decl_or_type' argument.
13208         (mips_function_value, mips_libcall_value,
13209         mips_function_value_regno_p): New function.
13210         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13211         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13212
13213 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
13214
13215         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13216         and -mavx256-split-unaligned-store.
13217         (ix86_option_override_internal): Split 32-byte AVX unaligned
13218         load/store by default.
13219         (ix86_avx256_split_vector_move_misalign): New.
13220         (ix86_expand_vector_move_misalign): Use it.
13221
13222         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13223         -mavx256-split-unaligned-store.
13224
13225         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13226         256bit load/store.  Generate unaligned store on misaligned memory
13227         operand.
13228         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13229         256bit load/store.
13230         (*avx_movdqu<avxmodesuffix>): Likewise.
13231
13232         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13233         -mavx256-split-unaligned-store.
13234
13235 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
13236
13237         PR target/38598
13238         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13239         Update commentary.
13240
13241 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
13242
13243         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13244         opno arguments with an expand_operand.  Use create_input_operand.
13245         (mips_prepare_builtin_target): Delete.
13246         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13247         functions.
13248         (mips_expand_builtin_direct): Use create_output_operand and
13249         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
13250         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
13251         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13252
13253 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
13254
13255         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13256         function.
13257         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13258
13259 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
13260
13261         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13262         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
13263         basic blocks and call commit_edge_insertions directly.
13264         (fixup_abnormal_edges): Move from here to...
13265         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
13266         on the edges and return whether some have actually been inserted.
13267         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13268         compensation code.
13269
13270 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
13271
13272         PR rtl-optimization/48144
13273         * sel-sched-ir.c (merge_history_vect): Factor out from ...
13274         (merge_expr_data): ... here.
13275         (av_set_intersect): Rename to av_set_code_motion_filter.
13276         Update all callers.  Call merge_history_vect when an expression
13277         is found in both sets.
13278         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13279
13280 2011-03-26  Alan Modra  <amodra@gmail.com>
13281
13282         * config/rs6000/predicates.md (word_offset_memref_op): Handle
13283         cmodel medium addresses.
13284         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13285         64-bit gpr loads and stores.
13286         (rs6000_secondary_reload_ppc64): New function.
13287         * config/rs6000/rs6000-protos.h: Declare it.
13288         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13289
13290 2011-03-26  Alan Modra  <amodra@gmail.com>
13291
13292         PR target/47487
13293         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13294         GNU Go in traceback table.
13295
13296 2011-03-25  Richard Henderson  <rth@redhat.com>
13297
13298         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13299         if there are exactly 6 operands.
13300         (set_storage_via_setmem): Similarly.
13301
13302 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13303
13304         * collect2.c (write_c_file_stat): Handle backslash
13305         as right-hand directory separator.
13306         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13307         checking just for slash.
13308         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13309         instead of checking for trailing slash.
13310         * gcc.c (record_temp_file): Use filename_cmp instead
13311         of strcmp.
13312         (do_spec_1): Likewise.
13313         (replace_outfile_spec_function): Likewise.
13314         (is_directory): Use filename_ncmp instead of strncmp.
13315         (print_multilib_info): Likewise.
13316         * gcov.c (find_source): Use filename_cmp instead
13317         instead of strcmp.
13318         (make_gcov_file_name): Fix order of slash/backslash
13319         checks.
13320         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13321         (add_standard_paths): Likewise.
13322         * mips-tfile.c (saber_stop): Handle backslash.
13323         * prefix.c (update_path): Use filename_ncmp instead of
13324         strncmp.
13325         * profile.c (output_location): Use filename_cmp instead
13326         of strcmp.
13327         * read-md.c (handle_toplevel_file): Handle backslash.
13328         * tlink.c (frob_extension):  Likewise.
13329         * tree-cfg.c (same_line_p): Use filename_cmp instead of
13330         strcmp.
13331         * tree-dump.c (dequeue_and_dump): Handle backslash.
13332         * tree.c (get_file_function_name): Likewise.
13333         * gengtype.c (read_input_list): Likewise.
13334         (get_file_realbasename): Likewise.
13335         (get_output_file_with_visibility): Use filename_cmp
13336         instead of strcmp.
13337
13338 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
13339
13340         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13341         case to VFPv1.
13342
13343 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13344
13345         * fold-const.c (expr_location_or): New function.
13346         (fold_truth_not_expr): Call it.
13347
13348 2011-03-25  Jeff Law  <law@redhat.com>
13349
13350         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13351         va_end.
13352         * c-family/c-common.c (def_fn_type): Likewise.
13353         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13354         * emit-rtl.c (gen_rtvec): Likewise.
13355         * lto/lto-lang.c (def_fn_type): Likewise.
13356
13357 2011-03-25  Richard Guenther  <rguenther@suse.de>
13358
13359         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13360         also generate copies.
13361         (fini_copy_prop): Handle constant values properly.
13362
13363 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
13364
13365         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13366         mode size instead of bitsize with DWARF2_ADDR_SIZE.
13367         (hash_loc_operands, compare_loc_operands): Handle
13368         DW_OP_GNU_entry_value.
13369
13370 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13371
13372         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13373         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13374         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13375         comment and use macro TARGET_64BIT_MS_ABI instead.
13376         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13377         and change default behavior for 32-bit MS_ABI.
13378         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13379         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13380         32-bit, too.
13381         (ix86_cfun_abi): Likewise.
13382         (ix86_maybe_switch_abi): Adjust comment.
13383         (init_cumulative_args): Check for bit-ness in MS_ABI case.
13384         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13385         instead of checking for SYSV_ABI.
13386         (ix86_nsaved_sseregs): Likewise.
13387         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13388         to 16 bytes.
13389         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13390         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13391         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13392         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13393         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13394
13395 2011-03-25  Richard Guenther  <rguenther@suse.de>
13396
13397         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13398         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13399         (verify_gimple): Remove.
13400         * tree-cfg.c (verify_gimple_call): Merge verification
13401         from verify_stmts.
13402         (verify_gimple_phi): Merge verification from verify_stmts.
13403         (verify_gimple_label): New function.
13404         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13405         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13406         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13407         (verify_stmts): Rename to verify_gimple_in_cfg.
13408         (verify_gimple_in_cfg): New function.
13409         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13410         * tree-ssa.c (verify_ssa): Likewise.
13411         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13412
13413 2011-03-25  Richard Guenther  <rguenther@suse.de>
13414
13415         * passes.c (init_optimization_passes): Add FRE pass after
13416         early SRA.
13417
13418 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
13419             Andrew Stubbs  <ams@codesourcery.com>
13420
13421         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13422         for Cortex-A8.
13423         (arm_movdi_vfp_cortexa8): New pattern.
13424         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13425         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13426         instructions when tuning for Cortex-A8.  Set attribute "arch".
13427         * config/arm/arm.md: Move include arm-tune.md up a bit.
13428         (define_attr "arch"): Add "onlya8" and "nota8" values.
13429         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13430
13431 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13432
13433         PR bootstrap/48282
13434         Revert:
13435         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13436
13437         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13438         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13439         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13440         * passes.c (init_optimization_passes): Move
13441         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13442
13443 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13444
13445         * c-typeck.c (comptypes_internal): Replace target
13446         hook call of comp_type_attributes by version in tree.c file.
13447         * gimple.c (gimple_types_compatible_p_1): Likewise.
13448         * tree-ssa.c (useless_type_conversion_p): Likewise.
13449         * tree.c (build_type_attribute_qual_variant): Likewise.
13450         (attribute_value_equal): New static helper function.
13451         (comp_type_attributes): New function.
13452         (merge_attributes): Use attribute_value_equal for comparison.
13453         (attribute_list_contained): Likewise.
13454         * tree.h (comp_type_attributes): New prototype.
13455
13456 2011-03-25  Richard Guenther  <rguenther@suse.de>
13457
13458         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13459         of complex types at -O0.
13460         (verify_gimple_assign_binary): Likewise.
13461         (verify_gimple_assign_ternary): Likewise.
13462
13463 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13464
13465         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13466         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13467
13468 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13469
13470         PR debug/48041
13471         * dwarf2out.c (output_abbrev_section): Only write table when
13472         abbrev_die_table_in_use > 1.
13473
13474 2011-02-24  Richard Henderson  <rth@redhat.com>
13475
13476         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13477         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13478         (alpha_expand_unaligned_load_words): Use extql.
13479         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13480         (emit_insxl): Handle all modes for consistency.
13481
13482 2011-02-24  Richard Henderson  <rth@redhat.com>
13483
13484         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13485         (alpha_expand_unaligned_load): Likewise.
13486         (alpha_expand_unaligned_store): Likewise.
13487         (alpha_expand_unaligned_load_words): Likewise.
13488         (alpha_expand_unaligned_store_words): Likewise.
13489         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13490         (alpha_split_lock_test_and_set_12): Likewise.
13491         (print_operand, alpha_fold_builtin_extxx): Likewise.
13492         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13493         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13494         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13495         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13496         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13497         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13498         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13499         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13500         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13501         (extwl, extll, extql): Similarly.
13502         (inswh, inslh, insqh): Similarly.
13503         (mskbl, mskwl, mskll, mskql): Similarly.
13504         (mskwh, msklh, mskqh): Similarly.
13505
13506 2011-02-24  Richard Henderson  <rth@redhat.com>
13507
13508         * config/alpha/alpha.md (attribute isa): Add er, ner.
13509         (attribute enabled): Handle them.
13510         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13511
13512 2011-02-24  Richard Henderson  <rth@redhat.com>
13513
13514         * config/alpha/alpha.md (attribute isa): Add vms.
13515         (attribute enabled): Handle it.
13516         (*movsf): Merge *movsf_{nofix,fix,nofp}.
13517         (*movdf): Merge *movdf_{nofix,fix,nofp}.
13518         (*movtf): Rename from *movtf_internal for consistency.
13519         (*movsi): Merge with *movsi_nt_vms.
13520         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13521         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13522         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13523         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13524
13525 2011-02-24  Richard Henderson  <rth@redhat.com>
13526
13527         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13528         (extendqisi2, extendhisi2): Likewise.
13529         (extendqidi2): Simplify BWX/non-BWX expansions.
13530         (extendhidi2): Similarly.
13531
13532 2011-02-24  Richard Henderson  <rth@redhat.com>
13533
13534         * config/alpha/alpha.md (attribute isa): New.
13535         (attribute enabled): New.
13536         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13537         (zero_extendqisi2, zero_extendqidi2): Similarly.
13538         (zero_extendhisi2, zero_extendhidi2): Similarly.
13539         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13540
13541 2011-02-24  Richard Henderson  <rth@redhat.com>
13542
13543         * config/alpha/predicates.md (input_operand): Revert last change;
13544         update comment to mention 32-bit VMS rather than Windows.
13545
13546 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13547
13548         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13549         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13550         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13551         * passes.c (init_optimization_passes): Move
13552         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13553
13554 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13555
13556         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13557
13558 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13559
13560         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13561         correctly.
13562
13563 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
13564
13565         PR debug/48204
13566         * simplify-rtx.c (simplify_const_unary_operation): Call
13567         real_convert when changing mode class with FLOAT_EXTEND.
13568
13569 2011-03-24  Nick Clifton  <nickc@redhat.com>
13570
13571         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13572         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13573         * config/rx/rx.c (rx_option_override): Set align_jumps,
13574         align_loops and align_labels if not set by the user.
13575         (rx_align_for_label): New function.
13576         (rx_max_skip_for_label): New function.
13577         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13578         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13579         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13580         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13581         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13582
13583 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13584
13585         PR rtl-optimization/48263
13586         * optabs.c (expand_binop_directly): Reinstate convert_modes code
13587         and original commutative_p handling.  Use maybe_gen_insn.
13588
13589 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13590
13591         * reload.c (find_reloads_subreg_address): Add address_reloaded
13592         parameter and return true there if the full address has been
13593         reloaded.
13594         (find_reloads_toplev): Pass address_reloaded flag.
13595         (find_reloads_address_1): Don't use address_reloaded parameter.
13596
13597 2011-03-24  Jeff Law  <law@redhat.com>
13598
13599         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13600         unused variable "ann".
13601         (remove_unused_locals): Likewise.
13602
13603         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13604         statement.
13605
13606         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13607         after it is freed.
13608
13609 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13610
13611         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13612         for invalid symbolic addresses.
13613         (s390_secondary_reload): Don't use s390_check_symref_alignment for
13614         larl operands.
13615
13616 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13617
13618         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13619         the argument in calls to fold_truth_not_expr.
13620
13621 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13622
13623         * tree.c (record_node_allocation_statistics): New function.
13624         (make_node_stat, copy_node_stat, build_string): Call it.
13625         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13626         (build1_stat, build_omp_clause): Likewise.
13627
13628 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13629
13630         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13631         last commit.
13632
13633 2011-03-24  Richard Guenther  <rguenther@suse.de>
13634
13635         PR tree-optimization/48271
13636         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13637         blocks that still exist.
13638
13639 2011-03-24  Richard Guenther  <rguenther@suse.de>
13640
13641         PR tree-optimization/48270
13642         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13643         not free datarefs before ddrs.
13644
13645 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13646
13647         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13648         from the address built for a reference with variable offset.
13649
13650 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13651
13652         PR target/48237
13653         * config/i386/i386.md (*movdf_internal_rex64): Do not split
13654         alternatives that can be handled with movq or movabsq insn.
13655         (*movdf_internal): Disable for !TARGET_64BIT.
13656         (*movdf_internal_nointeger): Ditto.
13657         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13658
13659 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13660
13661         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13662         (FUNCTION_ARG_ADVANCE): Likewise.
13663         * tm.texi.in: Change references to them to hook references.
13664         * tm.texi: Regenerate.
13665         * targhooks.c (default_function_arg): Eliminate check for target macro.
13666         (default_function_incoming_arg): Likewise.
13667         (default_function_arg_advance): Likewise.
13668         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13669         (function_arg_advance): Likewise.
13670         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13671
13672 2011-03-24  Richard Guenther  <rguenther@suse.de>
13673
13674         PR middle-end/48269
13675         * tree-object-size.c (addr_object_size): Do not double-account
13676         for MEM_REF offsets.
13677
13678 2011-03-24  Diego Novillo  <dnovillo@google.com>
13679
13680         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13681         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13682         (lto_input_data_block): Move from lto-opts.c.  Make extern.
13683         Update all users.
13684         (lto_input_string): Rename from input_string.  Make extern.
13685         Update all users.
13686         * lto-streamer-out.c (lto_output_string_with_length): Rename from
13687         output_string_with_length.
13688         Output 0 to indicate a non-NULL string.  Update all callers to
13689         not emit 0.
13690         (lto_output_string): Rename from output_string.  Make extern.
13691         Update all users.
13692         (lto_output_decl_state_streams): Make extern.
13693         (lto_output_decl_state_refs): Make extern.
13694         * lto-streamer.h (lto_input_string): Declare.
13695         (lto_input_data_block): Declare.
13696         (lto_output_string): Declare.
13697         (lto_output_string_with_length): Declare.
13698         (lto_output_decl_state_streams): Declare.
13699         (lto_output_decl_state_refs): Declare.
13700
13701 2011-03-24  Richard Guenther  <rguenther@suse.de>
13702
13703         PR tree-optimization/46562
13704         * tree.c (build_invariant_address): New function.
13705         * tree.h (build_invariant_address): Declare.
13706         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13707         a renamed function moved ...
13708         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13709         Take valueization callback parameter.
13710         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13711         * gimple-fold.h: New file.
13712         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13713         (ccp_fold, fold_const_aggregate_ref,
13714         fold_ctor_reference, fold_nonarray_ctor_reference,
13715         fold_array_ctor_reference, fold_string_cst_ctor_reference,
13716         get_base_constructor): Move ...
13717         * gimple-fold.c: ... here.
13718         (gimple_fold_stmt_to_constant_1): New function
13719         split out from ccp_fold.  Take a valueization callback parameter.
13720         Valueize all operands.
13721         (gimple_fold_stmt_to_constant): New wrapper function.
13722         (fold_const_aggregate_ref_1): New function split out from
13723         fold_const_aggregate_ref.  Take a valueization callback parameter.
13724         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13725         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13726         invariant POINTER_PLUS_EXPRs to invariant form.
13727         (vn_valueize): New function.
13728         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13729         * tree-vrp.c (vrp_valueize): New function.
13730         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13731         to fold statements to constants.
13732         * tree-ssa-pre.c (eliminate): Properly guard propagation of
13733         function declarations.
13734         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13735         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13736
13737 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13738
13739         * config/h8300/predicates.md (jump_address_operand): Fix register
13740         mode check.
13741
13742 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
13743
13744         * doc/invoke.texi (max-stores-to-sink): Document.
13745         * params.h (MAX_STORES_TO_SINK): Define.
13746         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13747         if either vectorization or if-conversion is disabled.
13748         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13749         tree-vect-data-refs.c vect_equal_offsets.
13750         (dr_equal_offsets_p): New function.
13751         (find_data_references_in_bb): Remove static.
13752         * tree-data-ref.h (find_data_references_in_bb): Declare.
13753         (dr_equal_offsets_p): Likewise.
13754         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13755         (vect_drs_dependent_in_basic_block): Update calls to
13756         vect_equal_offsets.
13757         (vect_check_interleaving): Likewise.
13758         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13759         (cond_if_else_store_replacement): Rename to...
13760         (cond_if_else_store_replacement_1): ... this.  Change arguments and
13761         documentation.
13762         (cond_if_else_store_replacement): New function.
13763         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13764         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13765
13766 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
13767
13768         PR target/46934
13769         * config/arm/arm.md (casesi): Use the gen_int_mode() function
13770         to subtract lower bound instead of GEN_INT().
13771
13772 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
13773
13774         PR other/48179
13775         PR other/48221
13776         PR other/48234
13777         * doc/extend.texi (Alignment): Move section to match order in TOC.
13778         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13779         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13780
13781 2011-03-23  Jeff Law  <law@redhat.com>
13782
13783         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13784         before removing the edge.
13785
13786         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13787         it may have been freed by redirect_branch_edge or
13788         redirect_edge_succ_nodup.
13789
13790 2011-03-23  Richard Guenther  <rguenther@suse.de>
13791
13792         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13793         (check_va_list_escapes): Likewise.
13794         (check_all_va_list_escapes): Likewise.
13795
13796 2011-03-23  Richard Guenther  <rguenther@suse.de>
13797
13798         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13799         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13800         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13801         (alias.o): Likewise.
13802         (ipa-type-escape.o): Remove.
13803         (ipa-struct-reorg.o): Likewise.
13804         (GTFILES): Remove ipa-struct-reorg.c.
13805         * alias.c: Do not include ipa-type-escape.h.
13806         * tree-ssa-alias.c: Likewise.
13807         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13808         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13809         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13810         and ipa-type-escape passes.
13811         * tree-pass.h (pass_ipa_type_escape): Remove.
13812         (pass_ipa_struct_reorg): Likewise.
13813         * ipa-struct-reorg.h: Remove.
13814         * ipa-struct-reorg.c: Likewise.
13815         * ipa-type-escape.h: Likewise.
13816         * ipa-type-escape.c: Likewise.
13817         * doc/invoke.texi (-fipa-struct-reorg): Remove.
13818         (--param struct-reorg-cold-struct-ratio): Likewise.
13819         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13820         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13821         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13822
13823 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13824
13825         * config/s390/2084.md: Enable all insn reservations also for z9_ec
13826         cpu attribute value.
13827         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13828         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13829         * config/s390/s390.c (processor_flags_table): New constant array.
13830         (s390_handle_arch_option): Remove.
13831         (s390_handle_option): Remove s390_handle_arch_option invocations
13832         and OPT_mwarn_framesize_ handling.
13833         (s390_option_override): Remove s390_handle_arch_option invocation.
13834         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13835         warnings.
13836         * config/s390/s390.md (cpu attribute): Add z9_ec value.
13837         * config/s390/s390.opt (s390_tune, s390_arch)
13838         (march=): Replace s390_arch_option enum and values with
13839         processor_type.  Set variable name to s390_arch.  Set
13840         initialization value.
13841         (mtune=): Replace s390_arch_option with processor_type.  Set
13842         variable name to s390_tune.  Set initialization value.
13843
13844 2011-03-23  Julian Brown  <julian@codesourcery.com>
13845
13846         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13847         accesses which are not naturally aligned.
13848
13849 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13850
13851         PR target/47553
13852         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13853
13854 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13855
13856         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13857         parameter from "int" to "enum insn_code".
13858         (expand_operand_type): New enum.
13859         (expand_operand): New structure.
13860         (create_expand_operand): New function.
13861         (create_fixed_operand, create_output_operand): Likewise
13862         (create_input_operand, create_convert_operand_to): Likewise.
13863         (create_convert_operand_from, create_address_operand): Likewise.
13864         (create_integer_operand): Likewise.
13865         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13866         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13867         (expand_insn, expand_jump_insn): Likewise.
13868         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13869         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13870         (expand_movstr, expand_builtin___clear_cache): Likewise.
13871         (expand_builtin_lock_release): Likewise.
13872         * explow.c (allocate_dynamic_stack_space): Likewise.
13873         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
13874         and use the default handling in that case.
13875         * expmed.c (check_predicate_volatile_ok): Delete.
13876         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13877         (emit_cstore): Likewise.
13878         * expr.c (emit_block_move_via_movmem): Likewise.
13879         (set_storage_via_setmem, expand_assignment): Likewise.
13880         (emit_storent_insn, try_casesi): Likewise.
13881         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
13882         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13883         (expand_vec_shift_expr, expand_binop_directly): Likewise.
13884         (expand_twoval_unop, expand_twoval_binop): Likewise.
13885         (expand_unop_direct, emit_indirect_jump): Likewise.
13886         (emit_conditional_move, vector_compare_rtx): Likewise.
13887         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13888         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13889         (expand_sync_lock_test_and_set): Likewise.
13890         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
13891         (emit_unop_insn): Likewise.
13892         (expand_copysign_absneg): Change icode to an insn_code.
13893         (create_convert_operand_from_type): New function.
13894         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13895         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13896         (expand_insn, expand_jump_insn): Likewise.
13897         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13898         than const_int_operand for operand 2.
13899
13900 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13901
13902         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13903         if possible.
13904
13905 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13906
13907         * emit-rtl.c (emit_pattern_before_noloc): New function.
13908         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13909         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13910         (emit_pattern_after_noloc): New function.
13911         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13912         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13913
13914 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13915
13916         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13917         (__ffsDI2): Likewise.
13918
13919 2011-03-22  Richard Henderson  <rth@redhat.com>
13920
13921         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13922         of !TARGET_ABI_OPEN_VMS.
13923         (alpha_trampoline_init, alpha_start_function): Likewise.
13924         (alpha_expand_epilogue, alpha_file_start): Likewise.
13925         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13926         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13927         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13928         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13929         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13930
13931 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13932
13933         * config/s390/s390-opts.h: New.
13934         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13935         s390_arch_flags, s390_warn_framesize, s390_stack_size,
13936         s390_stack_guard): Remove.
13937         (s390_handle_arch_option): Return void.  Take enum
13938         s390_arch_option value instead of string and searching array.
13939         (s390_handle_option): Don't assert that global structures are in
13940         use.  Access variables via opts pointer.  Use error_at.  Don't use
13941         sscanf for -mstack-guard= or -mstack-size=.  Update call to
13942         s390_handle_arch_option.
13943         (s390_option_override): Update call to s390_handle_arch_option.
13944         (s390_emit_prologue): Use %d format for s390_stack_size in
13945         diagnostic.  Use %wd for HOST_WIDE_INT.
13946         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13947         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13948         * config/s390/s390.opt (config/s390/s390-opts.h): New
13949         HeaderInclude entry.
13950         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13951         s390_arch_flags, s390_warn_framesize): New Variable entries.
13952         (s390_arch_option): New Enum and EnumValue entries.
13953         (march=): Use Enum instead of Var.
13954         (mstack-guard=, mstack-size=): Use UInteger and Var.
13955         (mtune=): Use Enum.
13956
13957 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13958
13959         * config/score/score.c (score_handle_option): Don't assert that
13960         global structures are in use.  Access target_flags via opts
13961         pointer.  Use value of -march= option to determine target_flags
13962         settings.
13963         * config/score/score.opt (march=): Use Enum.
13964         (score_arch): New Enum and EnumValue entries.
13965
13966 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13967
13968         * config/mep/mep.c (option_mtiny_specified): Remove.
13969         (mep_option_override): Move register handling for -mivc2 from
13970         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
13971         instead of option_mtiny_specified.
13972         (mep_handle_option): Access target_flags via opts pointer.  Don't
13973         assert that global structures are in use.  Defer part of -mivc2
13974         handling and move it to mep_option_override.
13975         * config/mep/mep.opt (IVC2): New Mask entry.
13976         (mivc2): Use Var and Defer instead of Mask.
13977
13978 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13979
13980         * config/v850/v850-opts.h: New.
13981         * config/v850/v850.c (small_memory): Replace with
13982         small_memory_physical_max array.  Make that array static const.
13983         (v850_handle_memory_option): Take integer value of argument.  Take
13984         gcc_options pointer, option text and location.  Return void.
13985         Update for changes to small memory structures.
13986         (v850_handle_option): Access target_flags via opts pointer.  Don't
13987         assert that global structures are in use.  Update calls to
13988         v850_handle_memory_option.
13989         (v850_encode_data_area): Update references to small memory settings.
13990         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13991         (enum small_memory_type): Move to v850-opts.h.
13992         * config/v850/v850.opt (config/v850/v850-opts.h): New
13993         HeaderInclude entry.
13994         (small_memory_max): New Variable entry.
13995         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
13996         (mtda, mzda): Likewise.
13997
13998 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13999
14000         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14001         pointer.  Don't assert that global structures are in use.
14002
14003 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14004
14005         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14006         via opts pointer.  Don't assert that global structures are in use.
14007
14008 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14009
14010         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14011         (munix=93): Use Var.
14012         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14013         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14014         * config/pa/pa-opts.h: New.
14015         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14016         (pa_handle_option): Don't assert that global structures are in
14017         use.  Access target_flags via opts pointer.  Don't handle
14018         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14019         OPT_munix_98 here.
14020         (pa_option_override): Handle deferred OPT_mfixed_range_.
14021
14022 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14023
14024         * config/mn10300/mn10300-opts.h: New.
14025         * config/mn10300/mn10300.c (mn10300_processor,
14026         mn10300_tune_string): Remove.
14027         (mn10300_handle_option): Don't assert that global structures are
14028         in use.  Access mn10300_processor via opts pointer.  Don't handle
14029         OPT_mtune_ here.
14030         * config/mn10300/mn10300.h (enum processor_type): Move to
14031         mn10300-opts.h.
14032         (mn10300_processor): Remove.
14033         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14034         HeaderInclude entry.
14035         (mn10300_processor): New Variable entry.
14036         (mtune=): Use Var.
14037
14038 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14039
14040         * config/microblaze/microblaze.c: Don't include opts.h.
14041         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14042         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14043         (mno-clearbss): Use Var and Warn.
14044
14045 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14046
14047         * config/m32r/m32r-opts.h: New.
14048         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14049         (m32r_handle_option): Don't assert that global structures are in
14050         use.  Access target_flags and m32r_cache_flush_func via opts
14051         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
14052         OPT_mno_flush_trap here.
14053         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14054         include of m32r-opts.h.
14055         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14056         HeaderInclude entry.
14057         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14058         (mmodel=): Use Enum and Var.
14059         (m32r_model): New Enum and EnumValue entries.
14060         (mno-flush-trap): Use Var.
14061         (msdata=): Use Enum and Var.
14062         (m32r_sdata): New Enum and EnumValue entries.
14063
14064 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14065
14066         * config/m32c/m32c.c: Don't include opts.h.
14067         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14068         m32c_handle_option): Remove.
14069         (m32c_option_override): Check global_options_set.x_target_memregs
14070         instead of target_memregs_set.
14071         * config/m32c/m32c.h (target_memregs): Remove.
14072         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14073         variable.
14074
14075 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14076
14077         * config/iq2000/iq2000-opts.h: New.
14078         * config/iq2000/iq2000.c: Don't include opts.h.
14079         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14080         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14081         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14082         HeaderInclude entry.
14083         (iq2000_tune): New Variable entry.
14084         (march=): Add comment.  Use Enum.
14085         (iq2000_arch): New Enum and EnumValue entries.
14086         (mcpu=): Use Enum and Var.
14087         (iq2000_tune): New Enum and EnumValue entries.
14088
14089 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14090
14091         * config/ia64/ia64-opts.h: New.
14092         * config/ia64/ia64.c (ia64_tune): Remove.
14093         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14094         here.  Use error_at.
14095         (ia64_option_override): Handle deferred OPT_mfixed_range_.
14096         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14097         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14098         HeaderInclude entry.
14099         (ia64_tune): New Variable entry.
14100         (mfixed-range=): Use Defer and Var.
14101         (mtune=): Use Enum and Var.
14102         (ia64_tune): New Enum and EnumValue entries.
14103
14104 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14105
14106         * config/frv/frv-opts.h: New.
14107         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14108         frv-opts.h.
14109         (frv_cpu_type): Remove.
14110         * config/frv/frv.c: Don't include opts.h.
14111         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
14112         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
14113         (frv_cpu_type): New Variable entry.
14114         (frv_cpu): New Enum and EnumValue entries.
14115
14116 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14117
14118         * config/cris/cris.c (cris_handle_option): Access target_flags via
14119         opts pointer.  Don't assert that global structures are in use.
14120         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14121         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14122
14123 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14124
14125         * config/bfin/bfin-opts.h: New.
14126         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14127         bfin_si_revision, bfin_workarounds): Remove.
14128         (bfin_cpus): Make static const.
14129         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14130         not bfin_lib_id_given.
14131         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
14132         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
14133         pointer. Use error_at.  Don't assert that global structures are in use.
14134         * config/bfin/bfin.h: Include bfin-opts.h.
14135         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14136         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14137         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14138         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14139         entries.
14140
14141 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14142
14143         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14144         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14145         or -msoft-float here.
14146         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14147         -msoft-float and -mhard-float.
14148         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
14149         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14150         msoft-float.
14151         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14152         -msoft-float.
14153         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14154         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14155         not mhard-float.
14156         (LIBGCC_SPEC): Don't handle -msoft-float.
14157         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14158         -mhard-float.
14159         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14160         msoft-float.
14161         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14162         -mfloat-abi=*, not -msoft-float and -mhard-float.
14163         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14164         -msoft-float.
14165         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14166         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14167         mhard-float and msoft-float.
14168         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14169         mfloat-abi=soft in comments, not mhard-float and msoft-float.
14170         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14171         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14172         mhard-float.
14173         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14174         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14175         msoft-float.
14176         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14177         not mhard-float.
14178         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14179         not msoft-float.
14180
14181 2011-03-22  Richard Henderson  <rth@redhat.com>
14182
14183         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14184         TARGET_ABI_WINDOWS_NT.
14185         (alpha_output_function_end_prologue): Likewise.
14186         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14187         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14188         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14189         (trap, *movsi_nt_vms): Likewise.
14190         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14191         (*tablejump_osf_nt_internal): Remove.
14192         * config/alpha/predicates.md (input_operand): Only test Pmode.
14193
14194 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14195
14196         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14197         via opts pointer.  Use error_at.  Don't assert that global
14198         structures are in use.
14199
14200 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14201
14202         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14203         (ix86_handle_option): Access ix86_isa_flags and
14204         ix86_isa_flags_explicit via opts pointer.  Don't assert that
14205         global structures are in use.
14206         (ix86_function_specific_save, ix86_function_specific_restore):
14207         Update ix86_isa_flags_explicit field name.
14208         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14209         (ix86_isa_flags_explicit): Rename TargetSave entry to
14210         x_ix86_isa_flags_explicit.
14211
14212 2011-03-22  Richard Henderson  <rth@redhat.com>
14213
14214         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14215         (alpha_option_override, direct_return): Likewise.
14216         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14217         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14218         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14219         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14220         (alpha_expand_epilogue, alpha_end_function): Likewise.
14221         (alpha_init_libfuncs): Likewise.
14222         (struct machine_function): Remove unicosmk members.
14223         (print_operand) ['t']: Remove.
14224         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14225         unicosmk_output_module_name, unicosmk_output_common,
14226         current_section_align, unicosmk_output_text_section_asm_op,
14227         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14228         unicosmk_section_type_flags, unicosmk_unique_section,
14229         unicosmk_asm_named_section, unicosmk_insert_attributes,
14230         unicosmk_output_align, unicosmk_defer_case_vector,
14231         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14232         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14233         unicosmk_output_ssib, unicosmk_add_call_info_word,
14234         unicosmk_extern_head, unicosmk_output_default_externs,
14235         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14236         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14237         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14238         * config/alpha/alpha-protos.h: Update.
14239         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14240         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14241         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14242         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14243         (*mulsi_se, mulvsi3): Likewise.
14244         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14245         (*divmodsi_internal, call, call_value, realign): Likewise.
14246         (moddi3, umoddi3): Likewise; remove duplicate expander.
14247         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14248         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14249         (*movdi_nofix): Remove r/U alternative.
14250         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14251         * config/alpha/constraints.md ("U"): Remove.
14252         * config/alpha/predicates.md (call_operand"): Don't test
14253         TARGET_ABI_UNICOSMK.
14254
14255 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14256
14257         * target.def (handle_option): Take gcc_options and
14258         cl_decoded_option pointers and location_t.
14259         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14260         * doc/tm.texi: Regenerate.
14261         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14262         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14263         * lto-opts.c (lto_reissue_options): Generate option structure for
14264         targetm.handle_option call.
14265         * opts.c (target_handle_option): Update call to
14266         targetm.handle_option.  Remove assertions about values now passed
14267         down to hook.
14268         * targhooks.c (default_target_handle_option): New.
14269         * targhooks.h (default_target_handle_option): Declare.
14270         * config/alpha/alpha.c: Include opts.h.
14271         (alpha_handle_option): Update to new hook interface.
14272         * config/arm/arm.c: Include opts.h.
14273         (arm_handle_option): Update to new hook interface.
14274         * config/arm/t-arm (arm.o): Update dependencies.
14275         * config/bfin/bfin.c: Include opts.h.
14276         (bfin_handle_option): Update to new hook interface.
14277         * config/cris/cris.c: Include opts.h.
14278         (cris_handle_option): Update to new hook interface.
14279         * config/frv/frv.c: Include opts.h.
14280         (frv_handle_option): Update to new hook interface.
14281         * config/i386/i386.c: Include opts.h.
14282         (ix86_handle_option): Update to new hook interface.
14283         (ix86_valid_target_attribute_inner_p): Generate option structure
14284         for call to ix86_handle_option.
14285         * config/i386/t-i386 (i386.o): Update dependencies.
14286         * config/ia64/ia64.c: Include opts.h.
14287         (ia64_handle_option): Update to new hook interface.
14288         * config/ia64/t-ia64 (ia64.o): Update dependencies.
14289         * config/iq2000/iq2000.c: Include opts.h.
14290         (iq2000_handle_option): Update to new hook interface.
14291         * config/m32c/m32c.c: Include opts.h.
14292         (m32c_handle_option): Update to new hook interface.
14293         * config/m32r/m32r.c: Include opts.h.
14294         (m32r_handle_option): Update to new hook interface.
14295         * config/m68k/m68k.c: Include opts.h.
14296         (m68k_handle_option): Update to new hook interface.
14297         * config/mep/mep.c: Include opts.h.
14298         (mep_handle_option): Update to new hook interface.
14299         * config/microblaze/microblaze.c: Include opts.h.
14300         (microblaze_handle_option): Update to new hook interface.
14301         * config/mips/mips.c: Include opts.h.
14302         (mips_handle_option): Update to new hook interface.
14303         * config/mn10300/mn10300.c: Include opts.h.
14304         (mn10300_handle_option): Update to new hook interface.
14305         * config/pa/pa.c: Include opts.h.
14306         (pa_handle_option): Update to new hook interface.
14307         * config/pdp11/pdp11.c: Include opts.h.
14308         (pdp11_handle_option): Update to new hook interface.
14309         * config/rs6000/rs6000.c: Include opts.h.
14310         (rs6000_handle_option): Update to new hook interface.
14311         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14312         * config/rx/rx.c: Include opts.h.
14313         (rx_handle_option): Update to new hook interface.
14314         * config/s390/s390.c: Include opts.h.
14315         (s390_handle_option): Update to new hook interface.
14316         * config/score/score.c: Include opts.h.
14317         (score_handle_option): Update to new hook interface.
14318         * config/sh/sh.c: Include opts.h.
14319         (sh_handle_option): Update to new hook interface.
14320         * config/sparc/sparc.c: Include opts.h.
14321         (sparc_handle_option): Update to new hook interface.
14322         * config/v850/v850.c: Include opts.h.
14323         (v850_handle_option): Update to new hook interface.
14324
14325 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14326
14327         * gcc.c (driver_unknown_option_callback): Only permit and save
14328         unknown -Wno- options.
14329         (driver_wrong_lang_callback): Save options directly instead of via
14330         driver_unknown_option_callback.
14331
14332 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14333
14334         * combine.c (simplify_set): Try harder to find the best CC mode when
14335         simplifying a nested COMPARE on the RHS.
14336
14337 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14338
14339         * config/alpha/gnu.h: Remove.
14340         * config/arc: Remove directory.
14341         * config/arm/netbsd.h: Remove.
14342         * config/arm/t-pe: Remove.
14343         * config/crx: Remove directory.
14344         * config/i386/netbsd.h: Remove.
14345         * config/m68hc11: Remove directory.
14346         * config/m68k/uclinux-oldabi.h: Remove.
14347         * config/mcore/mcore-pe.h: Remove.
14348         * config/mcore/t-mcore-pe: Remove.
14349         * config/netbsd-aout.h: Remove.
14350         * config/rs6000/gnu.h: Remove.
14351         * config/sh/sh-symbian.h: Remove.
14352         * config/sh/symbian-base.c: Remove.
14353         * config/sh/symbian-c.c: Remove.
14354         * config/sh/symbian-cxx.c: Remove.
14355         * config/sh/symbian-post.h: Remove.
14356         * config/sh/symbian-pre.h: Remove.
14357         * config/sh/t-symbian: Remove.
14358         * config/svr3.h: Remove.
14359         * config/vax/netbsd.h: Remove.
14360         * config.build: Don't handle i[34567]86-*-pe.
14361         * config.gcc: Remove handling of deprecations for most deprecated
14362         targets.
14363         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14364         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14365         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14366         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14367         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14368         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14369         Remove cases.
14370         * config.host: Don't handle i[34567]86-*-pe.
14371         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14372         (ASM_SPEC32): Don't handle -mcall-gnu.
14373         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14374         -mcall-gnu.
14375         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14376         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14377         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14378         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14379         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14380         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14381         conditional on SYMBIAN.
14382         * configure.ac: Don't handle powerpc*-*-gnu*.
14383         * configure: Regenerate.
14384         * doc/extend.texi (interrupt attribute): Don't mention CRX.
14385         * doc/install-old.texi (m6811, m6812): Don't mention.
14386         * doc/install.texi (arc-*-elf*): Don't document multilib option.
14387         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14388         (m68k-uclinuxoldabi): Don't mention.
14389         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14390         Remove.
14391         (-mcall-gnu): Remove.
14392         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14393         families): Remove constraint documentation.
14394
14395 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
14396
14397         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14398         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14399         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14400
14401 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14402
14403         PR target/48226
14404         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14405         vector when peeking at the next token for vector, don't expand the
14406         keywords.
14407
14408 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
14409
14410         * config/avr/avr-protos.h (expand_epilogue): Change prototype
14411         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14412         * config/avr/avr.c (init_cumulative_args)
14413         (avr_function_arg_advance): Use it.
14414         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14415         sibcall epilogues.
14416         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14417         (avr_function_ok_for_sibcall): ...this new function.
14418         (avr_lookup_function_attribute1): New static Function.
14419         (avr_naked_function_p, interrupt_function_p)
14420         (signal_function_p, avr_OS_task_function_p)
14421         (avr_OS_main_function_p): Use it.
14422         * config/avr/avr.md ("sibcall", "sibcall_value")
14423         ("sibcall_epilogue"): New expander.
14424         ("*call_insn", "*call_value_insn"): New insn.
14425         ("call_insn", "call_value_insn"): Remove
14426         ("call", "call_value", "epilogue"): Change expander to handle
14427         sibling calls.
14428
14429 2011-03-21  Nick Clifton  <nickc@redhat.com>
14430
14431         * doc/invoke.texi (Overall Options): Move closing brace to end of
14432         options list.
14433         (Optimization Options): Add missing @gol.
14434         (Directory Options): Likewise.
14435         (i386 and x86-64 Options): Likewise.
14436         (RS6000 and PowerPC Options): Likewise.
14437         (i386 and x86-64 Windows Options): Likewise.
14438         (V850 Options): Add text missing from descriptions.
14439
14440 2011-03-22  Richard Henderson  <rth@redhat.com>
14441
14442         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14443         (avr_incoming_return_addr_rtx): New.
14444         (emit_push_byte): New.
14445         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
14446         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
14447         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
14448         (emit_pop_byte): New.
14449         (expand_epilogue): Use it.  Pop frame pointer by bytes.
14450         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14451         (INCOMING_RETURN_ADDR_RTX): New.
14452         (INCOMING_FRAME_SP_OFFSET): New.
14453         (ARG_POINTER_CFA_OFFSET): New.
14454         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14455         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14456         (pophi): Remove.
14457
14458         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14459
14460 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14461
14462         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14463         (FUNCTION_ARG_ADVANCE): Likewise.
14464         * tm.texi.in: Change references to them to hook references.
14465         * tm.texi: Regenerate.
14466         * targhooks.c (default_function_arg): Eliminate check for target
14467         macro.
14468         (default_function_incoming_arg): Likewise.
14469         (default_function_arg_advance): Likewise.
14470         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14471         (function_arg_advance): Likewise.
14472         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14473
14474 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14475
14476         * tree.c (build_call_1): New function.
14477         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14478
14479 2011-03-22  Richard Guenther  <rguenther@suse.de>
14480
14481         PR tree-optimization/48228
14482         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14483         for single-arg PHIs.
14484
14485 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
14486
14487         PR rtl-optimization/48143
14488         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14489         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14490         sse2_cvtps2pd): Likewise.
14491
14492 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14493
14494         * recog.c (canonicalize_change_group): Use validate_unshare_change.
14495
14496 2011-03-22  Richard Guenther  <rguenther@suse.de>
14497
14498         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14499         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14500         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14501         and REALIGN_LOAD_EXPR.
14502         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14503         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14504         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14505         DOT_PROD_EXPR case ...
14506         (expand_expr_real_2): ... here.
14507         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14508         and REALIGN_LOAD_EXPR.
14509         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14510         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14511         (vect_create_epilog_for_reduction): Likewise.
14512         (vectorizable_reduction): Likewise.
14513         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14514         * tree-vect-stmts.c (vectorizable_load): Likewise.
14515
14516 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14517
14518         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14519
14520 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14521
14522         * config/s390/s390.c (s390_delegitimize_address): Fix offset
14523         handling for PLTOFF/GOTOFF.
14524
14525 2011-03-22  Nick Clifton  <nickc@redhat.com>
14526
14527         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14528         trailing backslash from the end of the macro definition.
14529
14530 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14531
14532         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14533         and PLT unspecs.
14534
14535 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
14536
14537         * expr.h (prepare_operand): Move to...
14538         * optabs.h (prepare_operand): ...here and change the insn code
14539         parameter from "int" to "enum insn_code".
14540         (insn_operand_matches): Declare.
14541         * expr.c (init_expr_target): Use insn_operand_matches.
14542         (compress_float_constant): Likewise.
14543         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14544         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14545         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14546         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14547         Likewise.
14548         (gen_cond_trap): Likewise.
14549         (prepare_operand): Likewise.  Change icode to an insn_code.
14550         (insn_operand_matches): New function.
14551         * reload.c (find_reloads_address_1): Use insn_operand_matches.
14552         * reload1.c (gen_reload): Likewise.
14553         * targhooks.c (default_secondary_reload): Likewise.
14554
14555 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14556
14557         * config/alpha/alpha.md (unspec): New define_c_enum.
14558         (unspecv): Ditto.
14559
14560 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14561
14562         PR debug/48214
14563         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14564         between a call and its CALL_ARG_LOCATION note.
14565
14566 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
14567
14568         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14569
14570 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14571
14572         PR c/42544
14573         PR c/48197
14574         * c-common.c (shorten_compare): If primopN is first sign-extended
14575         to opN and then zero-extended to result type, set primopN to opN.
14576
14577 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
14578
14579         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14580         for barrier handlers.
14581
14582 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14583
14584         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14585         UNSPEC constants to be in the unspec enumeration, and redefine
14586         all UNSPECV constants to be in the unspecv enumeration, so that
14587         dumps print which unspec/unspec_volatile this is.
14588         * config/rs6000/vector.md (UNSPEC_*): Ditto.
14589         * config/rs6000/paired.md (UNSPEC_*): Ditto.
14590         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14591         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14592         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14593
14594         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14595         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14596         UNSPECV_LWSYNC, since these are used as unspec_volatile.
14597         * config/rs6000/sync.md (isync, lwsync): Ditto.
14598
14599 2011-03-21  Richard Guenther  <rguenther@suse.de>
14600
14601         * params.def (lto-min-partition): Fix typo.
14602
14603 2011-03-21  Richard Guenther  <rguenther@suse.de>
14604
14605         PR c/47939
14606         * c-decl.c (grokdeclarator): Drop to the main variant only
14607         for array types.  Drop flag_gen_aux_info check.
14608
14609 2011-03-21  Richard Guenther  <rguenther@suse.de>
14610
14611         PR translation/47911
14612         * params.def (lto-partitions): Fix typo.
14613         (lto-min-partition): Fix wording.
14614
14615 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
14616
14617         * config/rs6000/t-freebsd: Remove duplication from file.
14618
14619 2011-03-21  Richard Guenther  <rguenther@suse.de>
14620
14621         PR middle-end/47661
14622         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14623
14624 2011-03-21  Richard Guenther  <rguenther@suse.de>
14625
14626         PR lto/48210
14627         * params.def (lto-partitions): Require at least 1 partition.
14628
14629 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14630
14631         * gthr-solaris.h: Remove.
14632         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14633         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14634         (LIB_SPEC): Likewise.
14635         * config/sol2.opt (threads): Remove.
14636         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14637         (sparc*-*-solaris2*): Likewise.
14638         * configure.ac (enable_threads): Enable solaris support.
14639         * configure: Regenerate.
14640         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14641         * doc/install.texi (Configuration, --enable-threads=lib): Remove
14642         solaris.
14643
14644 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14645
14646         * config.gcc: Obsolete *-*-solaris2.8*.
14647         * doc/install.texi (Specific, *-*-solaris2*): Document it.
14648
14649 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14650
14651         PR bootstrap/48135
14652         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14653         reference.  Solaris 8 perl works.
14654
14655 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14656
14657         PR bootstrap/48135
14658         * doc/install.texi (Prerequisites): Move jar etc. up.
14659         Explain support library version requirements.
14660
14661 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14662
14663         PR bootstrap/48135
14664         * doc/install.texi (Prerequisites): Move Perl to build
14665         requirements.  Always necessary on Solaris 2 with Sun ld.
14666
14667 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14668
14669         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14670         binutils 2.21.
14671         (Specific, i?86-*-solaris2.[89]): Likewise.
14672         (Specific, i?86-*-solaris2.10): Likewise.
14673         (Specific, mips-sgi-irix6): Likewise.
14674         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14675         Update for binutils 2.21.
14676
14677 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14678
14679         * configure.ac (gcc_cv_lto_plugin): Fix typo.
14680         Allow -fuse-linker-plugin for non-default plugin linker.
14681         * configure: Regenerate.
14682
14683 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14684
14685         PR bootstrap/48167
14686         * gengtype.c (files_rules): Added rule for cp/parser.h.
14687
14688 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14689
14690         PR target/48213
14691         * config/s390/s390.c (s390_delegitimize_address): Don't call
14692         lowpart_subreg if orig_x has BLKmode.
14693
14694 2011-03-21  Kai Tietz  <ktietz@redhat.com>
14695
14696         PR target/12171
14697         * doc/plugins.texi: Adjust documentation for plugin register_callback.
14698         * tree.h (attribute_spec): Add new member affects_type_identity.
14699         * attribs.c (empty_attribute_table): Adjust attribute_spec
14700         initializers.
14701         * config/alpha/alpha.c: Likewise.
14702         * config/arc/arc.c: Likewise.
14703         * config/arm/arm.c: Likewise.
14704         * config/avr/avr.c: Likewise.
14705         * config/bfin/bfin.c: Likewise.
14706         * config/crx/crx.c: Likewise.
14707         * config/darwin.h: Likewise.
14708         * config/h8300/h8300.c: Likewise.
14709         * config/i386/cygming.h: Likewise.
14710         * config/i386/i386.c: Likewise.
14711         * config/ia64/ia64.c: Likewise.
14712         * config/m32c/m32c.c: Likewise.
14713         * config/m32r/m32r.c: Likewise.
14714         * config/m68hc11/m68hc11.c: Likewise.
14715         * config/m68k/m68k.c: Likewise.
14716         * config/mcore/mcore.c: Likewise.
14717         * config/mep/mep.c: Likewise.
14718         * config/microblaze/microblaze.c: Likewise.
14719         * config/mips/mips.c: Likewise.
14720         * config/rs6000/rs6000.c: Likewise.
14721         * config/rx/rx.c: Likewise.
14722         * config/sh/sh.c: Likewise.
14723         * config/sol2.h: Likewise.
14724         * config/sparc/sparc.c: Likewise.
14725         * config/spu/spu.c: Likewise.
14726         * config/stormy16/stormy16.c: Likewise.
14727         * config/v850/v850.c: Likewise.
14728
14729 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
14730
14731         * simplify-rtx.c (simplify_binary_operation_1): Handle
14732         (xor (and A B) C) case when B and C are both constants.
14733
14734 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
14735
14736         * tree-dfa.c (add_referenced_var): Fix typo in comment.
14737
14738 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14739
14740         PR bootstrap/48168
14741         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14742
14743 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
14744
14745         PR rtl-optimization/48156
14746         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14747         assume df and df_lr are not NULL.
14748
14749 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14750
14751         PR debug/48023
14752         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14753         between a call and its CALL_ARG_LOCATION note.
14754
14755 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
14756
14757         PR debug/48178
14758         * config/sh/sh.c (find_barrier): Don't emit a constant pool
14759         between a call and its corresponding CALL_ARG_LOCATION note.
14760
14761 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
14762
14763         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14764         instead of loop. Use HARD_REGISTER_NUM_P predicate.
14765         * haifa-sched.c (setup_ref_regs): Ditto.
14766         * caller-save.c (add_used_regs_1): Ditto.
14767         * dse.c (look_for_hardregs): Ditto.
14768         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14769         * sched-rgn.c (check_live_1): Ditto.
14770
14771 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14772
14773         * c-decl.c (diagnose_mismatched_decls): Give an error for
14774         redefining a typedef with variably modified type.
14775
14776 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14777
14778         * c-decl.c (grokfield): Don't allow typedefs for structures or
14779         unions with no tag by default.
14780         * doc/extend.texi (Unnamed Fields): Update.
14781
14782 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
14783
14784         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14785         Rewrite using indirect functions.
14786         (lwp_slwpcb): Ditto.
14787         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14788         (avx_vinsertf128<mode>): Ditto.
14789
14790 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14791
14792         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14793         unspecs.
14794
14795 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14796
14797         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14798         splitting between a call and its corresponding CALL_ARG_LOCATION note.
14799
14800 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14801
14802         PR rtl-optimization/48170
14803         * gcse.c (hoist_code): Remove bogus asserts.
14804
14805 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
14806
14807         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14808         computation for prologue/epilogue.
14809
14810 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14811
14812         * Makefile.in (check-consistency): Remove.
14813
14814 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
14815
14816         PR debug/48176
14817         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14818         arange_table_in_use is 0, but either text_section_used or
14819         cold_text_section_used is true.  Don't call it if
14820         !info_section_emitted.
14821
14822 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
14823
14824         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14825         FUNCTION_VALUE_REGNO_P): Remove.
14826         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14827         Remove.
14828         * config/avr/avr.c (avr_ret_register): Make static inline.
14829         (avr_function_value_regno_p): New function.
14830         (avr_libcall_value): Make static. Add 'func' argument.
14831         (avr_function_value): Make static. Rename 'func' argument to
14832         'fn_decl_or_type', forward it to avr_libcall_value. Call
14833         avr_ret_register function instead of RET_REGISTER macro.
14834         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14835
14836 2011-03-18  Jason Merrill  <jason@redhat.com>
14837
14838         PR c++/23372
14839         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14840
14841 2011-03-18  Richard Guenther  <rguenther@suse.de>
14842
14843         * doc/install.texi (--enable-gold): Remove.
14844         (--with-plugin-ld): Document.
14845         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14846
14847 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
14848
14849         PR middle-end/47790
14850         * expr.c (optimize_bitfield_assignment_op): Revamp to work
14851         again after expansion changes.
14852
14853 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
14854
14855         * combine.c (try_combine): Do simplification only call of
14856         subst() on i2 even when i1 is present. Update comments.
14857
14858 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
14859
14860         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14861         and UNSPEC_PCREL_SYMOFF.
14862
14863 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14864
14865         * config/s390/s390.md: Use define_c_enum for the unspec constant
14866         definitions.
14867
14868 2011-03-18  Richard Henderson  <rth@redhat.com>
14869             Jakub Jelinek  <jakub@redhat.com>
14870
14871         PR bootstrap/48161
14872         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14873         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14874
14875 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14876
14877         PR middle-end/47725
14878         * combine.c (cant_combine_insn_p): Don't check zero/sign
14879         extended hard registers.
14880
14881 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14882
14883         PR middle-end/47725
14884         * combine.c (cant_combine_insn_p): Check zero/sign extended
14885         hard registers.
14886
14887 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
14888
14889         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14890         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14891         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14892         Change return type to bool.
14893         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14894
14895 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14896
14897         PR debug/48163
14898         * var-tracking.c (prepare_call_arguments): If CALL target
14899         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14900         pc instead of looking it up using cselib_lookup and use
14901         Pmode for it if x has VOIDmode.
14902         * dwarf2out.c (gen_subprogram_die): If also both first and
14903         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14904
14905         PR debug/48163
14906         * function.c (assign_parms): For data.passed_pointer parms
14907         use MEM of data.entry_parm instead of data.entry_parm itself
14908         as DECL_INCOMING_RTL.
14909         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14910         also when passed and declared mode is the same, DECL_RTL
14911         is a MEM with pseudo as address and DECL_INCOMING_RTL is
14912         a MEM too.
14913
14914 2011-03-16  Jeff Law  <law@redhat.com>
14915
14916         PR rtl-optimization/37273
14917         * ira-costs.c (scan_one_insn): Detect constants living in memory and
14918         handle them like argument loads from stack slots.  Do not double
14919         count memory for memory constants and argument loads from stack slots.
14920
14921 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14922
14923         PR debug/48160
14924         * var-tracking.c (prepare_call_arguments): Check SUBREG.
14925
14926 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14927
14928         PR target/48171
14929         * config/i386/i386.opt: Add Save to -mavx and -mfma.
14930
14931 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14932
14933         PR bootstrap/48153
14934         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14935         if dwarf_strict.
14936         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14937         Clear call_arg_locations and call_arg_loc_last always.
14938
14939         PR middle-end/48152
14940         * var-tracking.c (prepare_call_arguments): If argument needs to be
14941         passed by reference, adjust argtype and mode.
14942
14943 2011-03-17  Richard Guenther  <rguenther@suse.de>
14944
14945         PR middle-end/48134
14946         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14947         a value make sure to fold the statement.
14948
14949 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
14950
14951         PR target/43872
14952         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14953         return condition with !cfun->calls_alloca.
14954
14955 2011-03-17  Richard Guenther  <rguenther@suse.de>
14956
14957         PR bootstrap/48148
14958         * lto-cgraph.c (input_overwrite_node): Clear the abstract
14959         origin for decls in other ltrans units.
14960         (input_varpool_node): Likewise.
14961
14962 2011-03-17  Richard Guenther  <rguenther@suse.de>
14963
14964         PR middle-end/48165
14965         * tree-object-size.c (compute_object_offset): Properly return
14966         the offset operand of MEM_REFs as sizetype.
14967
14968 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14969
14970         PR rtl-optimization/48141
14971         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14972         * dse.c: Include params.h.
14973         (active_local_stores_len): New variable.
14974         (add_wild_read, dse_step1): Clear it when setting active_local_stores
14975         to NULL.
14976         (record_store, check_mem_read_rtx): Decrease it when removing
14977         from the chain.
14978         (scan_insn): Likewise.  Increase it when adding to chain, if it
14979         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14980         set active_local_stores to NULL before the addition.
14981         * Makefile.in (dse.o): Depend on $(PARAMS_H).
14982
14983         PR rtl-optimization/48141
14984         * dse.c (record_store): If no positions are needed in an insn
14985         that cannot be deleted, at least unchain it from active_local_stores.
14986
14987 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
14988
14989         PR debug/47510
14990         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14991         (lookup_type_die_strip_naming_typedef): ... here.
14992         (get_context_die): Use it.
14993         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14994         the anonymous struct named by the naming typedef.
14995
14996 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
14997
14998         PR target/48154
14999         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15000         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15001
15002 2011-03-16  Jeff Law  <law@redhat.com>
15003
15004         * tree-vrp.c (identify_jump_threads): Slightly simplify type
15005         check for operands of conditional.  Allow type to be a pointer.
15006
15007 2011-03-16  Richard Guenther  <rguenther@suse.de>
15008
15009         PR tree-optimization/48149
15010         * fold-const.c (fold_binary_loc): Fold
15011         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15012
15013 2011-03-16  Richard Guenther  <rguenther@suse.de>
15014
15015         PR tree-optimization/26134
15016         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15017         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15018         (non_rewritable_mem_ref_base): Handle complex type component
15019         accesses, constrain offsets for vector and complex extracts
15020         more properly.
15021
15022 2011-03-16  Richard Guenther  <rguenther@suse.de>
15023
15024         PR tree-optimization/48146
15025         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15026         operands avoiding the need for renaming.
15027
15028 2011-03-16  Richard Guenther  <rguenther@suse.de>
15029
15030         * gimple-fold.c (maybe_fold_reference): Open-code relevant
15031         constant folding.  Move MEM_REF canonicalization first.
15032         Rely on fold_const_aggregate_ref for initializer folding.
15033         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15034
15035 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
15036
15037         PR middle-end/48136
15038         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15039         arg0/arg1 or their arguments are always fold converted to matching
15040         types.
15041
15042         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15043         to nargs.
15044
15045 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15046
15047         PR lto/46944
15048         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15049         Handle in-tree gold.
15050         (ld_vers): Extract binutils version for gold.
15051         (gcc_cv_ld_hidden): Handle gold here.
15052         (gcc_cv_lto_plugin): Determine level of linker plugin support.
15053         * configure: Regenerate.
15054         * config.in: Regenerate.
15055         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15056         -fuse-linker-plugin otherwise.
15057         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
15058         (LINK_COMMAND_SPEC): Use it.
15059         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15060
15061 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
15062
15063         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15064         * calls.c: Remove debug.h include.
15065         (emit_call_1): Don't call virtual_call_token debug hook.
15066         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15067         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15068         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15069         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15070         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15071         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15072         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15073         dwarf2out_virtual_call): Remove.
15074         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15075         copy_call_info and virtual_call hooks.
15076         (dwarf2out_init): Don't initialize vcall_insn_table,
15077         debug_dcall_section and debug_vcall_section.
15078         (prune_unused_types): Don't mark nodes from dcall_table.
15079         (dwarf2out_finish): Don't output dcall or vcall tables.
15080         * final.c (final_scan_insn): Don't call direct_call or
15081         virtual_call debug hooks.
15082         * debug.h (struct gcc_debug_hooks): Remove direct_call,
15083         virtual_call_token, copy_call_info and virtual_call hooks.
15084         (debug_nothing_uid): Remove prototype.
15085         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15086         copy_call_info and virtual_call hooks.
15087         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15088         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15089         * debug.c (do_nothing_debug_hooks): Likewise.
15090         (debug_nothing_uid): Remove.
15091         * doc/invoke.texi (-fenable-icf-debug): Remove.
15092         * common.opt (-fenable-icf-debug): Likewise.
15093
15094         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15095         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15096         call's MEM.  Handle functions returning aggregate through a hidden
15097         first pointer.  For virtual calls add clobbered pc to call arguments
15098         chain.
15099         * dwarf2out.c (gen_subprogram_die): Emit
15100         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15101         can't be emitted.
15102
15103         PR debug/45882
15104         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15105         * rtl.h (ENTRY_VALUE_EXP): Define.
15106         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15107         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15108         * print-rtl.c (print_rtx): Likewise.
15109         * gengtype.c (adjust_field_rtx_def): Likewise.
15110         * var-tracking.c (vt_add_function_parameter): Adjust
15111         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15112         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15113         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15114         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15115         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15116
15117         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15118         Call var_location debug hook even on CALL_INSNs.
15119         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15120         * rtl.def (ENTRY_VALUE): New.
15121         * dwarf2out.c: Include cfglayout.h.
15122         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15123         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15124         (struct call_arg_loc_node): New type.
15125         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15126         tail_call_site_count): New variables.
15127         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15128         DW_TAG_GNU_call_site_parameter.
15129         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15130         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15131         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15132         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15133         and DW_AT_GNU_all_source_call_sites.
15134         (mem_loc_descriptor): Handle ENTRY_VALUE.
15135         (add_src_coords_attributes): Don't add enything if
15136         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15137         (dwarf2out_abstract_function): Save and clear call_arg_location,
15138         call_site_count and tail_call_site_count around dwarf2out_decl call.
15139         (gen_call_site_die): New function.
15140         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15141         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15142         (dwarf2out_function_decl): Clear call_arg_locations,
15143         call_arg_loc_last, set call_site_count and tail_call_site_count
15144         to -1 and free block_map.
15145         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15146         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
15147         followed by any real instructions.
15148         (dwarf2out_begin_function): Set call_site_count and
15149         tail_call_site_count to 0.
15150         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15151         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15152         attempt to force a DIE for it and worst case remove the attribute.
15153         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15154         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15155         the decl itself.
15156         * var-tracking.c: Include tm_p.h.
15157         (vt_stack_adjustments): For calls call note_register_arguments.
15158         (argument_reg_set): New variable.
15159         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15160         ensure the VALUE is resolved.
15161         (call_arguments): New variable.
15162         (prepare_call_arguments): New function.
15163         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15164         (struct expand_loc_callback_data): Add ignore_cur_loc field.
15165         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15166         always use the best expression.
15167         (vt_expand_loc): Add ignore_cur_loc argument.
15168         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15169         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15170         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15171         note for all calls.
15172         (vt_add_function_parameter): Use cselib_lookup_from_insn.
15173         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15174         argument.  Don't call cselib_preserve_only_values and
15175         cselib_reset_table.
15176         (note_register_arguments): New function.
15177         (vt_initialize): Compute argument_reg_set.  Call
15178         vt_add_function_parameters before processing basic blocks instead of
15179         afterwards.  For calls call prepare_call_arguments before calling
15180         cselib_process_insn.
15181         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15182         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15183         (var-tracking.o): Depend on $(TM_P_H).
15184         * cfglayout.h (insn_scope): New prototype.
15185         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15186         * cfglayout.c (insn_scope): No longer static.
15187         * insn-notes.def (CALL_ARG_LOCATION): New.
15188         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15189         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15190         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15191         nothing for DECL_EXTERNAL BLOCK_VARS.
15192
15193 2011-03-16  Alan Modra  <amodra@gmail.com>
15194
15195         PR target/45844
15196         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15197         create invalid offset address for vsx splat insn.
15198         * config/rs6000/predicates.md (splat_input_operand): New.
15199         * config/rs6000/vsx.md (vsx_splat_*): Use it.
15200
15201 2011-03-15  Xinliang David Li  <davidxl@google.com>
15202
15203         PR c/47837
15204         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15205         (normalize_preds): New function.
15206         (is_use_properly_guarded): Normalize def predicates.
15207
15208 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15209
15210         PR target/46788
15211         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15212         in the output template.
15213
15214 2011-03-15  Richard Guenther  <rguenther@suse.de>
15215
15216         PR middle-end/47650
15217         * tree-pretty-print.c (dump_function_declaration): Properly
15218         dump unprototyped and varargs function types.
15219
15220 2011-03-15  Richard Guenther  <rguenther@suse.de>
15221
15222         PR tree-optimization/13954
15223         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15224         and friends.
15225
15226 2011-03-15  Richard Guenther  <rguenther@suse.de>
15227
15228         PR tree-optimization/48037
15229         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15230         selects into BIT_FIELD_REFs.
15231         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15232         vector select.
15233
15234 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
15235
15236         PR tree-optimization/48129
15237         * builtins.c (fold_builtin_snprintf): Convert to type of
15238         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15239         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15240
15241 2011-03-15  Richard Guenther  <rguenther@suse.de>
15242
15243         PR tree-optimization/41490
15244         * tree-ssa-dce.c (propagate_necessity): Handle returns without
15245         value but with VUSE.
15246         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15247         return statements.
15248         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15249         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15250         * tree-tailcall.c (find_tail_calls): Ignore returns.
15251
15252 2011-03-15  Richard Guenther  <rguenther@suse.de>
15253
15254         PR middle-end/48031
15255         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15256         or variable-indexed array accesses when in gimple form.
15257
15258 2011-03-15  Richard Guenther  <rguenther@suse.de>
15259
15260         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15261
15262 2011-03-15  Alan Modra  <amodra@gmail.com>
15263
15264         PR target/48032
15265         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15266         presume symbol_refs without a symbol_ref_decl are suitably
15267         aligned, nor other trees we may see here.  Handle anchor symbols.
15268         (legitimate_constant_pool_address_p): Comment.  Add mode param.
15269         Check cmodel=medium addresses.  Adjust all calls.
15270         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15271         creating cmodel=medium optimized access to locals.
15272         * config/rs6000/constraints.md (R): Pass QImode to
15273         legitimate_constant_pool_address_p.
15274         * config/rs6000/predicates.md (input_operand): Pass mode to
15275         legitimate_constant_pool_address_p.
15276         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15277         Update prototype.
15278
15279 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15280
15281         PR target/48053
15282         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15283         64-bit constants being loaded into registers other than GPRs such
15284         as loading 0 into a VSX register.
15285
15286 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15287
15288         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15289
15290 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15291
15292         PR middle-end/47917
15293         * builtins.c (fold_builtin_snprintf): New function.
15294         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15295         (fold_builtin_4): Likewise.
15296
15297         PR middle-end/38878
15298         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15299         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
15300         and C - X == X also strip nops from +/-/p+ operand.
15301         When optimizing -X == C, fold C to arg0's type.
15302
15303         PR debug/47946
15304         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15305         emit it as add_AT_int instead of add_AT_unsigned.
15306
15307 2011-03-14  Tom Tromey  <tromey@redhat.com>
15308
15309         * unwind-dw2.c: Include sys/sdt.h if it exists.
15310         (_Unwind_DebugHook): Use STAP_PROBE2.
15311         * config.in, configure: Rebuild.
15312         * configure.ac: Check for sys/sdt.h.
15313
15314 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
15315
15316         * config/i386/i386.md (ROUND_FLOOR): New constant.
15317         (ROUND_CEIL): Ditto.
15318         (ROUND_TRUNC): Ditto.
15319         (ROUND_MXCSR): Ditto.
15320         (ROUND_NO_EXC): Ditto.
15321         (rint<mode>2): Use new defines instead of numerical constants.
15322         (floor<mode>2): Ditto.
15323         (ceil<mode>2): Ditto.
15324         (btrunc<mode>2): Ditto.
15325         * config/i386/i386-builtin-types.def: Define ROUND function type
15326         aliases.
15327         * config/i386/i386.c (enum ix86_builtins): Add
15328         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15329         (struct builtin_description): Add
15330         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15331         (ix86_expand_sse_round): New static function.
15332         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15333         function types.
15334         (ix86_builtin_vectorized_function): Handle
15335         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15336
15337 2011-03-14  Tom Tromey  <tromey@redhat.com>
15338
15339         * c-parser.c (c_parser_asm_string_literal): Clear
15340         warn_overlength_strings.
15341
15342 2011-03-14  Tom Tromey  <tromey@redhat.com>
15343
15344         * c-parser.c (disable_extension_diagnostics): Save
15345         warn_overlength_strings.
15346         (restore_extension_diagnostics): Restore warn_overlength_strings.
15347
15348 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15349
15350         * BASE-VER: Change to 4.7.0.
15351
15352 2011-03-14  Richard Guenther  <rguenther@suse.de>
15353
15354         PR middle-end/48098
15355         * tree.c (build_vector_from_val): Adjust assert to requirements
15356         and reality.
15357
15358 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15359
15360         PR bootstrap/48102
15361         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15362
15363 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
15364
15365         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15366         terms of target_flags_explicit. Adjust copyright year.
15367
15368         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15369         * config/rs6000/t-freebsd: New file. Add override for
15370         LIB2FUNCS_EXTRA.
15371
15372 2011-03-13  Chris Demetriou  <cgd@google.com>
15373
15374         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15375         (-fno-diagnostics-show-option): this, to reflect current default.
15376         (-Werror=): Update text about -fno-diagnostics-show-option.
15377
15378 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
15379
15380         PR target/48053
15381         * config/rs6000/predicates.md (easy_vector_constant_add_self,
15382         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15383         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15384         mode is not V2DImode or V2DFmode.
15385         (vspltis_constant): Do not handle V2DImode and V2DFmode.
15386         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15387         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15388         registers to 0.
15389         (movdi_internal64): Likewise.
15390
15391 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
15392
15393         PR tree-optimization/47127
15394         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15395         parameter.
15396         (set_cloog_options): Same.
15397         (scop_to_clast): Same.
15398         (print_clast_stmt): Do not call cloog_state_malloc and
15399         cloog_state_free.
15400         (print_generated_program): Same.
15401         (gloog): Same.
15402         * graphite-clast-to-gimple.h (cloog_state): Declared.
15403         (scop_to_clast): Adjust declaration.
15404         * graphite.c (cloog_state): Defined here.
15405         (graphite_initialize): Call cloog_state_malloc.
15406         (graphite_finalize): Call cloog_state_free.
15407
15408 2011-03-11  Jason Merrill  <jason@redhat.com>
15409
15410         * attribs.c (lookup_attribute_spec): Take const_tree.
15411         * tree.h: Adjust.
15412
15413 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
15414
15415         * config/sparc/sparc.c (sparc_option_override): Use
15416         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15417
15418 2011-03-11  Richard Guenther  <rguenther@suse.de>
15419
15420         PR tree-optimization/48067
15421         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15422         multiplication result will be only used once on the target
15423         stmt.
15424
15425 2011-03-11  Richard Guenther  <rguenther@suse.de>
15426
15427         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15428
15429 2011-03-11  Richard Guenther  <rguenther@suse.de>
15430
15431         PR lto/48073
15432         * tree.c (find_decls_types_r): Do not walk types only reachable
15433         from IDENTIFIER_NODEs.
15434
15435 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15436
15437         PR middle-end/48044
15438         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15439         all vnode->force_output nodes as needed.
15440
15441 2011-03-11  Jason Merrill  <jason@redhat.com>
15442
15443         PR c++/48069
15444         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15445         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15446
15447 2011-03-11  Martin Jambor  <mjambor@suse.cz>
15448
15449         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15450         cgraph_node.
15451
15452 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15453
15454         PR tree-optimization/48063
15455         * ipa-inline.c (cgraph_decide_inlining): Don't try to
15456         inline functions called once if !tree_can_inline_p (node->callers).
15457
15458 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
15459
15460         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15461         extra_objs.
15462         * config/score/score3.c: Delete.
15463         * config/score/score3.h: Delete.
15464         * config/score/mul-div.S: Delete.
15465         * config/score/sfp-machine.h: Add new file.
15466         * config/score/constraints.md: Add new file.
15467         * config/score/t-score-softfp: Add new file.
15468         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15469         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15470         (score7_extra_constraint): Delete.
15471         (score7_option_override): Remove unused code.
15472         * config/score/score.c: Remove score3 and score5 define and code.
15473         * config/score/score.h: Remove score3 and score5 define and code.
15474         * config/score/score.md: Remove score3 template and unusual insn.
15475         * config/score/score.opt: Remove score3 and score5 options.
15476
15477 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15478
15479         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15480         when _HPUX_SOURCE is defined.
15481         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15482
15483 2011-03-10  Jason Merrill  <jason@redhat.com>
15484
15485         PR c++/48029
15486         * stor-layout.c (layout_type): Don't set structural equality
15487         on arrays of incomplete type.
15488         * tree.c (type_hash_eq): Handle comparing them properly.
15489
15490 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
15491
15492         PR debug/48043
15493         * config/s390/s390.c (s390_delegitimize_address): Make sure the
15494         result mode matches original rtl mode.
15495
15496 2011-03-10  Nick Clifton  <nickc@redhat.com>
15497
15498         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15499         (andsi3, andsi3_flags): Fix timings for three operand alternative.
15500
15501 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
15502
15503         PR rtl-optimization/47866
15504         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15505         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15506         if target wasn't scalar.
15507         * function.c (assign_stack_temp_for_type): Assert that neither
15508         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15509         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15510         macro.
15511         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15512
15513 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15514
15515         * config/s390/s390-protos.h (s390_label_align): New prototype.
15516         * config/s390/s390.c (s390_label_align): New function.
15517         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15518
15519 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
15520
15521         PR target/47755
15522         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15523         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
15524         (output_vec_const_move): Ditto.
15525
15526 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
15527
15528         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15529         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15530         * config/mips/mips.c (mips_preferred_reload_class): Make static.
15531         Change 'rclass' argument and result type to reg_class_t.
15532         (TARGET_PREFERRED_RELOAD_CLASS): Define.
15533
15534 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
15535
15536         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15537         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15538         (TARGET_MEMORY_MOVE_COST): Define.
15539         (avr_register_move_cost, avr_memory_move_cost): New Functions.
15540
15541 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
15542
15543         PR debug/47881
15544         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15545         removed anything.
15546
15547         PR tree-optimization/48022
15548         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15549         for EQ/NE_EXPR.
15550
15551 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
15552
15553         PR debug/47991
15554         * var-tracking.c (find_use_val): Return NULL for
15555         cui->sets && cui->store_p BLKmode MEMs.
15556
15557 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
15558
15559         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15560         Remove.
15561         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15562         xstormy16_print_operand_address): Remove.
15563         * config/stormy16/stormy16.c (xstormy16_print_operand,
15564         xstormy16_print_operand_address): Make static.
15565         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15566
15567 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
15568
15569         PR target/47862
15570         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15571         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15572         before definition.
15573
15574 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
15575
15576         PR bootstrap/48000
15577         * cfgloopmanip.c (fix_bb_placements): Return immediately
15578         if FROM is BASE_LOOP's header.
15579
15580 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
15581
15582         * gimplify.c (gimplify_function_tree): Fix building calls
15583         to __builtin_return_address.
15584
15585 2011-03-07  Alan Modra  <amodra@gmail.com>
15586
15587         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15588         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15589         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15590         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15591         return_mode args.
15592         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15593         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15594         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15595         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15596         * config/rs6000/rs6000.c
15597         (rs6000_elf_end_indicate_exec_stack): Rename to..
15598         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
15599         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
15600         (rs6000_file_start): ..here.
15601         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15602         file scope variables.
15603         (call_ABI_of_interest): New function.
15604         (init_cumulative_args): Set above vars when function return value
15605         is a float, vector, or small struct.
15606         (rs6000_function_arg_advance_1): Likewise for function args.
15607         (rs6000_va_start): Set rs6000_passes_float if variable arg function
15608         references float args.
15609
15610 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
15611
15612         * doc/cfg.texi: Remove "See" before @ref.
15613         * doc/invoke.texi: Likewise.
15614
15615 2011-03-05  Jason Merrill  <jason@redhat.com>
15616
15617         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15618
15619 2011-03-05  Anthony Green  <green@moxielogic.com>
15620
15621         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15622
15623 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
15624
15625         PR rtl-optimization/47899
15626         * cfgloopmanip.c (fix_bb_placements): Fix first argument
15627         to flow_loop_nested_p when moving the loop upward.
15628
15629 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
15630
15631         PR target/47719
15632         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
15633
15634 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
15635
15636         PR tree-optimization/47967
15637         * ipa-cp.c (build_const_val): Return NULL instead of creating
15638         VIEW_CONVERT_EXPR for mismatching sizes.
15639         (ipcp_create_replace_map): Return NULL if build_const_val failed.
15640         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15641         give up on versioning.
15642
15643 2011-03-05  Alan Modra  <amodra@gmail.com>
15644
15645         PR target/47986
15646         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15647         full cmodel medium/large lo_sum + high addresses.
15648
15649 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15650
15651         * config/s390/s390.c (s390_decompose_address): Reject non-literal
15652         pool references in UNSPEC_LTREL_OFFSET.
15653
15654 2011-03-04  Jan Hubicka  <jh@suse.cz>
15655
15656         PR lto/47497
15657         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15658         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15659         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15660         Add node pointers.
15661         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15662         cgraph_add_thunk): Add node pointers.
15663         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15664         associated to right node.
15665         (input_node): Update use of cgraph_same_body_alias
15666         and cgraph_add_thunk.
15667
15668 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15669
15670         * config/i386/i386.opt (mprefer-avx128): New flag.
15671         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15672         modes when the flag -mprefer-avx128 is on.
15673
15674 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
15675
15676         * dwarf2out.c (compare_loc_operands): Fix address handling.
15677
15678 2011-03-04  Alan Modra  <amodra@gmail.com>
15679
15680         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15681
15682 2011-03-04  Richard Guenther  <rguenther@suse.de>
15683
15684         PR middle-end/47968
15685         * expmed.c (extract_bit_field_1): Prefer vector modes that
15686         vec_extract patterns can handle.
15687
15688 2011-03-04  Richard Guenther  <rguenther@suse.de>
15689
15690         PR middle-end/47975
15691         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15692
15693 2011-03-04  Richard Henderson  <rth@redhat.com>
15694
15695         * explow.c (emit_stack_save): Remove 'after' parameter.
15696         (emit_stack_restore): Likewise.
15697         * expr.h: Update to match.
15698         * builtins.c, calls.c, stmt.c: Likewise.
15699         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15700         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15701         * function.c (expand_function_end): Insert the emit_stack_save
15702         sequence before parm_birth_insn instead of after.
15703
15704 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
15705
15706         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15707         (ssse3_pmaddubsw128): Ditto.
15708         (ssse3_pmaddubsw): Ditto.
15709
15710 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
15711
15712         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15713
15714 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
15715
15716         PR c/47963
15717         * gimplify.c (omp_add_variable): Only call omp_notice_variable
15718         on TYPE_SIZE_UNIT if it is a DECL.
15719
15720         PR debug/47283
15721         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15722         first operand is not is_gimple_mem_ref_addr, try to fold it.
15723         If the operand still isn't is_gimple_mem_ref_addr, clear
15724         MEM_EXPR on op0.
15725
15726 2011-03-03  Richard Guenther  <rguenther@suse.de>
15727
15728         PR middle-end/47283
15729         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15730         match comment.
15731         (refs_may_alias_p_1): For release branches return true if
15732         we are confused by our input.
15733
15734 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15735
15736         * config/s390/s390.c (s390_function_value): Rename to ...
15737         (s390_function_and_libcall_value): ... this.
15738         (s390_function_value): New function.
15739         (s390_libcall_value): New function.
15740         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15741         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15742         target macro definitions.
15743         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15744
15745 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
15746
15747         * config/i386/freebsd64.h (CC1_SPEC): Define.
15748         * config/i386/linux64.h (CC1_SPEC): Define.
15749         * config/i386/x86-64.h (CC1_SPEC): Don't define.
15750
15751 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
15752
15753         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15754         Remove.
15755         * config/stormy16/stormy16.c: Include reload.h.
15756         (xstormy16_memory_move_cost): New function.
15757         (TARGET_MEMORY_MOVE_COST): Define.
15758
15759 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
15760
15761         PR rtl-optimization/47925
15762         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15763         with side effects.  Remove the more-specific check for volatile asms.
15764
15765 2011-03-02  Alan Modra  <amodra@gmail.com>
15766
15767         PR target/47935
15768         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15769         toc relative addresses for valid offsets.
15770
15771 2011-03-01  Richard Guenther  <rguenther@suse.de>
15772
15773         PR tree-optimization/47890
15774         * tree-vect-loop.c (get_initial_def_for_induction): Set
15775         related stmt properly.
15776
15777 2011-03-01  Richard Guenther  <rguenther@suse.de>
15778
15779         PR lto/47924
15780         * lto-streamer.c (lto_record_common_node): Also register
15781         the canonical type.
15782
15783 2011-03-01  Richard Guenther  <rguenther@suse.de>
15784
15785         PR lto/46911
15786         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15787         Do not stream DECL_ABSTRACT_ORIGIN.
15788         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15789         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15790         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15791         Do not stream DECL_ABSTRACT_ORIGIN.
15792         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15793         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15794
15795 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
15796
15797         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15798         FUNCTION_VALUE_REGNO_P): Remove.
15799         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15800         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15801         Add 'outgoing' argument.
15802         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15803         function.
15804         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15805         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15806
15807 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
15808
15809         PR debug/28047
15810         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15811         (lookup_filename): Likewise.
15812         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15813
15814 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
15815             Jakub Jelinek  <jakub@redhat.com>
15816
15817         PR middle-end/47893
15818         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15819         (assign_stack_local_1): Change last argument type to int.
15820         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15821         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
15822         don't record padding space into frame_space_list nor use those areas.
15823         (assign_stack_local): Adjust caller.
15824         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15825         of assign_stack_local, pass 0 as last argument.
15826         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15827         callers.
15828
15829 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
15830
15831         PR debug/47283
15832         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15833         Use target address_mode and pointer_mode hooks instead of hardcoded
15834         Pmode and ptr_mode.  Handle some simple cases of extending if
15835         POINTERS_EXTEND_UNSIGNED < 0.
15836         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15837         Call convert_debug_memory_address.
15838         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15839         convert_debug_memory_address.
15840
15841         PR middle-end/46790
15842         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15843         * configure: Regenerated.
15844         * config.in: Regenerated.
15845         * varasm.c (default_function_section): Return NULL
15846         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15847
15848 2011-02-28  Martin Jambor  <mjambor@suse.cz>
15849
15850         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15851         the description to match the printed values.
15852
15853 2011-02-28  Richard Guenther  <rguenther@suse.de>
15854
15855         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15856         of the copied scope tree.
15857
15858 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15859
15860         * doc/extend.texi (Function Attributes): Avoid deeply (and
15861         wrongly) nested tables.
15862
15863 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
15864
15865         PR middle-end/47903
15866         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15867         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15868         r isn't op0 nor op1.
15869
15870 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15871
15872         * config/avr/avr.md: Remove magic comment for emacs.
15873
15874 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15875
15876         PR target/45261
15877         * config/avr/avr.c (avr_option_override): Use error on bad options.
15878         (avr_help): New function.
15879         (TARGET_HELP): Define.
15880
15881 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
15882
15883         PR target/42240
15884         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15885         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15886
15887 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
15888
15889         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15890         (ARM Options): Ditto.
15891         (i386 and x86-64 Options): Ditto.
15892         (RX Options): Ditto.
15893         (SPARC Options): Ditto.
15894
15895 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
15896
15897         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15898         FreeBSD 6 and later.  Generally use cpu generic.
15899
15900 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
15901
15902         * doc/cpp.texi: Update copyright years.
15903
15904 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
15905
15906         PR target/46898
15907         * config/lm32/lm32.md (ashrsi3): Added needed variable.
15908
15909 2011-02-25  Jon Beniston  <jon@beniston.com>
15910
15911         PR target/46898
15912         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15913         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15914         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15915         (lm32_block_move_inline): Add type cast to remove warning.
15916         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15917         (gen_int_relational): Move declarations to start of function.
15918
15919 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
15920
15921         PR tree-optimization/45470
15922         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15923         can throw internally only.
15924         * tree-vect-stmts.c (vectorizable_call): Likewise.
15925
15926 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
15927
15928         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15929         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15930         * config/stormy16/stormy16-protos.h
15931         (xstormy16_preferred_reload_class): Remove.
15932         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15933         static. Change 'rclass' argument and return type to reg_class_t.
15934         (TARGET_PREFERRED_RELOAD_CLASS,
15935         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15936
15937 2011-02-24  Richard Guenther  <rguenther@suse.de>
15938
15939         * lto-streamer-in.c (input_bb): Do not find referenced vars
15940         in debug statements.
15941
15942 2011-02-23  Jason Merrill  <jason@redhat.com>
15943
15944         * common.opt (fabi-version): Document v5 and v6.
15945
15946 2011-02-23  Richard Guenther  <rguenther@suse.de>
15947
15948         PR tree-optimization/47849
15949         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15950
15951 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15952
15953         * opts-common.c (decode_cmdline_option): Print empty string
15954         argument as "" in decoded->orig_option_with_args_text.
15955         * gcc.c (execute): Print empty string argument as ""
15956         in the verbose output.
15957         (do_spec_1): Keep empty string argument.
15958
15959 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
15960
15961         * config.gcc: Declare score-* and crx-* obsolete.
15962
15963 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15964
15965         PR rtl-optimization/47763
15966         * web.c (web_main): Ignore naked clobber when replacing register.
15967
15968 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
15969
15970         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15971         Remove.
15972
15973 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15974
15975         PR doc/47848
15976         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15977
15978 2011-02-22  Mike Stump  <mikestump@comcast.net>
15979
15980         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15981         assembler.
15982         * configure: Regenerate.
15983
15984 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
15985
15986         PR rtl-optimization/46002
15987         * ira-color.c (update_copy_costs): Change class intersection
15988         test to reg_class_contents[] test of 'hard_regno'.
15989
15990 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
15991
15992         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15993         than Driver option.
15994         * config/hpux11.opt (mt): Likewise.
15995         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15996         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15997         * config/vax/elf.opt (mno-asm-pic): Likewise.
15998         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15999
16000 2011-02-21  Mike Stump  <mikestump@comcast.net>
16001
16002         PR target/47822
16003         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16004         tree so we can get save the type.
16005         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16006         for CFString instead of trying to use past the end of the builtins.
16007         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16008         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16009         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16010         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16011         Rename to darwin_builtin_cfstring.
16012         (darwin_init_cfstring_builtins): Return the built type.
16013
16014 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
16015
16016         PR target/47840
16017         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16018         (_mm256_insert_epi64): Use _mm_insert_epi64.
16019
16020 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
16021
16022         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16023         * config/stormy16/stormy16-protos.h
16024         (xstormy16_mode_dependent_address_p): Remove.
16025         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16026         Make static. Change return type to bool. Change argument type to
16027         const_rtx. Remove dead code.
16028         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16029
16030 2011-02-21  Richard Guenther  <rguenther@suse.de>
16031
16032         PR lto/47820
16033         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16034         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16035         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16036         TUs context.
16037         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16038         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16039
16040 2011-02-20  Richard Guenther  <rguenther@suse.de>
16041
16042         PR lto/47822
16043         * tree.c (free_lang_data_in_decl): Clean builtins from
16044         the TU decl BLOCK_VARS.
16045
16046 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
16047
16048         PR debug/47620
16049         PR debug/47630
16050         * haifa-sched.c (fix_tick_ready): Skip tick computation
16051         for debug insns.
16052
16053 2011-02-19  Richard Guenther  <rguenther@suse.de>
16054
16055         PR lto/47647
16056         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16057         Remove lazy BLOCK_VARS streaming.
16058         (lto_input_ts_block_tree_pointers): Likewise.
16059         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16060
16061 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
16062
16063         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16064
16065 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
16066
16067         * config/i386/biarch32.h, config/i386/mach.h,
16068         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16069
16070 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
16071
16072         PR target/47800
16073         * config/i386/i386.md (peephole2 for shift and plus): Use
16074         operands[1] original mode in the first insn.
16075
16076 2011-02-18  Mike Stump  <mikestump@comcast.net>
16077
16078         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16079
16080 2011-02-18  Jan Hubicka  <jh@suse.cz>
16081
16082         PR middle-end/47788
16083         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16084         to zero when the function is not inlinable at all.
16085
16086 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16087
16088         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16089         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16090         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16091         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16092         * config/pa/t-pa64: Likewise.
16093         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16094
16095 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
16096
16097         PR driver/47787
16098         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16099
16100 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16101
16102         PR target/47792
16103         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16104
16105 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
16106
16107         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16108         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16109         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16110         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16111         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16112         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16113         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16114         m32r_load_postinc_p, m32r_store_preinc_predec_p,
16115         m32r_legitimate_address_p): New functions.
16116         * config/m32r/constraints.md (constraint "S"): Don't use
16117         STORE_PREINC_PREDEC_P.
16118         (constraint "U"): Don't use LOAD_POSTINC_P.
16119
16120 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
16121
16122         PR rtl-optimization/46178
16123         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16124         compute ira_hard_regno_cover_class[].
16125
16126 2011-02-18  Richard Guenther  <rguenther@suse.de>
16127
16128         PR lto/47798
16129         * lto-streamer.h (lto_global_var_decls): Declare.
16130         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16131         statics for global var processing.
16132
16133 2011-02-18  Richard Guenther  <rguenther@suse.de>
16134
16135         PR tree-optimization/47737
16136         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16137         edge dominance check.
16138
16139 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
16140
16141         PR debug/47780
16142         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16143         avoid invalid rtx sharing.
16144
16145 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
16146
16147         * doc/cpp.texi (Obsolete Features): Add background on the
16148         origin of assertions.
16149
16150 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
16151
16152         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
16153         objc_abi == 2.
16154         * config/darwin.c (output_objc_section_asm_op): Added support for
16155         ABI v1 and v2.
16156         (is_objc_metadata): New.
16157         (darwin_objc2_section): New.
16158         (darwin_objc1_section): New.
16159         (machopic_select_section): Added support for ABI v1 and v2.
16160         (darwin_emit_objc_zeroed): New.
16161         (darwin_output_aligned_bss): Detect objc metadata and treat it
16162         appropriately.
16163         (darwin_asm_output_aligned_decl_common): Same.
16164         (darwin_asm_output_aligned_decl_local): Same.
16165         * config/darwin-sections.def: Updated for ABI v1 and v2.
16166         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16167         compiling Objective-C code for the NeXT runtime, default to using
16168         ABI version 0 for 32-bit, and version 2 for 64-bit.
16169
16170 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16171
16172         * common.opt (optimize_fast): New Variable.
16173         * opts.c (default_options_optimization): Use opts->x_optimize_fast
16174         instead of local variable ofast.
16175
16176 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
16177
16178         * doc/invoke.texi (fobjc-abi-version): Documented.
16179         (fobjc-nilcheck): Documented.
16180         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16181         version.
16182
16183 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16184
16185         PR driver/47390
16186         * common.opt (export-dynamic): New Driver option.
16187         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16188
16189 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16190
16191         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16192
16193 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
16194             Jan Hubicka  <jh@suse.cz>
16195
16196         PR debug/47106
16197         PR debug/47402
16198         * cfgexpand.c (account_used_vars_for_block): Remove.
16199         (estimated_stack_frame_size): Use referenced vars.
16200         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16201         that were referenced in the original function.  Test src_fn
16202         rather than cfun.  Drop redundant get_var_ann.
16203         (setup_one_parameter): Drop redundant get_var_ann.
16204         (declare_return_variable): Likewise.
16205         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16206         (copy_arguments_for_versioning): Drop redundant get_var_ann.
16207         * ipa-inline.c (compute_inline_parameters): Do not compute
16208         disregard_inline_limits here.
16209         (compute_inlinable_for_current, pass_inlinable): New.
16210         (pass_inline_parameters): Require PROP_referenced_vars.
16211         * cgraphunit.c (cgraph_process_new_functions): Don't run
16212         compute_inline_parameters explicitly unless function is in SSA form.
16213         (cgraph_analyze_function): Set .disregard_inline_limits.
16214         * tree-sra.c (convert_callers): Compute inliner parameters
16215         only for functions already in SSA form.
16216
16217 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16218
16219         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16220         -mlittle-endian-data.
16221
16222 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16223
16224         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16225         -mno-fpu, not -fpu and -no-fpu.
16226         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16227         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16228
16229 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
16230
16231         PR target/43653
16232         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16233         input reload with PLUS RTX.
16234
16235 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16236
16237         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16238         of InverseVar(MDMX).
16239
16240 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16241
16242         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16243         --m4-340.
16244
16245 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16246
16247         * config/mn10300/mn10300.opt (mno-crt0): New.
16248
16249 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16250
16251         * config/m68k/uclinux.opt (static-libc): New Driver option.
16252
16253 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16254
16255         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16256
16257 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16258
16259         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16260         %{muser-extend-enabled}.
16261
16262 2011-02-16  Richard Guenther  <rguenther@suse.de>
16263
16264         PR tree-optimization/47738
16265         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16266         the TODO from tree_predictive_commoning.
16267
16268 2011-02-15  Jeff Law  <law@redhat.com>
16269
16270         Revert
16271         2011-01-25  Jeff Law  <law@redhat.com>
16272
16273         PR rtl-optimization/37273
16274         * ira-costs.c (scan_one_insn): Detect constants living in memory and
16275         handle them like argument loads from stack slots.  Do not double
16276         count memory for memory constants and argument loads from stack slots.
16277
16278 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16279
16280         PR middle-end/47725
16281         * combine.c (cant_combine_insn_p): Revert the last change.
16282
16283 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
16284
16285         PR target/47755
16286         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16287         mode for vector constants.  Remove code that checks for TImode.
16288
16289 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16290
16291         PR debug/47106
16292         PR debug/47402
16293         * cgraph.h (compute_inline_parameters): Return void.
16294         * ipa-inline.c (compute_inline_parameters): Adjust.
16295
16296 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16297
16298         PR debug/47106
16299         PR debug/47402
16300         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16301         rather than decl.
16302         * cfgexpand.c (estimated_stack_frame_size): Likewise.
16303         * ipa-inline.c (compute_inline_parameters): Adjust.
16304
16305 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16306
16307         PR debug/47106
16308         PR debug/47402
16309         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16310         Adjust all users.  Pass FN to...
16311         * tree-flow-inline.h (first_referenced_var): ... this.  Add
16312         fn argument.
16313         * ipa-struct-reorg.c: Adjust.
16314         * tree-dfa.c: Adjust.
16315         * tree-into-ssa.c: Adjust.
16316         * tree-sra.c: Adjust.
16317         * tree-ssa-alias.c: Adjust.
16318         * tree-ssa-live.c: Adjust.
16319         * tree-ssa.c: Adjust.
16320         * tree-ssanames.c: Adjust.
16321         * tree-tailcall.c: Adjust.
16322
16323 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16324
16325         PR debug/47106
16326         PR debug/47402
16327         * tree-flow.h (referenced_var_lookup): Add fn parameter.
16328         Adjust all callers.
16329         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16330         * tree-flow-inline.h: Adjust.
16331         * gimple-pretty-print.c: Adjust.
16332         * tree-into-ssa.c: Adjust.
16333         * tree-ssa.c: Adjust.
16334         * cfgexpand.c: Adjust.
16335
16336 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16337
16338         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16339         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16340         (EXTRA_CONSTRAINT): Delete.
16341         * config/iq2000/constraints.md: New file.
16342         * config/iq2000/iq2000.md: Include it.
16343         (define_insn ""): Delete.
16344         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16345         unsupported constraint letters from patterns.
16346         (call_value, call_value_internal1): Likewise.
16347         (call_value_multiple_internal1): Likewise.
16348
16349 2011-02-15  Nick Clifton  <nickc@redhat.com>
16350
16351         * config/mn10300/mn10300.c: Include tm-constrs.h.
16352         (struct liw_data): New data structure describing an LIW candidate
16353         instruction.
16354         (extract_bundle): Use struct liw_data.  Allow small integer
16355         operands for some instructions.
16356         (check_liw_constraints): Use struct liw_data.  Remove swapped
16357         parameter.  Add comments describing the checks.  Fix bug when
16358         assigning the source of liw1 to the source of liw2.
16359         (liw_candidate): Delete.  Code moved into extract_bundle.
16360         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
16361         before swapping.
16362         * config/mn10300/predicates.md (liw_operand): New predicate.
16363         Allows registers and small integer constants.
16364         * config/mn10300/constraints.md (O): New constraint.  Accetps
16365         integers in the range -8 to +7 inclusive.
16366         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16367         for moving a small integer into a register.  Give this alternative
16368         LIW attributes.
16369         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16370         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16371         using the J,K,L and M constraints,
16372         (liw): Remove SI mode on second operands to allow for HI and QI
16373         mode values.
16374         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
16375         instruction.
16376
16377 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16378
16379         PR middle-end/47725
16380         * combine.c (cant_combine_insn_p): Check zero/sign extended
16381         hard registers.
16382
16383 2011-02-15  Richard Guenther  <rguenther@suse.de>
16384
16385         PR tree-optimization/47743
16386         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16387         for a non-type-compatible VN lookup bail out.
16388
16389 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16390
16391         * config/fr30/constraints.md: New file.
16392         * config/fr30/fr30.md: Include it.
16393         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16394         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16395         (EXTRA_CONSTRAINT): Delete.
16396
16397 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16398
16399         * config/frv/constraints.md: New file.
16400         * config/frv/predicates.md: Include it.
16401         * config/frv/frv.c (reg_class_from_letter): Delete.
16402         (frv_option_override): Don't initialize it.
16403         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16404         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16405         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16406         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16407         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16408         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16409         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16410         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16411         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16412         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16413         (REG_CLASS_FROM_CONSTRAINT): Delete.
16414
16415 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
16416
16417         PR middle-end/47581
16418         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16419         if frame size is 0 in a leaf function.
16420
16421 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16422
16423         PR pch/14940
16424         * config/alpha/host-osf.c: New file.
16425         * config/alpha/x-osf: New file.
16426         * config.host (alpha*-dec-osf*): Use it.
16427
16428 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16429
16430         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16431         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16432         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16433         (rx_mode_dependent_address_p): ...this. Make static. Change argument
16434         type to const_rtx.
16435         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16436
16437 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16438
16439         * config/stormy16/constraints.md: New file.
16440         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16441         Use satisfies_constraint_Q and satisfies_constraint_R.
16442         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16443         Delete.
16444         (xstormy16_legitiamte_address_p): Declare.
16445         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16446         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16447         (EXTRA_CONSTRAINT): Delete.
16448         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16449         Un-staticize.
16450         (xstormy16_extra_constraint_p): Delete.
16451
16452 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
16453
16454         PR tree-optimization/46494
16455         * loop-unroll.c (split_edge_and_insert): Adjust comment.
16456         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16457         (pass_rtl_loop_done): Add TODO_verify_flow.
16458         * fwprop.c (pass_rtl_fwprop): Likewise.
16459         * modulo-sched.c (pass_sms): Likewise.
16460         * tree-ssa-dom.c (pass_dominator): Likewise.
16461         * tree-ssa-loop-ch.c (pass_ch): Likewise.
16462         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16463         (pass_tree_loop_done): Likewise.
16464         * tree-ssa-pre.c (execute_pre): Likewise.
16465         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16466         * tree-ssa-sink.c (pass_sink_code): Likewise.
16467         * tree-vrp.c (pass_vrp): Likewise.
16468
16469 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16470
16471         * config/v850/constraints.md: New file.
16472         * config/v850/v850.md: Include it.
16473         * config/v850/predicates.md (reg_or_0_operand): Use
16474         satisfies_constraint_G.
16475         (special_symbolref_operand): Use satisfies_constraint_K.
16476         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16477         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16478         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16479         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16480         (EXTRA_CONSTRAINT): Delete.
16481         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16482         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16483         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16484
16485 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16486
16487         PR target/47696
16488         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16489         description.
16490
16491 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16492
16493         * config/mcore/constraints.md: New file.
16494         * config/mcore/mcore.md: Include it.
16495         * config/mcore/mcore.c (reg_class_from_letter): Delete.
16496         * config/mcore/mcore.h (reg_class_from_letter): Delete.
16497         (REG_CLASS_FROM_LETTER): Delete.
16498         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16499         insn_const_int_ok_for_constraint.
16500         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16501         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16502         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16503         (EXTRA_CONSTRAINT): Delete.
16504
16505 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16506
16507         PR ada/41929
16508         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16509         (IS_SIGHANDLER): Define.
16510         (sparc64_is_sighandler): New function, split off from
16511         sparc64_fallback_frame_state.
16512         (sparc_is_sighandler): New function, split off from
16513         sparc_fallback_frame_state.
16514         (sparc64_fallback_frame_state): Merge with ...
16515         (sparc_fallback_frame_state): ... this into ...
16516         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16517         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
16518         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
16519         stack instead of hardcoded offsets.
16520
16521 2011-02-14  Andriy Gapon  <avg@freebsd.org>
16522
16523         PR target/45808
16524         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16525
16526 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16527
16528         * configure: Regenerate.
16529
16530 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
16531
16532         PR driver/45731
16533         * gcc.c (asm_options): Correct spec matching --target-help.
16534
16535 2011-02-12  Martin Jambor  <mjambor@suse.cz>
16536
16537         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16538         to gimple call error.
16539
16540 2011-02-12  Mike Stump  <mikestump@comcast.net>
16541
16542         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16543         comments in backslash regions.
16544
16545 2011-02-12  Mike Stump  <mikestump@comcast.net>
16546             Jakub Jelinek  <jakub@redhat.com>
16547             Iain Sandoe  <iains@gcc.gnu.org>
16548
16549         PR target/47324
16550         * dwarf2out.c (output_cfa_loc): When required, apply the
16551         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16552         (output_loc_sequence): Likewise.
16553         (output_loc_operands_raw): Likewise.
16554         (output_loc_sequence_raw): Likewise.
16555         (output_cfa_loc): Likewise.
16556         (output_loc_list): Suppress register number adjustment when
16557         calling output_loc_sequence()
16558         (output_die): Likewise.
16559
16560 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
16561
16562         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16563         Remove macros.
16564         * config/xtensa/xtensa.c (xtensa_register_move_cost,
16565         xtensa_memory_move_cost): New functions.
16566         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16567
16568 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
16569
16570         PR lto/47225
16571         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16572         in the current directory.
16573         * configure: Rebuilt.
16574
16575 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16576
16577         * config/darwin.c (darwin_override_options): Add a hunk missed
16578         from the commit of r168571.  Trim comment line lengths and
16579         correct indents of the preceding block.
16580
16581 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16582
16583         * gcc.c (driver_handle_option): Concatenate the argument to -F with
16584         the switch.
16585
16586 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16587
16588         * common.opt (nostartfiles): New Driver option.
16589
16590 2011-02-11  Xinliang David Li  <davidxl@google.com>
16591
16592         PR tree-optimization/47707
16593         * tree-chrec.c (convert_affine_scev): Keep type precision.
16594
16595 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
16596
16597         PR tree-optimization/47420
16598         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16599
16600 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
16601
16602         PR rtl-optimization/47614
16603         * rtl.h (check_for_inc_dec): Declare.
16604         * dse.c (check_for_inc_dec): Externalize...
16605         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16606         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16607
16608 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16609
16610         PR driver/47678
16611         * gcc.c (main): Do not compile inputs if there were errors in
16612         option handling.
16613         * opts-common.c (read_cmdline_option): Check for wrong language
16614         after other error checks.
16615
16616 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
16617
16618         * cgraph.c: Fix comment typos.
16619         * cgraph.h: Likewise.
16620         * cgraphunit.c: Likewise.
16621         * ipa-cp.c: Likewise.
16622         * ipa-inline.c: Likewise.
16623         * ipa-prop.c: Likewise.
16624         * ipa-pure-const.c: Likewise.
16625         * ipa-ref.c: Likewise.
16626         * ipa-reference.c: Likewise.
16627
16628 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16629
16630         PR debug/47684
16631         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16632
16633 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16634
16635         PR testsuite/47400
16636         * doc/sourcebuild.texi (Require Support): Document
16637         dg-require-ascii-locale.
16638
16639 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
16640
16641         * doc/lto.texi (Write summary): Fix missing parentheses.
16642
16643 2011-02-10  DJ Delorie  <dj@redhat.com>
16644
16645         * config/m32c/m32c.c (m32c_option_override): Disable
16646         -fcombine-stack-adjustments until flag value tracking and compare
16647         optimization can be rewritten.
16648
16649 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
16650
16651         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16652         PROCESSOR_POWER7.
16653         (PROCESSOR_DEFAULT64): Likewise.
16654
16655 2011-02-10  Richard Henderson  <rth@redhat.com>
16656
16657         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16658         change from 2011-02-03.
16659         * config/rx/rx.c (flags_from_code): Likewise.
16660         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16661         is valid, n/pz otherwise.
16662         (rx_select_cc_mode): Return CCmode if Y is not zero.
16663
16664 2011-02-10  Richard Guenther  <rguenther@suse.de>
16665
16666         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16667
16668 2011-02-10  Richard Guenther  <rguenther@suse.de>
16669
16670         PR tree-optimization/47677
16671         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16672
16673 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
16674
16675         PR target/47665
16676         * combine.c (make_compound_operation): Only change shifts into
16677         multiplication for SCALAR_INT_MODE_P.
16678
16679 2011-02-10  Jie Zhang  <jie@codesourcery.com>
16680
16681         PR testsuite/47622
16682         Revert
16683         2011-02-05  Jie Zhang  <jie@codesourcery.com>
16684         PR debug/42631
16685         * web.c (entry_register): Don't clobber the number of the
16686         first uninitialized reference in used[].
16687
16688 2011-02-09  Richard Guenther  <rguenther@suse.de>
16689
16690         PR tree-optimization/47664
16691         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16692         all edges again.
16693
16694 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
16695
16696         PR target/46481
16697         PR target/47032
16698         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16699         PROCESSOR_POWER7.
16700         (PROCESSOR_DEFAULT64): Same.
16701         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16702
16703 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16704
16705         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16706
16707 2011-02-09  Martin Jambor  <mjambor@suse.cz>
16708
16709         PR middle-end/45505
16710         * tree-sra.c (struct access): New flags grp_scalar_read and
16711         grp_scalar_write.  Changed description of assignment read and write
16712         flags.
16713         (dump_access): Dump new flags, reorder all of them.
16714         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16715         to detect multiple scalar reads.
16716         (analyze_access_subtree): Use the new scalar read write flags instead
16717         of the old flags.  Adjusted comments.
16718
16719 2011-02-08  DJ Delorie  <dj@redhat.com>
16720
16721         PR target/47548
16722         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16723         patterns.
16724
16725 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16726
16727         * config/m68k/uclinux.opt: New.
16728         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16729
16730 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16731
16732         * config/cris/elf.opt (sim): New Driver option.
16733
16734 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16735
16736         * config/xtensa/elf.opt: New.
16737         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16738
16739 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16740
16741         * config/vax/elf.opt: New.
16742         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16743
16744 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16745
16746         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16747
16748 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16749
16750         * config/gnu-user.opt: New.
16751         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16752         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16753         *-*-uclinux*): Use gnu-user.opt.
16754
16755 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
16756
16757         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16758         * config/i386/gnu.h (CPP_SPEC): Likewise.
16759
16760 2011-02-08  Ian Lance Taylor  <iant@google.com>
16761
16762         * common.opt (fcx-limited-range): Add SetByCombined flag.
16763         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16764         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16765         (fassociative-math, freciprocal-math): Likewise.
16766         (funsafe-math-optimizations): Likewise.
16767         * opth-gen.awk: Handle SetByCombined.
16768         * optc-gen.awk: Likewise.
16769         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16770         (set_unsafe_math_optimizations_flags): Likewise.
16771         * doc/options.texi (Option properties): Document SetByCombined.
16772
16773 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16774
16775         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16776         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16777         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16778         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16779         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16780
16781 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
16782
16783         PR tree-optimization/46834
16784         PR tree-optimization/46994
16785         PR tree-optimization/46995
16786         * graphite-sese-to-poly.c (used_outside_reduction): New.
16787         (detect_commutative_reduction): Call used_outside_reduction.
16788         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16789         translate_scalar_reduction_to_array only when at least one
16790         loop-phi/close-phi tuple has been detected.
16791
16792 2011-02-08  Richard Guenther  <rguenther@suse.de>
16793
16794         PR middle-end/47639
16795         * tree-vect-generic.c (expand_vector_operations_1): Update
16796         stmts here ...
16797         (expand_vector_operations): ... not here.  Cleanup EH info
16798         and the CFG if required.
16799
16800 2011-02-08  Richard Guenther  <rguenther@suse.de>
16801
16802         PR tree-optimization/47641
16803         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16804         require type compatibility.
16805
16806 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16807
16808         * gimple-low.c (lower_function_body): Don't remove the location of
16809         the return statement here.
16810         (lower_gimple_return): Do it here instead but only if the return
16811         statement is actually used twice.
16812
16813 2011-02-08  Richard Guenther  <rguenther@suse.de>
16814
16815         PR tree-optimization/47632
16816         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16817         unused up_to_stmt parameter, return whether cfg-cleanup is
16818         necessary, remove EH info properly.
16819         (forward_propagate_into_gimple_cond): Adjust caller.
16820         (forward_propagate_into_cond): Likewise.
16821         (forward_propagate_comparison): Likewise.
16822         (tree_ssa_forward_propagate_single_use_vars): Make
16823         forward_propagate_comparison case similar to the two others.
16824
16825 2011-02-08  Nick Clifton  <nickc@redhat.com>
16826
16827         * config/mn10300/mn10300.opt (mliw): New command line option.
16828         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16829         (liw_bundling): New automaton.
16830         (liw): New attribute.
16831         (liw_op): New attribute.
16832         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16833         (movsi_internal): Add LIW attributes.
16834         (andsi3): Likewise.
16835         (iorsi3): Likewise.
16836         (xorsi3): Likewise.
16837         (addsi3): Separate register and immediate alternatives.
16838         Add LIW attributes.
16839         (subsi3): Likewise.
16840         (cmpsi): Likewise.
16841         (aslsi3): Likewise.
16842         (lshrsi3): Likewise.
16843         (ashrsi3): Likewise.
16844         (liw): New pattern.
16845         * config/mn10300/mn10300.c (liw_op_names): New
16846         (mn10300_print_operand): Handle 'W' operand descriptor.
16847         (extract_bundle): New function.
16848         (check_liw_constraints): New function.
16849         (liw_candidate): New function.
16850         (mn10300_bundle_liw): New function.
16851         (mn10300_reorg): New function.
16852         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16853         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16854         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16855         __LIW__ or __NO_LIW__.
16856         * doc/invoke.texi: Describe the -mliw command line option.
16857
16858 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16859
16860         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16861         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16862         pthread_mutex_unlock): Remove.
16863         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16864         * config/pa/t-pa64: Likewise.
16865         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16866         shared libc if not linking against libpthread.
16867         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16868
16869 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
16870
16871         PR target/47558
16872         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16873         on 10.6 and later to ensure that we always use the unwinder from
16874         the system.  Only add -no_compact_unwind when tarteting darwin
16875         10.6 or later.
16876
16877 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
16878
16879         PR target/46997
16880         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16881         (vec_interleave_lowv2sf): Ditto.
16882         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16883         (vec_extract_oddv2sf): Ditto.
16884
16885 2011-02-07  Mike Stump  <mikestump@comcast.net>
16886
16887         PR target/42333
16888         Add __ieee_divdc3 entry point.
16889         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16890         entry point.
16891         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16892         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16893         * config/darwin.c (darwin_rename_builtins): Add.
16894         * config/darwin-protos.h (darwin_rename_builtins): Add.
16895
16896 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
16897
16898         PR target/47636
16899         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16900         for the condition.
16901
16902 2011-02-07  Mike Stump  <mikestump@comcast.net>
16903
16904         * config/darwin.opt (mmacosx-version-min): Update default OS version.
16905
16906 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
16907
16908         PR target/47534
16909         * config/avr/libgcc.S (exit): Move .endfunc
16910
16911 2011-02-07  Richard Guenther  <rguenther@suse.de>
16912
16913         PR tree-optimization/47615
16914         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16915         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16916         (run_scc_vn): Initialize it.
16917         (visit_reference_op_load): Use it.
16918         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16919
16920 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16921
16922         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16923         DImode trapping arithmetic libfuncs.
16924
16925 2011-02-07  Richard Guenther  <rguenther@suse.de>
16926
16927         PR tree-optimization/47621
16928         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16929         two duplicates ...
16930         (execute_update_addresses_taken): ... here.  Make it more
16931         conservative in what we accept.
16932
16933 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16934
16935         * config/sparc/freebsd.h (ASM_SPEC): Define.
16936         * config/sparc/vxworks.h (ASM_SPEC): Define.
16937
16938 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16939
16940         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16941
16942 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
16943
16944         * doc/invoke.texi: Remove reference to compiler internals from
16945         user documentation.
16946
16947         * reg-notes.def: Remove REG_VALUE_PROFILE.
16948         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16949
16950 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
16951
16952         PR middle-end/47610
16953         * varasm.c (default_section_type_flags): If decl is NULL,
16954         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16955
16956 2011-02-05  Jie Zhang  <jie@codesourcery.com>
16957
16958         PR debug/42631
16959         * web.c (entry_register): Don't clobber the number of the
16960         first uninitialized reference in used[].
16961
16962 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
16963
16964         PR tree-optimization/46194
16965         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16966         (build_classic_dist_vector_1): Do not represent classic distance
16967         vectors when the access functions are variating in different loops.
16968
16969 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16970
16971         * config/mips/iris6.opt: New.
16972         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16973
16974 2011-02-04  Richard Henderson  <rth@redhat.com>
16975             Steve Ellcey  <sje@cup.hp.com>
16976
16977         PR target/46997
16978         * config/ia64/predicates.md (mux1_brcst_element): New.
16979         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16980         * config/ia64/ia64.c (ia64_unpack_assemble): New.
16981         (ia64_unpack_sign): New.
16982         (ia64_expand_unpack): Rewrite using new routines.
16983         (ia64_expand_widen_sum): Ditto.
16984         (ia64_expand_dot_prod_v8qi): Ditto.
16985         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16986         routines, add endian check.
16987         (pmpy2_even): Rename from pmpy2_r, add endian check.
16988         (pmpy2_odd): Rename from pmpy2_l, add endian check.
16989         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16990         (vec_widen_smult_hi_v4hi): Ditto.
16991         (vec_widen_umult_lo_v4hi): Ditto.
16992         (vec_widen_umult_hi_v4hi): Ditto.
16993         (mulv2si3): Change endian checks.
16994         (sdot_prodv4hi): Rewrite with new calls.
16995         (udot_prodv4hi): New.
16996         (vec_pack_ssat_v4hi): Add endian check.
16997         (vec_pack_usat_v4hi): Ditto.
16998         (vec_pack_ssat_v2si): Ditto.
16999         (max1_even): Rename from max1_r, add endian check.
17000         (max1_odd): Rename from max1_l, add endian check.
17001         (*mux1_rev): Format change.
17002         (*mux1_mix): Ditto.
17003         (*mux1_shuf): Ditto.
17004         (*mux1_alt): Ditto.
17005         (*mux1_brcst_v8qi): Use new predicate.
17006         (vec_extract_evenv8qi): Remove endian check.
17007         (vec_extract_oddv8qi): Ditto.
17008         (vec_interleave_lowv4hi): Format change.
17009         (vec_interleave_highv4hi): Ditto.
17010         (mix2_even): Rename from mix2_r, add endian check.
17011         (mix2_odd): Rename from mux2_l, add endian check.
17012         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17013         (vec_extract_evenodd_helper): Format change.
17014         (vec_extract_evenv4hi): Remove endian check.
17015         (vec_extract_oddv4hi): Remove endian check.
17016         (vec_interleave_lowv2si): Format change.
17017         (vec_interleave_highv2si): Format change.
17018         (vec_initv2si): Remove endian check.
17019         (vecinit_v2si): Add endian check.
17020         (reduc_splus_v2sf): Add endian check.
17021         (reduc_smax_v2sf): Ditto.
17022         (reduc_smin_v2sf): Ditto.
17023         (vec_initv2sf): Remove endian check.
17024         (fpack): Add endian check.
17025         (fswap): Add endian check.
17026         (vec_interleave_highv2sf): Add endian check.
17027         (vec_interleave_lowv2sf): Add endian check.
17028         (fmix_lr): Add endian check.
17029         (vec_setv2sf): Format change.
17030         (*vec_extractv2sf_0_be): Use shift to extract operand.
17031         (*vec_extractv2sf_1_be): New.
17032         (vec_pack_trunc_v4hi): Add endian check.
17033         (vec_pack_trunc_v2si): Format change.
17034
17035 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
17036
17037         PR inline-asm/23200
17038         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
17039         do bb, locus and block comparison and disallow loads if it is not set.
17040         (stmt_is_replaceable_p): New function.
17041         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17042         callers.
17043         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17044         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17045         SSA_NAME_DEF_STMT.
17046         * tree-flow.h (stmt_is_replaceable_p): New prototype.
17047
17048 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17049
17050         * config/rs6000/xilinx.opt: New.
17051         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17052
17053 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17054
17055         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17056
17057 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
17058
17059         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17060         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17061         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17062         secondary_reload_info, xtensa_secondary_reload): Remove.
17063         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17064         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17065         (xtensa_preferred_reload_class): Make static. Change return and
17066         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17067         Use CONST_DOUBLE_P predicate.
17068         (xtensa_preferred_output_reload_class): New function.
17069         (xtensa_secondary_reload): Make static.
17070
17071 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
17072
17073         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17074         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17075         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17076
17077 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17078
17079         PR middle-end/31490
17080         * output.h (SECTION_RELRO): Define.
17081         (SECTION_MACH_DEP): Adjust.
17082         (get_variable_section): New prototype.
17083         * varpool.c (varpool_finalize_named_section_flags): New function.
17084         (varpool_assemble_pending_decls): Call it.
17085         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17086         * cgraphunit.c (cgraph_output_in_order): Call
17087         varpool_finalize_named_section_flags.
17088         * varasm.c (get_section): Allow section flags conflicts between
17089         relro and read-only sections if the section hasn't been declared yet.
17090         Set SECTION_OVERRIDE after diagnosing section type conflict.
17091         (get_variable_section): No longer static.
17092         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17093         readonly sections that need relocations.
17094         (decl_readonly_section_1): New function.
17095         (decl_readonly_section): Use it.
17096
17097         Revert:
17098         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
17099                     Steve Ellcey  <sje@cup.hp.com>
17100
17101         PR middle-end/31490
17102         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17103         if section attribute used.
17104
17105 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17106
17107         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17108         * config/darwin.c (SECTION_NO_ANCHOR): Define.
17109         (darwin_init_sections): Remove assertion.
17110
17111 2011-02-03  Nick Clifton  <nickc@redhat.com>
17112
17113         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17114         lt and ge.
17115         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
17116         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17117         instead of "n" and "pz".
17118         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17119         CC_FLAG_S.
17120
17121 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17122
17123         PR target/47312
17124         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17125         fma, expand FMA_EXPR as fma{,f,l} call.
17126
17127         PR lto/47274
17128         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17129         copy them into a unsigned char variable and pass address of it to
17130         lto_output_data_stream.
17131
17132         PR target/47564
17133         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17134         around backend_init_target and lang_dependent_init_target calls.
17135         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17136         (verify_cgraph_node): Don't call set_cfun here.  Use
17137         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17138         Set error_found for incorrectly represented calls to thunks.
17139
17140 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
17141
17142         PR debug/43092
17143         PR rtl-optimization/43494
17144         * rtl.h (for_each_inc_dec_fn): New type.
17145         (for_each_inc_dec): Declare.
17146         * rtlanal.c (struct for_each_inc_dec_ops): New type.
17147         (for_each_inc_dec_find_inc_dec): New fn.
17148         (for_each_inc_dec_find_mem): New fn.
17149         (for_each_inc_dec): New fn.
17150         * dse.c (struct insn_size): Remove.
17151         (replace_inc_dec, replace_inc_dec_mem): Remove.
17152         (emit_inc_dec_insn_before): New fn.
17153         (check_for_inc_dec): Use it, along with for_each_inc_dec.
17154         (canon_address): Pass mem modes to cselib_lookup.
17155         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
17156         (cselib_lookup_from_insn): Likewise.
17157         (cselib_subst_to_values): Likewise.
17158         * cselib.c (find_slot_memmode): New var.
17159         (cselib_find_slot): New fn.  Use it instead of
17160         htab_find_slot_with_hash everywhere.
17161         (entry_and_rtx_equal_p): Use find_slot_memmode.
17162         (autoinc_split): New fn.
17163         (rtx_equal_for_cselib_p): Rename and implement in terms of...
17164         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
17165         Deal with autoinc.  Special-case recursion into MEMs.
17166         (cselib_hash_rtx): Likewise.
17167         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
17168         address and MEM modes.
17169         (cselib_subst_to_values): Add memmode, pass it on.
17170         Deal with autoinc.
17171         (cselib_lookup): Add memmode argument, pass it on.
17172         (cselib_lookup_from_insn): Add memmode.
17173         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17174         (struct cselib_record_autoinc_data): New.
17175         (cselib_record_autoinc_cb): New fn.
17176         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
17177         mode to cselib_lookup.  Reset autoinced REGs here instead of...
17178         (cselib_process_insn): ... here.
17179         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17180         to cselib_lookup.
17181         (add_uses): Likewise, also to cselib_subst_to_values.
17182         (add_stores): Likewise.
17183         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
17184         cselib_subst_to_values.
17185         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
17186         * gcse.c (do_local_cprop): Adjusted.
17187         * postreload.c (reload_cse_simplify_set): Adjusted.
17188         (reload_cse_simplify_operands): Adjusted.
17189         * sel-sched-dump (debug_mem_addr_value): Pass mode.
17190
17191 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
17192
17193         PR tree-optimization/45122
17194         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17195         unsafe assumptions when there's more than one loop exit.
17196
17197 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
17198
17199         PR target/47272
17200         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17201         Document using vector double with the load/store builtins, and
17202         that the load/store builtins always use Altivec instructions.
17203
17204         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17205         to use altivec memory instructions, even on VSX.
17206         (vector_altivec_store_<mode>): Ditto.
17207
17208         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17209         function.
17210
17211         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17212         V2DF, V2DI support to load/store overloaded builtins.
17213
17214         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17215         altivec load/store builtins for V2DF/V2DI types.
17216
17217         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17218         set avoid indexed addresses on power6 if -maltivec.
17219         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17220         vector_altivec_load/vector_altivec_store builtins.
17221         (altivec_expand_st_builtin): Ditto.
17222         (altivec_expand_builtin): Add VSX memory builtins.
17223         (rs6000_init_builtins): Add V2DI types to internal types.
17224         (altivec_init_builtins): Add support for V2DF/V2DI altivec
17225         load/store builtins.
17226         (rs6000_address_for_altivec): Insure memory address is appropriate
17227         for Altivec.
17228
17229         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17230         vec_vsx_ld and vec_vsx_st.
17231         (vsx_store_<mode>): Ditto.
17232
17233         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17234         variables to hold long long types for VSX vector memory builtins.
17235         (RS6000_BTI_unsigned_long_long): Ditto.
17236         (long_long_integer_type_internal_node): Ditti.
17237         (long_long_unsigned_type_internal_node): Ditti.
17238
17239         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17240         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17241         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17242
17243         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17244         short cuts.
17245         (vec_vsx_st): Ditto.
17246
17247 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17248
17249         * config/pa/pa-hpux10.opt: New.
17250         * config/hpux11.opt (pthread): New Driver option.
17251         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17252         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17253
17254 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17255
17256         * config/ia64/vms.opt: New.
17257         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17258
17259 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
17260
17261         PR target/47580
17262         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17263         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17264         generator functions.
17265         (vsx_floatuns<VSi><mode>2): Ditto.
17266         (vsx_fix_trunc<mode><VSi>2): Ditto.
17267         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17268
17269 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17270
17271         * config/i386/djgpp.opt (posix): New Driver option.
17272
17273 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
17274
17275         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17276         Move to the unsupported targets list.
17277
17278 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
17279
17280         PR rtl-optimization/47525
17281         * df-scan.c: Update copyright years.
17282         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17283         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17284
17285 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17286
17287         * config/i386/sysv4.h (TARGET_VERSION): Remove.
17288         (SUBTARGET_RETURN_IN_MEMORY): Remove.
17289         (ASM_OUTPUT_ASCII): Remove.
17290         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17291
17292 2011-02-02  Jeff Law  <law@redhat.com>
17293
17294         PR middle-end/47543
17295         * reload.c (find_reloads_address): Handle reg+d address where both
17296         components are invalid by reloading the entire address.
17297
17298 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
17299             Richard Guenther  <rguenther@suse.de>
17300
17301         PR tree-optimization/40979
17302         PR bootstrap/47044
17303         * passes.c (init_optimization_passes): After LIM call copy_prop
17304         and DCE to clean up.
17305         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17306
17307 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
17308
17309         PR tree-optimization/47576
17310         PR tree-optimization/47555
17311         * doc/invoke.texi (scev-max-expr-complexity): Documented.
17312         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17313         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17314         * tree-scalar-evolution.c (follow_ssa_edge): Use
17315         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17316
17317 2011-02-02  Richard Guenther  <rguenther@suse.de>
17318
17319         PR tree-optimization/47566
17320         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17321
17322 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17323
17324         PR debug/47106
17325         PR debug/47402
17326         * tree-inline.c (declare_return_variable): Remove unused caller
17327         variable.
17328
17329         PR debug/47106
17330         PR debug/47402
17331         * tree-flow-inline.h (clear_is_used, is_used_p): New.
17332         * cfgexpand.c (account_used_vars_for_block): Use them.
17333         * tree-nrv.c (tree_nrv): Likewise.
17334         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17335         (dump_scope_block): Likewise.
17336         (remove_unused_locals): Likewise.
17337
17338         PR debug/47106
17339         PR debug/47402
17340         * tree-inline.c (declare_return_variable): Add result decl to
17341         local decls only once.
17342         * gimple-low.c (record_vars_into): Mark newly-created variables
17343         as referenced.
17344
17345 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17346
17347         PR debug/47498
17348         PR debug/47501
17349         PR debug/45136
17350         PR debug/45130
17351         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17352         debug insns.
17353         (no_real_insns_p, schedule_block, set_priorities): Drop special
17354         treatment of boundary debug insns.
17355         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17356         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17357         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17358         (BOUNDARY_DEBUG_INSN_P): Likewise.
17359         (SCHEDULE_DEBUG_INSN_P): Likewise.
17360         * sched-rgn.c (init_ready_list): Drop special treatment of
17361         boundary debug insns.
17362         * final.c (rest_of_clean_state): Clear notes' BB.
17363
17364 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17365
17366         * config/openbsd.opt (assert=): New Driver option.
17367
17368 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17369
17370         * config/i386/nto.opt: New.
17371         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17372
17373 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17374
17375         * config/i386/netware.opt: New.
17376         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17377
17378 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17379
17380         * config/interix.opt (posix): New Driver option.
17381
17382 2011-02-01  DJ Delorie  <dj@redhat.com>
17383
17384         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17385
17386         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17387         class for A0/A1.
17388
17389 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
17390
17391         PR tree-optimization/47561
17392         * toplev.c (process_options): Print the Graphite flags.  Add
17393         flag_loop_flatten to the list of options requiring Graphite.
17394
17395 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17396
17397         * config/i386/cygming.opt (posix): New Driver option.
17398
17399 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17400
17401         * config/arm/vxworks.opt: New.
17402         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17403
17404 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17405
17406         * config/alpha/elf.opt: New.
17407         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17408         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17409
17410 2011-02-01  Richard Guenther  <rguenther@suse.de>
17411
17412         PR tree-optimization/47559
17413         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17414         store-motion on references that can throw.
17415
17416 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
17417
17418         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17419         * tree-pass.h (TDF_CSELIB): New macro.
17420         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17421         cselib_lookup): Check for it rather than for TDF_DETAILS.
17422
17423 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
17424
17425         PR driver/47547
17426         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17427         is HOST_BIT_BUCKET.
17428
17429         * opts.c (finish_options): Don't add x_aux_base_name if it is
17430         HOST_BIT_BUCKET.
17431
17432 2011-02-01  Richard Guenther  <rguenther@suse.de>
17433
17434         PR tree-optimization/47555
17435         Revert
17436         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
17437
17438         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17439
17440 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
17441
17442         PR gcc/46692
17443         * config/lm32/t-lm32: Add multilib for all CPU options.
17444
17445 2011-02-01  Richard Guenther  <rguenther@suse.de>
17446
17447         PR tree-optimization/47541
17448         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17449         sure to have a field at offset zero.
17450
17451 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17452
17453         * config/arc/arc.opt (EB, EL): New Driver options.
17454
17455 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17456
17457         * config/alpha/osf5.opt: New.
17458         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17459
17460 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17461
17462         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17463
17464 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
17465
17466         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17467         -floop-interchange.
17468         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17469         is an alias of -floop-interchange and that it requires the
17470         Graphite infrastructure.
17471         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17472         flag_loop_interchange based on the value of flag_tree_loop_linear.
17473
17474 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
17475             Richard Guenther  <rguenther@suse.de>
17476
17477         PR tree-optimization/47538
17478         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17479         type instead of r1type, except for comparisons.  For right
17480         shifts and comparisons punt if there are mismatches in
17481         sizetype vs. non-sizetype types.
17482
17483 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17484
17485         * doc/sourcebuild.texi (Effective-Target Keywords): Document
17486         avx_runtime.
17487
17488 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17489
17490         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17491         version number.
17492         * configure: Regenerate.
17493
17494 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17495
17496         * configure.ac (gcc_cv_ld_static_option): Define.
17497         (gcc_cv_ld_dynamic_option): Define.
17498         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17499         instead.
17500         (HAVE_LD_STATIC_DYNAMIC): Update message.
17501         (LD_STATIC_OPTION): Define.
17502         (LD_DYNAMIC_OPTION): Define.
17503         * configure: Regenerate.
17504         * config.in: Regenerate.
17505         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17506         HAVE_LD_STATIC_DYNAMIC]: Use them.
17507
17508 2011-01-31  Nick Clifton  <nickc@redhat.com>
17509
17510         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17511         registers inside interrupt handlers if the handler is not a leaf
17512         function.
17513
17514 2011-01-31  Nick Clifton  <nickc@redhat.com>
17515
17516         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17517         reg_renumber returning an INVALID_REGNUM.
17518
17519 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17520
17521         PR libgcj/44341
17522         * doc/install.texi: Document host options discarded when cross
17523         configuring target libraries.
17524
17525 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17526
17527         Reverted:
17528         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17529         PR debug/45136
17530         PR debug/45130
17531         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17532         debug insns.
17533         (no_real_insns_p, schedule_block, set_priorities): Drop special
17534         treatment of boundary debug insns.
17535         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17536         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17537         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17538         (BOUNDARY_DEBUG_INSN_P): Likewise.
17539         (SCHEDULE_DEBUG_INSN_P): Likewise.
17540         * sched-rgn.c (init_ready_list): Drop special treatment of
17541         boundary debug insns.
17542         * final.c (rest_of_clean-state): Clear notes' BB.
17543
17544 2011-01-31  Alan Modra  <amodra@gmail.com>
17545
17546         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17547         toc relative expressions as we do in print_operand_address.
17548
17549 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
17550
17551         * doc/extend.texi: Follow spelling conventions.
17552         * doc/invoke.texi: Fix a typo.
17553
17554 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
17555
17556         * config/hpux11.opt: New.
17557         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17558         ia64*-*-hpux*): Use hpux11.opt.
17559
17560 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
17561
17562         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17563         to tmake_file.
17564
17565 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17566
17567         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17568         support sites.
17569
17570 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17571
17572         * doc/install.texi (Binaries): Remove outdated reference for
17573         Motorola 68HC11/68HC12 downloads.
17574
17575 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17576
17577         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17578         Drepper's paper.
17579
17580 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
17581
17582         PR bootstrap/47147
17583         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17584         used by NetBSD.
17585
17586 2011-01-28  Ahmad Sharif  <asharif@google.com>
17587
17588         * value-prof.c (check_counter): Corrected error message.
17589
17590 2011-01-29  Jie Zhang  <jie@codesourcery.com>
17591
17592         * config/arm/arm.c (arm_legitimize_reload_address): New.
17593         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17594         arm_legitimize_reload_address.
17595         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17596
17597 2011-01-28  Ian Lance Taylor  <iant@google.com>
17598
17599         * godump.c (go_define): Ignore macros whose definitions include
17600         two adjacent operands.
17601
17602 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
17603
17604         PR target/42894
17605         * varasm.c (force_const_mem): Store copy of x in desc->constant
17606         instead of x itself.
17607         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17608         itself into REG_EQUAL note.
17609
17610 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
17611
17612         * config/freebsd.opt (posix, rdynamic): New Driver options.
17613
17614 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17615
17616         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17617         -Bstatic/-Bdynamic.
17618         * configure: Regenerate.
17619
17620 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
17621
17622         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17623         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17624
17625 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
17626
17627         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17628         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17629         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17630         (s390_preferred_reload_class): Make static. Change return and
17631         'rclass' argument type to reg_class_t.
17632
17633 2011-01-27  Jan Hubicka  <jh@suse.cz>
17634
17635         PR middle-end/46949
17636         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17637         (process_function_and_variable_attributes): Check defined weakrefs.
17638
17639 2011-01-27  Martin Jambor  <mjambor@suse.cz>
17640
17641         PR tree-optimization/47228
17642         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17643         build_ref_for_offset.
17644
17645 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17646
17647         * config/spu/spu-elf.h (ASM_SPEC): Remove.
17648
17649 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
17650
17651         PR rtl-optimization/46856
17652         * postreload.c (reload_combine_recognize_const_pattern): Do not
17653         separate cc0 setter and user on cc0 targets.
17654
17655 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
17656
17657         PR c/43082
17658         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17659         passed a VOID_TYPE expression, immediately emit an error and
17660         return error_mark_node.
17661
17662 2011-01-26  Jeff Law  <law@redhat.com>
17663
17664         PR rtl-optimization/47464
17665         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17666         rather than may_trap_p as needed.
17667
17668 2011-01-26  DJ Delorie  <dj@redhat.com>
17669
17670         PR rtl-optimization/46878
17671         * combine.c (insn_a_feeds_b): Check for the implicit cc0
17672         setter/user dependency as well.
17673
17674 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
17675
17676         PR rtl-optimization/44469
17677         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17678         after removing trivially dead basic blocks.
17679
17680 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17681
17682         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17683         * config/frv/frv.h (LINK_SPEC): Likewise.
17684         * config/i386/netware.h (LINK_SPEC): Likewise.
17685         * config/m68k/linux.h (ASM_SPEC): Likewise.
17686         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17687         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17688         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17689         * config/sparc/linux.h (ASM_SPEC): Likewise.
17690         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17691         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17692
17693 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17694
17695         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17696         * config/frv/frv.h (ASM_SPEC): Likewise.
17697         * config/m68k/linux.h (ASM_SPEC): Likewise.
17698         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17699         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17700         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17701         * config/sparc/linux.h (ASM_SPEC): Likewise.
17702         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17703         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17704
17705 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17706
17707         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17708         * config/frv/frv.h (LINK_SPEC): Likewise.
17709         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17710
17711 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17712
17713         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17714         * config/frv/frv.h (ASM_SPEC): Likewise.
17715         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17716         * config/m68k/linux.h (ASM_SPEC): Likewise.
17717         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17718         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17719         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17720         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17721         * config/sparc/linux.h (ASM_SPEC): Likewise.
17722         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17723         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17724         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17725
17726 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
17727
17728         PR target/46997
17729         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17730         (*mux2): Ditto.
17731         (vec_extract_evenodd_help): Ditto.
17732         (vec_extract_evenv4hi): Ditto.
17733         (vec_extract_oddv4hi): Ditto.
17734         (vec_interleave_lowv2si): Ditto.
17735         (vec_interleave_highv2si): Ditto.
17736         (vec_extract_evenv2si): Ditto.
17737         (vec_extract_oddv2si: Ditto.
17738         (vec_pack_trunc_v2si): Ditto.
17739
17740 2011-01-22  Jan Hubicka  <jh@suse.cz>
17741
17742         PR target/47237
17743         * cgraph.h (cgraph_local_info): New field can_change_signature.
17744         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17745         signature can change.
17746         (ipcp_estimate_growth): Call sequence simplify only if calle signature
17747         can change.
17748         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17749         (cgraph_function_versioning): We can not change signature of functions
17750         that don't allow that.
17751         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17752         (lto_input_node): Likewise.
17753         * ipa-inline.c (compute_inline_parameters): Compute
17754         local.can_change_signature.
17755         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17756         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17757         functions that can not change signature.
17758         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17759         init_cumulative_args): Do not use local calling conventions
17760         for functions that can not change signature.
17761
17762 2011-01-22  Jan Hubicka  <jh@suse.cz>
17763
17764         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17765
17766 2011-01-26  Richard Guenther  <rguenther@suse.de>
17767
17768         PR tree-optimization/47190
17769         * cgraphunit.c (process_common_attributes): New function.
17770         (process_function_and_variable_attributes): Use it.
17771
17772 2011-01-26  Richard Guenther  <rguenther@suse.de>
17773
17774         PR lto/47423
17775         * cgraphbuild.c (record_eh_tables): Record reference to personality
17776         function.
17777
17778 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
17779
17780         PR debug/45454
17781         * sel-sched.c (moveup_expr): Don't let debug insns prevent
17782         non-debug insns from moving up.
17783
17784 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17785
17786         PR target/40125
17787         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17788         t-dlldir{,-x} fragment for build and add it to tmake_file.
17789         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17790         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17791         * config/i386/t-dlldir: New file.
17792         (SHLIB_DLLDIR): Define.
17793         * config/i386/t-dlldir-x: New file.
17794         (SHLIB_DLLDIR): Define.
17795         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17796         (SHLIB_INSTALL): Use it.
17797
17798 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
17799
17800         PR target/47246
17801         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17802         lower bound of the allowed Thumb-2 coprocessor load/store
17803         index range to -256. Add explaining comment.
17804
17805 2011-01-25  Ian Lance Taylor  <iant@google.com>
17806
17807         * godump.c (go_define): Improve lexing of macro expansion to only
17808         accept expressions which match Go spec.
17809
17810 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17811
17812         PR c++/43601
17813         * tree.c (handle_dll_attribute): Handle it.
17814         * doc/extend.texi (@item dllexport): Mention it.
17815         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17816
17817 2011-01-25  Ian Lance Taylor  <iant@google.com>
17818
17819         PR tree-optimization/26854
17820         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17821         (decl_jump_unsafe): Move higher in file, with no other change.
17822         (bind): Set has_jump_unsafe_decl if appropriate.
17823         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17824         (check_earlier_gotos): Likewise.
17825         (c_check_switch_jump_warnings): Likewise.
17826
17827 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
17828
17829         * doc/invoke.texi (Warning Options): Add missing hyphen.
17830         (-fprofile-dir): Minor grammatical fixes.
17831         (-fbranch-probabilities): Likewise.
17832
17833 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17834
17835         PR debug/45136
17836         PR debug/45130
17837         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17838         debug insns.
17839         (no_real_insns_p, schedule_block, set_priorities): Drop special
17840         treatment of boundary debug insns.
17841         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17842         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17843         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17844         (BOUNDARY_DEBUG_INSN_P): Likewise.
17845         (SCHEDULE_DEBUG_INSN_P): Likewise.
17846         * sched-rgn.c (init_ready_list): Drop special treatment of
17847         boundary debug insns.
17848         * final.c (rest_of_clean-state): Clear notes' BB.
17849
17850 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17851
17852         * Makefile.in (LAMBDA_H): Removed.
17853         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17854         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17855         lambda-trans.o, and tree-loop-linear.o.
17856         (lto-symtab.o): Remove dependence on LAMBDA_H.
17857         (tree-loop-linear.o): Remove rule.
17858         (lambda-mat.o): Same.
17859         (lambda-trans.o): Same.
17860         (lambda-code.o): Same.
17861         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17862         (tree-vect-slp.o): Same.
17863         * hwint.h (gcd): Moved here.
17864         (least_common_multiple): Same.
17865         * lambda-code.c: Removed.
17866         * lambda-mat.c: Removed.
17867         * lambda-trans.c: Removed.
17868         * lambda.h: Removed.
17869         * tree-loop-linear.c: Removed.
17870         * lto-symtab.c: Do not include lambda.h.
17871         * omega.c (gcd): Removed.
17872         * passes.c (init_optimization_passes): Remove pass_linear_transform.
17873         * tree-data-ref.c (print_lambda_vector): Moved here.
17874         (lambda_vector_copy): Same.
17875         (lambda_matrix_copy): Same.
17876         (lambda_matrix_id): Same.
17877         (lambda_vector_first_nz): Same.
17878         (lambda_matrix_row_add): Same.
17879         (lambda_matrix_row_exchange): Same.
17880         (lambda_vector_mult_const): Same.
17881         (lambda_vector_negate): Same.
17882         (lambda_matrix_row_negate): Same.
17883         (lambda_vector_equal): Same.
17884         (lambda_matrix_right_hermite): Same.
17885         * tree-data-ref.h: Do not include lambda.h.
17886         (lambda_vector): Moved here.
17887         (lambda_matrix): Same.
17888         (dependence_level): Same.
17889         (lambda_transform_legal_p): Removed declaration.
17890         (lambda_collect_parameters): Same.
17891         (lambda_compute_access_matrices): Same.
17892         (lambda_vector_gcd): Same.
17893         (lambda_vector_new): Same.
17894         (lambda_vector_clear): Same.
17895         (lambda_vector_lexico_pos): Same.
17896         (lambda_vector_zerop): Same.
17897         (lambda_matrix_new): Same.
17898         * tree-flow.h (least_common_multiple): Removed declaration.
17899         * tree-parloops.c (lambda_trans_matrix): Moved here.
17900         (LTM_MATRIX): Same.
17901         (LTM_ROWSIZE): Same.
17902         (LTM_COLSIZE): Same.
17903         (LTM_DENOMINATOR): Same.
17904         (lambda_trans_matrix_new): Same.
17905         (lambda_matrix_vector_mult): Same.
17906         (lambda_transform_legal_p): Same.
17907         * tree-pass.h (pass_linear_transform): Removed declaration.
17908         * tree-ssa-loop.c (tree_linear_transform): Removed.
17909         (gate_tree_linear_transform): Removed.
17910         (pass_linear_transform): Removed.
17911         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17912         flag_loop_interchange.
17913
17914 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17915
17916         PR tree-optimization/47265
17917         PR tree-optimization/47443
17918         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17919         if name still has some uses.
17920
17921 2011-01-25  Martin Jambor  <mjambor@suse.cz>
17922
17923         PR tree-optimization/47382
17924         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17925         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17926
17927 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
17928
17929         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17930         sjlj_except_unwind_info.
17931
17932 2011-01-25  Richard Guenther  <rguenther@suse.de>
17933
17934         PR tree-optimization/47426
17935         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17936         visible functions results escape.
17937
17938 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17939
17940         PR target/45701
17941         * config/arm/arm.c (any_sibcall_uses_r3): New function.
17942         (arm_get_frame_offsets): Use it.
17943
17944 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17945             Jakub Jelinek  <jakub@redhat.com>
17946
17947         PR tree-optimization/47271
17948         * tree-if-conv.c (bb_postdominates_preds): New.
17949         (if_convertible_bb_p): Call bb_postdominates_preds.
17950         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17951         (predicate_scalar_phi): Call bb_postdominates_preds.
17952
17953 2011-01-25  Nick Clifton  <nickc@redhat.com>
17954
17955         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17956         * config/rx/rx.c (rx_function_value): Likewise.
17957         (rx_promote_function_mode): Likewise.
17958         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17959         in order to make it legitimate.
17960         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17961         make sure that the first operand is the same as the result register.
17962         (addsi3_unspec): Delete.
17963         (subdi3): Do not accept immediate operands.
17964         (subdi3_internal): Likewise.
17965
17966 2011-01-25  Jeff Law  <law@redhat.com>
17967
17968         PR rtl-optimization/37273
17969         * ira-costs.c (scan_one_insn): Detect constants living in memory and
17970         handle them like argument loads from stack slots.  Do not double
17971         count memory for memory constants and argument loads from stack slots.
17972
17973 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17974
17975         PR tree-optimization/47427
17976         PR tree-optimization/47428
17977         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17978         coalesce if the new root var would be TREE_READONLY.
17979
17980 2011-01-25  Richard Guenther  <rguenther@suse.de>
17981
17982         PR middle-end/47414
17983         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17984         correct type for TBAA.
17985
17986 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17987
17988         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17989         (close_phi_written_to_memory): Call for_each_index with
17990         dr_indices_valid_in_loop.
17991
17992 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17993
17994         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17995         when it is initialized.
17996
17997 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17998
17999         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18000         call to graphite_find_data_references_in_stmt.
18001         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18002         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
18003         call to graphite_find_data_references_in_stmt.
18004         (analyze_drs_in_stmts): Same.
18005         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18006         in which the scalar analysis of indices is performed.
18007         (create_data_ref): Same.  Update call to dr_analyze_indices.
18008         (find_data_references_in_stmt): Update call to create_data_ref.
18009         (graphite_find_data_references_in_stmt): Same.
18010         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18011         declaration.
18012         (create_data_ref): Same.
18013         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18014         call to create_data_ref.
18015
18016 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18017
18018         * graphite-sese-to-poly.c (build_poly_scop): Move
18019         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18020
18021 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18022
18023         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18024         VAR_DECL, PARM_DECL, and RESULT_DECL.
18025
18026 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18027
18028         * graphite-dependences.c (reduction_dr_1): Allow several reductions
18029         in a reduction PBB.
18030         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18031         that have already been marked as PBB_IS_REDUCTION.
18032
18033 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18034
18035         * graphite-scop-detection.c (same_close_phi_node): New.
18036         (remove_duplicate_close_phi): New.
18037         (make_close_phi_nodes_unique): New.
18038         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18039
18040 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18041
18042         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18043         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18044         of both data references to be the same.
18045
18046 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18047
18048         * graphite-dependences.c (build_lexicographical_constraint): Remove
18049         the gdim parameter.
18050         (build_lexicographical_constraint): Adjust call to
18051         ppl_powerset_is_empty.
18052         (dependence_polyhedron): Same.
18053         (graphite_legal_transform_dr): Same.
18054         (graphite_carried_dependence_level_k): Same.
18055         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18056         parameter.
18057         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18058
18059 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18060
18061         * graphite-sese-to-poly.c
18062         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18063         (close_phi_written_to_memory): New.
18064         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18065         and unshare_expr.
18066
18067 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18068
18069         * doc/install.texi: Update the expected version number of PPL to 0.11.
18070         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18071         #if PPL_VERSION_MINOR < 11.
18072
18073 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18074
18075         * graphite-dependences.c: Include graphite-cloog-util.h.
18076         (new_poly_ddr): Inlined into dependence_polyhedron.
18077         (free_poly_ddr): Moved close by new_poly_ddr.
18078         (dependence_polyhedron_1): Renamed dependence_polyhedron.
18079         Early return NULL when ppl_powerset_is_empty returns true.
18080         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
18081         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
18082         (graphite_legal_transform_dr): Call new_poly_ddr.
18083         (graphite_carried_dependence_level_k): Same.
18084         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
18085         (dot_transformed_deps_stmt_1): Removed.
18086         (dot_deps_stmt_1): Call dot_deps_stmt_2.
18087         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
18088         (dot_deps_1): Call dot_deps_2.
18089         * Makefile.in (graphite-dependences.o): Add missing dependence on
18090         graphite-cloog-util.h.
18091
18092 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18093
18094         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18095         (build_lexicographical_constraint): Same.
18096         (dependence_polyhedron_1): Same.
18097         (graphite_legal_transform_dr): Same.
18098         (graphite_carried_dependence_level_k): Same.
18099         * graphite-ppl.c (ppl_powerset_is_empty): New.
18100         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18101         * tree-data-ref.c (dump_data_reference): Print the basic block index.
18102
18103 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18104
18105         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18106         the "a followed by b" relation and document it.
18107
18108 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18109
18110         * graphite-dependences.c (build_lexicographical_constraint): Stop the
18111         iteration when the bag of constraints is empty.
18112
18113 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18114
18115         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18116
18117 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18118
18119         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18120         nest and two loop depths as parameters.
18121         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18122         lst_perfect_nestify.
18123
18124 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18125
18126         * graphite-dependences.c (print_pddr): Call
18127         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18128
18129 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18130
18131         * graphite-ppl.c (debug_gmp_value): New.
18132         * graphite-ppl.h (debug_gmp_value): Declared.
18133
18134 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
18135
18136         * doc/install.texi: Document availability of cloog-0.16.
18137
18138 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
18139
18140         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18141         invalid postdominance info.
18142
18143 2011-01-24  Jan Hubicka  <jh@suse.cz>
18144
18145         PR c/21659
18146         * doc/extend.texi (weak pragma): Drop claim that it must
18147         appear before definition.
18148         * varasm.c (merge_weak, declare_weak): Only sanity check
18149         that DECL is not output at a time it is declared weak.
18150
18151 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
18152
18153         * machmode.def: Fixed comments.
18154
18155 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
18156
18157         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18158
18159 2011-01-24  Paul Koning  <ni1d@arrl.net>
18160
18161         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
18162         WORDS_BIG_ENDIAN.
18163
18164 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
18165
18166         PR target/46519
18167         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18168         (block_info): Add scanned and prev.
18169         (move_or_delete_vzeroupper_2): Return if the basic block
18170         has been scanned and the upper 128bit state is unchanged
18171         from the last scan.
18172         (move_or_delete_vzeroupper_1): Return true if the exit
18173         state is changed.
18174         (move_or_delete_vzeroupper): Visit basic blocks using the
18175         work-list based algorithm based on vt_find_locations in
18176         var-tracking.c.
18177
18178         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18179
18180 2011-01-24  Nick Clifton  <nickc@redhat.com>
18181
18182         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18183         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18184         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
18185         then define __v850e1__.
18186         * doc/invoke.texi: Document -mv850es.
18187
18188 2011-01-24  Richard Henderson  <rth@redhat.com>
18189
18190         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18191         compound unordered comparisons.
18192         * config/rx/rx.c (rx_split_fp_compare): Remove.
18193         * config/rx/rx-protos.h: Update.
18194         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18195         (cbranchsf4): Don't call rx_split_fp_compare.
18196         (*cbranchsf4): Use rx_split_cbranch.
18197         (*cmpsf): Don't accept "i" constraint.
18198         (*conditional_branch): Only valid after reload.
18199         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
18200
18201 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
18202
18203         PR target/47385
18204         * config/rs6000/altivec.md (vector constant splitters): Add
18205         support for creating vector single precision constants if -mvsx is
18206         used and we would create the constant using Altivec primitives.
18207
18208 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
18209             Richard Sandiford  <rdsandiford@googlemail.com>
18210
18211         PR rtl-optimization/47166
18212         * reload1.c (emit_reload_insns): Disable the spill_reg_store
18213         mechanism for PRE_MODIFY and POST_MODIFY.
18214         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18215         reloadreg.
18216
18217 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
18218
18219         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18220
18221 2011-01-22  Jan Hubicka  <jh@suse.cz>
18222
18223         PR lto/47333
18224         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18225
18226 2011-01-22  Jan Hubicka  <jh@suse.cz>
18227
18228         PR tree-optimization/43884
18229         PR lto/44334
18230         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18231         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18232
18233 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
18234
18235         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18236         * config/s390/s390.c (s390_register_move_cost,
18237         s390_memory_move_cost): New.
18238         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18239
18240 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18241
18242         PR middle-end/47401
18243         * except.c (sjlj_assign_call_site_values): Move setting the
18244         crtl->uses_eh_lsda flag to ...
18245         (sjlj_mark_call_sites): ... here.
18246         (sjlj_emit_function_enter): Support NULL dispatch label.
18247         (sjlj_build_landing_pads): In a function with no landing pads
18248         that still has must-not-throw regions, generate code to register
18249         a personality function with empty LSDA.
18250
18251 2011-01-21  Richard Henderson  <rth@redhat.com>
18252
18253         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18254
18255         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18256
18257         * compare-elim.c: New file.
18258         * Makefile.in (OBJS-common): Add it.
18259         (compare-elim.o): New.
18260         * common.opt (fcompare-elim): New.
18261         * opts.c (default_options_table): Add OPT_fcompare_elim.
18262         * tree-pass.h (pass_compare_elim_after_reload): New.
18263         * passes.c (init_optimization_passes): Add it.
18264         * recog.h: Protect against re-inclusion.
18265         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18266         * doc/invoke.texi (-fcompare-elim): Document it.
18267         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18268         * doc/tm.texi: Rebuild.
18269
18270 2011-01-22  Nick Clifton  <nickc@redhat.com>
18271
18272         * config/rx/rx.md (cstoresf4): Pass comparison operator to
18273         rx_split_fp_compare.
18274
18275 2011-01-22  Nick Clifton  <nickc@redhat.com>
18276
18277         * config/rx/rx.md (UNSPEC_CONST): New.
18278         (deallocate_and_return): Wrap the amount popped off the stack in
18279         an UNSPEC_CONST in order to stop it being rejected by
18280         -mmax-constant-size.
18281         (pop_and_return): Add a "(return)" rtx.
18282         (call): Drop the immediate operand.
18283         (call_internal): Likewise.
18284         (call_value): Likewise.
18285         (call_value_internal): Likewise.
18286         (sibcall_internal): Likewise.
18287         (sibcall_value_internal): Likewise.
18288         (sibcall): Likewise.  Generate an explicit call using
18289         sibcall_internal.
18290         (sibcall_value): Likewise.
18291         (mov<>): FAIL if a constant operand is not legitimate.
18292         (addsi3_unpsec): New pattern.
18293
18294         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18295         (ok_for_max_constant): New function.
18296         (gen_safe_add): New function.
18297         (rx_expand_prologue): Use gen_safe_add.
18298         (rx_expand_epilogue): Likewise.
18299         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
18300         UNSPEC CONSTs.
18301
18302 2011-01-21  Jeff Law  <law@redhat.com>
18303
18304         PR tree-optimization/47053
18305         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18306         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18307         statements are deleted.
18308         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
18309         is nonempty, then purge dead edges and cleanup the CFG.
18310
18311 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18312
18313         PR debug/47402
18314         Temporarily revert:
18315         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18316         PR debug/47106
18317         * tree-dfa.c (create_var_ann): Mark variable as used.
18318
18319 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18320
18321         PR middle-end/45566
18322         * except.c (convert_to_eh_region_ranges): Emit queued no-region
18323         notes from other section in hot/cold partitioning even if
18324         last_action is -3.  Increment call_site_base.
18325
18326         PR rtl-optimization/47366
18327         * fwprop.c (forward_propagate_into): Return bool.  If
18328         any changes are made, -fnon-call-exceptions is used and
18329         REG_EH_REGION note is present, call purge_dead_edges
18330         and return true if it purged anything.
18331         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18332         any EH edges were purged.
18333
18334 2011-01-21  Jeff Law  <law@redhat.com>
18335
18336         PR rtl-optimization/41619
18337         * caller-save.c (setup_save_areas): Break out code to determine
18338         which hard regs are live across calls by examining the reload chains
18339         so that it is always used.
18340         Eliminate code which checked REG_N_CALLS_CROSSED.
18341
18342 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18343
18344         PR tree-optimization/47355
18345         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18346         NOP has non-debug uses beyond PHIs in new_bb.
18347
18348 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18349
18350         PR debug/47106
18351         * cfgexpand.c (account_used_vars_for_block): Only account vars
18352         that are annotated as used.
18353         (estimated_stack_frame_size): Don't set TREE_USED.
18354         * tree-dfa.c (create_var_ann): Mark variable as used.
18355
18356 2011-01-21  Richard Guenther  <rguenther@suse.de>
18357
18358         PR middle-end/47395
18359         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18360
18361 2011-01-21  Richard Guenther  <rguenther@suse.de>
18362
18363         PR tree-optimization/47365
18364         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18365         (vn_reference_lookup_pieces): Adjust.
18366         (vn_reference_lookup): Likewise.
18367         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18368         (vn_reference_lookup_3): Only look through kills if in
18369         VN_WALKREWRITE mode.
18370         (vn_reference_lookup_pieces): Adjust.
18371         (vn_reference_lookup): Likewise.
18372         (visit_reference_op_load): Likewise.
18373         (visit_reference_op_store): Likewise.
18374         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18375         (compute_avail): Likewise.
18376         (eliminate): Likewise.
18377
18378 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18379
18380         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18381         DECL_IGNORED_P non-reg vars if they are used.
18382
18383         PR tree-optimization/47391
18384         * varpool.c (const_value_known_p): Return false if
18385         decl is volatile.
18386
18387 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
18388
18389         PR bootstrap/47215
18390         * config/i386/i386.c (ix86_local_alignment): Handle
18391         case for va_list_type_node is nil.
18392         (ix86_canonical_va_list_type): Likewise.
18393
18394 2011-01-21  Alan Modra  <amodra@gmail.com>
18395
18396         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18397         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18398
18399 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18400
18401         * config/arm/arm.md (define_attr type): Rename f_load
18402         and f_store to f_fpa_load and f_fpa_store. Update.
18403         (write_conflict): Deal with rename fallout.
18404         (*push_fp_multi): Likewise.
18405         * config/arm/fpa.md (f_load): Use f_fpa_load.
18406         (f_store): Use f_fpa_store.
18407         (*movsf_fpa): Likewise.
18408         (*movdf_fpa): Likewise.
18409         (*movxf_fpa): Likewise.
18410         (*thumb2_movsf_fpa): Likewise.
18411         (*thumb2_movdf_fpa): Likewise.
18412         (*thumb2_movxf_fpa): Likewise.
18413         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18414         f_loadd and f_stored.
18415         (*thumb2_movdi_vfp): Likewise.
18416         (*thumb2_movsf_vfp): Fix attribute to f_loads.
18417         (*thumb2_movsi_vfp): Likewise.
18418         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18419         Use f_loads instead of f_load.
18420         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18421
18422 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
18423
18424         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18425         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18426         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18427         (xtensa_mode_dependent_address_p): New function.
18428         (constantpool_address_p): Make static. Change return type to bool.
18429         Change argument type to const_rtx. Use CONST_INT_P predicate.
18430
18431 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
18432
18433         PR debug/46583
18434         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18435
18436 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18437
18438         PR debug/47283
18439         * cfgexpand.c (expand_debug_expr): Instead of generating
18440         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18441         etc. handling.
18442
18443 2011-01-20  Richard Guenther  <rguenther@suse.de>
18444
18445         PR middle-end/47370
18446         * tree-inline.c (remap_gimple_op_r): Recurse manually for
18447         the pointer operand of MEM_REFs.
18448
18449 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18450
18451         PR tree-optimization/46130
18452         * ipa-split.c (consider_split): If return_bb contains non-virtual
18453         PHIs other than for retval or if split_function would not adjust it,
18454         refuse to split.
18455
18456 2011-01-20  Richard Guenther  <rguenther@suse.de>
18457
18458         PR tree-optimization/47167
18459         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18460         Revert previous change, only avoid enumeral type changes.
18461
18462 2011-01-19  Mike Stump  <mikestump@comcast.net>
18463
18464         * doc/tm.texi.in (BRANCH_COST): Englishify.
18465         * doc/tm.texi (BRANCH_COST): Likewise.
18466
18467 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
18468
18469         PR c++/47291
18470         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18471         (gen_scheduled_generic_parms_dies): New functions.
18472         (gen_struct_or_union_type_die): Schedule template parameters DIEs
18473         generation for the end of CU compilation.
18474         (dwarf2out_finish): Generate template parameters DIEs here.
18475
18476 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18477
18478         PR debug/46240
18479         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18480         debug bind stmt on merge edges.
18481
18482 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18483
18484         PR debug/47079
18485         PR debug/46724
18486         * function.c (instantiate_expr): Instantiate incoming rtl of
18487         implicit arguments, and recurse on VALUE_EXPRs.
18488         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18489         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18490
18491 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18492
18493         * c-parser.c (c_parser_for_statement): Initialize
18494         collection_expression.
18495
18496 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18497
18498         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18499
18500 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18501
18502         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18503         (LINK_SHLIB_SPEC): Don't use %(link_path).
18504         (SUBTARGET_EXTRA_SPECS): Remove link_path.
18505
18506 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18507
18508         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18509         (NO_SHARED_LIB_SUPPORT): Remove.
18510         (LINK_SHLIB_SPEC): Remove one conditional definition.
18511
18512 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18513
18514         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18515         %{call_shared}.
18516         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18517         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18518         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18519         %{call_shared} and conditionals on these options not being passed.
18520         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18521         %{call_shared}.
18522
18523 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18524
18525         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18526         simplify.
18527
18528         * ipa-split.c: Spelling fixes.
18529
18530 2011-01-19  Richard Henderson  <rth@redhat.com>
18531
18532         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18533         (*mulsi3): Likewise.
18534
18535         * longlong.h [__mn10300__] (count_leading_zeros): New.
18536         [__mn10300__] (umul_ppmm, smul_ppmm): New.
18537         [__mn10300__] (add_ssaaaa, subddmmss): New.
18538         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18539         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18540
18541 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18542
18543         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18544
18545 2011-01-19  Richard Henderson  <rth@redhat.com>
18546
18547         * config/mn10300/mn10300.md (addsi3_flags): New.
18548         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18549         (subsi3_flags, subc_internal, subdi3): New.
18550         (subdi3_internal, *subdi3_degenerate): New.
18551         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18552
18553         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18554         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18555         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
18556         * config/mn10300/mn10300-protos.h: Update.
18557         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18558         (return_ret): Likewise.  Rename from return_internal_regs.
18559         (return_internal): Remove.
18560
18561         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18562         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18563         (mn10300_legitimate_constant_p): Likewise.
18564         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18565         (mn10300_frame_size): New.
18566         (mn10300_expand_prologue): Use it.
18567         (mn10300_expand_epilogue): Likewise.
18568         (mn10300_initial_offset): Likewise.
18569         * config/mn10300/mn10300-protos.h: Update.
18570         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18571         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18572         (prologue, epilogue, return_internal): Tidy output code.
18573         (mn10300_store_multiple_operation, return): Likewise.
18574         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18575         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18576         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18577         (load_pic, am33_load_pic): New.
18578         (mn10300_load_pic0, mn10300_load_pic1): New.
18579
18580         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18581         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18582         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18583         (cc_flags_for_mode, cc_flags_for_code): New.
18584         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18585         overflow flag is not valid.  Validate that the flags we need
18586         for the comparison are valid.
18587         (mn10300_output_cmp): Remove.
18588         (mn10300_output_add): New.
18589         (mn10300_select_cc_mode): Use cc_flags_for_code.
18590         (mn10300_split_cbranch): New.
18591         (mn10300_match_ccmode): New.
18592         (mn10300_split_and_operand_count): New.
18593         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18594         to the function.
18595         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18596         (addsi3): ... here.  Use mn10300_output_add.
18597         (*addsi3_flags): New.
18598         (*am33_subsi3, *mn10300_subsi3): Merge...
18599         (subsi3): ... here.  Use attribute isa.
18600         (*subsi3_flags): New.
18601         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
18602         when possible.
18603         (*am33_andsi3, *mn10300_andsi3): Merge...
18604         (andsi3): ... here.
18605         (*andsi3_flags): New.
18606         (andsi3 splitters): New.
18607         (*am33_iorsi3, *mn10300_iorsi3): Merge...
18608         (iorsi3): ... here.
18609         (*iorsi3_flags): New.
18610         (*am33_xorsi3, *mn10300_xorsi3): Merge...
18611         (xorsi3): ... here.
18612         (*xorsi3_flags): New.
18613         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18614         (one_cmplsi2): ... here.
18615         (*one_cmplsi2_flags): New.
18616         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
18617         instead of "dax" in constraints.  Use mn10300_split_cbranch.
18618         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
18619         use matching constraints to eliminate a self-comparison.
18620         (*integer_conditional_branch): Rename from integer_conditional_branch.
18621         Use int_mode_flags to match CC_REG.
18622         (*cbranchsi4_btst, *btstsi): New.
18623         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
18624         mn10300_split_cbranch.
18625         (*am33_cmpsf): Rename from am33_cmpsf.
18626         (*float_conditional_branch): Rename from float_conditional_branch.
18627         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18628         (zero_extendqisi2): ... here.
18629         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18630         (zero_extendhisi2): ... here.
18631         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18632         (extendqisi2): ... here.
18633         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18634         (extendhisi2): ... here.
18635         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18636         (ashlsi3): ... here.
18637         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18638         (lshrsi3): ... here.
18639         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18640         (ashrsi3): ... here.
18641         (consecutive add peephole): Remove.
18642         * config/mn10300/predicates.md (label_ref_operand): New.
18643         (int_mode_flags): New.
18644         (CCZN_comparison_operator): New.
18645
18646         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18647         (throughput_42_latency_43): New reservation.
18648         (mulsidi3, umulsidi3): New expanders.
18649         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
18650         the MDR register to allocation; separately allocate the low and
18651         high parts of the DImode result.
18652         (umulsidi3_internal): Similarly.
18653         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18654         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
18655         (udivsi3, umodsi3): Remove.
18656         (udivmodsi4, divmodsi4): New expanders.
18657         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
18658         (*divmodsi4): Simiarly.
18659         (ext_internal): New.
18660
18661         * config/mn10300/constraints.md ("z"): New constraint.
18662         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18663         (FIXED_REGISTERS): Don't fix MDR.
18664         (CALL_USED_REGSITERS): Reformat nicely.
18665         (REG_ALLOC_ORDER): Add MDR.
18666         (enum regclass): Add MDR_REGS.
18667         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18668         (IRA_COVER_CLASSES): Add MDR_REGS.
18669         (REGNO_REG_CLASS): Handle MDR_REG.
18670         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18671         (mn10300_register_move_cost): Likewise.
18672         * config/mn10300/mn10300.md (MDR_REG): New.
18673         (*movsi_internal): Handle moves to/from MDR_REGS.
18674
18675         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18676         POST_MODIFY.
18677         (mn10300_secondary_reload): Tidy combination reload classes.
18678         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18679         addresses for AM33.  Allow symbolic offsets for reg+imm.
18680         (mn10300_regno_in_class_p): New.
18681         (mn10300_legitimize_reload_address): New.
18682         * config/mn10300/mn10300.h (enum reg_class): Remove
18683         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18684         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
18685         SP_OR_GENERAL_REGS.
18686         (REG_CLASS_NAMES): Update to match.
18687         (REG_CLASS_CONTENTS): Likewise.
18688         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18689         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18690         (REGNO_IN_RANGE_P): Remove.
18691         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18692         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18693         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18694         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18695         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18696         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18697         (REGNO_GENERAL_P): New.
18698         (HAVE_POST_MODIFY_DISP): New.
18699         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18700         (LEGITIMIZE_RELOAD_ADDRESS): New.
18701         * config/mn10300/mn10300-protos.h: Update.
18702
18703         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18704         DATA_REGS for AM33 stack-pointer destination.
18705         (mn10300_preferred_output_reload_class): Likewise.
18706         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18707         into a form appropriate for ...
18708         (TARGET_SECONDARY_RELOAD): New.
18709         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18710         * config/mn10300/mn10300-protos.h: Update.
18711         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18712         reload_insi; use the "A" constraint for the scratch; handle AM33
18713         moves of sp to non-address registers.
18714
18715         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18716         (*movqi_internal): ... here.
18717         (*am33_movhi, *mn10300_movhi): Merge into...
18718         (*movhi_internal): ... here.
18719         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
18720         as the source/destination of moves from/to SP.
18721         (movsf): Only allow for AM33-2.
18722         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18723         any integer constant constraint.  Only allow for AM33-2.  Tidy
18724         all of the alternative outputs.
18725         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18726         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
18727         for MN103.
18728         (udivsi3, umodsi3): New patterns for MN103 only.
18729
18730 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
18731
18732         * doc/tm.texi.in: Spell out that a lack of register class unions
18733         can lead to ICEs.
18734         * doc/tm.texi: Regenerate.
18735
18736 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18737
18738         PR rtl-optimization/47337
18739         * dce.c (check_argument_store): New function.
18740         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
18741
18742         PR tree-optimization/47290
18743         * tree-eh.c (infinite_empty_loop_p): New function.
18744         (cleanup_empty_eh): Use it.
18745
18746 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
18747
18748         PR target/46997
18749         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18750         (a64_expand_widen_sum): Ditto.
18751         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18752         (vec_extract_evenodd_help): Ditto.
18753         (vec_extract_evenv4hi): Ditto.
18754         (vec_extract_oddv4hi): Ditto.
18755         (vec_extract_evenv2si): Ditto.
18756         (vec_extract_oddv2si): Ditto.
18757         (vec_extract_evenv2sf): Ditto.
18758         (vec_extract_oddv2sf): Ditto.
18759         (vec_pack_trunc_v4hi: Ditto.
18760         (vec_pack_trunc_v2si): Ditto.
18761         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18762         (vec_interleave_highv8qi): Ditto.
18763         (mix1_r): Ditto.
18764         (vec_extract_oddv8qi): Ditto.
18765         (vec_interleave_lowv4hi): Ditto.
18766         (vec_interleave_highv4hi): Ditto.
18767         (vec_interleave_lowv2si): Ditto.
18768         (vec_interleave_highv2si): Ditto.
18769
18770 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18771
18772         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18773         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18774         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
18775         (pa_c_mode_for_suffix): New.
18776         (TARGET_EXPAND_BUILTIN): Define.
18777         (TARGET_C_MODE_FOR_SUFFIX): Define.
18778         (pa_builtins): Define.
18779         (pa_init_builtins): Register __float128 type and init new support
18780         builtins.
18781         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18782         * config/pa/quadlib.c (_U_Qfcopysign): New.
18783
18784 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
18785
18786         PR middle-end/46894
18787         * explow.c (allocate_dynamic_stack_space): Do not assume more than
18788         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18789         are defined.
18790
18791 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18792
18793         PR tree-optimization/47179
18794         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18795         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18796
18797 2011-01-18  Richard Guenther  <rguenther@suse.de>
18798
18799         PR rtl-optimization/47216
18800         * emit-rtl.c: Include tree-flow.h.
18801         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18802         of replicating it with different semantics.
18803         * Makefile.in (emit-rtl.o): Adjust.
18804
18805 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18806
18807         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18808         (cortex_a9_dp): Handle neon types correctly.
18809
18810 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
18811
18812         PR rtl-optimization/47299
18813         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18814         subtarget.  Use normal multiplication if both operands are constants.
18815         * expmed.c (expand_widening_mult): Don't try to optimize constant
18816         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
18817         before using it.
18818
18819 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18820
18821         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
18822         spacing after 'e.g.', typos, comma, hyphenation.
18823
18824 2011-01-17  Richard Henderson  <rth@redhat.com>
18825
18826         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18827         (rx_restricted_mem_operand): New.
18828         (rx_shift_operand): Use register_operand.
18829         (rx_source_operand, rx_compare_operand): Likewise.
18830         * config/rx/rx.md (addsi3_flags): New expander.
18831         (adddi3): Rewrite as expander.
18832         (adc_internal, *adc_flags, adddi3_internal): New patterns.
18833         (subsi3_flags): New expander.
18834         (subdi3): Rewrite as expander.
18835         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18836
18837         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18838         (rx_init_builtins): Remove sat builtin.
18839         (rx_expand_builtin): Likewise.
18840         * config/rx/rx.md (ssaddsi3): New.
18841         (*sat): Rename from sat.  Represent the CC_REG input.
18842
18843         * config/rx/predicates.md (rshift_operator): New.
18844         * config/rx/rx.c (rx_expand_insv): Remove.
18845         * config/rx/rx-protos.h: Update.
18846         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
18847         operand to the canonical position.
18848         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18849         (*bitclr, *bitclr_in_memory): Similarly.
18850         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18851         (insv): Retain the zero_extract in the expansion.
18852
18853         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18854         (bswaphi2, bitinvert, revw): Likewise.
18855
18856         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18857         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18858         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18859         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18860         (bitset, bitset_in_memory): Likewise.
18861         (bitinvert, bitinvert_in_memory): Likewise.
18862         (bitclr, bitclr_in_memory): Likewise.
18863         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18864         (rx_strend, rx_cmpstrn): Likewise.
18865         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
18866         (bitop peep2 patterns): Remove.
18867
18868         * config/rx/rx.c (rx_match_ccmode): New.
18869         * config/rx/rx-protos.h: Update.
18870         * config/rx/rx.md (abssi2): Clobber, don't set flags.
18871         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18872         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18873         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18874         (fix_truncsfsi2, floatsisf2): Likewise.
18875         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18876         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18877         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18878         (*subsi3_flags, *xorsi3_flags): New.
18879
18880         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18881
18882         * config/rx/rx.c (rx_print_operand): Remove workaround for
18883         unsplit comparison operations.
18884
18885         * config/rx/rx.md (movsicc): Split after reload.
18886         (*movsicc): Merge *movsieq and *movsine via match_operator.
18887         (*stcc): New pattern.
18888
18889         * config/rx/rx.c (rx_float_compare_mode): Remove.
18890         * config/rx/rx.h (rx_float_compare_mode): Remove.
18891         * config/rx/rx.md (cstoresi4): Split after reload.
18892         (*sccc): New pattern.
18893
18894         * config/rx/predicates.md (label_ref_operand): New.
18895         (rx_z_comparison_operator): New.
18896         (rx_zs_comparison_operator): New.
18897         (rx_fp_comparison_operator): New.
18898         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18899         Validate that the flags are set properly for the comparison.
18900         (rx_gen_cond_branch_template): Remove.
18901         (rx_cc_modes_compatible): Remove.
18902         (mode_from_flags): New.
18903         (flags_from_code): Rename from flags_needed_for_conditional.
18904         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18905         (rx_select_cc_mode): Likewise.
18906         (rx_split_fp_compare): New.
18907         (rx_split_cbranch): New.
18908         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18909         (*cbranchsi4): Use match_operator and rx_split_cbranch.
18910         (*cbranchsf4): Similarly.
18911         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
18912         match_operator and rx_split_cbranch.
18913         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18914         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
18915         (*cmpsi): Rename from cmpsi.
18916         (*tstsi): Rename from tstsi.
18917         (*cmpsf): Rename from cmpsf; use CC_Fmode.
18918         (*conditional_branch): Rename from conditional_branch.
18919         (*reveresed_conditional_branch): Remove.
18920         (b<code>): Remove expander.
18921         * config/rx/rx-protos.h: Update.
18922
18923         * config/rx/rx.c (rx_compare_redundant): Remove.
18924         * config/rx/rx.md (cmpsi): Don't use it.
18925         * config/rx/rx-protos.h: Update.
18926
18927         * config/rx/rx-modes.def (CC_F): New mode.
18928         * config/rx/rx.c (rx_select_cc_mode): New.
18929         * config/rx/rx.h (SELECT_CC_MODE): Use it.
18930         * config/rx/rx-protos.h: Update.
18931
18932 2011-01-17  Richard Henderson  <rth@redhat.com>
18933
18934         * except.c (dump_eh_tree): Fix stray ; after for statement.
18935
18936 2011-01-17  Richard Guenther  <rguenther@suse.de>
18937
18938         PR tree-optimization/47313
18939         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18940         handling before copying the body.  Properly deal with
18941         by-reference result in SSA form.
18942
18943 2011-01-17  Ian Lance Taylor  <iant@google.com>
18944
18945         PR target/47219
18946         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18947         (struct_value_alias_set): Don't define.
18948         (sparc_option_override): Don't set sparc_sr_alias_set and
18949         struct_value_alias_set.
18950         (save_or_restore_regs): Use gen_frame_mem rather than calling
18951         set_mem_alias_set.
18952         (sparc_struct_value_rtx): Likewise.
18953
18954 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18955
18956         PR target/47318
18957         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18958         (_mm_maskstore_pd): Likewise.
18959         (_mm_maskload_ps): Likewise.
18960         (_mm_maskstore_ps): Likewise.
18961         (_mm256_maskload_pd): Change mask to __m256i.
18962         (_mm256_maskstore_pd): Likewise.
18963         (_mm256_maskload_ps): Likewise.
18964         (_mm256_maskstore_ps): Likewise.
18965
18966         * config/i386/i386-builtin-types.def: Updated.
18967         (ix86_expand_special_args_builtin): Likewise.
18968
18969         * config/i386/i386.c (bdesc_special_args): Update
18970         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18971         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18972         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18973         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18974
18975         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18976         Use <avxpermvecmode> on mask register.
18977         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18978
18979 2011-01-17  Olivier Hainque  <hainque@adacore.com>
18980             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18981             Eric Botcazou  <ebotcazou@adacore.com>
18982
18983         PR target/46655
18984         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18985         if <= USHRT_MAX in 32-bit mode.
18986
18987 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18988
18989         * doc/install.texi (Configuration, Specific): Wrap long
18990         lines in examples.  Allow line wrapping in long options
18991         and URLs where beneficial for PDF output.
18992
18993 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
18994
18995         * config/mips/mips.c (mips_classify_symbol): Don't return
18996         SYMBOL_PC_RELATIVE for nonlocal labels.
18997
18998 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
18999
19000         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19001
19002 2011-01-15  Jan Hubicka  <jh@suse.cz>
19003
19004         PR tree-optimization/47276
19005         * ipa.c (function_and_variable_visibility): Do not try to mark alias
19006         declarations as needed.
19007
19008 2011-01-15  Martin Jambor  <mjambor@suse.cz>
19009
19010         * common.opt (fdevirtualize): New flag.
19011         * doc/invoke.texi (Option Summary): Document it.
19012         * opts.c (default_options_table): Add devirtualize flag.
19013         * ipa-prop.c (detect_type_change): Return immediately if
19014         devirtualize flag is not set.
19015         (detect_type_change_ssa): Likewise.
19016         (compute_known_type_jump_func): Likewise.
19017         (ipa_analyze_virtual_call_uses): Likewise.
19018
19019 2011-01-14  Martin Jambor  <mjambor@suse.cz>
19020
19021         PR tree-optimization/45934
19022         PR tree-optimization/46302
19023         * ipa-prop.c (type_change_info): New type.
19024         (stmt_may_be_vtbl_ptr_store): New function.
19025         (check_stmt_for_type_change): Likewise.
19026         (detect_type_change): Likewise.
19027         (detect_type_change_ssa): Likewise.
19028         (compute_complex_assign_jump_func): Check for dynamic type change.
19029         (compute_complex_ancestor_jump_func): Likewise.
19030         (compute_known_type_jump_func): Likewise.
19031         (compute_scalar_jump_functions): Likewise.
19032         (ipa_analyze_virtual_call_uses): Likewise.
19033         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19034
19035 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19036
19037         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19038         * config/i386/i386.opt (msse5): New Alias.
19039
19040 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19041
19042         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19043         * config/sparc/linux64.h (CC1_SPEC): Likewise.
19044         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19045         * config/sparc/sparc.h (CC1_SPEC): Likewise.
19046
19047 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19048
19049         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19050         -mcpu options.
19051         * config/sparc/linux64.h (CC1_SPEC): Likewise.
19052         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19053         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19054         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19055         Likewise.
19056         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19057
19058 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19059
19060         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
19061
19062 2011-01-14  Mike Stump  <mikestump@comcast.net>
19063
19064         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19065         * config/fr30/fr30.md: Likweise
19066         (movsi_push): Likewise.
19067         (movsi_pop): Likewise.
19068         (enter_func): Likewise.
19069         * config/moxie/moxie.md (movsi_push): Likewise.
19070         (movsi_pop): Likewise.
19071
19072 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19073
19074         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19075         %{no_archive} %{exact_version}.
19076         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19077         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19078         %{no_archive} %{exact_version}.
19079         * config/mips/openbsd.h (LINK_SPEC): Likewise.
19080         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19081         * config/mips/vxworks.h: Likewise.
19082
19083 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19084
19085         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19086
19087 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19088
19089         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19090         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19091
19092 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19093
19094         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19095         -nodefaultlib.
19096
19097 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19098
19099         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19100         for mcpu not cpu.
19101         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19102         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19103         not cpu.
19104         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19105         Don't handle -shlib.
19106
19107 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19108
19109         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19110         (CC1_SPEC): Don't handle -profile.
19111
19112 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19113
19114         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19115         * config/mips/mips.h (CC1_SPEC): Likewise.
19116
19117 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19118
19119         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19120         * config/mips/mips.h (CC1_SPEC): Likewise.
19121
19122 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19123
19124         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19125         * config/m32r/linux.h (LINK_SPEC): Likewise.
19126         * config/mips/linux.h (LINK_SPEC): Likewise.
19127         * config/mips/linux64.h (LINK_SPEC): Likewise.
19128         * config/sparc/linux.h (LINK_SPEC): Likewise.
19129         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19130         LINK_SPEC): Likewise.
19131         * config/xtensa/linux.h (LINK_SPEC): Likewise.
19132
19133 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19134
19135         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19136         %{version:-v}.
19137         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19138
19139 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19140
19141         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19142         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19143
19144 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19145
19146         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19147
19148 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19149
19150         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19151         supports -Bstatic/-Bdynamic.
19152         * configure: Regenerate.
19153
19154 2011-01-14  Jan Hubicka  <jh@suse.cz>
19155             Jack Howarth  <howarth@bromo.med.uc.edu>
19156
19157         PR target/46037
19158         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19159         when checking debug_info_level. Test write_symbols instead of
19160         debug_hooks->var_location when setting flag_var_tracking_uninit.
19161
19162 2011-01-14  Richard Guenther  <rguenther@suse.de>
19163
19164         PR tree-optimization/47179
19165         * target.def (ref_may_alias_errno): New target hook.
19166         * targhooks.h (default_ref_may_alias_errno): Declare.
19167         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19168         (default_ref_may_alias_errno): New function.
19169         * target.h (struct ao_ref_s): Declare.
19170         * tree-ssa-alias.c: Include target.h.
19171         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19172         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19173         (targhooks.o): Likewise.
19174         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19175         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19176
19177 2011-01-14  Richard Guenther  <rguenther@suse.de>
19178
19179         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
19180
19181 2011-01-14  Richard Guenther  <rguenther@suse.de>
19182
19183         PR tree-optimization/47280
19184         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19185         return CFG changes.
19186         (tree_ssa_forward_propagate_single_use_vars): Deal with
19187         CFG changes from associate_plusminus.
19188
19189 2011-01-14  Richard Guenther  <rguenther@suse.de>
19190
19191         PR middle-end/47281
19192         Revert
19193         2011-01-11  Richard Guenther  <rguenther@suse.de>
19194
19195         PR tree-optimization/46076
19196         * tree-ssa.c (useless_type_conversion_p): Conversions from
19197         unprototyped to empty argument list function types are useless.
19198
19199 2011-01-14  Richard Guenther  <rguenther@suse.de>
19200
19201         PR tree-optimization/47286
19202         * tree-ssa-structalias.c (new_var_info): Register variables are global.
19203
19204 2011-01-14  Martin Jambor  <mjambor@suse.cz>
19205
19206         PR middle-end/46823
19207         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19208
19209 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
19210
19211         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19212         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19213         * config/xtensa/xtensa.c (xtensa_libcall_value,
19214         xtensa_function_value_regno_p): New functions.
19215         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19216
19217 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
19218
19219         PR c++/47213
19220         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19221         PE specific hook.
19222         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19223         New function prototype.
19224         * config/i386/winnt.c (i386_pe_assemble_visibility):
19225         Warn only if attribute was specified by user.
19226
19227 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
19228
19229         PR target/47251
19230         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19231         floating point.
19232         (floatunsdidf2_fcfidu): Ditto.
19233
19234 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19235
19236         * config/s390/s390.c (print_operand_address): Replace 'error' with
19237         'output_operand_lossage'.
19238         (print_operand): Likewise.
19239
19240 2011-01-13  Jeff Law  <law@redhat.com>
19241
19242         PR rtl-optimization/39077
19243         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19244         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19245         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19246         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19247         * gcse.c (prune_insertions_deletions): New function.
19248         (compute_pre_data): Use it.
19249
19250 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
19251
19252         PR debug/PR46973
19253         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19254         static function.
19255         (prune_unused_types_mark): Use it.
19256
19257 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
19258
19259         PR rtl-optimization/45352
19260         * sel-sched.c: Update copyright years.
19261         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19262         in the advancing loop when we have issued issue_rate insns.
19263
19264 2011-01-12  Richard Henderson  <rth@redhat.com>
19265
19266         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19267         (TARGET_MD_ASM_CLOBBERS): New.
19268
19269         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19270         (TARGET_DELEGITIMIZE_ADDRESS): New.
19271
19272         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19273         (clzsi2, *bsch): New patterns.
19274
19275         * config/mn10300/mn10300.md (INT): New mode iterator.
19276         (*mov<INT>_clr): New pattern, and peep2 to generate it.
19277
19278         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19279         flag_split_wide_types.
19280
19281         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19282         (mn10300_trampoline_init): Rewrite without a template, an immediate
19283         load and a direct branch.
19284         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19285
19286 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
19287
19288         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19289         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19290         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19291         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19292
19293 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
19294
19295         PR debug/47209
19296         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19297         of type.
19298
19299 2011-01-12  Jan Hubicka  <jh@suse.cz>
19300
19301         PR driver/47244
19302         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19303         (PLUGIN_COND_CLOSE): New macro.
19304         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19305
19306 2011-01-12  Richard Guenther  <rguenther@suse.de>
19307
19308         PR lto/47259
19309         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19310         register variables in a MEM_REF.
19311
19312 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
19313
19314         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19315         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19316         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19317         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19318         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19319         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19320         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19321         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19322         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19323         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19324         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19325         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19326         * config/gnu-user.h: New.  Copied from linux.h.
19327         (LINUX_TARGET_STARTFILE_SPEC): Rename to
19328         GNU_USER_TARGET_STARTFILE_SPEC.
19329         (LINUX_TARGET_ENDFILE_SPEC): Rename to
19330         GNU_USER_TARGET_ENDFILE_SPEC.
19331         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19332         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19333         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19334         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19335         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19336         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19337         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19338         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19339         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19340         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19341         * config/arm/linux-eabi.h (CC1_SPEC): Use
19342         GNU_USER_TARGET_CC1_SPEC.
19343         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19344         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19345         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19346         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19347         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19348         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19349         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19350         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19351
19352 2011-01-12  Richard Guenther  <rguenther@suse.de>
19353
19354         PR other/46946
19355         * doc/invoke.texi (ffast-math): Document it is turned on
19356         with -Ofast.
19357
19358 2011-01-12  Jan Hubicka  <jh@suse.cz>
19359
19360         PR tree-optimization/47233
19361         * opts.c (common_handle_option): Disable ipa-reference with profile
19362         feedback.
19363
19364 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19365
19366         * c-parser.c (c_parser_objc_at_property_declaration): Improved
19367         error message.
19368
19369 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19370
19371         * c-parser.c (c_lex_one_token): Updated and reindented some
19372         comments.  No changes in code.
19373
19374 2011-01-11  Ian Lance Taylor  <iant@google.com>
19375
19376         * godump.c (go_output_var): Don't output the variable if there is
19377         already a type with the same name.
19378
19379 2011-01-11  Ian Lance Taylor  <iant@google.com>
19380
19381         * godump.c (go_format_type): Don't generate float80.
19382
19383 2011-01-11  Richard Henderson  <rth@redhat.com>
19384
19385         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19386         declaration.  Rewrite for both speed and size.
19387         (mn10300_address_cost_1): Remove.
19388         (mn10300_register_move_cost): New.
19389         (mn10300_memory_move_cost): New.
19390         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
19391         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
19392         extensions, shifts, BSWAP, CLZ.
19393         (mn10300_wide_const_load_uses_clr): Remove.
19394         (TARGET_REGISTER_MOVE_COST): New.
19395         (TARGET_MEMORY_MOVE_COST): New.
19396         * config/mn10300/mn10300-protos.h: Update.
19397         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19398
19399         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19400         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19401         * config/mn10300/mn10300-protos.h: Update.
19402         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19403         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19404         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19405         (*test_int_bitfield, *test_byte_bitfield): Remove.
19406         (*bit_test, *subreg_bit_test): Remove.
19407         * config/mn10300/predicates.md (const_8bit_operand): Remove.
19408
19409         * config/mn10300/constraints.md ("c"): Rename from "A".
19410         ("A", "D"): New constraint letters.
19411         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19412         (fmssf4, fnmasf4, fnmssf4): Likewise.
19413
19414         * config/mn10300/mn10300.md (isa): New attribute.
19415         (enabled): New attribute.
19416
19417         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19418         (abssf2, negsf2): Define only for hardware fp.
19419         (sqrtsf2): Reformat.
19420         (addsf3, subsf3, mulsf3): Merge expander and insn.
19421
19422         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19423         (DEBUGGER_AUTO_OFFSET): Remove.
19424         (DEBUGGER_ARG_OFFSET): Remove.
19425
19426         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19427         Emit register stores with the same offsets as the hardware.
19428         (mn10300_store_multiple_operation): Don't check that the register
19429         save offsets are monotonic.
19430         * config/mn10300/mn10300-protos.h: Update.
19431
19432         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19433
19434         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19435         in terms of the value on the stack, not the MDR register.
19436
19437 2011-01-11  Jan Hubicka  <jh@suse.cz>
19438
19439         PR lto/45721
19440         PR lto/45375
19441         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19442         (symbol_alias_set_destroy, symbol_alias_set_contains,
19443         propagate_aliases_backward): Declare.
19444         * lto-streamer-out.c (struct sets): New sturcture.
19445         (trivally_defined_alias): New function.
19446         (output_alias_pair_p): Rewrite.
19447         (output_unreferenced_globals): Fix output of alias pairs.
19448         (produce_symtab): Likewise.
19449         * ipa.c (function_and_variable_visibility): Set weak alias destination
19450         as needed in lto.
19451         * varasm.c (symbol_alias_set_t): Remove.
19452         (symbol_alias_set_destroy): Export.
19453         (propagate_aliases_forward, propagate_aliases_backward): New functions
19454         based on ...
19455         (compute_visible_aliases): ... this one; remove.
19456         (trivially_visible_alias): New
19457         (trivially_defined_alias): New.
19458         (remove_unreachable_alias_pairs): Rewrite.
19459         (finish_aliases_1): Reorganize code checking if alias is defined.
19460         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19461         in LTO mode.
19462
19463 2011-01-11  Richard Guenther  <rguenther@suse.de>
19464
19465         PR tree-optimization/46076
19466         * tree-ssa.c (useless_type_conversion_p): Conversions from
19467         unprototyped to empty argument list function types are useless.
19468
19469 2011-01-11  Richard Guenther  <rguenther@suse.de>
19470
19471         PR middle-end/45235
19472         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19473         volatile MEMs as MEM_READONLY_P.
19474
19475 2011-01-11  Richard Guenther  <rguenther@suse.de>
19476
19477         PR tree-optimization/47239
19478         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19479
19480 2011-01-11  Jeff Law  <law@redhat.com>
19481
19482         PR tree-optimization/47086
19483         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19484         IVs from statements that might throw.
19485
19486 2011-01-10  Jan Hubicka  <jh@suse.cz>
19487
19488         PR lto/45375
19489         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19490
19491 2011-01-10  Jan Hubicka  <jh@suse.cz>
19492
19493         PR lto/45375
19494         * profile.c (read_profile_edge_counts): Ignore profile inconistency
19495         when correcting profile.
19496
19497 2011-01-10  Jan Hubicka  <jh@suse.cz>
19498
19499         PR lto/46083
19500         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19501         DECL_FINI_PRIORITY.
19502         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19503         Restore DECL_FINI_PRIORITY.
19504
19505 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19506
19507         * doc/gimple.texi: Fix quoting of multi-word return values in
19508         @deftypefn statements.  Ensure presence of return value.  Wrap
19509         overlong @deftypefn lines.
19510         (is_gimple_operand, is_gimple_min_invariant_address): Remove
19511         descriptions of removed functions.
19512         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19513         of multi-word return value in @deftypefn statement.
19514
19515 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19516
19517         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19518         (Conditional Expressions, Logical Operators)
19519         (Statement and operand traversals): Do not indent smallexample
19520         code.  Fix duplicate function argument in example.
19521
19522 2011-01-10  Jeff Law  <law@redhat.com>
19523
19524         PR tree-optimization/47141
19525         * ipa-split.c (split_function): Handle case where we are
19526         returning a value and the return block has a virtual operand phi.
19527
19528 2011-01-10  Jan Hubicka  <jh@suse.cz>
19529
19530         PR tree-optimization/47234
19531         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19532         (pass_feedback_split_functions): Declare.
19533         * passes.c (init_optimization_passes): Add ipa-split as subpass of
19534         tree-profile.
19535         * ipa-split.c (gate_split_functions): Update comments; disable
19536         split-functions for profile_arc_flag and branch_probabilities.
19537         (gate_feedback_split_functions): New function.
19538         (execute_feedback_split_functions): New function.
19539         (pass_feedback_split_functions): New global var.
19540
19541 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
19542
19543         PR lto/46760
19544         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19545         calling gimple_call_set_cannot_inline.
19546
19547 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
19548
19549         * config/darwin-sections.def: Remove unused section.
19550
19551 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
19552
19553         PR c++/47218
19554         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19555
19556 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
19557
19558         PR objc/47232
19559         * c-parser.c (c_parser_declaration_or_fndef): Improved
19560         error message.
19561
19562 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
19563
19564         * config/i386/winnt.c (i386_pe_start_function): Make sure
19565         to switch back to function's section.
19566
19567 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
19568
19569         PR gcc/46902
19570         PR testsuite/46912
19571         * plugin.c: Move include of dlfcn.h from here...
19572         * system.h: ... to here.
19573
19574 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19575
19576         * doc/cpp.texi (C++ Named Operators): Fix markup for header
19577         file name.
19578         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19579         two extra empty pages in PDF output.
19580
19581 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
19582
19583         PR objc/47078
19584         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19585         for error recovery purposes behave as if it was not specified so
19586         that the default type is usd.
19587
19588 2011-01-07  Jan Hubicka  <jh@suse.cz>
19589
19590         PR tree-optmization/46469
19591         * ipa.c (function_and_variable_visibility): Clear needed flags on
19592         nodes with external decls; handle weakrefs merging correctly.
19593
19594 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
19595
19596         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19597         not false.
19598
19599 2011-01-07  Jan Hubicka  <jh@suse.cz>
19600
19601         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19602         and no longer claim that gold is required for linker plugin.
19603         * configure: Regenerate.
19604         * gcc.c (PLUGIN_COND): New macro.
19605         (LINK_COMMAND_SPEC): Use it.
19606         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19607         * config.in (HAVE_LTO_PLUGIN): New.
19608         * configure.ac (--with-lto-plugin): New parameter; autodetect
19609         HAVE_LTO_PLUGIN.
19610
19611 2011-01-07  Jan Hubicka  <jh@suse.cz>
19612
19613         PR tree-optimization/46367
19614         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19615         when we can update original.
19616         (cgraph_mark_inline_edge): Sanity check.
19617         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19618
19619 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19620
19621         * config/spu/spu.h (ASM_COMMENT_START): Define.
19622
19623 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19624
19625         PR driver/42445
19626         * gcc.c (%>S): New.
19627         (SWITCH_KEEP_FOR_GCC): Likewise.
19628         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19629         (do_spec_1): Handle "%>".
19630
19631         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19632
19633 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
19634
19635         PR target/47201
19636         * config/i386/i386.c (ix86_delegitimize_address): If
19637         simplify_gen_subreg fails, return orig_x.
19638
19639         PR bootstrap/47187
19640         * value-prof.c (gimple_stringop_fixed_value): Handle
19641         lhs of the call properly.
19642
19643 2011-01-07  Jan Hubicka  <jh@suse.cz>
19644
19645         PR lto/45375
19646         * lto-opt.c (lto_reissue_options): Set flag_shlib.
19647
19648 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19649
19650         * target.def (function_switched_text_sections): New hook.
19651         * doc/tm.texi: Regenerated.
19652         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19653         * final.c (default_function_switched_text_sections): New.
19654         (final_scan_insn): Call function_switched_text_sections when a
19655         mid-function section change occurs.
19656         * output.h (default_function_switched_text_sections): Declare.
19657         * config/darwin-protos.h (darwin_function_switched_text_sections):
19658         Likewise.
19659         * config/darwin.c (darwin_function_switched_text_sections): New.
19660         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19661
19662 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19663
19664         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
19665         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
19666         the secondary code fragment when outputting for DWARF == 2.
19667
19668 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
19669
19670         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19671         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19672         Remove.
19673         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19674         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19675
19676 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
19677
19678         PR debug/46704
19679         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19680         when it is not empty.
19681
19682 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
19683
19684         Bobcat Enablement
19685         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19686         (case ${target}): Add btver1.
19687         * config/i386/driver-i386.c (host_detect_local_cpu): Let
19688         -march=native recognize btver1 processors.
19689         * config/i386/i386-c.c (ix86_target_macros_internal): Add
19690         btver1 def_and_undef
19691         * config/i386/i386.c (struct processor_costs btver1_cost): New
19692         btver1 cost table.
19693         (m_BTVER1): New definition.
19694         (m_AMD_MULTIPLE): Includes m_BTVER1.
19695         (initial_ix86_tune_features): Add btver1 tune.
19696         (processor_target_table): Add btver1 entry.
19697         (static const char *const cpu_names): Add btver1 entry.
19698         (software_prefetching_beneficial_p): Add btver1.
19699         (ix86_option_override_internal): Add btver1 instruction sets.
19700         (ix86_issue_rate): Add btver1.
19701         (ix86_adjust_cost): Add btver1.
19702         * config/i386/i386.h (TARGET_BTVER1): New definition.
19703         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19704         (enum processor_type): Add PROCESSOR_BTVER1.
19705         * config/i386/i386.md (define_attr "cpu"): Add btver1.
19706
19707 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19708
19709         PR target/43309
19710         * config/i386/i386.c (legitimize_tls_address)
19711         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19712         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19713         (tls_initial_exec_64_sun): New pattern.
19714
19715 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
19716
19717         * doc/invoke.texi (Overall Options): Improve wording and markup
19718         of the description of -wrapper.
19719
19720 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19721
19722         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19723         rdynamic, threads): New Driver options.
19724
19725 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19726
19727         PR target/38118
19728         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19729         if coming from .tdata.
19730         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19731
19732 2011-01-06  Jan Hubicka  <jh@suse.cz>
19733
19734         PR lto/47188
19735         * collect2.c (main): Do not enable LTOmode when plugin is active.
19736
19737 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19738
19739         PR other/45915
19740         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19741         --version output if supported.
19742         * configure: Regenerate.
19743
19744 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19745
19746         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19747         Driver options.
19748
19749 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
19750
19751         PR c/47150
19752         * c-convert.c (convert): When converting a complex expression
19753         other than COMPLEX_EXPR to a different complex type, ensure
19754         c_save_expr is called instead of save_expr, unless in_late_binary_op.
19755         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19756         when converting COMPLEX_TYPE.
19757
19758 2011-01-06  Ira Rosen  <irar@il.ibm.com>
19759
19760         PR tree-optimization/47139
19761         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19762         only the last reduction value is used outside the loop.  Update
19763         documentation.
19764
19765 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
19766
19767         * config/rtems.opt: New.
19768         * config.gcc (*-*-rtems*): Use rtems.opt.
19769
19770 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
19771
19772         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19773         processors do not support 3DNow instructions.
19774
19775 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19776
19777         * config/spu/spu.c (spu_option_override): Set parameter
19778         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19779
19780 2011-01-05  Jan Hubicka  <jh@suse.cz>
19781
19782         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19783         at the command line.
19784
19785 2011-01-05  Martin Jambor  <mjambor@suse.cz>
19786
19787         PR lto/47162
19788         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19789         deltas on streamed outgoing edges.
19790         (output_node_opt_summary): Output info for outgoing edges only when
19791         the node is in new parameter set.
19792         (output_cgraph_opt_summary): New parameter set, passed to the two
19793         aforementioned functions.  Update its forward declaration and its
19794         callee too.
19795
19796 2011-01-05  Tom Tromey  <tromey@redhat.com>
19797
19798         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19799         operator to c_finish_omp_atomic.
19800         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19801         (build_unary_op): Update.
19802         (build_modify_expr): Update.
19803         (build_asm_expr): Update.
19804
19805 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19806
19807         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19808         newly inserted insns.
19809         (pad_bb): Likewise.
19810         (spu_emit_branch_hint): Likewise.
19811         (insert_hbrp_for_ilb_runout): Likewise.
19812         (spu_machine_dependent_reorg): Call df_finish_pass after
19813         schedule_insns returns.
19814
19815 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19816
19817         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19818
19819 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
19820
19821         PR tree-optimization/47005
19822         * tree-sra.c (struct access): Add 'non_addressable' bit.
19823         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19824         (decide_one_param_reduction): Return 0 if the parameter is passed by
19825         reference and one of the accesses in the group is non_addressable.
19826
19827 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19828
19829         PR tree-optimization/47056
19830         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19831         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
19832         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
19833
19834 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19835
19836         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19837         initializer.  Skip view conversions from aggregate types.
19838
19839 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
19840
19841         PR bootstrap/47055
19842         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19843
19844 2011-01-04  Philipp Thomas  <pth@suse.de>
19845
19846         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19847         obvious typo.
19848
19849 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19850
19851         * function.c (thread_prologue_and_epilogue_insns): Do not crash
19852         on empty epilogue sequences.
19853
19854 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
19855
19856         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19857         non-static): New Driver options.
19858
19859 2011-01-04  Jie Zhang  <jie@codesourcery.com>
19860
19861         PR driver/47137
19862         * gcc.c (default_compilers[]): Set combinable field to 0
19863         for all assembly languages.
19864
19865 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
19866
19867         * config/mips/loongson3a.md: New file.
19868         * config/mips/mips.md: Include loongson3a.md.
19869         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19870         TUNE_LOONGSON_3A.
19871
19872 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
19873
19874         PR middle-end/47017
19875         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19876         instead of convert_memory_address_addr_space on the base expression.
19877
19878 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19879
19880         * config/spu/spu.c (spu_option_override): Update error text
19881         for bad -march= / -mtune= values.
19882
19883 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19884
19885         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19886         if branch-hint optimization will be performed.
19887
19888 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19889
19890         PR tree-optimization/47148
19891         * ipa-split.c (split_function): Convert arguments to
19892         DECL_ARG_TYPE if possible.
19893
19894         PR tree-optimization/47155
19895         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19896         when computing uns.
19897
19898         PR rtl-optimization/47157
19899         * combine.c (try_combine): If undobuf.other_insn becomes
19900         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19901         and set *new_direct_jump_p too.
19902
19903 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
19904
19905         PR tree-optimization/47021
19906         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19907
19908 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19909
19910         * gcc.c (process_command): Update copyright notice dates.
19911         * gcov.c (print_version): Likewise.
19912         * gcov-dump.c (print_version): Likewise.
19913         * mips-tfile.c (main): Likewise.
19914         * mips-tdump.c (main): Likewise.
19915
19916 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19917
19918         PR tree-optimization/46801
19919         * tree-sra.c (type_internals_preclude_sra_p): Check whether
19920         aggregate fields start at byte boundary instead of the bit-field flag.
19921
19922 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19923
19924         PR driver/47137
19925         * gcc.c (main): Revert revision 168407.
19926
19927 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19928
19929         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19930
19931 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19932
19933         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19934         vector optab to expand vector/scalar shift, update gimple to vector.
19935
19936 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19937
19938         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19939         a thunk.
19940
19941 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19942
19943         PR tree-optimization/46984
19944         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19945         HOST_WIDE_INT.
19946         (cgraph_create_indirect_edge): Fixed line length.
19947         (cgraph_indirect_call_info): Declare.
19948         (cgraph_make_edge_direct) Update declaration.
19949         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19950         (cgraph_create_indirect_edge): Use it.
19951         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
19952         callees.
19953         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19954         the new thunk_delta representation.
19955         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19956         HOST_WIDE_INT.
19957         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19958         (ipa_read_indirect_edge_info): Likewise.
19959         * lto-cgraph.c (output_edge_opt_summary): New function.
19960         (output_node_opt_summary): Call it on all outgoing edges.
19961         (input_edge_opt_summary): New function.
19962         (input_node_opt_summary): Call it on all outgoing edges.
19963
19964 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
19965
19966         PR driver/47137
19967         * gcc.c (main): Don't check have_o when settting combine_inputs.
19968
19969 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
19970
19971         * regrename.c: Add general comment describing the pass.
19972         (struct du_head): Remove 'length' field.
19973         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19974         (regrename_optimize): Do not sort chains.  Rework comments, add others.
19975         Force renaming to the preferred class (if any) in the first pass and do
19976         not consider registers that belong to it in the second pass.
19977         (create_new_chain): Do not set 'length' field.
19978         (scan_rtx_reg): Likewise.
19979
19980 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
19981
19982         PR tree-optimization/47140
19983         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19984         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19985         to bit_value_binop.
19986
19987         PR rtl-optimization/47028
19988         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19989         parm_birth_insn instead of at the beginning of first bb.
19990
19991 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
19992
19993         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19994         Remove the word "see" before "@pxref".
19995         * doc/rtl.texi: Remove the word "see" before "@pxref".
19996
19997 2011-01-01  Jan Hubicka  <jh@suse.cz>
19998
19999         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20000         memory.
20001
20002 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
20003
20004         PR target/38662
20005         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20006
20007 \f
20008 Copyright (C) 2011 Free Software Foundation, Inc.
20009
20010 Copying and distribution of this file, with or without modification,
20011 are permitted in any medium without royalty provided the copyright
20012 notice and this notice are preserved.