OSDN Git Service

Use proper mode for stack save area.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
2
3         PR middle-end/48016
4         * explow.c (update_nonlocal_goto_save_area): Use proper mode
5         for stack save area.
6         * function.c (expand_function_start): Likewise.
7
8 2011-07-01  Richard Guenther  <rguenther@suse.de>
9
10         PR middle-end/49596
11         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
12         may have unknown refs.
13
14 2011-07-01  Kai Tietz  <ktietz@redhat.com>
15
16         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
17
18 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19
20         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
21         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
22         (Specific, mips-sgi-irix6): Likewise.
23
24 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25
26         PR libmudflap/49549
27         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
28
29 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
30
31         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
32         [idx]= and [idx1 ... idx2]= before initializers if needed for
33         array initializers.
34
35 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
36
37         * config.gcc (score-*-elf): Remove score7.o.
38         * config/score/t-score-elf: Likewise.
39         * config/score/score.c: Merge score7 to score.c and
40         remove forwarding functions.
41         * config/score/score7.c: Deleted.
42         * config/score/score7.h: Deleted.
43
44 2011-07-01  Richard Guenther  <rguenther@suse.de>
45
46         PR tree-optimization/49603
47         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
48         assert.
49
50 2011-06-30  Martin Jambor  <mjambor@suse.cz>
51
52         * tree-sra.c (struct access): Rename total_scalarization to
53         grp_total_scalarization
54         (completely_scalarize_var): New function.
55         (sort_and_splice_var_accesses): Set total_scalarization in the
56         representative access.
57         (analyze_access_subtree): Propagate total scalarization accross the
58         tree, no holes in totally scalarized trees, simplify coverage
59         computation.
60         (analyze_all_variable_accesses): Call completely_scalarize_var instead
61         of completely_scalarize_record.
62
63 2011-06-30  Richard Henderson  <rth@redhat.com>
64
65         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
66         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
67         * config/i386/i386.c: Don't include dwarf2out.h.
68         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
69         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
70         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
71         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
72         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
73
74 2011-06-30  Richard Henderson  <rth@redhat.com>
75
76         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
77         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
78         * final.c (final_scan_insn): Look for it, and invoke
79         dwarf2out_frame_debug before the insn if found.
80
81 2011-06-30  Richard Henderson  <rth@redhat.com>
82
83         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
84         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
85
86 2011-06-30  Richard Henderson  <rth@redhat.com>
87
88         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
89         Define a vector of this type.
90         (regs_saved_in_regs): Use a VEC.
91         (num_regs_saved_in_regs): Remove.
92         (compare_reg_or_pc): New.
93         (record_reg_saved_in_reg): Split out from...
94         (dwarf2out_flush_queued_reg_saves): ... here.
95         (clobbers_queued_reg_save): Update for VEC.
96         (reg_saved_in): Likewise.
97         (dwarf2out_frame_debug_init): Likewise.
98         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
99         (dwarf2out_frame_debug_cfa_register): Likewise.
100
101 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
102
103         PR tree-optimization/49572
104         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
105         type of the RHS instead of that of the LHS for the expression type.
106
107 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
108
109         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
110         unconditionally.
111
112 2011-06-30  Richard Guenther  <rguenther@suse.de>
113
114         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
115         * tree-ssa-structalias.c (create_variable_info_for): Do not
116         add initial constraints for non-var-decls.  Properly handle
117         globals in other ltrans partitions.
118         (intra_create_variable_infos): Manually create constraints for
119         the fake no-alias parameter.
120         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
121         and assert there are no clones.
122
123 2011-06-30  Richard Guenther  <rguenther@suse.de>
124
125         PR tree-optimization/46787
126         * tree-data-ref.c (dr_address_invariant_p): Remove.
127         (find_data_references_in_stmt): Invariant accesses are ok now.
128         * tree-vect-stmts.c (vectorizable_load): Handle invariant
129         loads.
130         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
131         invariant loads.
132
133 2011-06-30  Martin Jambor  <mjambor@suse.cz>
134
135         PR tree-optimization/49094
136         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
137         (build_accesses_from_assign): Use it.
138
139 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
140
141         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
142         handling of BUILT_IN_ASSUME_ALIGNED.
143
144         PR debug/49364
145         * dwarf2out.c (output_abbrev_section): Don't return early
146         if abbrev_die_table_in_use is 1.
147         (dwarf2out_finish): Instead don't call output_abbrev_section
148         nor emit abbrev_section_label in that case.
149
150 2011-06-30  Nick Clifton  <nickc@redhat.com>
151
152         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
153         for the V850E.
154
155 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
156
157         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
158         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
159
160 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
161
162         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
163         both pattern and original statements if necessary.
164         (vect_transform_loop): Likewise.
165         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
166         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
167         Mark the pattern statement only if the original statement doesn't
168         have its own uses.
169         (process_use): Call vect_mark_relevant with additional parameter.
170         (vect_mark_stmts_to_be_vectorized): Likewise.
171         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
172         (vect_analyze_stmt): Handle both pattern and original statements
173         if necessary.
174         (vect_transform_stmt): Don't store vectorized pattern statement
175         in the original statement.
176         (vect_is_simple_use_1): Use related pattern statement only if the
177         original statement is irrelevant.
178         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
179
180 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
181
182         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
183         option.
184         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
185         entry.
186         (TARGET_AVX128_OPTIMAL): New definition.
187         * config/i386/i386.c (initial_ix86_tune_features): Initialize
188         X86_TUNE_AVX128_OPTIMAL entry.
189         (ix86_option_override_internal): Enable the generation
190         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
191         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
192         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
193
194 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
195
196         PR tree-optimization/49539
197         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
198         names by means of stmt_references_abnormal_ssa_name.
199         (associate_plusminus): Call can_propagate_from before propagating
200         from definition statements.
201         (ssa_forward_propagate_and_combine): Remove superfluous newline.
202
203 2011-06-29  Richard Guenther  <rguenther@suse.de>
204
205         * doc/invoke.texi: Document -scev dump modifier.
206         * tree-pass.h (TDF_SCEV): New dump flag.
207         * tree-dump.c (dump_option_value_in): Add scev.
208         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
209         * tree-scalar-evolution.c: Likewise.
210
211 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
212
213         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
214         (cxa_type_match): Correct declaration.
215         (__gnu_unwind_pr_common): Reconstruct
216         additional indirection when __cxa_type_match returns
217         succeeded_with_ptr_to_base.
218
219 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
220
221         PR rtl-optimization/49114
222         * reload.c (struct replacement): Remove SUBREG_LOC member.
223         (push_reload): Do not set it.
224         (push_replacement): Likewise.
225         (subst_reload): Remove dead code.
226         (copy_replacements): Remove assertion.
227         (copy_replacements_1): Do not handle SUBREG_LOC.
228         (move_replacements): Likewise.
229         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
230         Detect subregs via recursive descent instead of via SUBREG_LOC.
231
232 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
233         
234         * config/avr/avr.c (avr_encode_section_info): Dispatch to
235         default_encode_section_info.
236
237 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
238
239         PR tree-optimization/49545
240         * builtins.c (get_object_alignment_1): Update function comment.
241         Do not use DECL_ALIGN for functions, but test
242         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
243         * fold-const.c (get_pointer_modulus_and_residue): Don't check
244         for functions here.
245         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
246
247 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
248
249         PR debug/49567
250         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up
251         for non-MODE_INT modes instead of asserting the mode has MODE_INT
252         class.
253
254 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
255         
256         PR target/34734
257         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning 
258         about uninitialized data attributed 'progmem' from here...
259         (avr_encode_section_info): ...to this new function.
260         (TARGET_ENCODE_SECTION_INFO): New define.
261         (avr_section_type_flags): For data in ".progmem.data", remove
262         section flag SECTION_WRITE.
263
264 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
265         
266         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
267         _xmulhisi3_exit.
268         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
269         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
270         (__umulhisi3): Ditto.
271         * config/avr/avr.md (mulhisi3): New insn expender.
272         (umulhisi3): New insn expender.
273         (*mulhisi3_call): New insn.
274         (*umulhisi3_call): New insn.
275
276 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
277
278         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
279
280 2011-06-28  Richard Henderson  <rth@redhat.com>
281
282         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
283         all code and arguments that handled pushes.  Update all callers.
284
285 2011-06-28  Richard Henderson  <rth@redhat.com>
286
287         * config/arm/arm.c (arm_output_function_prologue): Don't call
288         thumb1_output_function_prologue.
289         (arm_expand_prologue): Avoid dead store.
290         (number_of_first_bit_set): Use ctz_hwi.
291         (thumb1_emit_multi_reg_push): New.
292         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
293         to emit the entire prologue as rtl.
294         (thumb1_output_interwork): Split out from
295         thumb1_output_function_prologue.
296         (thumb1_output_function_prologue): Remove.
297         (arm_attr_length_push_multi): Handle thumb1.
298         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
299         (prologue_thumb1_interwork): New.
300         (*push_multi): Allow thumb1; use push_mult_memory_operand.
301         * config/arm/predicates.md (push_mult_memory_operand): New.
302
303 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
304
305         * config/sparc/sync.md (*stbar): Delete.
306         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
307
308 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
309
310         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
311
312 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
313
314         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
315         (TARGET_64BIT_DEFAULT): Define.
316         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
317         of tm_file.
318         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
319
320 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
321
322         * common.opt (in_lto_p): New Variable entry.
323         * flags.h (in_lto_p): Move to common.opt.
324         * gcc.c: Include params.h.
325         (set_option_handlers): Also use common_handle_option and
326         target_handle_option.
327         (main): Call global_init_params, finish_params and
328         init_options_struct.
329         * opts.c (debug_type_names): Move from toplev.c.
330         (print_filtered_help): Access quiet_flag through opts pointer.
331         (common_handle_option): Return early in the driver for some
332         options.  Access in_lto_p, dwarf_version and
333         warn_maybe_uninitialized through opts pointer.
334         * toplev.c (in_lto_p): Move to common.opt.
335         (debug_type_names): Move to opts.c.
336         * Makefile.in (OBJS): Remove opts.o.
337         (OBJS-libcommon-target): Add opts.o.
338         (gcc.o): Update dependencies.
339
340 2011-06-28  Kai Tietz  <ktietz@redhat.com>
341
342         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve
343         type sinking.
344
345 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
346
347         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
348         with '=' constraint modifier.
349         (*divdf3_vfp): Likewise.
350         ("*mulsf3_vfp"): Likewise.
351         ("*muldf3_vfp"): Likewise.
352         ("*mulsf3negsf_vfp"): Likewise.
353         ("*muldf3negdf_vfp"): Likewise.
354
355 2011-06-28  Nick Clifton  <nickc@redhat.com>
356
357         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
358         relaxation when performing an incremental link.
359
360 2011-06-28  Kai Tietz  <ktietz@redhat.com>
361
362         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
363         within BB from last to first.
364
365 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
366
367         * genattr-common.c: New.  Based on genattr.c.
368         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
369         (MOSTLYCLEANFILES): Add insn-attr-common.h.
370         (opts.o): Update dependencies.
371         (.PRECIOUS): Add insn-attr-common.h.
372         (simple_rtl_generated_h): Add insn-attr-common.h.
373         (build/genattr-common.o): New.
374         (genprogrtl): Add attr-common.
375         * genattr.c (main): Include insn-attr-common.h.  Don't generate
376         definitions of DELAY_SLOTS or INSN_SCHEDULING.
377         * opts.c: Include insn-attr-common.h instead of rtl.h and
378         insn-attr.h.
379
380 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
381
382         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
383         avr-*-* and avr-*-rtems* targets.
384
385         * config/avr/elf.h: New file.
386         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
387         (TARGET_ASM_SELECT_SECTION): Define.
388         (INIT_SECTION_ASM_OP): Undefine.
389         (FINI_SECTION_ASM_OP): Undefine.
390         (READONLY_DATA_SECTION_ASM_OP): Undefine.
391         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
392         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
393         * config/avr/avr.h:
394         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
395         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
396         (MAX_OFILE_ALIGNMENT): Move to elf.h.
397         (STRING_LIMIT): Move to elf.h.
398         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
399         (ASM_DECLARE_OBJECT_NAME): Remove.
400         (ESCAPES): Remove.
401         (ASM_OUTPUT_SKIP): Remove.
402         (DWARF2_DEBUGGING_INFO): Remove.
403         (OBJECT_FORMAT_ELF): Remove.
404         (USER_LABEL_PREFIX): Remove.
405         (ASM_OUTPUT_EXTERNAL): Remove.
406         (ASM_OUTPUT_ASCII): Remove.
407         (TYPE_ASM_OP): Remove.
408         (SIZE_ASM_OP): Remove.
409         (WEAK_ASM_OP): Remove.
410         (STRING_ASM_OP): Remove.
411         (SET_ASM_OP): Remove.
412         (ASM_WEAKEN_LABEL): Remove.
413         (TYPE_OPERAND_FMT): Remove.
414         (ASM_DECLARE_FUNCTION_SIZE): Remove.
415         (ASM_FINISH_DECLARE_OBJECT): Remove.
416         (NO_DOLLAR_IN_LABEL): Remove.
417         (ASM_GENERATE_INTERNAL_LABEL): Remove.
418         (ASM_OUTPUT_CASE_LABEL): Remove.
419         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
420         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
421         (gas_output_ascii): Remove.
422         (gas_output_limited_string): Remove.
423         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
424         * config/avr/avr-protos.h
425         (gas_output_ascii): Remove prototye.
426         (gas_output_limited_string): Remove prototype.
427
428 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
429
430         PR target/48637
431         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
432         asm operands.
433
434 2011-06-27  Jan Hubicka  <jh@suse.cz>
435
436         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
437         node instead of references in node.
438
439 2011-06-27  Richard Henderson  <rth@redhat.com>
440
441         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
442         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
443         inside ifdef.
444
445 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
446
447         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
448
449         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
450         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
451         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
452         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
453         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
454         (evaluate_stmt, execute_fold_all_builtins): Handle
455         BUILT_IN_ASSUME_ALIGNED.
456         * tree-ssa-dce.c (propagate_necessity): Likewise.
457         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
458         call_may_clobber_ref_p_1): Likewise.
459         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
460         (expand_builtin_assume_aligned): New function.
461         * doc/extend.texi (__builtin_assume_aligned): Document.
462
463         PR debug/49544
464         * cselib.c (promote_debug_loc): If cselib_preserve_constants
465         and l has two DEBUG_INSN owned locs instead of just one, adjust
466         the second location's setting_insn too.
467
468 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
469
470         PR libmudflap/38738
471         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
472
473 2011-06-27  Nick Clifton  <nickc@redhat.com>
474
475         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
476         convert bit position of highest bit set into a count of the high
477         zero bits.
478
479 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
480
481         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
482
483 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
484
485         PR lto/48492
486         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
487         to a NULL parent.
488
489 2011-06-27  Richard Guenther  <rguenther@suse.de>
490
491         PR tree-optimization/49394
492         * passes.c (execute_one_pass): Restore current_pass after
493         applying IPA transforms.
494
495 2011-06-27  Kai Tietz  <ktietz@redhat.com>
496
497         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
498         out of type precision after operation.
499         (find_bswap): Take for limit value the integer auto-
500         promotion into account.
501
502 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
503
504         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
505         forward scan as well.
506
507 2011-06-27  Tristan Gingold  <gingold@adacore.com>
508
509         PR target/44241
510         * config/vms/vms-protos.h: New file.
511         * config/vms/vms-crtlmap.map: New file.
512         * config/vms/vms.c: New file.
513         * config/vms/make-crtlmap.awk: New file.
514         * config/vms/vms-crtl.h: File removed.
515         * config/vms/vms-crtl-64.h: File removed.
516         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
517         * config/alpha/vms64.h: Do not include vms-crtl-64.h
518         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
519         clear some builtins on VMS.  Calls vms_patch_builtins.
520         (avms_asm_output_external): Remove.
521         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
522         (struct crtl_name_spec): Remove
523         (DO_CTRL_NAMES): Remove.
524         * config/ia64/vms.h (struct crtl_name_spec): Remove
525         (DO_CTRL_NAMES): Remove.
526         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
527         clear some builtins on VMS.  Calls vms_patch_builtins.
528         (ia64_asm_output_external): Remove DO_CRTL_NAME.
529         * config/ia64/vms64.h: Do not include vms-crtl-64.h
530         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
531         tm_p_file.
532
533 2011-06-27  Tristan Gingold  <gingold@adacore.com>
534
535         * config/alpha/alpha.c (alpha_end_function): Always generate .end
536         directive on VMS.
537
538 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
539
540         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
541         the function receives nonlocal gotos.
542
543 2011-06-27  Richard Guenther  <rguenther@suse.de>
544
545         PR tree-optimization/49536
546         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
547         For non-scalar inner types use a scalar type according to
548         the scalar inner mode.
549
550 2011-06-27  Richard Guenther  <rguenther@suse.de>
551
552         PR tree-optimization/49365
553         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
554
555 2011-06-27  Richard Guenther  <rguenther@suse.de>
556
557         PR tree-optimization/49169
558         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
559         the alignment of function decls.
560
561 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
562
563         PR target/47997
564         * config/darwin.c (darwin_mergeable_string_section): Place string
565         constants in '.cstring' rather than '.const' when CF/NSStrings are
566         active.
567
568 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
569
570         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
571         (emit_save_register_window): Likewise.
572         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
573         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
574         Swap back %o7/%i7 in register naming.
575
576 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
577
578         PR driver/49371
579         * config/darwin.c (darwin_override_options): Improve warning when
580         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
581         is given with fpie/fPIE.
582         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
583         * config/darwin9.h (PIE_SPEC): New.
584
585 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
586
587         * timevar.c (timevar_print): Increase width for display of timevar
588         name.
589
590 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
591
592         PR c++/46400
593         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
594         instead of TYPE_CHAIN for chain_next for types.
595
596 2011-06-24  Richard Henderson  <rth@redhat.com>
597
598         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
599         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
600         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
601         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
602         (sparc_flat_expand_prologue): Emit individual instructions
603         instead of one of the above.
604
605 2011-06-24  Easwaran Raman  <eraman@google.com>
606
607         PR rtl-optimization/49429
608         PR target/49454
609         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
610         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
611         used to copy y into x.
612         * calls.c (initialize_argument_information): Mark
613         an argument addressable if it is passed by invisible reference.
614         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
615         if it is passed by reference.
616
617 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
618
619         PR rtl-optimization/49504
620         * rtlanal.c (nonzero_bits1): Properly handle addition or
621         subtraction of a pointer in Pmode if pointers extend unsigned.
622         (num_sign_bit_copies1): Likewise.
623
624 2011-06-24  Martin Jambor  <mjambor@suse.cz>
625
626         PR tree-optimizations/49516
627         * tree-sra.c (sra_modify_assign): Choose the safe path for
628         aggregate copies if we also did scalar replacements.
629
630 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
631
632         PR target/49335
633         * config/arm/predicates.md (add_operator): New.
634         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
635         in Thumb2.
636
637 2011-06-24  Andi Kleen  <ak@linux.intel.com>
638
639         * tree-sra.c (type_internals_preclude_sra_p): Add msg
640         parameter. Split up ifs and report reason in *msg.
641         (reject): Add.
642         (find_var_candiate): Add msg variable.
643         Split up ifs and report reason to reject.
644         (find_param_candidates): Add msg variable.
645         Pass msg to type_internals_preclude_sra_p.
646
647 2011-06-23  Jeff Law  <law@redhat.com>
648
649         PR middle-end/48770
650         * reload.h (reload): Change to return a bool.
651         * ira.c (ira): If requested by reload, run a fast DCE pass after
652         reload has completed.  Fix comment typo.
653         * reload1.c (need_dce): New file scoped static.
654         (reload): Set reload_completed here.  Return whether or not a DCE
655         pass after reload is needed.
656         (delete_dead_insn): Set need_dce as needed.
657
658         PR middle-end/49465
659         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
660         to detect threading through joiner block.  If there was already
661         an edge to the new target, then do not change the PHI nodes.
662
663 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
664
665         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
666         get_pointer_alignment to see if base isn't sufficiently aligned.
667
668 2011-06-23  Jan Hubicka  <jh@suse.cz>
669
670         PR tree-optimize/49373
671         * tree-pass.h (all_late_ipa_passes): Declare.
672         * cgraphunit.c (init_lowered_empty_function): Fix properties.
673         (cgraph_optimize): Execute late passes; remove unreachable funcions
674         after materialization.
675         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
676         LTOing.
677         * passes.c (all_late_ipa_passes): Declare.
678         (dump_passes, register_pass): Handle late ipa passes.
679         (init_optimization_passes): Move ipa_pta to late passes; schedule
680         fixup_cfg at beggining of all_passes.
681         (apply_ipa_transforms): New function.
682         (execute_one_pass): When doing simple ipa pass, apply all transforms.
683
684 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
685
686         * params.c: Include common/common-target.h.  Don't include tm.h.
687         (lang_independent_params): Move from toplev.c.
688         (global_init_params): New.
689         * params.h (global_init_params): Declare.
690         * target.def (default_params): Move to common-target.def.
691         * toplev.c (lang_independent_options): Remove.
692         (lang_independent_params): Move to params.c.
693         (general_init): Use global_init_params.
694         * common/common-target.def (option_default_params): Move from
695         target.def.
696         * common/config/ia64/ia64-common.c: Include params.h.
697         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
698         from ia64.c.
699         * common/config/rs6000/rs6000-common.c: Include params.h.
700         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
701         from rs6000.c.
702         * common/config/sh/sh-common.c: Include params.h.
703         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
704         from sh.c.
705         * common/config/spu/spu-common.c: Include params.h.
706         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
707         from spu.c.
708         * config/ia64/ia64.c (ia64_option_default_params,
709         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
710         * config/rs6000/rs6000.c (rs6000_option_default_params,
711         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
712         * config/sh/sh.c (sh_option_default_params,
713         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
714         * config/spu/spu.c (spu_option_default_params,
715         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
716         * Makefile.in (OBJS): Remove params.o.
717         (OBJS-libcommon-target): Add params.o.
718         (params.o, $(common_out_object_file)): Update dependencies.
719         * doc/tm.texi: Regenerate.
720
721 2011-06-23  Alan Modra  <amodra@gmail.com>
722
723         PR bootstrap/49383
724         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
725         invocation for 2011-06-09 changes.
726
727 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
728
729         PR libgomp/49490
730         * omp-low.c (expand_omp_for_static_nochunk): Only
731         use n ceil/ nthreads size for the first
732         n % nthreads threads in the team instead of
733         all threads except for the last few ones which
734         get less work or none at all.
735
736         PR debug/49496
737         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
738         uses.
739
740 2011-06-22  Richard Guenther  <rguenther@suse.de>
741
742         PR tree-optimization/49493
743         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
744         Refer to the alias target of variables.
745         (associate_varinfo_to_alias_1): Remove.
746         (ipa_pta_execute): Do not associate aliases with anything.
747         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
748         (cgraph_function_node): Likewise.
749         (cgraph_function_or_thunk_node): Likewise.
750         (varpool_variable_node): Likewise.
751
752 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
753
754         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
755         typo.
756         * config.gcc (arm*-*-linux*): Default to gnu tls.
757         (arm*-*-*): Add --with-tls option.
758         (all_defaults): Add 'tls'.
759
760 2011-06-22  Richard Henderson  <rth@redhat.com>
761
762         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
763         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
764         (dwarf2out_frame_debug_cfa_window_save): Rename from
765         dwarf2out_window_save; make static.
766         * tree.h (dwarf2out_window_save): Don't declare.
767
768         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
769         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
770         (emit_save_register_window): Rename from gen_save_register_window;
771         emit the insn and add REG_CFA_* notes.
772         (sparc_expand_prologue): Update to match.
773         * config/sparc/sparc.md (save_register_window_1): Simplify from
774         save_register_window<P:mode>.
775
776 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
777
778         PR target/49497
779         * config/i386/i386.md (*lea_general_2): Always allow SImode.
780         (*lea_general_2_zext): Likewise.
781         (imul to lea peepholes): Use const359_operand and check
782         TARGET_PARTIAL_REG_STALL.
783
784         * config/i386/predicates.md (const359_operand): New.
785
786 2011-06-22  Michael Matz  <matz@suse.de>
787
788         * cgraphunit.c (assemble_thunk): Use correct return type.
789
790 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
791         Dmitry Melnik  <dm@ispras.ru>
792
793         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
794         (neon_output_shift_immediate): Ditto.
795         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
796         prototype.
797         (neon_output_shift_immediate): Ditto.
798         * config/arm/neon.md (vashl<mode>3): Modified constraint.
799         (vashr<mode>3_imm): New insn pattern.
800         (vlshr<mode>3_imm): Ditto.
801         (vashr<mode>3): Modified constraint.
802         (vlshr<mode>3): Ditto.
803         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
804         predicate.
805         (imm_for_neon_rshift_operand): Ditto.
806         (imm_lshift_or_reg_neon): Ditto.
807         (imm_rshift_or_reg_neon): Ditto.
808
809         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
810
811 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
812
813         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
814         builtin calls even if likelyvalue is not CONSTANT.
815         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
816         Return get_value_for_expr of first operand
817         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
818         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
819         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
820         their non-checking counterparts.
821         (call_may_clobber_ref_p_1): Likewise.
822         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
823         like their non-checking counterparts.
824         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
825         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
826         like their non-checking counterparts.
827         (find_func_clobbers): Likewise.
828         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
829         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
830
831         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
832         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
833         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
834         of base type reference as argument.
835         (resolve_addr_in_expr): Likewise.  Fix keep computation.
836         (convert_descriptor_to_signed): Renamed to...
837         (convert_descriptor_to_mode): ... this.  For wider types convert
838         to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
839         untyped.
840         (typed_binop): New function.
841         (scompare_loc_descriptor, ucompare_loc_descriptor,
842         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
843         default to unsigned type instead of signed.
844
845         PR debug/47858
846         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
847         (gimple_build_debug_source_bind_stat): New prototype.
848         (gimple_build_debug_source_bind): Define.
849         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
850         gimple_debug_source_bind_get_value,
851         gimple_debug_source_bind_get_value_ptr,
852         gimple_debug_source_bind_set_var,
853         gimple_debug_source_bind_set_value): New inlines.
854         * gimple.c (gimple_build_debug_source_bind_stat): New function.
855         * gimple-pretty-print.c (dump_gimple_debug): Handle
856         GIMPLE_DEBUG_SOURCE_BIND.
857         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
858         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
859         * tree-parloops.c (eliminate_local_variables,
860         separate_decls_in_region): Likewise.
861         (separate_decls_in_region_debug): Renamed from
862         separate_decls_in_region_debug_bind.  Handle
863         gimple_debug_source_bind_p.
864         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
865         prototypes.
866         (DECL_HAS_DEBUG_ARGS_P): Define.
867         (struct tree_function_decl): Add has_debug_args_flag field.
868         * tree.c (debug_args_for_decl): New variable.
869         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
870         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
871         (rewrite_debug_stmt_uses): New function.
872         (rewrite_stmt): Use it to rewrite debug stmt uses.
873         * rtl.def (DEBUG_PARAMETER_REF): New.
874         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
875         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
876         DEBUG_PARAMETER_REF.
877         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
878         * print-rtl.c (print_rtx): Likewise.
879         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
880         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
881         debug stmts in the first bb.
882         * tree-inline.c (remap_ssa_name): If remapping default def
883         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
884         a source bind debug stmt.
885         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
886         (maybe_move_debug_stmts_to_successors): Likewise.
887         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
888         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
889         debug args vector from old_decl to new_decl.
890         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
891         or modified parameters, add debug bind stmts before call
892         setting DEBUG_EXPR_DECL which is remembered in debug args
893         vector.
894         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
895         on DECL_DEBUG_EXPRs from debug args vector.
896         (expand_debug_source_expr): New function.
897         (expand_debug_locations): Use it for source bind insns.
898         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
899         * var-tracking.c (prepare_call_arguments): Add debug args
900         to call_arguments if any.
901         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
902         output_loc_operands, output_loc_operands_raw,
903         resolve_addr_in_expr, compare_loc_operands): Handle
904         DW_OP_GNU_parameter_ref.
905         (get_ref_die_offset, parameter_ref_descriptor): New functions.
906         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
907         (gen_subprogram_die): Handle parameters identified by
908         DEBUG_PARAMETER_REF.
909
910 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
911
912         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
913         * doc/install.texi (Configuration): Document --with-tls.
914         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
915         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
916         (arm_tls_descseq_addr): New.
917         (legitimize_tls_address): Add tlsdesc support.
918         (arm_cannot_copy_insn_p): Check for tlscall.
919         (arm_emit_tls_decoration): Likewise.
920         * config/arm/arm.h (TARGET_GNU2_TLS): New.
921         (OPTION_DEFAULT_SPECS): Add with-tls support.
922         * config/arm/arm.md (R1_REGNUM): Define.
923         (tlscall): New.
924         * config/arm/arm.opt (tls_type): New enumeration type and values.
925         (mtls-dialect): New switch.
926         * config/arm/arm-opts.h (enum tls_type): New.
927
928 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
929
930         * attribs.c (register_attribute): Added assert to check that all
931         attribute specs are registered with a name that is not empty and
932         does not start with '_'.
933         (decl_attributes): Avoid the lookup of the "naked" attribute spec
934         if the function has no attributes.
935         * tree.c (is_attribute_with_length_p): Removed.
936         (is_attribute_p): Removed.
937         (private_is_attribute_p): New.  
938         (private_lookup_attribute): New.
939         (lookup_attribute): Removed.
940         (lookup_ident_attribute): New.
941         (remove_attribute): Require the first argument to be in the form
942         'text', not '__text__'.  Updated asserts.
943         (merge_attributes): Use lookup_ident_attributes instead of
944         lookup_attribute.
945         (merge_dllimport_decl_attributes): Use remove_attribute.
946         (attribute_list_contained): Likewise.
947         (attribute_list_equal): Immediately return 1 if the arguments are
948         identical pointers.
949         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
950         'int'.  Require the first argument to be in the form 'text', not
951         '__text__'.  Require the second argument to be an identifier.
952         (lookup_attribute): Made inline.  Require the first argument to be
953         in the form 'text', not '__text__'.
954         (private_is_attribute_p, private_lookup_attribute): New.
955         Updated comments.
956         
957 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
958
959         * builtins.c: Add sync_ or SYNC__ to builtin names.
960         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
961         * omp-low.c: Add sync_ or SYNC__ to builtin names.
962
963 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
964
965         PR target/33049
966         * config/avr/avr.md (extzv): New expander.
967         (*extzv): New insn.
968         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
969         * config/avr/constraints.md (C04): New constraint.
970         * doc/md.texi (Machine Constraints): Document it.
971
972 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
973
974         PR middle-end/49489
975         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
976         unsignedp argument instead of 1 for clrsb_optab.
977         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
978         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
979         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
980         * optabs.c (widen_leading): Call widen_operand and expand_unop
981         with 0 as unsignedp argument instead of 1 for clrsb_optab.
982         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
983
984 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
985
986         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
987
988 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
989
990         * gensupport.c (add_define_attr): New static function.
991         (is_predicable): Allow multi-alternative lists for the "predicable"
992         attribute.
993         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
994         (process_one_cond_exec): Call alter_attrs_for_insn.
995         * doc/md.texi (Defining Attributes): Mention some standard names.
996         (Conditional Execution): Update documentation for "predicable".
997
998         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
999         __builtin_clrsbll): Document.
1000         * doc/rtl.texi (clrsb): New entry.
1001         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
1002         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
1003         (expand_unop): Handle clrsb_optab.
1004         (init_optabs): Initialize it.
1005         * optabs.h (enum optab_index): New entry OTI_clrsb.
1006         (clrsb_optab): Define.
1007         * genopinit.c (optabs): Add an entry for it.
1008         * builtins.c (expand_builtin): Handle clrsb builtin functions.
1009         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1010         BUILT_IN_CLRSBLL): New.
1011         * rtl.def (CLRSB): New code.
1012         * dwarf2out.c (mem_loc_descriptor): Handle it.
1013         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1014         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1015         and popcount.
1016         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1017         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1018         (__ctzDI2): Move declaration.
1019         * config/bfin/bfin.md (clrsbsi2): New expander.
1020         (signbitssi2): Use the CLRSB rtx.
1021         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
1022         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1023
1024 2011-06-21  Richard Guenther  <rguenther@suse.de>
1025
1026         * ipa-inline-transform.c (inline_transform): Fix previous change.
1027
1028 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
1029
1030         PR tree-optimization/49478
1031         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1032         with constant operand.
1033
1034 2011-06-21  Richard Guenther  <rguenther@suse.de>
1035
1036         * ipa-inline-transform.c (inline_transform): Fix typo.
1037
1038 2011-06-21  Richard Guenther  <rguenther@suse.de>
1039
1040         PR tree-optimization/49483
1041         * tree-vect-stmts.c (vectorizable_assignment): Also handle
1042         VIEW_CONVERT_EXPR conversions.
1043
1044 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
1045
1046         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1047         * config/avr/avr-tables.opt: New file (generated).
1048         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1049         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1050         avr-mcus.def.
1051         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1052         (avr_option_override): Don't process -mmcu= argument here.  Set
1053         avr_current_device using avr_mcu_index.
1054         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1055         * config/avr/avr.opt (mmcu=): Use Enum.
1056         * config/avr/t-avr (avr-devices.o): Update dependencies.
1057         ($(srcdir)/config/avr/avr-tables.opt): New.
1058         * target.def (help): Remove.
1059         * doc/tm.texi.in (TARGET_HELP): Remove.
1060         * doc/tm.texi: Regenerate.
1061         * opts.c: Don't include target.h.
1062         (common_handle_option): Don't call targetm.help.
1063         * system.h (TARGET_HELP): Poison.
1064         * Makefile.in (opts.o): Update dependencies.
1065
1066 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1067
1068         * config/usegld.h: New file.
1069         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1070         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
1071         (LIB_SPEC): Likewise.  Search /lib.
1072         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1073         (RDYNAMIC_SPEC): Handle GNU ld.
1074         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1075         Define.
1076         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1077         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1078         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1079         (STACK_CHECK_STATIC_BUILTIN): Define.
1080         * config/sol2.opt (compat-bsd): Remove.
1081         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1082         * config/sol2-bi.h: New file.
1083         * config/sol2-gld.h: Remove.
1084         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1085         (NO_DBX_BNSYM_ENSYM): Remove.
1086         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1087         (STACK_CHECK_STATIC_BUILTIN): Remove.
1088         Test USE_GLD instead of TARGET_GNU_LD.
1089         * config/i386/sol2-10.h: Rename to ...
1090         * config/i386/sol2-bi.h .. this.
1091         (SUBTARGET_EXTRA_SPECS): Redefine.
1092         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1093         (MULTILIB_DEFAULTS): Remove.
1094         (DEFAULT_ARCH32_P): Define.
1095         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1096         (ARCH64_SUBDIR): Define.
1097         Test USE_GLD instead of TARGET_GNU_LD.
1098         (I386_EMULATION): Rename to ...
1099         (ARCH32_EMULATION): ... this.
1100         (X86_64_EMULATION): Rename to ...
1101         (ARCH64_EMULATION): ... this.
1102         (TARGET_LD_EMULATION): Remove.
1103         (LINK_ARCH_SPEC): Remove.
1104         * config/i386/sol2-gas.h: Remove.
1105         * config/i386/t-sol2-10: Rename to ...
1106         * config/i386/t-sol2-64: ... this.
1107         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1108         (AS_SPARC64_FLAG): Define.
1109         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1110         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1111         depending on TARGET_CPU_DEFAULT.
1112         (CPP_CPU_SPEC): Redefine.
1113         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1114         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1115         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1116         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1117         ASM_ARCH_DEFAULT_SPEC): Redefine.
1118         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1119         LINK_ARCH_DEFAULT_SPEC.
1120         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1121         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1122         (ARCH64_SUBDIR): Define.
1123         (LINK_ARCH64_SPEC): Redefine.
1124         (CC1_SPEC): Redefine.
1125         (OPTION_DEFAULT_SPECS): Redefine.
1126         (MULTILIB_DEFAULTS): Define.
1127         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1128         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1129         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1130         (NO_DBX_BNSYM_ENSYM): Remove.
1131         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1132         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1133         (TARGET_ASM_NAMED_SECTION): Likewise.
1134         (STACK_CHECK_STATIC_BUILTIN): Remove.
1135         * config/sparc/sol2-bi.h: Remove.
1136         * config/sparc/sol2-gas-bi.h: Remove.
1137         * config/sparc/sol2-gas.h: Remove.
1138         * config/sparc/sol2-gld-bi.h: Remove.
1139         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1140         common parts ...
1141         (*-*-solaris2*): ... here.
1142
1143 2011-06-21  Christian Bruel  <christian.bruel@st.com>
1144
1145         PR other/43564
1146         * ipa-inline.c (can_inline_edge_p): Check
1147         !DECL_DISREGARD_INLINE_LIMITS.
1148
1149 2011-06-21  Christian Bruel  <christian.bruel@st.com>
1150
1151         PR middle-end/49139
1152         * cgraphunit.c (process_function_and_variable_attributes): warn when
1153         always_inline functions that are not inline.
1154         * ipa-inline-transform.c (inline_transform): Always call
1155         optimize_inline.
1156         * tree-inline.c (tree_inlinable_function_p): Use error instead
1157         of sorry.
1158         (expand_call_inline): Likewise.
1159
1160 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
1161
1162         * Makefile.in (dg_target_exps): Set.
1163         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1164         instead of 7, try to divide it more evenly.
1165
1166 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
1167
1168         PR target/49089
1169         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1170         (avx256_split_unaligned_store): New definition.
1171         (ix86_option_override_internal): Enable avx256 unaligned load/store
1172         splitting only when avx256_split_unaligned_load/store is set.
1173
1174 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
1175
1176         * regrename.c (scan_rtx_reg): Handle the case where we write to an
1177         open chain in a smaller mode without failing the entire block.
1178
1179 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1180
1181         PR middle-end/47725
1182         * combine.c (cant_combine_insn_p): Don't check zero/sign
1183         extended hard registers.
1184
1185 2011-06-21  Alan Modra  <amodra@gmail.com>
1186
1187         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1188         CONST high part large-toc address.
1189         (rs6000_tls_referenced_p): Make static.
1190         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1191
1192 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1193
1194         PR middle-end/47725
1195         * combine.c (cant_combine_insn_p): Check zero/sign extended
1196         hard registers.
1197
1198 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1199
1200         PR target/49385
1201         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1202         one of the operands is a register.
1203
1204 2011-06-20  Kai Tietz  <ktietz@redhat.com>
1205
1206         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1207         operations in combination with binary and.
1208
1209 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
1210
1211         * regrename.c (do_replace): Don't update notes.
1212
1213 2011-06-20  Alan Modra  <amodra@gmail.com>
1214
1215         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1216         of toc-relative address in CONST.
1217         (rs6000_delegitimize_address): Recognize changed address.
1218         (rs6000_legitimize_reload_address): Likewise.
1219         (rs6000_emit_move): Don't force these constants to memory.
1220         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1221         toc-relative address in CONST.
1222         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1223         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1224
1225 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1226
1227         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
1228         (count_trailing_zeros): Likewise.
1229
1230 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1231
1232         PR other/49325
1233         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1234         .init_array can be used with .ctors on targets.
1235         * configure: Regenerated.
1236
1237 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
1238
1239         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1240         if the element type is volatile.
1241
1242 2011-06-18  Jan Hubicka  <jh@suse.cz>
1243
1244         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1245         extra name aliases.
1246         (lto_symtab_resolve_can_prevail_p): Likewise.
1247         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1248         * cgraphbuild.c (record_reference): Remove extra body alias code.
1249         (mark_load): Likewise.
1250         (mark_store): Likewise.
1251         * cgraph.h (varpool_node): Remove extra_name filed;
1252         add alias_of and extraname_alias.
1253         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1254         (varpool_alias_aliased_node): New inline function.
1255         (varpool_variable_node): New function.
1256         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1257         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1258         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1259         (input_varpool_node): Likewise.
1260         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1261         (varpool_externally_visible_p): Remove extra body alias code.
1262         (function_and_variable_visibility): Likewise.
1263         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1264         (ipa_pta_execute): Use it.
1265         * varpool.c (varpool_remove_node): Remove extra name alias code.
1266         (varpool_mark_needed_node): Likewise.
1267         (varpool_analyze_pending_decls): Analyze aliases.
1268         (assemble_aliases): New functoin.
1269         (varpool_assemble_decl): Use it.
1270         (varpool_create_variable_alias): New function.
1271         (varpool_extra_name_alias): Rewrite.
1272         (varpool_for_node_and_aliases): New function.
1273
1274 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
1275
1276         PR target/49411
1277         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1278         last_arg_constant and last argument doesn't match its predicate,
1279         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1280         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1281         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1282         spelling of error message.
1283         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1284         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1285         const_0_to_255_operand instead of const_int_operand.
1286
1287         Revert:
1288         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1289
1290         * config/i386/sse.md (blendbits): Remove mode attribute.
1291         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1292         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1293         Check integer value of operand 3 in insn constraint.
1294
1295 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
1296
1297         PR rtl-optimization/48542
1298         * reload.c (find_equiv_reg): Stop looking when finding a
1299         setjmp-type call.
1300         * reload1.c (reload_as_needed): Invalidate all reload
1301         registers when crossing a setjmp-type call.
1302
1303 2011-06-16  Jeff Law  <law@redhat.com>
1304
1305         * tree-ssa-threadupdate.c (struct redirection_data): New field
1306         intermediate_edge.
1307         (THREAD_TARGET2): Define.
1308         (redirection_data_eq): Also check that the intermediate edge is equal.
1309         (lookup_redirection_data): Drop useless argument.  Extract the
1310         outgoing_edge and intermediate edge from E.  Callers updated.
1311         (copy_phi_args, update_destination_phis): New functions.
1312         (fix_duplicate_block_edges): Likewise.
1313         (create_edge_and_update_destination_phis): Duplicate all the edges
1314         hung off e->aux.  Use copy_phi_args.
1315         (create_duplicates): Use fix_duplicate_block_edges.
1316         (fixup_template_block): Likewise.
1317         (redirect_edges): If necessary, redirect the joiner block's incoming
1318         edge to the duplicate of the joiner block.
1319         (thread_block): Don't muck up loops when threading through a joiner
1320         block.
1321         (thread_through_loop_header): Handle threading through a joiner block.
1322         (mark_threaded_blocks, register_jump_thread): Likewise.
1323         * tree-flow.h (register_jump_thread): Add new argument.  Callers
1324         updated.
1325         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1326         (thread_across_edge): Handle threading through a joiner block.
1327
1328 2011-06-16  Martin Jambor  <mjambor@suse.cz>
1329
1330         PR tree-optimization/49343
1331         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1332         calculate offset, provide 2nd operand for the new COMPONENT_REF.
1333
1334 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
1335
1336         * config/darwin-protos.h (machopic_select_rtx_section): Move to
1337         inside RTX_CODE ifdef.
1338
1339 2011-06-16  Tom de Vries  <tom@codesourcery.com>
1340
1341         PR target/45098
1342         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1343         Disallow NULL pointer for pointer arithmetic.
1344
1345 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1346
1347         PR target/49398
1348         Revert.
1349         2011-06-10  Wei Guozhi  <carrot@google.com>
1350
1351         PR target/45335
1352         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1353         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1354         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1355         related peephole2.
1356         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1357         related peephole2.
1358         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1359         (arm_legitimate_ldrd_p): New prototype.
1360         (arm_output_ldrd): New prototype.
1361         * config/arm/arm.c (arm_check_ldrd_operands): New function.
1362         (arm_legitimate_ldrd_p): New function.
1363         (arm_output_ldrd): New function.
1364
1365 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
1366
1367         PR middle-end/46500
1368         * doc/tm.texi.in: Update Copyright date.
1369         * doc/tm.texi: Regenerate.
1370         * targhooks.c (default_setup_incoming_varargs): Replace
1371         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1372         (default_pretend_outgoing_varargs_named): Likewise.
1373         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1374         (hook_callee_copies_named): Likewise.
1375         (default_function_arg_advance): Likewise.
1376         (default_function_arg): Likewise.
1377         (default_function_incoming_arg): Likewise.
1378         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1379         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1380         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1381         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1382         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1383         * targhooks.h (default_setup_incoming_varargs): Likewise.
1384         (default_pretend_outgoing_varargs_named): Likewise.
1385         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1386         (hook_callee_copies_named): Likewise.
1387         (default_function_arg_advance): Likewise.
1388         (default_function_arg): Likewise.
1389         (default_function_incoming_arg): Likewise.
1390         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1391         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1392         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1393         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1394         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1395         * target.def (pass_by_reference): Likewise.
1396         (setup_incoming_varargs, strict_argument_naming): Likewise.
1397         (pretend_outgoing_varargs_named, callee_copies): Likewise.
1398         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1399         (function_incoming_arg): Likewise.
1400         * target.h: Don't include "tm.h" .
1401         (cumulative_args_t): New typedef.
1402         [GCC_TM_H] (get_cumulative_args): New static inline function.
1403         [GCC_TM_H] (pack_cumulative_args): Likewise.
1404         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1405         argument type with cumulative_args_t.
1406         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1407         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1408         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1409         (frv_arg_partial_bytes, frv_function_arg): Likewise.
1410         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1411         (frv_function_arg_1): Likewise.
1412         * config/s390/s390.c (s390_pass_by_reference): Likewise.
1413         (s390_function_arg_advance, s390_function_arg): Likewise.
1414         * config/m32c/m32c.c (m32c_function_arg): Likewise.
1415         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1416         (m32c_strict_argument_naming): Likewise.
1417         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1418         (spu_function_arg_advance): Likewise.
1419         (spu_setup_incoming_varargs): Likewise.  Make static.
1420         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1421         Remove prototype.
1422         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1423         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1424         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1425         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1426         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1427         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1428         (mep_pass_by_reference, mep_function_arg): Likewise.
1429         (mep_function_arg_advance): Likewise.
1430         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1431         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1432         (m32r_function_arg, m32r_function_arg_advance): Likewise.
1433         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1434         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1435         (ix86_function_arg, ix86_pass_by_reference): Likewise.
1436         (ix86_setup_incoming_varargs): Likewise.
1437         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1438         (sh_strict_argument_naming): Likewise.
1439         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1440         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1441         (sh_function_arg_advance, sh_function_arg): Likewise.
1442         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1443         (pdp11_function_arg_advance): Likewise.
1444         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1445         Likewise.
1446         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1447         * config/avr/avr.c (avr_function_arg): Likewise.
1448         (avr_function_arg_advance): Likewise.
1449         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1450         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1451         (xtensa_function_arg_1): Likewise.
1452         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1453         Likewise.
1454         (xstormy16_function_arg): Likewise.
1455         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1456         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1457         (fr30_function_arg_advance): Likewise.
1458         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1459         (lm32_function_arg, lm32_function_arg_advance): Likewise.
1460         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1461         (moxie_function_arg, moxie_function_arg_advance): Likewise.
1462         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1463         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1464         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1465         (cris_function_arg, cris_function_incoming_arg): Likewise.
1466         (cris_function_arg_advance, cris_function_arg_1): Likewise.
1467         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1468         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1469         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1470         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1471         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1472         (mn10300_arg_partial_bytes): Likewise.
1473         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1474         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1475         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1476         (ia64_function_arg_1): Likewise.
1477         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1478         (m68k_function_arg): Likewise.
1479         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1480         (rs6000_function_arg, setup_incoming_varargs): Likewise.
1481         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1482         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1483         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1484         (picochip_arg_advance): Likewise.
1485         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1486         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1487         (mcore_function_arg_advance): Likewise.
1488         * config/score/score.c (score_pass_by_reference): Likewise.
1489         (score_function_arg_advance): Likewise.
1490         (score_arg_partial_bytes): Likewise.  Make static.
1491         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1492         * config/arm/arm.c (arm_arg_partial_bytes): Replace
1493         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1494         (arm_function_arg, arm_function_arg_advance): Likewise.
1495         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1496         * config/pa/pa.c (pa_pass_by_reference): Likewise.
1497         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1498         (pa_function_arg): Likewise.
1499         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1500         (mips_function_arg, mips_function_arg_advance): Likewise.
1501         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1502         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1503         * config/vax/vax.c (vax_function_arg): Likewise.
1504         (vax_function_arg_advance): Likewise.
1505         * config/h8300/h8300.c (h8300_function_arg): Likewise.
1506         (h8300_function_arg_advance): Likewise.
1507         * config/v850/v850.c (v850_pass_by_reference): Likewise.
1508         (v850_strict_argument_naming, v850_function_arg): Likewise.
1509         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1510         (v850_setup_incoming_varargs): Likewise.
1511         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1512         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1513         (mmix_function_arg, mmix_pass_by_reference): Likewise.
1514         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1515         with const void *.
1516         * config/bfin/bfin.c (setup_incoming_varargs): Replace
1517         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1518         (bfin_function_arg_advance, bfin_function_arg): Likewise.
1519         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1520         * calls.c (emit_call_1): Change type of args_so_far to
1521         cumulative_args_t.  Changed all callers.
1522         (initialize_argument_information): Likewise.
1523         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1524         * dse.c (get_call_args): Likewise.
1525         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1526         * function.c (pass_by_reference, reference_callee_copied): Likewise.
1527         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1528         New member args_so_far_v.  Changed all users.
1529         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1530         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1531         * config/mips/mips.c (mips_output_args_xfer): Likewise.
1532         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1533         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1534         * config/microblaze/microblaze.c (microblaze_expand_prologue):
1535         Likewise.
1536         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1537         m32r_pass_by_reference.
1538
1539 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
1540
1541         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1542         argument to be a VEC of statements.
1543         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1544         assert that pattern statements have to have their vector type set.
1545         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1546         Change the first argument to be a VEC of statements.  Update
1547         documentation.
1548         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1549         (vect_handle_widen_mult_by_const): New function.
1550         (vect_recog_widen_mult_pattern):  Change the first argument to be a
1551         VEC of statements.  Update documentation.  Check that the constant is
1552         INTEGER_CST.  Support multiplication by a constant that fits an
1553         intermediate type - call vect_handle_widen_mult_by_const.
1554         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1555         call.  Handle additional pattern statements if necessary.
1556
1557 2011-06-16  Nick Clifton  <nickc@redhat.com>
1558
1559         PR target/49427
1560         * config.gcc: Set cpu_type to v850 for any V850 architecture.
1561         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1562         md_file, extra_modes, out_file and extra_options are these are all
1563         deduced from cpu_type.
1564
1565 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1566
1567         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1568         truncation mask to 63.
1569
1570 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1571
1572         PR target/49313
1573         PR target/29524
1574         * longlong.h: Add AVR support:
1575         (count_leading_zeros): New macro.
1576         (count_trailing_zeros): New macro.
1577         (COUNT_LEADING_ZEROS_0): New macro.
1578         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1579         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1580         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1581         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1582         (LIB2FUNCS_EXCLUDE): Add _clz.
1583         * config/avr/libgcc.S (XCALL): Move up in file.
1584         (XJMP): New C Macro.
1585         (DEFUN): New asm macro.
1586         (ENDF): New asm macro.
1587         (__ffssi2): New function.
1588         (__ffshi2): New function.
1589         (__loop_ffsqi2): New function.
1590         (__ctzsi2): New function.
1591         (__ctzhi2): New function.
1592         (__clzdi2): New function.
1593         (__clzsi2): New function.
1594         (__clzhi2): New function.
1595         (__paritydi2): New function.
1596         (__paritysi2): New function.
1597         (__parityhi2): New function.
1598         (__parityqi2): New function.
1599         (__popcounthi2): New function.
1600         (__popcountsi2): New function.
1601         (__popcountdi2): New function.
1602         (__popcountqi2): New function.
1603         (__bswapsi2): New function.
1604         (__bswapdi2): New function.
1605         (__ashldi3): New function.
1606         (__ashrdi3): New function.
1607         (__lshrdi3): New function.
1608         Fix suspicous lines.
1609
1610 2011-06-16  Richard Guenther  <rguenther@suse.de>
1611
1612         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1613         the same as x != 0.
1614         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1615         to (bool) X & 1.
1616         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1617         equality compares against zero for the lower bit.
1618
1619 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
1620
1621         PR tree-optimization/49419
1622         * tree-vrp.c (execute_vrp): Call init_range_assertions
1623         before estimate_numbers_of_iterations, call
1624         free_number_of_iterations_estimates before calling
1625         remove_range_assertions.
1626
1627 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1628
1629         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1630         (struct partial_schedule): Add rows_length field.
1631         (verify_partial_schedule): Check rows_length.
1632         (ps_insert_empty_row): Handle rows_length.
1633         (create_partial_schedule): Likewise.
1634         (free_partial_schedule): Likewise.
1635         (reset_partial_schedule): Likewise.
1636         (create_ps_insn): Remove rest_count argument.
1637         (remove_node_from_ps): Update rows_length.
1638         (add_node_to_ps): Update rows_length and call create_ps_insn
1639         without passing row_rest_count.
1640         (rotate_partial_schedule): Update rows_length.
1641
1642 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1643
1644         * ddg.c (add_intra_loop_mem_dep): New function.
1645         (build_intra_loop_deps): Call it.
1646
1647 2011-06-13  Jeff Law  <law@redhat.com>
1648
1649         * df-problems.c (df_lr_local_compute): Manually CSE
1650         PIC_OFFSET_TABLE_REGNUM.
1651         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1652         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1653
1654 2011-06-13  Jan Hubicka  <jh@suse.cz>
1655
1656         * cgraphunit.c (handle_alias_pairs): New function.
1657         (cgraph_finalize_compilation_unit): Use it.
1658         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1659         as externally visible.
1660
1661 2011-06-15  Richard Guenther  <rguenther@suse.de>
1662
1663         * expr.c (expand_expr_real_2): Reduce all integral types to
1664         bitfield precision.
1665         (expand_expr_real_1): Likewise.
1666
1667 2011-06-15  Martin Jambor  <mjambor@suse.cz>
1668
1669         PR tree-optimization/48613
1670         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1671         ipa_node_params_vector is NULL.
1672
1673 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
1674
1675         PR debug/49382
1676         * dwarf2out.c (dw_loc_list_node): Add force field.
1677         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1678         location in the list, even if it is modified before first real insn.
1679         (output_loc_list): Emit empty ranges with force flag set.
1680         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1681
1682 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
1683
1684         PR target/49349
1685         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1686         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
1687         above a fence.  Update comments.
1688         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1689         placed just above it.  Do not allow NULL place_to_insert.
1690
1691 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
1692
1693         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1694         (slpeel_tree_peel_loop_to_edge): Don't call
1695         remove_dead_stmts_from_loop.
1696         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1697         remove irrelevant pattern statements.  For irrelevant statements
1698         check if it is the last statement of a detected pattern, use
1699         corresponding pattern statement instead.
1700         (destroy_loop_vec_info): No need to remove pattern statements,
1701         only free stmt_vec_info.
1702         (vect_transform_loop): For irrelevant statements check if it is
1703         the last statement of a detected pattern, use corresponding
1704         pattern statement instead.
1705         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1706         pattern statements.  Set basic block for the new statement.
1707         (vect_pattern_recog): Update documentation.
1708         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1709         operands of pattern statements.
1710         (vectorizable_call): Fix printing.  In case of a pattern statement
1711         use the lhs of the original statement when creating a dummy
1712         statement to replace the original call.
1713         (vect_analyze_stmt): For irrelevant statements check if it is
1714         the last statement of a detected pattern, use corresponding
1715         pattern statement instead.
1716         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1717         statements use gsi of the original statement.
1718
1719 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1720
1721         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1722         common/common-target-def.h.
1723         * target.def (default_target_flags, handle_option,
1724         supports_split_stack, optimization_table, init_struct,
1725         except_unwind_info, unwind_tables_default, have_named_sections):
1726         Move to common/common-target.def.
1727         * target.h (enum opt_levels, struct default_options): Move to
1728         common/common-target.h.
1729         * targhooks.c (default_except_unwind_info,
1730         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1731         default_target_handle_option, empty_optimization_table): Move to
1732         common/common-targhooks.c.
1733         * targhooks.h (default_except_unwind_info,
1734         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1735         default_target_handle_option, empty_optimization_table): Move to
1736         common/common-targhooks.h.
1737         * common/common-target-def.h: Include common/common-targhooks.h.
1738         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1739         defined.
1740         * common/common-target.def (handle_option, option_init_struct,
1741         option_optimization_table, default_target_flags,
1742         except_unwind_info, supports_split_stack, unwind_tables_default,
1743         have_named_sections): Move from target.def.
1744         (HOOK_PREFIX): Undefine at end of file.
1745         * common/common-target.h: Include input.h.
1746         (enum opt_levels, struct default_options): Move from target.h.
1747         * common/common-targhooks.c, common/common-targhooks.h: New.
1748         * config.gcc (target_has_targetm_common): Default to yes.
1749         (moxie*): Set target_has_targetm_common=no.
1750         (hppa*-*-*): Don't set target_has_targetm_common=yes.
1751         * doc/tm.texi: Regenerate.
1752         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1753         (C_TARGET_DEF_H): Add common/common-targhooks.h.
1754         (GCC_OBJS): Remove vec.o.
1755         (OBJS): Remove hooks.o and vec.o.
1756         (OBJS-libcommon-target): Add vec.o, hooks.o and
1757         common/common-targhooks.o.
1758         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1759         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1760         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1761         cfglayout.o, $(out_object_file), $(common_out_object_file)):
1762         Update dependencies.
1763         (common/common-targhooks.o): New.
1764         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
1765         * common/config/pa/pa-common.c: Include more headers.  Take
1766         copyright dates from pa.c.
1767         (pa_option_optimization_table, pa_handle_option,
1768         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1769         TARGET_HANDLE_OPTION): Move from pa.c.
1770         * common/config/alpha/alpha-common.c,
1771         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1772         common/config/bfin/bfin-common.c,
1773         common/config/cris/cris-common.c,
1774         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1775         common/config/h8300/h8300-common.c,
1776         common/config/i386/i386-common.c,
1777         common/config/ia64/ia64-common.c,
1778         common/config/iq2000/iq2000-common.c,
1779         common/config/lm32/lm32-common.c,
1780         common/config/m32c/m32c-common.c,
1781         common/config/m32r/m32r-common.c,
1782         common/config/m68k/m68k-common.c,
1783         common/config/mcore/mcore-common.c,
1784         common/config/mep/mep-common.c,
1785         common/config/microblaze/microblaze-common.c,
1786         common/config/mips/mips-common.c,
1787         common/config/mmix/mmix-common.c,
1788         common/config/mn10300/mn10300-common.c,
1789         common/config/pdp11/pdp11-common.c,
1790         common/config/picochip/picochip-common.c,
1791         common/config/rs6000/rs6000-common.c,
1792         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1793         common/config/score/score-common.c, common/config/sh/sh-common.c,
1794         common/config/sparc/sparc-common.c,
1795         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1796         common/config/vax/vax-common.c,
1797         common/config/xstormy16/xstormy16-common.c,
1798         common/config/xtensa/xtensa-common.c: New.
1799         * config/alpha/alpha.c: Include common/common-target.h.
1800         (alpha_option_optimization_table, alpha_handle_option,
1801         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1802         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1803         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1804         * config/arm/arm.c (arm_option_optimization_table,
1805         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1806         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1807         arm-common.c.
1808         * config/avr/avr.c (avr_option_optimization_table,
1809         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1810         to avr-common.c.
1811         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1812         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1813         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1814         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1815         * config/cris/cris.c (cris_option_optimization_table,
1816         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1817         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1818         cris-common.c.
1819         * config/fr30/fr30.c (fr30_option_optimization_table,
1820         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1821         to fr30-common.c.
1822         * config/frv/frv.c (frv_option_optimization_table,
1823         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1824         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1825         * config/h8300/h8300.c (h8300_option_optimization_table,
1826         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1827         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1828         * config/i386/i386-protos.h (ix86_handle_option): Declare.
1829         * config/i386/i386.c: Include common/common-target.h.
1830         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1831         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1832         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1833         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1834         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1835         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1836         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1837         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1838         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1839         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1840         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1841         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1842         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1843         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1844         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1845         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1846         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1847         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1848         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1849         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1850         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1851         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1852         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1853         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1854         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1855         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1856         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1857         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1858         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1859         ix86_option_optimization_table, ix86_option_init_struct,
1860         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1861         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1862         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1863         i386-common.c.
1864         * config/i386/t-i386 (i386.o): Update dependencies.
1865         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1866         * config/ia64/ia64.c (ia64_option_optimization_table,
1867         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1868         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1869         ia64_handle_option): Move to ia64-common.c.
1870         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1871         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1872         * config/lm32/lm32.c (lm32_option_optimization_table,
1873         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1874         to lm32-common.c.
1875         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1876         m32c-common.c.
1877         * config/m32r/m32r.c (m32r_option_optimization_table,
1878         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1879         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1880         m32r_handle_option): Move to m32r-common.c.
1881         (m32r_memory_move_cost): Remove comment referring to
1882         TARGET_HANDLE_OPTION.
1883         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1884         Move to m68k-common.c.
1885         * config/mcore/mcore.c (mcore_option_optimization_table,
1886         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1887         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1888         * config/mep/mep.c (mep_option_optimization_table,
1889         mep_handle_option, TARGET_HANDLE_OPTION,
1890         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1891         Move to mep-common.c.
1892         * config/microblaze/microblaze.c
1893         (microblaze_option_optimization_table,
1894         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1895         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1896         * config/mips/mips.c (mips_handle_option,
1897         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1898         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1899         mips-common.c.
1900         * config/mmix/mmix.c (mmix_option_optimization_table,
1901         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1902         Move to mmix-common.c.
1903         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1904         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1905         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1906         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1907         * config/pa/pa.c: Include common/common-target.h.
1908         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1909         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1910         pa_handle_option): Move to pa-common.c.
1911         (pa_option_override): Use targetm_common.except_unwind_info.
1912         (pa_asm_output_mi_thunk, pa_function_section): Use
1913         targetm_common.have_named_sections.
1914         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1915         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1916         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1917         pdp11_handle_option, pdp11_option_init_struct): Move to
1918         pdp11-common.c.
1919         * config/picochip/picochip.c (picochip_option_optimization_table,
1920         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1921         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1922         * config/rs6000/rs6000.c: Include common/common-target.h.
1923         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1924         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1925         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1926         rs6000_handle_option): Move to rs6000-common.c.
1927         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1928         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1929         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1930         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1931         * config/s390/s390.c (processor_flags_table,
1932         s390_option_optimization_table, s390_option_init_struct,
1933         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1934         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1935         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1936         * config/s390/s390.h (processor_flags_table): Declare.
1937         * config/score/score.c (score_option_optimization_table,
1938         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1939         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1940         score_handle_option): Move to score-common.c.
1941         * config/sh/sh.c (sh_option_optimization_table,
1942         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1943         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1944         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1945         * config/sparc/sparc.c: Include common/common-target.h.
1946         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1947         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1948         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1949         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1950         spu_option_init_struct): Move to spu-common.c.
1951         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1952         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1953         * config/v850/v850.c (small_memory_physical_max,
1954         v850_handle_memory_optionn v850_handle_option,
1955         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1956         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1957         v850-common.c.
1958         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1959         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1960         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1961         Move to xtensa-common.c.
1962         * cfglayout.c: Include common/common-target.h.
1963         (fixup_reorder_chain): Use targetm_common.have_named_sections.
1964         * cfgrtl.c: Include common/common-target.h.
1965         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1966         targetm_common.have_named_sections.
1967         * dbxout.c: Include common/common-target.h.
1968         (dbxout_function_end): Use targetm_common.have_named_sections.
1969         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1970         targetm_common.except_unwind_info.
1971         * dwarf2out.c: Include common/common-target.h.
1972         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1973         dwarf2out_begin_prologue, dwarf2out_frame_init,
1974         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1975         targetm_common.except_unwind_info.
1976         * except.c: Include common/common-target.h.
1977         (init_eh, finish_eh_generation,
1978         output_one_function_exception_table): Use
1979         targetm_common.except_unwind_info.
1980         (switch_to_exception_section): Use targetm_common.have_named_sections.
1981         * explow.c: Include common/common-target.h.
1982         * expr.c: Include common/common-target.h.
1983         (build_personality_function): Use targetm_common.except_unwind_info.
1984         * function.c: Include common/common-target.h.
1985         (expand_function_end): Use targetm_common.except_unwind_info.
1986         * haifa-sched.c: Include common/common-target.h.
1987         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1988         * lto-opts.c: Include common/common-target.h instead of target.h.
1989         (lto_reissue_options): Use targetm_common.handle_option.
1990         * opts.c: Include common/common-target.h.
1991         (target_handle_option): Use targetm_common.handle_option.
1992         (init_options_struct): Update comment referring to
1993         targetm.target_option.optimization.  Use
1994         targetm_common.default_target_flags,
1995         targetm_common.unwind_tables_default and
1996         targetm_common.option_init_struct.
1997         (default_options_optimization): Use
1998         targetm_common.option_optimization_table.
1999         (finish_options): Use targetm_common.except_unwind_info,
2000         targetm_common.unwind_tables_default,
2001         targetm_common.have_named_sections and
2002         targetm_common.supports_split_stack.
2003         * toplev.c: Include common/common-target.h.
2004         (process_options): Use targetm_common.have_named_sections.
2005         * tree-tailcall.c: Include common/common-target.h.
2006         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
2007         * tree.c: Include common/common-target.h.
2008         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
2009         * varasm.c: Include common/common-target.h.
2010         (resolve_unique_section, hot_function_section,
2011         default_function_section): Use targetm_common.have_named_sections.
2012
2013 2011-06-14  Easwaran Raman  <eraman@google.com>
2014
2015         PR rtl-optimization/44194
2016         * dse.c: Include tree-flow.h
2017         (insn_info): Add new field non_frame_wild_read.
2018         (group_info): Add new fields escaped_n and escaped_p.
2019         (kill_on_calls): New variable.
2020         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2021         (dse_step0): Initialize kill_on_calls.
2022         (can_escape): New function.
2023         (set_usage_bits): Add additional parameter; record information
2024         about escaped locations.
2025         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
2026         (dse_step2_nospill): Set kill_on_calls based on
2027         group->escaped_n and group->escaped_n.
2028         (add_wild_read): Refactor into...
2029         (reset_active_stores): ... New function, and
2030         (free_read_records): ... New function.
2031         (add_non_frame_wild_read): New function.
2032         (scan_insn): Call add_non_frame_wild_read on non-const calls.
2033         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2034         (dse_step5_nospill): Call scan_reads_nospill for instructions
2035         marked as non_frame_wild_read.
2036         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2037
2038 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
2039
2040         * common/common-target-def.h, common/common-target.def,
2041         common/common-target.h, common/config/default-common.c,
2042         common/config/pa/pa-common.c: New files.
2043         * Makefile.in (common_out_file, common_out_object_file,
2044         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2045         (OBJS-libcommon-target): Include $(common_out_object_file).
2046         (prefix.o): Update dependencies.
2047         ($(common_out_object_file), common/common-target-hooks-def.h,
2048         s-common-target-hooks-def-h): New.
2049         (s-tm-texi): Also check timestamp on common-target.def.
2050         (build/genhooks.o): Update dependencies.
2051         * config.gcc (common_out_file, target_has_targetm_common): Define.
2052         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2053         TARGET_ALWAYS_STRIP_DOTDOT.
2054         * configure.ac (common_out_object_file): Define.
2055         (common_out_file, common_out_object_file): Substitute.
2056         (common): Create directory.
2057         * configure: Regenerate.
2058         * doc/tm.texi.in (targetm_common): Document.
2059         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2060         * doc/tm.texi: Regenerate.
2061         * genhooks.c (hook_array): Also include common/common-target.def.
2062         * prefix.c (tm.h): Don't include.
2063         (common/common-target.h): Include.
2064         (ALWAYS_STRIP_DOTDOT): Don't define.
2065         (update_path): Use targetm_common.always_strip_dotdot instead of
2066         ALWAYS_STRIP_DOTDOT.
2067         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2068
2069 2011-06-14  David Li  <davidxl@google.com>
2070
2071         * passes.c (execute_function_todo): Remove TODO_dump_func.
2072         (execute_one_pass): Remove TODO_dump_func.
2073         (execute_function_dump): New function.
2074         * tree-vrp.c: Remove TODO_dump_func.
2075         * regrename.c: Remove TODO_dump_func.
2076         * fwprop.c: Remove TODO_dump_func.
2077         * tree-into-ssa.c: Remove TODO_dump_func.
2078         * tree-complex.c: Remove TODO_dump_func.
2079         * tracer.c: Remove TODO_dump_func.
2080         * tree-loop-distribution.c: Remove TODO_dump_func.
2081         * postreload-gcse.c: Remove TODO_dump_func.
2082         * postreload.c: Remove TODO_dump_func.
2083         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2084         * tree-tailcall.c: Remove TODO_dump_func.
2085         * ipa-cp.c: Remove TODO_dump_func.
2086         * final.c: Remove TODO_dump_func.
2087         * tree-emutls.c: Remove TODO_dump_func.
2088         * omp-low.c: Remove TODO_dump_func.
2089         * tree-ssa-dse.c: Remove TODO_dump_func.
2090         * tree-ssa-uncprop.c: Remove TODO_dump_func.
2091         * auto-inc-dec.c: Remove TODO_dump_func.
2092         * reorg.c: Remove TODO_dump_func.
2093         * tree-ssa-copyrename.c: Remove TODO_dump_func.
2094         * tree-ssa-ccp.c: Remove TODO_dump_func.
2095         * compare-elim.c: Remove TODO_dump_func.
2096         * mode-switching.c: Remove TODO_dump_func.
2097         * modulo-sched.c: Remove TODO_dump_func.
2098         * tree-call-cdce.c: Remove TODO_dump_func.
2099         * cse.c: Remove TODO_dump_func.
2100         * web.c: Remove TODO_dump_func.
2101         * tree-stdarg.c: Remove TODO_dump_func.
2102         * lto-streamer-out.c: Remove TODO_dump_func.
2103         * tree-ssa-math-opts.c: Remove TODO_dump_func.
2104         * tree-ssa-dom.c: Remove TODO_dump_func.
2105         * tree-nrv.c: Remove TODO_dump_func.
2106         * loop-init.c: Remove TODO_dump_func.
2107         * gimple-low.c: Remove TODO_dump_func.
2108         * ipa-inline.c: Remove TODO_dump_func.
2109         * tree-ssa-sink.c: Remove TODO_dump_func.
2110         * jump.c: Remove TODO_dump_func.
2111         * ifcvt.c: Remove TODO_dump_func.
2112         * tree-ssa-loop.c: Remove TODO_dump_func.
2113         * recog.c: Remove TODO_dump_func.
2114         * dse.c: Remove TODO_dump_func.
2115         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2116         * matrix-reorg.c: Remove TODO_dump_func.
2117         * tree-eh.c: Remove TODO_dump_func.
2118         * regmove.c: Remove TODO_dump_func.
2119         * function.c: Remove TODO_dump_func.
2120         * tree-vectorizer.c: Remove TODO_dump_func.
2121         * ipa-split.c: Remove TODO_dump_func.
2122         * gcse.c: Remove TODO_dump_func.
2123         * tree-if-conv.c: Remove TODO_dump_func.
2124         * init-regs.c: Remove TODO_dump_func.
2125         * tree-ssa-phiopt.c: Remove TODO_dump_func.
2126         * implicit-zee.c: Remove TODO_dump_func.
2127         * lower-subreg.c: Remove TODO_dump_func.
2128         * bt-load.c: Remove TODO_dump_func.
2129         * tree-dfa.c: Remove TODO_dump_func.
2130         * except.c: Remove TODO_dump_func.
2131         * emit-rtl.c: Remove TODO_dump_func.
2132         * store-motion.c: Remove TODO_dump_func.
2133         * cfgexpand.c: Remove TODO_dump_func.
2134         * tree-cfgcleanup.c: Remove TODO_dump_func.
2135         * cfgcleanup.c: Remove TODO_dump_func.
2136         * tree-ssa-pre.c: Remove TODO_dump_func.
2137         * tree-sra.c: Remove TODO_dump_func.
2138         * tree-mudflap.c: Remove TODO_dump_func.
2139         * tree-ssa-copy.c: Remove TODO_dump_func.
2140         * cfglayout.c: Remove TODO_dump_func.
2141         * tree-ssa-forwprop.c: Remove TODO_dump_func.
2142         * tree-ssa-dce.c: Remove TODO_dump_func.
2143         * ira.c: Remove TODO_dump_func.
2144         * tree-ssa.c: Remove TODO_dump_func.
2145         * integrate.c: Remove TODO_dump_func.
2146         * tree-optimize.c: Remove TODO_dump_func.
2147         * tree-ssa-phiprop.c: Remove TODO_dump_func.
2148         * tree-object-size.c: Remove TODO_dump_func.
2149         * combine.c: Remove TODO_dump_func.
2150         * bb-reorder.c: Remove TODO_dump_func.
2151         * cprop.c: Remove TODO_dump_func.
2152         * var-tracking.c: Remove TODO_dump_func.
2153         * tree-profile.c: Remove TODO_dump_func.
2154         * tree-vect-generic.c: Remove TODO_dump_func.
2155         * reg-stack.c: Remove TODO_dump_func.
2156         * sched-rgn.c: Remove TODO_dump_func.
2157         * tree-ssa-structalias.c: Remove TODO_dump_func.
2158         * tree-switch-conversion.c: Remove TODO_dump_func.
2159         * tree-cfg.c: Remove TODO_dump_func.
2160         * tree-ssa-reassoc.c: Remove TODO_dump_func.
2161         * combine-stack-adj.c: Remove TODO_dump_func.
2162         * dce.c: Remove TODO_dump_func.
2163         * tree-ssanames.c: Remove TODO_dump_func.
2164         * regcprop.c: Remove TODO_dump_func.
2165
2166 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2167
2168         PR middle-end/47364
2169         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2170         and properly handle result not in Pmode.
2171
2172 2011-06-14  Robert Millan  <rmh@gnu.org>
2173
2174         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2175         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2176         `config/linux.h'.
2177
2178         * config/i386/kfreebsd-gnu64.h: New file.
2179         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2180         with `i386/kfreebsd-gnu64.h'.
2181
2182         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2183         (GNU_USER_LINK_EMULATION64): New macros.
2184         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2185         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2186         of hardcoding `elf_i386' and `elf_x86_64'.
2187
2188 2011-06-14  Nick Clifton  <nickc@redhat.com>
2189
2190         PR target/49403
2191         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2192
2193         PR target/49402
2194         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2195
2196 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
2197
2198         PR fortran/49103
2199         * tree.h (DECL_NONSHAREABLE): Define.
2200         (struct tree_decl_common): Change decl_common_unused to
2201         decl_nonshareable_flag.
2202         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2203         Ignore vars with DECL_NONSHAREABLE bit set.
2204         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2205         on stores to automatic aggregate vars.
2206
2207         PR rtl-optimization/49390
2208         Revert:
2209         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
2210
2211         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2212         MEM_ALIAS_SET.
2213
2214 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
2215             Tom de Vries  <tom@codesourcery.com>
2216
2217         PR target/45098
2218         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2219         Document changed semantics.
2220         (max_stmt_executions, max_stmt_executions_int): Declare.
2221         * tree-data-ref.c (estimated_loop_iterations)
2222         (estimated_loop_iterations_int): Move functions...
2223         * tree-ssa-loop-niter.c (estimated_loop_iterations)
2224         (estimated_loop_iterations_int): here.
2225         (record_estimate): Change nb_iterations_upper_bound and
2226         nb_iterations_estimate semantics.
2227         (max_stmt_executions, max_stmt_executions_int): New function.
2228         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2229         (max_stmt_executions_tree): this.
2230         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2231         estimated_loop_iterations_tree.
2232         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2233         max_stmt_executions_int instead of estimated_loop_iterations_int.
2234         * predict.c (predict_loops): Idem.
2235         * tree-parloops.c (parallelize_loops): Idem.
2236         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2237         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2238         (init_omega_for_ddr_1): Idem.
2239         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2240         (loop_prefetch_arrays): Idem
2241         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2242         max_stmt_executions instead of estimated_loop_iterations.
2243         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2244         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2245         instead of nb_iterations_upper_bound.
2246
2247 2011-06-13  Jan Hubicka  <jh@suse.cz>
2248
2249         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2250
2251 2011-06-14  Richard Henderson  <rth@redhat.com>
2252
2253         PR debug/48459
2254         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2255         (based_loc_descr): Assert it's true.
2256         (compute_frame_pointer_to_fb_displacement): Set it, rather than
2257         aborting immediately.
2258
2259 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
2260             Mingfeng Wu  <mingfeng@faraday-tech.com>
2261
2262         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2263
2264 2011-06-13  Jan Hubicka  <jh@suse.cz>
2265
2266         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2267
2268 2011-06-13  Jan Hubicka  <jh@suse.cz>
2269
2270         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2271         similarly to DECL_COMDAT.
2272         * cgraphunit.c (cgraph_analyze_function): Likewise.
2273         * ipa.c (function_and_variable_visibility): Likewise.
2274
2275 2011-06-13  Jan Hubicka  <jh@suse.cz>
2276
2277         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2278         BINFO_VIRTUALS when streaming for ltrans unit.
2279
2280 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
2281
2282         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2283         (movdi_internal64): Same.
2284
2285 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
2286
2287         PR target/44618
2288         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2289         a set of similar patterns, where the MATCH_OPERAND for the function
2290         argument is replaced with individual references to hardware registers.
2291         (save_fpregs_<mode>): Ditto
2292         (restore_gpregs_<mode>): Ditto
2293         (return_and_restore_gpregs_<mode>): Ditto
2294         (return_and_restore_fpregs_<mode>): Ditto
2295         (return_and_restore_fpregs_aix_<mode>): Ditto
2296
2297 2011-06-13  Jan Hubicka  <jh@suse.cz>
2298
2299         * ipa-utils.c (postorder_stack): New structure.
2300         (ipa_reverse_postorder): Handle aliases.
2301
2302 2011-06-13  Jan Hubicka  <jh@suse.cz>
2303
2304         * ipa-inline.c (reset_edge_caches): Walk aliases.
2305         (update_caller_keys): Do not test inlinability of aliases.
2306         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2307         (do_estimate_growth): Fix typo.
2308
2309 2011-06-13  Jan Hubicka  <jh@suse.cz>
2310
2311         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2312         (can_remove_node_now_p): ... here; handle same comdat groups.
2313         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2314         (inline_call): Update use of can_remove_node_now_p.
2315
2316 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2317
2318         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2319         condition to disallow non-identical memory locations.
2320         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2321         preference to bit manipulation instructions.
2322
2323 2011-06-13  Jan Hubicka  <jh@suse.cz>
2324
2325         * cgraph.c (cgraph_for_node_thunks_and_aliases,
2326         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2327         (nonremovable_p): New function.
2328         (cgraph_can_remove_if_no_direct_calls_p): New function.
2329         (used_from_object_file_p): New functoin.
2330         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2331         references from aliases.
2332         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2333         * ipa-inline.c (check_caller_edge): New function.
2334         (want_inline_function_called_once_p): Use it; accept aliases called
2335         once, too.
2336         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2337
2338 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2339
2340         PR target/48454
2341         * config/arm/neon.md (vec_pack_trunc): Set the lengths
2342         correctly for the case with Quad vectors.
2343
2344 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
2345            Ira Rosen  <ira.rosen@linaro.org>
2346
2347         PR tree-optimization/49352
2348         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2349         all, make sure loop_use_stmt after the loop is a def stmt of a used
2350         SSA_NAME that is the only one defined inside of the loop.  Don't
2351         check for COND_EXPR and GIMPLE_BINARY_RHS.
2352         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2353         check_reduction is true.
2354
2355 2011-06-11  Jan Hubicka  <jh@suse.cz>
2356
2357         PR middle-end/49373
2358         * ipa.c (cgraph_externally_visible_p): Check resolution info.
2359
2360 2011-06-11  Jan Hubicka  <jh@suse.cz>
2361
2362         PR middle-end/48836
2363         * ipa-inline-transform.c: Include tree-pass.h
2364         (inline_transform): Set TODO_update_ssa_only_virtuals.
2365         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2366
2367 2011-06-11  Jan Hubicka  <jh@suse.cz>
2368
2369         PR middle-end/49378
2370         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2371         aliases and thunks.
2372
2373 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
2374
2375         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2376         Take number of iterations to peel into account for equally frequent
2377         misalignment values.
2378
2379 2011-06-11  Jan Hubicka  <jh@suse.cz>
2380
2381         * lto-streamer-out.c (produce_symtab): Stream out the newly
2382         represented aliases.
2383
2384 2011-06-11  Jan Hubicka  <jh@suse.cz>
2385
2386         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2387         varying args.
2388         (ipa_update_after_lto_read): Likewise.
2389         (ipa_write_node_info): Do not sream call_with_var_arguments.
2390         (ipa_read_node_info): Likewise.
2391
2392 2011-06-11  Jan Hubicka  <jh@suse.cz>
2393
2394         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2395
2396 2011-06-11  Jan Hubicka  <jh@suse.cz>
2397
2398         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2399         (lto_symtab_resolve_can_prevail_p): Likewise.
2400         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2401         * cgraph.c (same_body_aliases_done): New global var.
2402         (cgraph_same_body_alias_1): Rename to ...
2403         (cgraph_create_function_alias): ... this one; reorg to new
2404         representation.
2405         (cgraph_same_body_alias): Use cgraph_create_function_alias;
2406         record references when asked to.
2407         (cgraph_add_thunk): Fix formating.
2408         (cgraph_get_node): Kill same body alias code.
2409         (cgraph_node_for_asm): Likewise.
2410         (cgraph_remove_same_body_alias): Remove.
2411         (cgraph_remove_node): Kill same body alias code.
2412         (cgraph_mark_address_taken_node): Mark also the aliased function
2413         as having address taken.
2414         (dump_cgraph_node): Dump same body aliases.
2415         (cgraph_for_node_thunks_and_aliases): Update for new alias
2416         representation.
2417         (cgraph_for_node_and_aliases): Likewise.
2418         * cgraph.h (same_body): Kll pointer.
2419         (same_body_alias): Update comment.
2420         (same_body_aliases_done): Declare.
2421         (cgraph_remove_same_body_alias): Remove declaration.
2422         (cgraph_create_function_alias): Declare.
2423         (cgraph_process_same_body_aliases): Declare.
2424         (cgraph_function_with_gimple_body_p): Check for alias.
2425         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2426         (cgraph_alias_aliased_node): New function.
2427         (cgraph_function_node): Update for new aliases.
2428         (cgraph_function_or_thunk_node): Likewise.
2429         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2430         (inline_call): Remove dead aliases.
2431         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2432         name hack for same body aliases.
2433         (clone_of_p): Look through aliases.
2434         (verify_cgraph_node): Verify aliases.
2435         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2436         (cgraph_process_same_body_aliases): New function.
2437         (process_function_and_variable_attributes): Disable weakref warning on
2438         alias.
2439         (cgraph_analyze_functions): Handle aliases.
2440         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2441         (assemble_thunks): Rename to ...
2442         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2443         (cgraph_expand_function): Remove alias output code.
2444         (cgraph_output_in_order): Skip aliases.
2445         (cgraph_preserve_function_body_p): Aliases don't need preserving.
2446         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2447         (ipa_record_reference): Do not assert on alias references.
2448         (ipa_ref_has_aliases_p): New function.
2449         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2450         (ipa_ref_has_aliases_p): Declare.
2451         * lto-cgraph.c (lto_output_node): Handle aliases.
2452         (input_node): Likewise.
2453         * lto-streamer-out.c (lto_output): Skip aliases.
2454         (produce_symtab): Kill same_body_alias code.
2455         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2456         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2457         * ipa-inline.c (update_caller_keys): Walk aliases.
2458         (inline_small_functions): Fix thinko in previous patch.
2459         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2460         (function_and_variable_visibility): Do not walk same body aliases.
2461         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2462         (ipa_pta_execute): Use it.
2463
2464 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2465
2466         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2467         (*vec_dupv2df): Rename from vec_dupv2df.
2468         (vec_dupv2df): New expander.
2469
2470 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2471
2472         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2473
2474 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2475
2476         * config/i386/i386.md: Use default value in "isa" attribute.
2477         * config/i386/sse.md: Ditto.
2478         * config/i386/mmx.md: Ditto.
2479
2480 2011-06-10  Wei Guozhi  <carrot@google.com>
2481
2482         PR target/45335
2483         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2484         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2485         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2486         related peephole2.
2487         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2488         related peephole2.
2489         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2490         (arm_legitimate_ldrd_p): New prototype.
2491         (arm_output_ldrd): New prototype.
2492         * config/arm/arm.c (arm_check_ldrd_operands): New function.
2493         (arm_legitimate_ldrd_p): New function.
2494         (arm_output_ldrd): New function.
2495
2496 2011-06-10  David Li  <davidxl@google.com>
2497
2498         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2499         * passes.c (passr_eq): New function.
2500         (create_pass_tab): New function.
2501         (pass_traverse): New function.
2502         (dump_one_pass): New function.
2503         (dump_pass_list): New function.
2504         (dump_passes): New function.
2505
2506 2011-06-10  Jan Hubicka  <jh@suse.cz>
2507
2508         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2509         setting the nothrow flag.
2510         * ipa-reference.c (propagate): Skip aliases.
2511         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2512         (propagate_nothrow): Skip aliases; do not update cgraph.
2513         (local_pure_const): Do not update cgraph.
2514         * tree-profile.c (tree_profiling): Do fixup_cfg.
2515
2516 2011-06-10  Jan Hubicka  <jh@suse.cz>
2517
2518         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2519         (cgraph_local_node_p): ... here; handle aliases.
2520         (has_addr_references_p): Break out from ...;
2521         (cgraph_remove_unreachable_nodes) ... here.
2522
2523 2011-06-10  Jan Hubicka  <jh@suse.cz>
2524
2525         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2526         * common.opt (flag_inline_functions_called_once): Do not
2527         initialize to 1.
2528
2529 2011-06-10  Jan Hubicka  <jh@suse.cz>
2530
2531         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2532         (ipcp_initialize_node_lattices): Do not deal with aliases;
2533         Do not try to propagate through thunks.
2534         (ipcp_change_tops_to_bottom): Do not deal with aliases.
2535
2536 2011-06-10  Jan Hubicka  <jh@suse.cz>
2537
2538         * ipa-prop.c (ipa_write_node_info): Stream jump functions
2539         for indirect calls.
2540         (ipa_read_node_info): Likewise.
2541
2542 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2543
2544         PR lto/49302
2545         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2546         (build_and_insert_call): Likewise.
2547         (build_and_insert_ref): New.
2548         (gimple_expand_builtin_pow): Minor cleanup.
2549         (gimple_expand_builtin_cabs): New.
2550         (execute_cse_sincos): Add case for BUILT_IN_CABS.
2551
2552 2011-06-10  Jan Hubicka  <jh@suse.cz>
2553
2554         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2555         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2556         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2557         (ipcp_propagate_stage): Skip aliases when propagating.
2558         (ipcp_need_redirect_p): Skip aliases.
2559         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2560         collect_callers_of_node.
2561         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2562         for aliases.
2563         (ipa_compute_jump_functions): Look through aliases.
2564
2565 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2566
2567         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2568
2569 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2570
2571         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2572         Adjust comments.
2573         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2574
2575 2011-06-10  Jan Hubicka  <jh@suse.cz>
2576
2577         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2578         Update call of gimple_get_virt_method_for_binfo.
2579         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2580         refuse_thunks parameter.
2581         (gimple_fold_call): Update.
2582         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2583
2584 2011-06-10  Jan Hubicka  <jh@suse.cz>
2585
2586         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2587         (not_all_callers_have_enough_arguments_p): ... this one; turn into
2588         worker for cgraph_for_node_and_aliases.
2589         (convert_callers_for_node): Break out from ...
2590         (convert_callers): ... here.
2591         (modify_function): Use collect_callers_of_node.
2592         (ipa_early_sra): Use cgraph_for_node_and_aliases.
2593
2594 2011-06-10  Richard Guenther  <rguenther@suse.de>
2595
2596         PR tree-optimization/49361
2597         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2598         when not already in gimple form.
2599
2600 2011-06-10  Richard Guenther  <rguenther@suse.de>
2601
2602         PR bootstrap/49344
2603         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2604         FOR_EACH_PHI_OR_STMT_USE.
2605
2606 2011-06-10  Jan Hubicka  <jh@suse.cz>
2607
2608         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2609         (clone_inlined_nodes): ... here.
2610         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2611         to real destination prior inlining.
2612         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2613         can_early_inline_edge_p, want_early_inline_function_p,
2614         want_early_inline_function_p, want_inline_small_function_p,
2615         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2616         edge_badness, update_all_callee_keys, lookup_recursive_calls,
2617         add_new_edges_to_heap, inline_small_functions, flatten_function,
2618         inline_always_inline_functions, early_inline_small_functions): Use
2619         cgraph_function_or_thunk_node.
2620         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2621         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2622         (do_estimate_edge_growth_1): Break out from ...
2623         (do_estimate_growth) ... here; walk aliases.
2624         (inline_generate_summary): Skip aliases.
2625
2626 2011-06-10  Richard Guenther  <rguenther@suse.de>
2627
2628         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2629         forward when combining, visit inserted stmts when a stmt was changed.
2630
2631 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
2632
2633         * tree.h (error_operand_p): Add.
2634         * dbxout.c (dbxout_type_fields): Use the latter.
2635         * c-decl.c (add_stmt): Likewise.
2636         * gimplify.c (omp_add_variable, omp_notice_variable,
2637         gimplify_scan_omp_clauses): Likewise.
2638
2639 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
2640
2641         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2642         when a value is actually passed in regs.
2643
2644 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
2645             Laurent Rougé  <laurent.rouge@menta.fr>
2646
2647         * doc/invoke.texi (SPARC options): Add -mflat.
2648         * config/sparc/sparc.opt: Likewise.
2649         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2650         (sparc_flat_expand_prologue): Declare.
2651         (sparc_flat_expand_epilogue): Likewise.
2652         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2653         (CPP_ENDIAN_SPEC): Replace with...
2654         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
2655         (CPP_SPEC): Adjust to above change.
2656         (EXTRA_SPECS): Likewise.
2657         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2658         (INCOMING_REGNO): Likewise.
2659         (OUTGOING_REGNO): Likewise.
2660         (LOCAL_REGNO): Likewise.
2661         (SETUP_FRAME_ADDRESSES): Likewise.
2662         (FIXED_REGISTERS): Set 0 for %fp.
2663         (CALL_USED_REGISTERS): Likewise.
2664         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2665         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2666         (RETURN_ADDR_REGNUM): Define.
2667         (RETURN_ADDR_RTX): Use it.
2668         (INCOMING_RETURN_ADDR_REGNUM): Define.
2669         (INCOMING_RETURN_ADDR_RTX): Use it.
2670         (DWARF_FRAME_RETURN_COLUMN): Likewise.
2671         (EH_RETURN_REGNUM): Define.
2672         (EH_RETURN_STACKADJ_RTX): Use it.
2673         (EH_RETURN_HANDLER_RTX): Delete.
2674         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2675         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2676         Delete.
2677         (struct machine_function): Add frame_size, apparent_frame_size,
2678         frame_base_reg, frame_base_offset, n_global_fp_regs and
2679         save_local_in_regs_p fields.
2680         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2681         sparc_frame_base_offset, sparc_n_global_fp_regs,
2682         sparc_save_local_in_regs_p): New macros.
2683         (sparc_option_override): Error out if -fcall-saved-REG is specified
2684         for Out registers.
2685         (eligible_for_restore_insn): Fix formatting.
2686         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
2687         (eligible_for_sibcall_delay): Likewise.
2688         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2689         (sparc_legitimate_address_p): Adjust to above change.
2690         (save_global_or_fp_reg_p): New predicate.
2691         (return_addr_reg_needed_p): Likewise.
2692         (save_local_or_in_reg_p): Likewise.
2693         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
2694         (SORR_SAVE, SORR_RESTORE): Delete.
2695         (sorr_pred_t): New typedef.
2696         (sorr_act_t): New enum.
2697         (save_or_restore_regs): Rename to...
2698         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
2699         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2700         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
2701         mechanism.  Add CFI information for double-word saves in 32-bit mode.
2702         (emit_adjust_base_to_offset): New function extracted from...
2703         (emit_save_or_restore_regs): ...this.  Rename the rest to...
2704         (emit_save_or_restore_regs_global_fp_regs): ...this.
2705         (emit_save_or_restore_regs_local_in_regs): New function.
2706         (gen_create_flat_frame_[123]): New functions.
2707         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
2708         (sparc_flat_expand_prologue): New function.
2709         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2710         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
2711         (sparc_flat_expand_epilogue): New function.
2712         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2713         (output_return): Likewise.
2714         (output_sibcall): Likewise.
2715         (sparc_output_mi_thunk): Likewise.
2716         (sparc_frame_pointer_required): Likewise.
2717         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2718         function optimization.
2719         * config/sparc/sparc.md (flat): New attribute.
2720         (prologue): Add TARGET_FLAT handling.
2721         (save_register_window): Disable if TARGET_FLAT.
2722         (create_flat_frame_[123]): New patterns.
2723         (epilogue): Add TARGET_FLAT handling.
2724         (sibcall_epilogue): Likewise.
2725         (eh_return): New expander.
2726         (eh_return_internal): New insn and splitter.
2727         (return_internal): Add TARGET_FLAT handling.
2728         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2729         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2730         (nonlocal_goto): Add TARGET_FLAT handling.
2731         * config/sparc/t-elf: Add -mflat multilib.
2732         * config/sparc/t-leon: Likewise.
2733
2734 2011-06-10  Jan Hubicka  <jh@suse.cz>
2735
2736         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2737         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2738         (self_recursive_p): Use cgraph_function_node.
2739         (propagate_pure_const): Likewise.
2740         (propagate_nothrow): Likewise.
2741         * ipa-reference.c (ipa_reference_get_not_read_global): Use
2742         cgraph_function_node.
2743         (propagate_bits): Likewise.
2744         (propagate): Likewise.
2745
2746 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2747             Richard Earnshaw  <rearnsha@arm.com>
2748
2749         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2750         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2751         (*thumb2_movdi_vfp): Delete.
2752         (*arm_movdi_vfp_cortexa8): Delete.
2753         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2754         (*movdi_vfp_cortexa8): Likewise.
2755
2756 2011-06-10  Richard Guenther  <rguenther@suse.de>
2757
2758         * stor-layout.c (initialize_sizetypes): Give names to all
2759         sizetype kinds.
2760
2761 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
2762
2763         PR tree-optimization/49318
2764         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2765         irrelevant pattern statements.
2766
2767 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2768
2769         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2770
2771         PR bootstrap/49354
2772         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2773         to last assignment.
2774
2775 2011-06-09  Jan Hubicka  <jh@suse.cz>
2776
2777         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2778         do not recompute reachable flag.
2779         (cgraph_finalize_function, cgraph_analyze_functions): Set
2780         redefined_extern_inline here.
2781
2782 2011-06-09  Jan Hubicka  <jh@suse.cz>
2783
2784         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2785         (cgraph_only_called_directly_p): ... this one; bring offline.
2786         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2787         varpool_used_from_object_file_p): Drop names from the declaratoin.
2788         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2789         collect_callers_of_node): New.
2790         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2791         (cgraph_edge_recursive_p): Use cgraph_function_node.
2792         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2793         (cgraph_node_cannot_be_local_p_1): Break out from ...
2794         (cgraph_node_can_be_local_p): ... here; walk aliases.
2795         (cgraph_for_node_thunks_and_aliases): New function.
2796         (cgraph_for_node_and_aliases): New function.
2797         (cgraph_make_node_local_1): Break out from ...
2798         (cgraph_make_node_local) ... here; use
2799         cgraph_for_node_thunks_and_aliases.
2800         (cgraph_set_nothrow_flag_1): Break out from ...
2801         (cgraph_set_nothrow_flag) ... here;
2802         use cgraph_for_node_thunks_and_aliases.
2803         (cgraph_set_const_flag_1): Break out from ...
2804         (cgraph_set_const_flag) ... here;
2805         use cgraph_for_node_thunks_and_aliases.
2806         (cgraph_set_pure_flag_1): Break out from ...
2807         (cgraph_set_pure_flag) ... here;
2808         use cgraph_for_node_thunks_and_aliases.
2809         (cgraph_propagate_frequency_1): Break out from ...
2810         (cgraph_propagate_frequency) ... here; use
2811         cgraph_for_node_thunks_and_aliases.
2812         (cgraph_used_from_object_file_p): Do not care about aliases.
2813         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2814         New functions.
2815         (collect_callers_of_node_1, collect_callers_of_node): New functions.
2816
2817 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2818
2819         PR rtl-optimization/49154
2820         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2821         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2822         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2823         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2824         * config/cris/cris.h (cris_register_move_cost): Remove
2825         !TARGET_V32 code.  Tweak comments.
2826
2827 2011-06-09  Jan Hubicka  <jh@suse.cz>
2828
2829         * cgraphbuild.c (record_eh_tables): Mark personality function as having
2830         address taken.
2831
2832 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2833
2834         PR rtl-optimization/49154
2835         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2836         is a matching slot in the hashtable, assign it to classes_ptr.
2837
2838         PR rtl-optimization/49154
2839         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2840         register classes.
2841         * doc/tm.texi: Regenerate.
2842
2843 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2844
2845         PR target/49307
2846         * config/sh/sh.md (UNSPEC_CHKADD): New.
2847         (chk_guard_add): New define_insn_and_split.
2848         (symGOT_load): Use chk_guard_add instead of blockage.
2849
2850 2011-06-09  Kai Tietz  <ktietz@redhat.com>
2851
2852         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2853
2854 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2855
2856         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2857
2858 2011-06-09  Wei Guozhi  <carrot@google.com>
2859
2860         PR target/46975
2861         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2862         (peephole2 for conditional move): Generate 16 bit instructions.
2863
2864 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
2865
2866         * config/i386/i386.md (*movdi_internal_rex64): Merge
2867         alternatives 6 and 8.
2868
2869 2011-06-09  David Li  <davidxl@google.com>
2870
2871         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2872         * passes.c (passr_eq): New function.
2873         (create_pass_tab): New function.
2874         (pass_traverse): New function.
2875         (dump_one_pass): New function.
2876         (dump_pass_list): New function.
2877         (dump_passes): New function.
2878
2879 2011-06-09  David Li  <davidxl@google.com>
2880
2881         * tree-complex.c (tree_lower_complex): Gate cleanup.
2882         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2883         (execute_optimize_stdarg): Ditto.
2884         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2885         (execute_cleanup_eh_1): Ditto.
2886         (execute_cleanup_eh): Ditto.
2887         * gcse.c (gate_rtl_pre): Ditto.
2888         (execute_rtl_pre): Ditto.
2889         * except.c (finish_eh_generation): Ditto.
2890         (convert_to_eh_region_ranges): Ditto.
2891         * cprop.c (one_cprop_pass): Ditto.
2892
2893 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
2894
2895         PR target/48673
2896         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2897         in all basic blocks.
2898
2899 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2900
2901         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2902         (HAVE_ENABLE_EXECUTE_STACK): Define.
2903         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2904         (HAVE_ENABLE_EXECUTE_STACK): Define.
2905         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2906         (HAVE_ENABLE_EXECUTE_STACK): Define.
2907         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2908         (ENABLE_EXECUTE_STACK): Remove.
2909         (HAVE_ENABLE_EXECUTE_STACK): Define.
2910         [IN_LIBGCC2]: Don't include <windows.h>.
2911         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2912         (HAVE_ENABLE_EXECUTE_STACK): Define.
2913         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2914         (HAVE_ENABLE_EXECUTE_STACK): Define.
2915         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2916         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2917         (HAVE_ENABLE_EXECUTE_STACK): Define.
2918         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2919         (HAVE_ENABLE_EXECUTE_STACK): Define.
2920         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2921         (HAVE_ENABLE_EXECUTE_STACK): Define.
2922         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2923         (HAVE_ENABLE_EXECUTE_STACK): Define.
2924         * config/alpha/alpha.c (alpha_trampoline_init): Test
2925         HAVE_ENABLE_EXECUTE_STACK.
2926         * config/i386/i386.c (ix86_trampoline_init): Likewise.
2927         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2928         (sparc64_initialize_trampoline): Likewise.
2929         * libgcc2.c [L_enable_execute_stack]: Remove.
2930         * system.h (ENABLE_EXECUTE_STACK): Poison.
2931         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2932         * doc/tm.texi: Regenerate.
2933         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2934
2935 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
2936
2937         PR middle-end/49308
2938         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2939         variable.  After resetting and rescanning insn continue with previous
2940         statement.
2941
2942 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2943
2944         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2945         (gcc_cv_ld_hidden): Likewise.
2946         * configure: Regenerate.
2947         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2948         (ix86_stack_protect_fail): Mark unused.
2949         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2950         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2951         [TARGET_MACHO]: Don't define.
2952         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2953         (TARGET_STACK_PROTECT_FAIL): Likewise.
2954         (rs6000_stack_protect_fail): Mark unused.
2955         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2956         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
2957
2958 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2959
2960         * varasm.c (get_section): Print location of other conflict
2961         for section conflicts.
2962
2963 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2964
2965         * config/i386/driver-i386.c (host_detect_local_cpu):
2966         Add model 0x2d Intel CPU.
2967
2968 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2969
2970         * reginfo.c (global_regs_decl): Add.
2971         (globalize_reg): Add decl parameter. Compute location.  Pass location
2972         to warnings and add inform. Store decl in global_regs_decl.
2973         * rtl.h (globalize_reg): Update prototype.
2974         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2975
2976 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
2977
2978         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2979
2980 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2981
2982         PR target/49305
2983         * config/sh/predicates.md (general_movsrc_operand): Check
2984         mode for memory with indexed address for QI and HImode.
2985         (general_movdst_operand): Likewise.
2986
2987 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
2988
2989         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2990
2991 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
2992
2993         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2994         (num_ssa_operands): Likewise.
2995         (op_iter_init_phiuse): Forward-declare.
2996         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2997
2998 2011-06-08  Nick Clifton  <nickc@redhat.com>
2999
3000         * doc/invoke.texi (ARM Options): Update description of
3001         -mthumb-interwork.
3002
3003 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
3004
3005         * config/i386/driver-i386.c (host_detect_local_cpu): Support
3006         unknown Intel family 0x6 CPUs.
3007
3008 2011-06-08  Martin Jambor  <mjambor@suse.cz>
3009
3010         * tree-sra.c (mark_rw_status): Removed.
3011         (analyze_access_subtree): New parameter parent instead of
3012         mark_read and mark_write, propagate from that.
3013
3014 2011-06-08  Julian Brown  <julian@codesourcery.com>
3015
3016         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3017         for double-precision helper functions in hard-float mode if only
3018         single-precision arithmetic is supported in hardware.
3019
3020 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
3021
3022         PR rtl-optimization/49303
3023         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
3024         code_motion_path_driver returned 0 or 1.
3025         (sel_region_finish): Clear h_d_i_d.
3026
3027 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
3028
3029         * config/sh/sh.c (prepare_move_operands): Set pic register
3030         appropriately for global and local dynamic tls models even
3031         if flag_pic is unset.
3032
3033 2011-06-07  Jason Merrill  <jason@redhat.com>
3034
3035         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3036
3037 2011-06-07  Xinliang David Li  <davidxl@google.com>
3038         * passes.c (enable_disable_pass): Handle assembler name.
3039         (is_pass_explicitly_enabled_or_disabled): Ditto.
3040
3041 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3042
3043         PR tree-optimization/48497
3044         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3045
3046 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3047
3048         PR tree-optimization/46728
3049         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3050         to use gimple_val_nonnegative_real_p.
3051         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3052         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3053
3054 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
3055
3056         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3057
3058 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
3059
3060         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3061         constant vectors.
3062
3063 2011-06-07  Richard Guenther  <rguenther@suse.de>
3064
3065         * stor-layout.c (initialize_sizetypes): Initialize all
3066         sizetypes based on target definitions.
3067         (set_sizetype): Remove.
3068         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3069         * tree.h (set_sizetype): Remove.
3070
3071 2011-06-07  Nick Clifton  <nickc@redhat.com>
3072
3073         * config.gcc: Unify V850 architecture options and add support for
3074         newer V850 architectures.
3075         * config/v850/t-v850e: Delete.
3076
3077 2011-06-07  Richard Guenther  <rguenther@suse.de>
3078
3079         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3080         Call set_sizetype from here.
3081
3082 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
3083
3084         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3085         (*maddhisi4tb, *maddhisi4tt): New define_insns.
3086
3087 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
3088             Andrew Stubbs  <ams@codesourcery.com>
3089
3090         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3091         multiplies.
3092         * doc/md.texi (Canonicalization of Instructions): Document widening
3093         multiply canonicalization.
3094
3095 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
3096
3097         PR gcov-profile/49299
3098         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
3099
3100 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
3101
3102         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3103         a pointer.
3104         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3105         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3106         vect_recog_pow_pattern): Likewise.
3107         (vect_pattern_recog_1): Remove declaration.
3108         (widened_name_p): Remove declaration.  Add new argument to specify
3109         whether to check that both types are either signed or unsigned.
3110         (vect_recog_widen_mult_pattern): Update documentation.  Handle
3111         unsigned patterns and multiplication by constants.
3112         (vect_pattern_recog_1): Update vect_recog_func references.  Use
3113         statement information from the statement returned from pattern
3114         detection functions.
3115         (vect_pattern_recog): Update vect_recog_func reference.
3116         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3117         multiplication by a constant use the type of the other operand.
3118
3119 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
3120
3121         PR rtl-optimization/49145
3122         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3123
3124 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
3125
3126         PR debug/49262
3127         * dwarf2out.c (native_encode_initializer): Decrement count in each
3128         iteration.
3129
3130         PR debug/49294
3131         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3132         non-MODE_INT modes.
3133
3134         PR c++/49264
3135         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3136         if stmt folded into nothing.
3137         * tree-inline.c (fold_marked_statements): If a builtin at the end of
3138         a bb folded into nothing, just update cgraph edges and move to next bb.
3139         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3140         to be NULL.  Don't compute count and frequency if new_call is NULL.
3141
3142 2011-06-04  Diego Novillo  <dnovillo@google.com>
3143
3144         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3145         (cgraph.o): Likewise.
3146         (cgraphunit.o): Likewise.
3147         * cgraphunit.c: Include lto-streamer.h
3148         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3149         if LTO is enabled.
3150         * lto-streamer-in.c (unpack_value_fields): Call
3151         streamer_hooks.unpack_value_fields if set.
3152         (lto_materialize_tree): For unhandled nodes, first try to
3153         call lto_streamer_hooks.alloc_tree, if it exists.
3154         (lto_input_ts_decl_common_tree_pointers): Move reading of
3155         DECL_INITIAL to lto_streamer_read_tree.
3156         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3157         (lto_streamer_read_tree): New.
3158         (lto_reader_init): Rename from lto_init_reader.
3159         Move initialization code to lto/lto.c.
3160         * lto-streamer-out.c (pack_value_fields): Call
3161         streamer_hooks.pack_value_fields if set.
3162         (lto_output_tree_ref): For tree nodes that are not normally indexable,
3163         call streamer_hooks.indexable_with_decls_p before giving up.
3164         (lto_output_ts_decl_common_tree_pointers): Move handling
3165         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3166         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3167         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
3168         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
3169         (lto_streamer_write_tree): New.
3170         (lto_output): Call lto_streamer_init directly.
3171         (lto_writer_init): Remove.
3172         * lto-streamer.c (streamer_hooks): New.
3173         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3174         instead of lto_preload_common_nodes.
3175         (lto_is_streamable): Move from lto-streamer.h
3176         (lto_streamer_hooks_init): New.
3177         (streamer_hooks): New.
3178         (streamer_hooks_init): New.
3179         * lto-streamer.h (struct output_block): Forward declare.
3180         (struct lto_input_block): Likewise.
3181         (struct data_in): Likewise.
3182         (struct bitpack_d): Likewise.
3183         (struct streamer_hooks): Declare.
3184         (streamer_hooks): Declare.
3185         (lto_streamer_hooks_init): Declare.
3186         (lto_streamer_write_tree): Declare.
3187         (lto_streamer_read_tree): Declare.
3188         (streamer_hooks_init): Declare.
3189         (lto_is_streamable): Move to lto-streamer.c
3190
3191 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3192
3193         * longlong.h (smul_ppmm): The resulting register pair contains the
3194         higher order word first.
3195
3196 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3197
3198         PR tree-optimization/46728
3199         * builtins.c (powi_table): Remove.
3200         (powi_lookup_cost): Remove.
3201         (powi_cost): Remove.
3202         (expand_powi_1): Remove.
3203         (expand_powi): Remove.
3204         (expand_builtin_pow_root): Remove.
3205         (expand_builtin_pow): Remove.
3206         (expand_builtin_powi): Eliminate handling of constant exponent.
3207         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
3208
3209 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3210
3211         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3212
3213 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3214
3215         * dce.c (reset_unmarked_insns_debug_uses): New.
3216         (delete_unmarked_insns): Skip debug insns.
3217         (prescan_insns_for_dce): Likewise.
3218         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3219         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3220         active reg can be found.
3221         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
3222         (convert_regs_1): Use it.
3223
3224 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3225
3226         * tree-pretty-print.c (dump_function_header): Add flags.
3227         Don't dump decl_uid with nouid.
3228         * tree-pretty-print.h (dump_function_header): Adjust.
3229         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3230         * passes.c (pass_init_dump_file): Pass dump_flags on.
3231         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3232
3233 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3234
3235         PR bootstrap/49270
3236         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3237
3238 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
3239
3240         PR tree-optimization/49243
3241         * calls.c (setjmp_call_p): Also check if fndecl has the
3242         returns_twice attribute.
3243
3244 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3245
3246         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3247         -ffast-math etc.
3248
3249 2011-06-06  Richard Henderson  <rth@redhat.com>
3250             Georg-Johann Lay  <avr@gjlay.de>
3251
3252         PR target/42210
3253         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3254         New predicates.
3255         * config/avr/avr.md ("insv"): New insn expander.
3256         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3257         "*insv.not.io", "*insv.reg"): New insns.
3258
3259 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
3260
3261         PR target/49285
3262         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3263         to nonimmediate_operand from memory_operand for the operand that is to
3264         be forced to memory by the expander.  Lose the constraints.
3265
3266 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
3267
3268         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3269         EH return when delayed branches are disabled.
3270
3271 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
3272
3273         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3274         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
3275         calculation.
3276         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3277         Simplify MODE_V1DF and MODE_V2SF handling.
3278         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3279         Simplify MODE_SF handling.
3280
3281 2011-06-04  Jan Hubicka  <jh@suse.cz>
3282
3283         PR tree-optimization/48893
3284         PR tree-optimization/49091
3285         PR tree-optimization/49179
3286         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3287         Bounds check.
3288
3289 2011-06-04  Jan Hubicka  <jh@suse.cz>
3290
3291         PR lto/48954
3292         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3293         bitmaps.
3294
3295 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
3296
3297         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3298
3299 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
3300
3301         PR target/49281
3302         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3303         to be strictly smaller than 1 << shiftcount.
3304
3305 2011-06-04  Jan Hubicka  <jh@suse.cz>
3306
3307         PR tree-optimize/48929
3308         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3309         of empty predicate.
3310
3311 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
3312
3313         PR debug/48333
3314         * calls.c (emit_call_1): Prefer the __builtin declaration of
3315         builtin functions.
3316
3317 2011-06-03   Diego Novillo  <dnovillo@google.com>
3318
3319         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3320         (lto_input_tree_pointers): Likewise.
3321         * lto-streamer-out.c (pack_value_fields): Likewise.
3322         (lto_output_tree_pointers): Likewise.
3323         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3324         and OPTIMIZATION_NODE.
3325
3326 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3327
3328         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3329         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3330         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3331         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3332         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3333         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3334         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3335         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3336         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3337         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3338         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3339         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3340         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3341         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3342         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3343         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3344         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3345         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3346         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3347         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3348         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3349         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3350         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3351         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3352         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3353         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3354         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3355         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3356         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3357         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3358         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3359         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3360         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3361         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3362         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3363         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3364         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3365         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3366         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3367         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3368         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3369         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3370         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3371         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3372         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3373         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3374         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3375         * system.h (MD_UNWIND_SUPPORT): Poison.
3376         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3377         * doc/tm.texi: Regenerate.
3378         * unwind-dw2.c: Include md-unwind-support.h instead of
3379         MD_UNWIND_SUPPORT.
3380         * config/ia64/unwind-ia64.c: Likewise.
3381         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3382
3383 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
3384
3385         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3386
3387 2011-06-03  Richard Henderson  <rth@redhat.com>
3388             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3389
3390         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3391         (sigill_hdlr): Correct insn, insn size.
3392         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3393
3394 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3395
3396         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3397         t-slibgcc-dummy.
3398         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3399         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3400         * config/mips/t-iris: Remove.
3401         * config/mips/t-irix6: New file.
3402         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3403
3404 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3405
3406         * Makefile.in (LIB2ADDEHDEP): Remove.
3407         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3408         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3409         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3410         * config/t-darwin (LIB2ADDEHDEP): Remove.
3411         * config/t-freebsd (LIB2ADDEHDEP): Remove.
3412         * config/t-linux (LIB2ADDEHDEP): Remove.
3413
3414 2011-06-03  Diego Novillo  <dnovillo@google.com>
3415
3416         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3417         (lto_register_var_decl_in_symtab): Likewise.
3418         (lto_register_function_decl_in_symtab): Likewise.
3419         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3420         logic to uniquify_nodes.
3421
3422 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3423
3424         * config/alpha/t-osf5: Remove.
3425         * config/alpha/t-osf-pthread: Remove.
3426         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3427         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3428
3429 2011-06-03  Julian Brown  <julian@codesourcery.com>
3430
3431         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3432         (strongarm1110): Use strongarm tuning.
3433         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3434         * config/arm/arm.c (arm_strongarm_tune): New.
3435         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3436         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3437         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3438         setting, using previous defaults or 1 for Cortex-A5.
3439         (arm_option_override): Set max_insns_skipped from current tuning.
3440
3441 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
3442
3443         * doc/install.texi (Options specification): Document --with-specs.
3444
3445 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3446
3447         * config/arm/neon.md (orndi3_neon): Actually split it.
3448
3449 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3450
3451         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3452         * var-tracking.c (reverse_op): Limite recurse depth to 5.
3453
3454 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3455
3456         PR debug/47590
3457         * target.def (delay_sched2, delay_vartrack): New.
3458         * doc/tm.texi.in: Update.
3459         * doc/tm.texi: Rebuild.
3460         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3461         * var-tracking.c (gate_handle_var_tracking): Likewise.
3462         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3463         (bfin_flag_var_tracking): Drop.
3464         (output_file_start): Don't save and override flag_var_tracking.
3465         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3466         (bfin_reorg): Test original variables.
3467         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3468         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3469         (ia64_flag_var_tracking): Drop.
3470         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3471         (ia64_file_start): Don't save and override flag_var_tracking.
3472         (ia64_override_options_after_change): Ditto
3473         flag_schedule_insns_after_reload.
3474         (ia64_reorg): Test original variables.
3475         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3476         (picochip_flag_var_tracking): Drop.
3477         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3478         (picochip_option_override): Don't save and override
3479         flag_schedule_insns_after_reload.
3480         (picochip_asm_file_start): Ditto flag_var_tracking.
3481         (picochip_reorg): Test original variables.
3482         * config/spu/spu.c (spu_flag_var_tracking): Drop.
3483         (TARGET_DELAY_VARTRACK): Define.
3484         (spu_var_tracking): New.
3485         (spu_machine_dependent_reorg): Call it.
3486         (asm_file_start): Don't save and override flag_var_tracking.
3487
3488 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
3489
3490         PR target/49163
3491         * config/sh/predicates.md (general_movsrc_operand): Return 0
3492         for memory and memory subreg of which address is an invalid
3493         indexed address for QI and HImode.
3494         (general_movdst_operand): Likewise.
3495
3496 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3497
3498         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3499         edges only, when there is a non-local label in the function.
3500         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3501
3502 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3503
3504         * config/i386/constraints.md (Y3): New register constraint.
3505         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3506         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3507         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3508         *sse2_interleave_lowv2df.
3509
3510 2011-06-02  Julian Brown  <julian@codesourcery.com>
3511
3512         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3513         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3514         (arm_cortex_a5_tune): New.
3515
3516 2011-06-02  Julian Brown  <julian@codesourcery.com>
3517
3518         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3519         * config/arm/arm.c (arm_default_branch_cost): New.
3520         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3521         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3522         (arm_fa726_tune): Set branch_cost field using
3523         arm_default_branch_cost.
3524         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3525         current_tune structure.
3526         * dojump.c (tm_p.h): Include file.
3527
3528 2011-06-02  Julian Brown  <julian@codesourcery.com>
3529
3530         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3531         tuning.
3532         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3533         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3534         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3535         field.
3536         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3537         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3538         (arm_fa726te_tune): Add prefer_constant_pool setting.
3539         (arm_v6t2_tune, arm_cortex_tune): New.
3540         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3541         prefer_constant_pool setting.
3542
3543 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3544
3545         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3546         switch statement.
3547         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3548         (*movdf_internal) <case 6,7,8>: Ditto.
3549
3550         * config/i386/constraints.md (Y4): New register constraint.
3551         * config/i386/sse.md (vec_set<mode>_0): Merge with
3552         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3553         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3554         *vec_extractv2di_1_sse.
3555         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3556         and *vec_concatv2di_rex64_sse.
3557
3558 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
3559
3560         PR target/48807
3561         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3562         of cgraph_local_info for null before attempting to use it.
3563
3564 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3565
3566         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3567         (current_function_dynamic_alloc_count): Delete.
3568         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3569         (expand_builtin_nonlocal_goto): Remove obsolete comment.
3570         (expand_builtin_update_setjmp_buf): Remove dead code.
3571         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3572         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3573         support.
3574         * function.c (instantiate_virtual_regs): Likewise.
3575         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3576         for a block with a single abnormal incoming edge.
3577         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3578         (SETJMP_VIA_SAVE_AREA): Delete.
3579         * config/sparc/sparc-protos.h (load_got_register): Declare.
3580         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3581         (load_got_register): Make global.
3582         (sparc_frame_pointer_required): Add 'static'.
3583         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
3584         (sparc_builtin_setjmp_frame_value): New function.
3585         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3586         (save_stack_nonlocal): New expander.
3587         (restore_stack_nonlocal): Likewise.
3588         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3589         (nonlocal_goto_internal): New insn.
3590         (goto_handler_and_restore): Delete.
3591         (builtin_setjmp_setup): Likewise.
3592         (do_builtin_setjmp_setup): Likewise.
3593         (setjmp): Likewise.
3594         (builtin_setjmp_receiver): New expander.
3595
3596 2011-06-01  David Li  <davidxl@google.com>
3597
3598         PR middle-end/49261
3599         * tree-pretty-print.c (dump_function_header): Format cleanup.
3600
3601 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
3602
3603         PR target/49238
3604         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3605         needed when original operands are used for msw_skip comparison.
3606
3607 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3608
3609         PR debug/49250
3610         * var-tracking.c (add_uses, add_stores): Don't call
3611         cselib_subst_to_values on ENTRY_VALUE.
3612
3613 2011-06-01  Diego Novillo  <dnovillo@google.com>
3614
3615         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3616         output_record_start with LTO_null instead of output_zero.
3617         (lto_output_ts_binfo_tree_pointers): Likewise.
3618         (lto_output_tree): Likewise.
3619         (output_eh_try_list): Likewise.
3620         (output_eh_region): Likewise.
3621         (output_eh_lp): Likewise.
3622         (output_eh_regions): Likewise.
3623         (output_bb): Likewise.
3624         (output_function): Likewise.
3625         (output_unreferenced_globals): Likewise.
3626         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3627         instead of NUM_TREE_CODES.
3628         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3629         (lto_output_int_in_range): Change << to >> when shifting VAL.
3630
3631 2011-06-01  Diego Novillo  <dnovillo@google.com>
3632
3633         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3634         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3635
3636 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3637
3638         PR target/45074
3639         * optabs.h (valid_multiword_target_p): Declare.
3640         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3641         doing multi-word operations.
3642         * optabs.c (expand_binop): Likewise.
3643         (expand_doubleword_bswap): Likewise.
3644         (expand_absneg_bit): Likewise.
3645         (expand_unop): Likewise.
3646         (expand_copysign_bit): Likewise.
3647         (multiword_target_p): New function.
3648
3649 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3650
3651         PR rtl-optimization/48830
3652         PR rtl-optimization/48808
3653         PR rtl-optimization/48792
3654         * reload.c (push_reload): Check contains_reg_of_mode.
3655         * reload1.c (strip_paradoxical_subreg): New function.
3656         (gen_reload_chain_without_interm_reg_p): Use it to handle
3657         paradoxical subregs.
3658         (emit_output_reload_insns, gen_reload): Likewise.
3659
3660 2011-06-01  David Li  <davidxl@google.com>
3661
3662         * predict.c : Change pass name
3663         * ipa.c: Ditto.
3664         * dce.c: Ditto.
3665         * tree-profile.c: Ditto.
3666         * except.c: Ditto.
3667
3668 2011-06-01  David Li  <davidxl@google.com>
3669
3670         * tree-pretty-print.c (dump_function_header): New function.
3671         * final.c (rest_of_clean_state): Use header dumper.
3672         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3673         * passes.c (pass_init_dump_file): Use header dumper.
3674
3675 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3676
3677         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3678         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3679         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3680         New functions.
3681         (mem_loc_descriptor): Use them.
3682
3683         * var-tracking.c (create_entry_value): New function.
3684         (vt_add_function_parameter): Use it.
3685
3686 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3687
3688         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3689         Include <signal.h>, <ucontext.h>.
3690         (sigill_caught): Define.
3691         (sigill_hdlr): New function.
3692         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3693         insns can be executed.
3694         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3695         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3696
3697 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3698
3699         * config/t-slibgcc-darwin: Move to ...
3700         * config/t-slibgcc-dummy: ... this.  Clarify comments.
3701         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3702         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3703         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3704         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
3705         Remove i386/t-crtstuff from tmake_file.
3706         (i[34567]86-*-solaris2*): Remove t-svr4,
3707         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3708         t-slibgcc-dummy.
3709         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3710         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3711         sparc/t-crtfm from tmake_file.
3712         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3713         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3714         Remove extra_parts.
3715         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3716         * config/i386/t-nwld (SHLIB_LINK): Remove.
3717         * config/i386/t-rtems-i386: Rename to ...
3718         * config/i386/t-rtems: ... this.
3719         ($(T)crti.o, $(T)crtn.o): Remove.
3720         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3721         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3722         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3723         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3724         EXTRA_MULTILIB_PARTS): Remove.
3725         * config/sparc/t-sol2-64: Likewise.
3726         * config/sparc/t-sol2: Remove.
3727         * config/sparc/t-crtin: Remove.
3728         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3729         * config/i386/gmon-sol2.c: Remove.
3730         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3731         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3732         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3733         * config/i386/sol2-gc1.asm: Remove.
3734         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3735         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3736         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3737         * config/t-slibgcc-sld: Remove.
3738
3739 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3740
3741         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3742         base_type_for_mode with op_mode instead of mode.
3743
3744 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
3745
3746         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
3747         Cortex-A15.
3748         * config/arm/arm-tune.md: Regenerate.
3749         * config/arm/arm-tables.opt: Regenerate.
3750         * config/arm/arm.c (FL_DIV): Rename...
3751         (FL_THUMB_DIV): ... to this.
3752         (FL_ARM_DIV): Define.
3753         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3754         (arm_arch_hwdiv): Remove.
3755         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3756         (arm_issue_rate): Add cortexr5.
3757         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3758         __ARM_ARCH_EXT_IDIV__.
3759         (TARGET_IDIV): Define.
3760         (arm_arch_hwdiv): Remove.
3761         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3762         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3763         (divsi3, udivsi3): New patterns.
3764         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3765         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3766
3767 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3768
3769         * ipa-utils.c (ipa_dfs_info): New field scc_no.
3770         * ipa-utils.c (searchc): Set scc_no.
3771
3772 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3773
3774         * ipa-utils.c (searchc_env): New field allow_overwritable.
3775         (searchc): do not ignore edges to overwritable nodes if indicated
3776         by env->allow_overwritable.
3777         (ipa_reduced_postorder): Set env.allow_overwritable.
3778
3779 2011-06-01  Richard Guenther  <rguenther@suse.de>
3780
3781         * tree.c (free_lang_data): Do not reset boolean_type_node nor
3782         char_type_node.
3783         * lto-streamer.c (lto_record_common_node): Take node pointer,
3784         do not register types.
3785         (lto_preload_common_nodes): Explicitly skip preloading nodes
3786         that differ between frontends.
3787
3788 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3789
3790         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3791         NON_FLOAT_REGS.
3792
3793 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3794
3795         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3796         parameter value for dump. Dump cost on outermost call only.
3797         (rs6000_memory_move_cost): Dump cost on outermost call only.
3798
3799 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3800
3801         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3802         DW_OP_GNU_convert ops.
3803
3804         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3805         cselib_preserve_constants.
3806         (cselib_lookup_1): If cselib_preserve_constants,
3807         a new VALUE is being created for REG and there is a VALUE for the
3808         same register in wider mode, add another loc with lowpart SUBREG of
3809         the wider VALUE.
3810         (cselib_subst_to_values): Handle ENTRY_VALUE.
3811         * var-tracking.c  (replace_expr_with_values): Return NULL for
3812         ENTRY_VALUE too.
3813         * dwarf2out.c (convert_descriptor_to_signed): New function.
3814         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3815         instead of two shifts.
3816         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3817         the right mode if needed.
3818         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3819         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3820         convert_descriptor_to_signed.
3821         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3822         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3823
3824         PR target/48688
3825         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3826
3827 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3828
3829         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3830         of X87MODEI12 and SWI48x instead of SSEMODEI24.
3831         (SWI248x): New mode iterator, rename from X87MODEI.
3832         (X87MODEI): Remove mode iterator.
3833         (X87MODEI12): Ditto.
3834         (SSEMODEI24): Ditto.
3835
3836 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3837
3838         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3839         * doc/invoke.texi: Document max-vartrack-expr-depth.
3840         * var-tracking.c (EXPR_DEPTH): New.
3841         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3842
3843 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3844
3845         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3846         * config/i386/sse.md: Add n to negated FMA pattern names.
3847
3848 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3849
3850         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3851
3852 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3853
3854         * gengtype-state.c (read_state_params_structs): Initialize previous.
3855
3856 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3857
3858         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3859         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3860
3861 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3862
3863         * config/i386/i386.md (*movtf_internal): Avoid allocating general
3864         registers.  Penalize F*r->o alternative to prevent partial memory
3865         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
3866         CONST_DOUBLE immediates when optimizing function for size.  Do not move
3867         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3868         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3869         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3870         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3871         alternatives.
3872         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3873
3874         (fp_register_operand splitters): Use fp_register_operand
3875         constraint.  Do not use FP_REG_P in insn condition.
3876         (any_fp_register_operand splitters): Use any_fp_register_operand
3877         constraint.  Do not use ANY_FP_REG_P in insn condition.
3878
3879 2011-05-31  Jan Hubicka  <jh@suse.cz>
3880
3881         * cgraph.h (cgraph_inline_failed_t): Give enum a name
3882         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3883         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3884         (lto_output_edge): Use output_enum and var_len_unsigned.
3885         (lto_output_varpool_node): Likewise.
3886         (input_overwrite_node): Do not take resolution parameter;
3887         extract it from a bitpack.
3888         (input_node): Do not read resolution; use input_enum and
3889         var_len_unsigned.
3890         (input_varpool_node): Likewise.
3891         (input_edge): Likewise.
3892         (input_cgraph_1): Likewise.
3893
3894 2011-05-31  Richard Guenther  <rguenther@suse.de>
3895
3896         * gimple.c (gimple_register_canonical_type): Do not register
3897         any types via gimple_register_type.
3898
3899 2011-05-31  Jan Hubicka  <jh@suse.cz>
3900
3901         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3902         of thunks.
3903
3904 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3905
3906         PR rtl-optimization/49235
3907         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3908         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3909
3910 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
3911
3912         PR tree-optimization/49093
3913         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3914         data references.
3915
3916 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
3917
3918         PR debug/49047
3919         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3920         for concrete functions containing the code of cloned functions.
3921
3922 2011-05-31  Richard Guenther  <rguenther@suse.de>
3923
3924         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3925         to ...
3926         (forward_propagate_into_comparison_1): ... this.
3927         (forward_propagate_comparison): Rename to ...
3928         (forward_propagate_into_comparison): ... this.  Split out
3929         real forward propagation code to ...
3930         (forward_propagate_comparison): ... this.
3931         (forward_propagate_into_gimple_cond): Remove looping.
3932         (forward_propagate_into_cond): Likewise.
3933         (simplify_not_neg_expr): Return whether we have done something.
3934         (simplify_gimple_switch): Likewise.
3935         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3936         (ssa_forward_propagate_and_combine): ... this.  Re-structure
3937         to do a forward forward-propagation walk on BBs and a backward
3938         stmt combining walk on BBs.  Consistently re-scan changed statements.
3939         (pass_forwprop): Adjust.
3940
3941 2011-05-30  Ian Lance Taylor  <iant@google.com>
3942
3943         * godump.c (go_format_type): Correct length of name added to
3944         obstack for anonymous field.
3945
3946 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
3947
3948         PR target/49186
3949         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3950         part of the second operand is 0.
3951
3952 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
3953
3954         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3955         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
3956         to memory for !TARGET_MEMORY_MISMATCH_STALL.
3957         (*movdf_internal_rex64): Do not penalize F->r alternative.
3958         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3959         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
3960         when optimizing function for size.  Do not move CONST_DOUBLEs
3961         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3962         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
3963         SUBREGs.  Do not check for MEM_P operands in the insn condition,
3964         check for ANY_FP_REGNO_P instead.
3965         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3966         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3967         function for speed.
3968         * config/i386/i386.c (ix86_option_override_internal): Do not
3969         set TARGET_INTEGER_DFMODE_MOVES here.
3970
3971 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3972
3973         PR target/49168
3974         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3975
3976 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
3977
3978         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3979         DW_TAG_rvalue_reference_type even for
3980         -gdwarf-4 -fno-debug-types-section.
3981
3982 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3983
3984         PR tree-optimization/46728
3985         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3986         (build_and_insert_binop): New.
3987         (gimple_expand_builtin_pow): Reorder args for
3988         build_and_insert_call; use build_and_insert_binop; add more
3989         optimizations for fractional exponents.
3990
3991 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3992
3993         PR bootstrap/49190
3994
3995         Revert:
3996         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3997
3998         * tree.h (struct tree_identifier): Inherit from tree_typed, not
3999         tree_common.
4000         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4001         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4002         TS_BASE instead of TS_COMMON.
4003         * varasm.c (assemble_name): Remove assert.
4004
4005 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
4006
4007         * config.gcc: Keep obselete list sorted.
4008
4009 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
4010             Eric Botcazou  <ebotcazou@adacore.com>
4011
4012         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4013         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4014         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4015         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4016         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4017
4018 2011-05-30  Richard Guenther  <rguenther@suse.de>
4019
4020         * gimple.c (gimple_types_compatible_p_1): Compare record
4021         and union type members properly.
4022
4023 2011-05-30  Richard Guenther  <rguenther@suse.de>
4024
4025         PR tree-optimization/49210
4026         * ipa-split.c (split_function): Care for the case where the call
4027         result is not trivially convertible to the result holding variable.
4028
4029 2011-05-30  Richard Guenther  <rguenther@suse.de>
4030
4031         PR tree-optimization/49218
4032         * tree-vrp.c (adjust_range_with_scev): Properly check whether
4033         overflow occured.
4034
4035 2011-05-30  Richard Guenther  <rguenther@suse.de>
4036
4037         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4038         New function split out from ...
4039         (forward_propagate_into_gimple_cond): ... here.  Adjust.
4040         (forward_propagate_into_cond): Likewise.
4041         (forward_propagate_comparison): Also propagate into
4042         comparisons on assignment RHS.  Change return value to
4043         behave similar to forward_propagate_into_cond.
4044         (tree_ssa_forward_propagate_single_use_vars): Handle
4045         strict-overflow warnings properly for forward_propagate_comparison.
4046
4047 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4048
4049         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4050         from plugin linker.
4051         * configure: Regenerate.
4052
4053 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
4054
4055         PR tree-optimization/49199
4056         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
4057         non-reduction operands are either defined in the loop or by induction.
4058
4059 2011-05-29  Xinliang David Li  <davidxl@google.com>
4060
4061         * opts-global.c (handle_common_deferred_options): Handle new options.
4062         * passes.c (register_one_dump_file): Call register_pass_name.
4063         (execute_one_pass): Check explicit enable/disable flag.
4064         (passr_hash): New function.
4065         (passr_eq): Ditto.
4066         (register_pass_name): Ditto.
4067         (get_pass_by_name): Ditto.
4068         (pass_hash): Ditto.
4069         (pass_eq): Ditto.
4070         (enable_pass): Ditto.
4071         (disable_pass): Ditto.
4072         (is_pass_explicitly_enabled_or_disabled): Ditto.
4073
4074 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
4075
4076         * config/i386/i386.md (*movoi_internal_avx): Use
4077         standard_sse_constant_opcode for alternative 0.
4078         (*movti_internal_sse): Ditto.
4079         (*movti_internal_rex64): Use standard_sse_constant_opcode for
4080         alternative 2.
4081         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4082         sselog1 type moves.
4083         (*movsi_internal): Ditto.
4084         (*movdi_internal): Ditto.  Add ssecvt type moves.
4085
4086 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4087
4088         PR target/48830
4089         * rtlanal.c (simplify_subreg_regno): Adjust comment.
4090
4091 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
4092
4093         PR rtl-optimization/49095
4094         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4095         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4096
4097 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
4098
4099         PR target/43995
4100         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4101         recurse_p argument.  Only follow register copies if it is set,
4102         and prevent mips_find_pic_call_symbol from recursing.
4103         (mips_find_pic_call_symbol): Add a recurse_p argument.
4104         Pass it to mips_pic_call_symbol_from_set.
4105         (mips_annotate_pic_calls): Update accordingly.
4106
4107 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
4108
4109         * emit-rtl.c (try_split): Use a loop to search for
4110         NOTE_INSN_CALL_ARG_LOCATIONs.
4111
4112 2011-05-29  Richard Guenther  <rguenther@suse.de>
4113
4114         PR tree-optimization/49217
4115         * ipa-pure-const.c (propagate_pure_const): Fix typos.
4116
4117 2011-05-28  Jan Hubicka  <jh@suse.cz>
4118
4119         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4120         length.
4121         (string_slot_free): Remove
4122         (create_output_block): Initialize obstack.
4123         (destroy_output_block): Free obstack.
4124         (lto_string_index): Add PERSISTENT parameter; do not duplicate
4125         the string unless it needs to be added into the hash.
4126         (lto_output_string_with_length): Add persistent attribute;
4127         handle NULL strings.
4128         (lto_output_string): Add PERSISTENT parameter.
4129         (output_string_cst, output_identifier): Simplify.
4130         (lto_output_location_bitpack): Update.
4131         (lto_output_builtin_tree): Update.
4132         * lto-streamer.h (struct output_block): Add obstack.
4133         (lto_output_string, lto_output_string_with_length): Remove
4134         declarations; functions are static now.
4135
4136 2011-05-28  Jan Hubicka  <jh@suse.cz>
4137
4138         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4139         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4140         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4141         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4142         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4143         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4144         unpack_ts_decl_with_vis_value_fields,
4145         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4146         lto_get_builtin_tree): Use enum and variable length i/o.
4147         * basic-block.h (profile_status_d): Add PROFILE_LAST.
4148         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4149         New functions.
4150         (bp_pack_enum, bp_unpack_enum): New macros.
4151
4152 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4153
4154         * genrecog.c: Remove redundant forward declarations.
4155
4156 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4157
4158         * config.gcc: Deprecate mips*-*-openbsd*.
4159
4160 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4161
4162         PR bootstrap/49195
4163         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4164         for match_op_dup.
4165
4166 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
4167
4168         PR middle-end/48981
4169         * gengtype.c (vec_prefix_type): New function.
4170         (note_def_vec): Use vec_prefix_type and change the length
4171         attribute to be based on the prefix.
4172         * vec.c: Include coretypes.h before vec.h.
4173         (struct vec_prefix): Remove.
4174         (vec_gc_p_reserve): Change the offsetof to sizeof.
4175         (vec_gc_p_reserve_exact): Likewise.
4176         (vec_heap_p_reserve): Likewise.
4177         (vec_heap_p_reserve_exact): Likewise.
4178         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4179         (vec_stack_p_reserve): Change the offsetof to sizeof.
4180         (vec_stack_p_reserve_exact): Likewise.
4181         * vec.h (struct vec_prefix): New struct definition.
4182         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4183         (VEC_T_GTY(T,B)): Likewise.
4184         (DEF_VEC_FUNC_P(T)): Use prefix field.
4185         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4186         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4187
4188 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4189
4190         PR tree-optimization/46728
4191         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4192         (powi_as_mults): Add gimple_set_location.
4193         (build_and_insert_call): New.
4194         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4195         0.5, 0.25, 0.75, 1./3., or 1./6.
4196
4197 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
4198
4199         * doc/contrib.texi: Update copyright years.
4200         (Contributors): Add Zdenek Sojka.
4201
4202 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
4203
4204         * c-decl.c (c_push_function_context): Copy the current statement
4205         list stack.
4206         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4207         (finish_struct): Call building_stmt_list_p instead of checking
4208         cur_stmt_list.
4209         * c-parser.c (c_parser_postfix_expression): Likewise.
4210         * c-typeck.c (c_end_compound_stmt): Likewise.
4211         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4212         * tree-iterator.c (stmt_list_cache): Change to a VEC.
4213         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4214         (free_stmt_list): Likewise.
4215         * tree.h (struct tree_statement_list): Include typed_tree instead
4216         of tree_common.
4217         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4218         as TS_TYPED instead of TS_COMMON.
4219
4220 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4221             Uros Bizjak  <ubizjak@gmail.com>
4222
4223         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4224         (HAVE_AS_IX86_TLSGDPTL): Define.
4225         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4226         (HAVE_AS_IX86_TLSLDMPLT): Define.
4227         * configure: Regenerate.
4228         * config.in: Regenerate.
4229         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4230         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4231         TARGET_SUN_TLS, use @tlsgdplt or @plt.
4232         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4233         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4234         @tlsldmplt or @plt.
4235         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4236
4237 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
4238
4239         * sched-int.h (struct _haifa_deps_insn_data): New members cond
4240         and reverse_cond.
4241         (INSN_COND, INSN_REVERSE_COND): New macros.
4242         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4243         once.
4244         (sched_get_condition_with_rev): Cache the results, and look them up
4245         if possible.
4246         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4247         are clobbered by the current insn.
4248         * target.def (exposed_pipline): New sched data hook.
4249         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4250         * doc/tm.texi: Regenerate.
4251
4252 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4253
4254         PR tree-optimization/49170
4255         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
4256         sincos or cexp.
4257
4258 2011-05-27  Richard Guenther  <rguenther@suse.de>
4259
4260         PR middle-end/49189
4261         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4262         of comparisons.
4263
4264 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
4265
4266         * haifa-sched.c (sched_scan_info): Remove.
4267         (schedule_block): Call sched_extend_luids rather than sched_init_luids
4268         with NULL args.
4269         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4270         Remove functions.
4271         (sched_scan): Remove.
4272         (sched_extend_luids): Renamed from luids_extend_insn and no longer
4273         static.  All callers changed.
4274         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4275         static.  All callers changed.
4276         (sched_init_luids): Remove all arguments except the first.  All
4277         callers changed.  Don't use sched_scan.
4278         (haifa_init_h_i_d): Likewise.
4279         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4280         manually rather than using sched_init_luids.  Likewise with
4281         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4282         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4283         rather than sched_init_luids with NULL args.
4284         * sel-sched-ir.c (new_insns): Remove variable.
4285         (sched_scan): New static function, previously in haifa-sched.c.  Remove
4286         all arguments but the first two; all callers changed.
4287         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4288         rather than sched_init_luids.
4289         (sel_init_bbs): Remove second argument.  All callers changed.
4290         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4291         with NULL arguments.
4292         (create_insn_rtx_from_pattern): Likewise.
4293         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4294         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4295         (sched_init_insn_luid, sched_extend_luids): Declare.
4296         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4297         declarations.
4298
4299 2011-05-27  Richard Guenther  <rguenther@suse.de>
4300
4301         PR middle-end/49177
4302         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4303         A CMP B ? (T) true : (T) false for non-integral types T again.
4304
4305 2011-05-27  Jan Hubicka  <jh@suse.cz>
4306
4307         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4308         so 0 means NULL string.
4309         (lto_output_string_with_length): ... here.
4310         (lto_output_string, output_string_cst, output_identifier): Update
4311         handling of NULL strings.
4312         (lto_output_location_bitpack): New function.
4313         (lto_output_location): Use it.
4314         (lto_output_tree_ref): Use output_record_start.
4315         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4316         len values.
4317         * lto-streamer-in.c (string_for_index): Break out from ...; offset
4318         values by 1.
4319         (input_string_internal): ... here;
4320         (input_string_cst, input_identifier, lto_input_string): Update handling
4321         of NULL strings.
4322         (lto_input_location_bitpack): New function
4323         (lto_input_location): Use it.
4324         (unpack_ts_type_common_value_fields): Pack align & alias in var len
4325         values.
4326         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4327         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4328         (bp_pack_value): Sanity check the value range.
4329         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4330         New functions.
4331         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4332         New functions.
4333
4334 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
4335
4336         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4337         call_arg_location instructions down the floor.
4338
4339 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
4340
4341         PR rtl-optimization/49154
4342         * ira.c (setup_pressure_classes): Process class without sublcasses
4343         as a candidate for pressure classes.
4344
4345 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
4346
4347         PR rtl-optimization/48575
4348         * genrecog.c (position_type): New enum.
4349         (position): New structure.
4350         (decision): Use position structure instead of a string.
4351         (root_pos, peep2_insn_pos_list): New variables.
4352         (next_position, compare_positions): New functions.
4353         (new_decision): Use position structures instead of strings.
4354         (maybe_both_true): Likewise.
4355         (change_state): Likewise.
4356         (write_tree): Likewise.
4357         (make_insn_sequence): Likewise.
4358
4359 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4360
4361         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4362         TS_BASE instead of TS_COMMON.
4363         (find_decls_types_r): Check for TS_TYPED structure before looking at
4364         TREE_TYPE.
4365         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4366         Add chain field.
4367         (BLOCK_CHAIN): Use new chain field.
4368
4369 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
4370
4371         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4372         moves expensive on Power7 also.
4373
4374 2011-05-26  Richard Guenther  <rguenther@suse.de>
4375
4376         * fold-const.c (fold_unary_loc): Remove bogus code.
4377
4378 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4379
4380         * tree.h (struct tree_identifier): Inherit from tree_typed, not
4381         tree_common.
4382         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4383         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4384         TS_BASE instead of TS_COMMON.
4385         * varasm.c (assemble_name): Remove assert.
4386
4387 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4388
4389         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4390         substituted first.
4391         * libgcc-std.ver: Delete file.
4392
4393 2011-05-26  Richard Guenther  <rguenther@suse.de>
4394
4395         PR tree-optimization/48702
4396         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4397         only when we know the base address is within bounds.
4398         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4399         assume the base address of TARGET_MEM_REFs is in bounds.
4400
4401 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4402
4403         PR target/49099
4404         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4405         declaration in TARGET_SOLARIS.
4406
4407 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
4408
4409         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4410         The instruction is then expanded explicitly.
4411         (supported_compare): Callable instruction.
4412         (compare): Likewise.
4413
4414 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4415
4416         PR c++/49165
4417         * gimplify.c (shortcut_cond_r): Don't special case
4418         COND_EXPRs if they have void type on one of their arms.
4419
4420 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4421
4422         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4423         to reduce duplication, and to achieve a slightly more logical order
4424         of operations.
4425
4426 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4427
4428         PR tree-optimization/49161
4429         * tree-vrp.c (struct case_info): New type.
4430         (compare_case_labels): Sort case_info structs instead of
4431         trees, and not primarily by CASE_LABEL uids but by
4432         label_for_block indexes.
4433         (find_switch_asserts): Put case labels into struct case_info
4434         array instead of TREE_VEC, adjust sorting, compare label_for_block
4435         values instead of CASE_LABELs.
4436
4437 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4438
4439         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4440         ("orndi3_neon"): Likewise.
4441         ("bic<mode>3_neon"): Likewise.
4442
4443 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
4444
4445         PR tree-optimization/49038
4446         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4447         Ensure at least one epilogue iteration if required by data
4448         accesses with gaps.
4449         * tree-vectorizer.h (struct _loop_vec_info): Add new field
4450         to mark loops that require peeling for gaps.
4451         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4452         (vect_get_known_peeling_cost): Take peeling for gaps into
4453         account.
4454         (vect_transform_loop): Generate epilogue if required by data
4455         access with gaps.
4456         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4457         loop as requiring an epilogue if there are gaps in the end of
4458         the strided group.
4459
4460 2011-05-25  Ian Lance Taylor  <iant@google.com>
4461
4462         * godump.c (go_format_type): Output the first field with a usable
4463         Go type, if any.
4464
4465 2011-05-25  Ian Lance Taylor  <iant@google.com>
4466
4467         * godump.c (go_format_type): Check for invalid type names, pointer
4468         target types, and struct field types.
4469
4470 2011-05-25  Jason Merrill  <jason@redhat.com>
4471
4472         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4473
4474 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
4475
4476         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4477
4478 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4479
4480         * config/i386/i386.md (*movqi_extv_1)): Put back
4481         "register_operand" check in "type" calculation.
4482         (*movqi_extzv_2): Likewise.
4483
4484 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4485
4486         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4487
4488 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4489
4490         PR bootstrap/49160
4491         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4492         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4493         __divxc3, __divtc3): Wrap definitions in #ifndef.
4494
4495 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4496
4497         PR target/49142
4498         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4499         "register_operand" check and replace q_regs_operand with
4500         QIreg_operand in "type" calculation.
4501         (*movqi_extv_1): Likewise.
4502         (*movqi_extzv_2_rex64): Likewise.
4503         (*movqi_extzv_2): Likewise.
4504
4505         * config/i386/predicates.md (QIreg_operand): New.
4506
4507 2011-05-25  Richard Guenther  <rguenther@suse.de>
4508
4509         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4510         type-based offset disambiguation, streamline MEM_REF and
4511         TARGET_MEM_REF handling.
4512
4513 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4514
4515         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4516         (bdesc_special_args): Add pause intrinsic.
4517
4518         * config/i386/i386.md (UNSPEC_PAUSE): New.
4519         (pause): Likewise.
4520         (*pause): Likewise.
4521         * config/i386/ia32intrin.h (__pause): Likewise.
4522
4523         * doc/extend.texi (X86 Built-in Functions): Add documentation for
4524         pause intrinsic.
4525
4526 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4527
4528         PR tree-optimization/46728
4529         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4530         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4531
4532 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
4533
4534         * tree.h (struct tree_exp): Inherit from struct tree_typed.
4535         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4536         instead of TS_COMMON.
4537
4538 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4539
4540         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4541         LIBGCC2_GNU_PREFIX is defined.
4542         (__N): New macro.
4543         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4544         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4545         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4546         __clz_tab): Define using __N.
4547         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4548         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4549         * target.def (libfunc_gnu_prefix): New hook.
4550         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4551         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4552         * doc/tm.texi: Regenerate.
4553         * system.h (LIBGCC2_GNU_PREFIX): Poison.
4554         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4555         account.
4556         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4557         (init_optabs): Likewise for the bswap libfuncs.
4558         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4559         and divide.
4560         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4561         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4562         * libgcc-std.ver: Remove.
4563         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4564         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4565         libgcc-std.ver.
4566         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4567         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4568         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4569         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4570         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4571         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4572         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4573         * config/fixed-bit.h (FIXED_OP): Define differently depending on
4574         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4575         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4576
4577 2011-05-25  Jan Hubicka  <jh@suse.cz>
4578
4579         * lto-streamer-out.c (output_record_start): Use lto_output_enum
4580         (lto_output_tree): Use output_record_start.
4581         * lto-streamer-in.c (input_record_start): Use lto_input_enum
4582         (lto_get_pickled_tree): Use input_record_start.
4583         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4584         (lto_value_range_error): New function.
4585         * lto-streamer.h (lto_value_range_error): Declare.
4586         (lto_output_int_in_range, lto_input_int_in_range): New functions.
4587         (lto_output_enum, lto_input_enum): New macros.
4588
4589 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4590
4591         * common.opt (flag_stack_usage_info): New variable.
4592         (-Wstack-usage): New option.
4593         * doc/invoke.texi (Warning options): Document -Wstack-usage.
4594         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4595         <OPT_fstack_usage>: Likewise.
4596         * toplev.c (output_stack_usage): Handle -Wstack-usage.
4597         * calls.c (expand_call): Test flag_stack_usage_info variable instead
4598         of flag_stack_usage.
4599         (emit_library_call_value_1): Likewise.
4600         * explow.c (allocate_dynamic_stack_space): Likewise.
4601         * function.c (instantiate_virtual_regs ): Likewise.
4602         (prepare_function_start): Likewise.
4603         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4604         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4605         * config/arm/arm.c (arm_expand_prologue): Likewise.
4606         (thumb1_expand_prologue): Likewise.
4607         * config/avr/avr.c (expand_prologue): Likewise.
4608         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4609         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4610         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4611         * config/mips/mips.c (mips_expand_prologue): Likewise.
4612         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4613         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4614         * config/s390/s390.c (s390_emit_prologue): Likewise.
4615         * config/sh/sh.c (sh_expand_prologue): Likewise.
4616         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4617         * config/spu/spu.c (spu_expand_prologue): Likewise.
4618
4619 2011-05-25  Richard Guenther  <rguenther@suse.de>
4620
4621         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4622         (gimple_canonical_types_compatible_p): Likewise.
4623
4624 2011-05-25  Jan Hubicka  <jh@suse.cz>
4625
4626         PR middle-end/49062
4627         * ipa.c (function_and_variable_visibility): Only add to same
4628         comdat group list if DECL_ONE_ONLY.
4629
4630 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
4631
4632         PR rtl-optimization/49014
4633         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4634
4635 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
4636
4637         PR target/49128
4638         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4639
4640 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4641
4642         PR rtl-optimization/48757
4643         * ira-build.c (loop_with_eh_edge_p): Rename to
4644         loop_with_complex_edge_p, check edges on complexity, make function
4645         conditional.
4646         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4647         conditional.
4648
4649 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4650
4651         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4652         force flag_ira_share_save_slots to 0.
4653
4654 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4655
4656         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4657         (vt_initialize): Set PROLOGUE_BB unconditionally.
4658         Add block comment about CFA_BASE_RTX machinery.
4659         Reset FP_CFA_OFFSET to -1 on all invalid paths.
4660         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4661
4662 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
4663
4664         PR objc/48187
4665         * c-parser.c (c_parser_objc_class_instance_variables): More robust
4666         parsing of syntax error in ObjC instance variable lists.  In
4667         particular, avoid an infinite loop if there is a stray ']'.
4668         Updated error message.
4669
4670 2011-05-24  Ian Lance Taylor  <iant@google.com>
4671
4672         * godump.c (go_define): Don't accept a string immediately after
4673         another operand.
4674
4675 2011-05-24  Ian Lance Taylor  <iant@google.com>
4676
4677         * godump.c (struct godump_container): Add invalid_hash field.
4678         (go_format_type): Return false if type is found in invalid_hash.
4679         (go_output_typedef): Add invalid type to invalid_hash.
4680         (go_finish): Create and delete invalid_hash.
4681
4682 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4683
4684         PR tree-optimization/46728
4685         * tree-ssa-math-opts.c (powi_table): New.
4686         (powi_lookup_cost): New.
4687         (powi_cost): New.
4688         (powi_as_mults_1): New.
4689         (powi_as_mults): New.
4690         (gimple_expand_builtin_powi): New.
4691         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4692         (gate_cse_sincos): Remove sincos/cexp restriction.
4693
4694 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4695
4696         PR target/3746
4697         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4698         mips-tdump native.
4699         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4700         * mips-tdump.c: Likewise.
4701
4702 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4703
4704         PR target/49128
4705         * config/i386/driver-i386.c (host_detect_local_cpu): Always
4706         add -mno-XXX.  Handle FMA.
4707
4708 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4709
4710         PR rtl-optimization/48633
4711         * ira-build.c (loop_with_eh_edge_p): New function.
4712         (mark_loops_for_removal): Use it.
4713
4714 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4715
4716         PR rtl-optimization/48971
4717         * ira.c (setup_pressure_classes): Don't check register move cost
4718         for classes with one registers.  Don't add pressure class if there
4719         is a pressure class with the same available hard registers.
4720         Check contains_reg_of_mode.  Fix a typo in collecting
4721         temp_hard_regset.  Ignore hard registers not belonging to a class.
4722
4723 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
4724
4725         PR target/49133
4726         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4727
4728 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4729             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4730
4731         PR gcov-profile/48845
4732         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4733
4734 2011-05-24  Richard Guenther  <rguenther@suse.de>
4735
4736         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4737         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4738         (gimple_types_compatible_p_1): Adjust.
4739         (iterative_hash_canonical_type): Do not bother about complete vs.
4740         incomplete types.
4741         (gimple_canonical_types_compatible_p): Likewise.
4742
4743 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4744
4745         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4746
4747 2011-05-24  Richard Guenther  <rguenther@suse.de>
4748
4749         PR bootstrap/49078
4750         * gimple.c (gimple_register_canonical_type): Revert
4751         previous change.
4752         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4753         does not for a tree for the case where it matters.  Cache
4754         pointer-type alias-sets.
4755
4756 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
4757
4758         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4759         (OBJS): Remove options.o, opts-common.o and prefix.o.
4760         (OBJS-libcommon-target): New.
4761         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4762         (BACKEND): Include libcommon-target.a.
4763         (MOSTLYCLEANFILES): Include libcommon-target.a.
4764         (libcommon-target.a): New.
4765         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4766         prefix.o.
4767
4768 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
4769
4770         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
4771         parts of output shared with the driver.
4772         * optc-gen.awk: Don't generate parts of output not shared with the
4773         driver.
4774         * opth-gen.awk: Remove GCC_DRIVER conditionals.
4775         * doc/options.texi (SourcerInclude): Mention options-save.c.
4776         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4777         (OBJS): Add options-save.o.
4778         (options-save.c, options-save.o): New.
4779         (options.o): Update dependencies.
4780         (gcc-options.o): Remove.
4781         (mostlyclean): Remove options-save.c.
4782
4783 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4784
4785         PR debug/49032
4786         * dbxout.c: Include cgraph.h.
4787         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4788         and without value expr, return NULL if no varpool node exists for
4789         it or if it is not needed.
4790         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4791
4792         PR c/49120
4793         * c-decl.c (start_decl): Convert expr to void_type_node.
4794
4795 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
4796
4797         PR rtl-optimization/48826
4798         * emit-rtl.c (try_split): When splitting a call that is followed
4799         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4800
4801 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4802
4803         * cfgexpand.c (expand_debug_expr): For unused non-addressable
4804         parameters passed in memory prefer using DECL_INCOMING_RTL over
4805         the pseudos it will be copied into.
4806
4807 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4808
4809         PR target/47315
4810         * config/i386/i386.c (ix86_option_override_internal): Save the
4811         initial options after checking vzeroupper.
4812
4813 2011-05-23  David Li  <davidxl@google.com>
4814
4815         PR tree-optimization/48988
4816         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4817         Initialize has_valid_pred for each pred chain.
4818
4819 2011-05-23  Richard Guenther  <rguenther@suse.de>
4820
4821         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4822         (iterative_hash_gimple_type): Always hash type names.
4823
4824 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
4825
4826         * c-typeck.c (build_function_call_vec): Tweak call to
4827         check_function_arguments.
4828
4829 2011-05-23  Richard Guenther  <rguenther@suse.de>
4830
4831         PR tree-optimization/49115
4832         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4833         is not necessarily carried out, do not claim it kills the ref.
4834         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4835
4836 2011-05-23  Richard Guenther  <rguenther@suse.de>
4837
4838         PR middle-end/15419
4839         * builtins.c (fold_builtin_memory_op): Be less restrictive about
4840         what pointer types we accept for folding.
4841
4842 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4843
4844         * gthr-gnat.c: Remove.
4845         * gthr-gnat.h: Remove.
4846         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4847         * config/t-freebsd (LIB2ADDEH): Likewise.
4848         * config/t-linux (LIB2ADDEH): Likewise.
4849         * config/t-sol2 (LIB2ADDEH): Likewise.
4850         * config/ia64/t-vms (LIB2ADDEH): Likewise.
4851         * configure.ac (target_thread_file): Remove gnat handling.
4852         * configure: Regenerate.
4853         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4854
4855 2011-05-23  Tristan Gingold  <gingold@adacore.com>
4856             Eric Botcazou  <ebotcazou@adacore.com>
4857
4858         * gcov.c (create_file_names): If no object directory is specified,
4859         keep the directory of the file.
4860
4861 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4862
4863         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4864         * configure: Regenerate.
4865
4866 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4867
4868         PR middle-end/48973
4869         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4870         failed and the comparison has a single bit signed type, use
4871         constm1_rtx instead of const1_rtx for true value.
4872         (do_store_flag): If ops->type is single bit signed type, disable
4873         signel bit test optimization and pass -1 instead of 1 as last
4874         parameter to emit_store_flag_force.
4875
4876 2011-05-23  Tom de Vries  <tom@codesourcery.com>
4877
4878         PR target/45098
4879         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4880         function.
4881         (infer_loop_bounds_from_undefined): Use new function.
4882
4883 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4884
4885         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4886         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
4887         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4888         and -O0 otherwise.
4889         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4890
4891 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4892
4893         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4894         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4895         returns true.
4896
4897 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4898
4899         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4900
4901 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4902
4903         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4904         UNSPEC_MOVE_PIC pattern.
4905
4906 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4907
4908         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4909         (sparc-*-rtems*): Likewise.
4910         (sparc64-*-elf*): Likewise.
4911         (sparc64-*-rtems*): Likewise.
4912         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
4913         * config/sparc/t-crtin: New file.
4914         * config/sparc/t-sol2 (crti.o): Delete rule.
4915         (crtn.o): Likewise.
4916         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4917         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4918         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4919         (ENDFILE_SPEC): Add crtn.o.
4920
4921 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4922
4923         PR middle-end/48689
4924         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4925         CODE_CONTAINS_STRUCT (TS_COMMON).
4926
4927 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
4928
4929         PR middle-end/49029
4930         * expmed.c (extract_fixed_bit_field): Test whether target can be used
4931         only after deciding which mode to use.
4932
4933 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4934
4935         PR target/45098
4936         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4937         for call to get_shiftadd_cost.
4938
4939 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
4940
4941         PR target/49104
4942         * config/i386/cpuid.h (bit_MMXEXT): New define.
4943
4944 2011-05-22  Nick Clifton  <nickc@redhat.com>
4945
4946         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4947         initialisation of non-existant args[2] element.  Use args[] array
4948         not arg[] array to pass arguments to build_function_type_list.
4949
4950 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
4951
4952         PR tree-optimization/49087
4953         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4954
4955 2011-05-21  Jason Merrill  <jason@redhat.com>
4956
4957         PR c++/49092
4958         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4959         static storage duration.
4960
4961 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4962
4963         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4964         frame pointer.
4965
4966 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4967
4968         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4969         false if there are call-saved registers here...
4970         (sparc_can_use_return_insn_p): ...but here instead.
4971         (save_or_restore_regs): Fix thinko.
4972         (sparc_expand_prologue): Use current_function_is_leaf.
4973         (sparc_frame_pointer_required): Likewise.
4974
4975 2011-05-21  Nick Clifton  <nickc@redhat.com>
4976
4977         PR target/49098
4978         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4979
4980 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4981
4982         * gengtype.c (walk_type): Implemented "atomic" GTY option.
4983         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4984
4985 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
4986
4987         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
4988         * optc-gen.awk: Move common code to opt-read.awk.
4989         * opth-gen.awk: Likewise.
4990         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4991
4992 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
4993
4994         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4995
4996 2011-05-20  Tom de Vries  <tom@codesourcery.com>
4997
4998         PR target/45098
4999         * tree-ssa-loop-ivopts.c: Include expmed.h.
5000         (get_shiftadd_cost): New function.
5001         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
5002
5003 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
5004
5005         PR bootstrap/49086
5006         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5007         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5008
5009 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
5010
5011         * Makefile.in: Update comment referring to $(OBJS-common).
5012
5013 2011-05-20  Ian Lance Taylor  <iant@google.com>
5014
5015         * godump.c (go_output_typedef): Put enum constants in the macro
5016         hash table to avoid duplicate Go const definitions.
5017
5018 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
5019
5020         * Makefile.in (LIBDEPS): Add libcommon.a.
5021         (LIBS): Likewise.
5022         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5023         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5024         pretty-print.o and version.o.
5025         (OBJS-libcommon): New.
5026         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5027         (BACKEND): Add libcommon.a.
5028         (MOSTLYCLEANFILES): Likewise.
5029         (libcommon.a): New.
5030         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5031         (cpp$(exeext)): Likewise.
5032         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5033         pretty-print.o and input.o.
5034         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5035         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5036         (errors.o): Remove.
5037         (mips-tfile): Don't explicitly use version.o.
5038         (mips-tdump): Likewise.
5039         (gcov.o): Depend on $(DIAGNOSTIC_H).
5040         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5041         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5042         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5043         * gcov-dump.c: Include intl.h and diagnostic.h.
5044         (main): Initialize diagnostics.
5045         * gcov.c: Include diagnostic.h.
5046         (fnotice): Remove.
5047         (main): Initialize diagnostics.
5048         * lto-wrapper.c: Include diagnostic.h.
5049         (main): Initialize diagnostics.
5050
5051 2011-05-20  Michael Matz  <matz@suse.de>
5052
5053         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5054
5055 2011-05-20  Michael Matz  <matz@suse.de>
5056             Richard Guenther  <rguenther@suse.de>
5057
5058         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5059         use lto_streamer_cache_append directly instead of returning a VEC.
5060         (preload_common_node): Remove.
5061         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5062         track seen nodes.
5063         (lto_streamer_cache_create): Call lto_preload_common_nodes.
5064
5065 2011-05-20  Richard Guenther  <rguenther@suse.de>
5066
5067         PR tree-optimization/49079
5068         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5069         MEM_REFs correctly for the trailing array access detection.
5070         Special case constants the same way as decls for overall size
5071         constraining.
5072
5073 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
5074
5075         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5076         argument expansion.
5077
5078 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
5079
5080         PR tree-optimization/49073
5081         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5082         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
5083         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5084
5085 2011-05-20  Richard Guenther  <rguenther@suse.de>
5086
5087         PR middle-end/48849
5088         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5089         of pointer types the same way the middle-end does.
5090
5091 2011-05-20  Richard Guenther  <rguenther@suse.de>
5092
5093         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5094         or pointer-to chains.  Delay all fixup to uniquify_nodes.
5095
5096 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
5097
5098         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5099         (fma4_fmaddsub): Likewise
5100
5101 2011-05-19  Jan Hubicka  <jh@suse.cz>
5102
5103         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5104         (GIMPLE_TYPE_PAIR_SIZE): New macro.
5105         (type_pair_cache): New static var.
5106         (lookup_type_pair): Use fixed sized custom hash; make inline.
5107         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5108         calls of lookup_type_pair.
5109         (print_gimple_types_stats): Remove cache stats.
5110         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5111         and gtc_ob.
5112
5113 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
5114
5115         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5116         when TARGET_RDRND is active.
5117         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5118         Generate dummy SImode target register when target is NULL.
5119
5120 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
5121
5122         * config/arm/arm-fpus.def: New.
5123         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5124         arm-fpus.def.
5125         * config/arm/arm-tables.opt: Regenerate.
5126         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5127         (arm_option_override): Don't decode FPU name to string here.
5128         * config/arm/arm.opt (mfpu=): Use Enum.
5129         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5130         Update dependencies.
5131
5132 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
5133
5134         * collect2.c: Include diagnostic.h.
5135         (fatal_perror, fatal, error, fancy_abort): Remove.
5136         (main): Set progname.  Call xmalloc_set_program_name and
5137         diagnostic_initialize.
5138         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5139         scan_libraries, resolve_lib_name): Call fatal_error instead of
5140         fatal and fatal_perror.
5141         * collect2.h (error, fatal, fatal_perror): Don't declare.
5142         * tlink.c: Include diagnostic-core.h.
5143         (recompile_files): Call fatal_error instead of fatal_perror.
5144         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5145         pretty-print.o and input.o.
5146         (collect2.o, tlink.o): Update dependencies.
5147
5148 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5149
5150         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5151
5152 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5153
5154         PR target/40483
5155         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5156         COMDAT group syntax, both SPARC and x86 variants.
5157         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5158         * configure: Regenerate.
5159         * config/sol2.h (TARGET_SOLARIS): Define.
5160         (PUSHSECTION_FORMAT): Remove.
5161         (SECTION_NAME_FORMAT): Define.
5162         * config/sol2.c: Include hashtab.h.
5163         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5164         expansion, using SECTION_NAME_FORMAT.
5165         (solaris_comdat_htab): New variable.
5166         (struct comdat_entry): Define.
5167         (comdat_hash): New function.
5168         (comdat_eq): New function.
5169         (solaris_elf_asm_comdat_section): New function.
5170         (solaris_define_comdat_signature): New function.
5171         (solaris_code_end): New function.
5172         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5173         (solaris_code_end): Declare.
5174         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5175         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5176         solaris_code_end.
5177         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5178         Remove ATTRIBUTE_UNUSED.
5179         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5180         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
5181         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
5182         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5183         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5184         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5185         (PUSHSECTION_FORMAT): Remove.
5186         (SECTION_NAME_FORMAT): Redefine.
5187
5188 2011-05-19  Kai Tietz  <ktietz@redhat.com>
5189
5190         * tree-cfg.c (verify_gimple_assign_binary): Barf on
5191         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5192         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5193
5194 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
5195             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5196
5197         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5198
5199 2011-05-19  Richard Guenther  <rguenther@suse.de>
5200
5201         PR middle-end/48985
5202         * tree-object-size.c (addr_object_size): If the pointed-to
5203         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5204
5205 2011-05-19  Richard Guenther  <rguenther@suse.de>
5206
5207         * gimple.c (gimple_types_compatible_p_1): Compare names of
5208         the types themselves.
5209         (iterative_hash_gimple_type): And hash them that way.
5210         (gimple_register_type_1): If we register a main variant properly
5211         initialize the leader to ourselves.
5212
5213 2011-05-19  Tom de Vries  <tom@codesourcery.com>
5214
5215         PR target/45098
5216         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5217         get_loop_invariant_expr_id.
5218         (get_loop_invariant_expr_id): Use get_expr_id.
5219         (parm_decl_cost): New function.
5220         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5221         Improve bound cost estimation.  Use different inv_expr_id for elim and
5222         express cases.
5223
5224 2011-05-19  Tom de Vries  <tom@codesourcery.com>
5225
5226         PR target/45098
5227         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5228         cost_base.cost == 0.
5229
5230 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5231
5232         PR target/49002
5233         * config/i386/sse.md
5234         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5235         load cast.
5236
5237 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
5238
5239         PR tree-optimization/49039
5240         * tree-vrp.c (extract_range_from_binary_expr): For
5241         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5242         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5243
5244 2011-05-18  Tom de Vries  <tom@codesourcery.com>
5245
5246         PR target/45098
5247         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5248
5249 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
5250
5251         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5252         (*tls_global_dynamic_64): Ditto.
5253         (*tls_local_dynamic_base_32_gnu): Ditto.
5254         (*tls_local_dynamic_base_64): Ditto.
5255         (tls_initial_exec_64_sun): Ditto.
5256
5257 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
5258
5259         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5260         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5261         bf592-none.
5262         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5263         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5264         * config/bfin/bfin.c (bfin_cpus): Add bf592.
5265         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5266         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5267         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5268         * config/bfin/elf.h (LIB_SPEC): Add bf592.
5269
5270 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
5271
5272         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5273         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5274         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5275         target_thread_pointer, arm_structure_size_boundary, struct
5276         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5277         struct abi_name, arm_all_abis): Remove.
5278         (arm_option_override) Don't process most enumerated option values here.
5279         Don't process target_fpe_name here.  Work with integer not string for
5280         structure size boundary; use separate diagnostics for each case.
5281         * config/arm/arm.h (enum float_abi_type, enum
5282         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5283         to arm-opts.h.
5284         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5285         arm_structure_size_boundary): Remove.
5286         * config/arm/arm.opt (mabi=): Use Enum and Init.
5287         (arm_abi_type): New Enum and EnumValue entries.
5288         (mfloat-abi=): Use Enum and Init.
5289         (float_abi_type): New Enum and EnumValue entries.
5290         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5291         (mfp16-format=): Use Enum and Init.
5292         (arm_fp16_format_type): New Enum and EnumValue entries.
5293         (mstructure-size-boundary=): Use UInteger and Init.
5294         (mtp=): Use Enum and Init.
5295         (arm_tp_type): New Enum and EnumValue entries.
5296
5297 2011-05-18  Richard Guenther  <rguenther@suse.de>
5298
5299         PR tree-optimization/49018
5300         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5301         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5302         gimple_has_side_effects.
5303
5304 2011-05-18  Richard Guenther  <rguenther@suse.de>
5305
5306         * gimple.c (gimple_register_type_1): New function, split out from ...
5307         (gimple_register_type): ... here.  Avoid infinite recursion.
5308
5309 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
5310
5311         PR tree-optimization/41881
5312         * tree-vectorizer.h (struct _loop_vec_info): Add new field
5313         reduction_chains along with a macro for its access.
5314         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5315         (destroy_loop_vec_info): Free reduction chains.
5316         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5317         (vect_is_slp_reduction): New function.
5318         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5319         (vect_create_epilog_for_reduction): Support SLP reduction chains.
5320         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5321         definition types for reduction chains.
5322         (vect_supported_load_permutation_p): Don't allow permutations for
5323         reduction chains.
5324         (vect_analyze_slp_instance): Support reduction chains.
5325         (vect_analyze_slp): Try to build SLP instance from reduction chains.
5326         (vect_get_constant_vectors):  Handle reduction chains.
5327         (vect_schedule_slp_instance): Mark the first statement of the
5328         reduction chain as reduction.
5329
5330 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
5331
5332         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5333         names for group elements access.
5334         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5335         reduction chains as well.  Remove data reference and interleaving
5336         related words from the fields names.
5337         * tree-vect-loop.c (vect_transform_loop): Use new names for group
5338         elements access.
5339         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5340         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5341         vect_update_interleaving_chain, vect_same_range_drs,
5342         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5343         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5344         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5345         vect_analyze_group_access, vect_analyze_data_ref_access,
5346         vect_create_data_ref_ptr, vect_transform_strided_load,
5347         vect_record_strided_load_vectors): Likewise.
5348         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5349         vect_model_load_cost, vectorizable_store, vectorizable_load,
5350         vect_remove_stores, new_stmt_vec_info): Likewise.
5351         * tree-vect-slp.c (vect_build_slp_tree,
5352         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5353
5354 2011-05-18  Richard Guenther  <rguenther@suse.de>
5355
5356         PR middle-end/48989
5357         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5358         operand verification.
5359         (verify_gimple_assign_binary): Likewise.
5360         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5361         to non-1-precision BOOLEAN_TYPEs.
5362
5363 2011-05-18  Tom de Vries  <tom@codesourcery.com>
5364
5365         PR target/45098
5366         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5367
5368 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
5369
5370         PR tree-optimization/49000
5371         * tree-ssa.c (execute_update_addresses_taken): Call
5372         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
5373         be rewritten and decl has been marked for renaming, reset
5374         the debug stmt.
5375
5376 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
5377
5378         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5379         enum_opts_set when testing if attributes have set -mfpmath=.
5380
5381 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
5382
5383         * config/mips/mips.c (mips_handle_option): Remove unused variable.
5384
5385 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5386
5387         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5388         info->entry with 0
5389         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
5390         id.transform_lang_insert_block with NULL.
5391
5392 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5393
5394         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5395         (output_fp_compare): Change args 3 and 4 to bool.
5396         (ix86_expand_call): Change arg 6 to bool.
5397         (ix86_attr_length_immediate_default): Change arg 2 to bool.
5398         (ix86_attr_length_vex_default): Change arg 3 to bool.
5399         * config/i386/i386.md: Update all uses.
5400         * config/i386/i386.c: Ditto.
5401         (ix86_flags_dependent): Change return type to bool.
5402
5403 2011-05-17  Richard Guenther  <rguenther@suse.de>
5404
5405         * gimple.c (type_hash_pair_compare): Fix comparison.
5406
5407 2011-05-17  Richard Guenther  <rguenther@suse.de>
5408
5409         * gimple.c (iterative_hash_gimple_type): Simplify singleton
5410         case some more, fix final hash value of the non-singleton case.
5411
5412 2011-05-17  Richard Guenther  <rguenther@suse.de>
5413
5414         PR bootstrap/49013
5415         Revert
5416         2011-05-16  Richard Guenther  <rguenther@suse.de>
5417
5418         * gimple.c (gimple_types_compatible_p_1): Use names of the
5419         type itself, not its main variant.
5420         (iterative_hash_gimple_type): Likewise.
5421
5422 2011-05-17  Richard Guenther  <rguenther@suse.de>
5423
5424         * gimple.c (gimple_register_canonical_type): Use the main-variant
5425         leader for computing the canonical type.
5426
5427 2011-05-17  Nick Clifton  <nickc@redhat.com>
5428
5429         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5430         moves.
5431
5432         * config/rx/rx.md: Add peephole to remove redundant extensions
5433         after loads.
5434         (bitset_in_memory): Use rx_restricted_mem_operand.
5435         (bitinvert_in_memory): Likewise.
5436         (bitclr_in_memory): Likewise.
5437
5438 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
5439             Nick Clifton  <nickc@redhat.com>
5440
5441         * config/rx/rx.md: Add peepholes to match a register move followed
5442         by a comparison of the moved register.  Replace these with an
5443         addition of zero that does both actions in one instruction.
5444
5445 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
5446
5447         PR target/48986
5448         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5449         predicate to allow CONST_INT.
5450         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5451
5452 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5453
5454         * opts-common.c (opt_enum_arg_to_value): New.
5455         * opts.h (opt_enum_arg_to_value): Declare.
5456         * config/i386/i386.opt (fpmath): Remove.
5457         (mfpmath=): Use Enum, Init and Save.
5458         (fpmath_unit): New Enum and EnumValue entries.
5459         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5460         name for function fpmath state.
5461         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5462         * config/i386/i386.c: Include diagnostic.h.
5463         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5464         (ix86_target_string): Take enum fpmath_unit value instead of string.
5465         (ix86_debug_options): Update call to ix86_target_string.
5466         (ix86_option_override_internal): Don't process fpmath strings here.
5467         (x86_function_specific_save, ix86_function_specific_restore):
5468         Don't handle fpmath state specially.
5469         (ix86_function_specific_print): Pass fpmath state to
5470         ix86_target_string instead of printing in this function.
5471         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5472         Handle enum attributes.
5473         (IX86_ATTR_ENUM, ix86_opt_enum): New.
5474         (ix86_valid_target_attribute_tree): Update option_strings
5475         handling.  Handle fpmath as enum option.
5476         (ix86_can_inline_p): Update field names for function fpmath state.
5477         (ix86_expand_builtin): Update call to ix86_target_string.
5478         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5479         (ix86_fpmath): Remove.
5480         * config/i386/t-i386 (i386.o): Update dependencies.
5481
5482 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5483
5484         PR preprocessor/48677
5485         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5486         from decoded_options[0], not from itself.
5487
5488 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
5489
5490         * config/i386/constraints.md (z): New constraint.
5491         * config/i386/i386.c (c): New mode attribute.
5492         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5493         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5494         constraint for operand 0.
5495         (*call_vzeroupper): Ditto.
5496         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
5497         (*call_rex64_ms_sysv_vzeroupper): Ditto.
5498         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5499         Use "lzm" constraint for operand 0.
5500         (*call_pop_vzeroupper): Ditto.
5501         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5502         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
5503         constraint for operand 0.
5504         (*sibcall_vzeroupper): Ditto.
5505         (*sibcall_rex64_ms_sysv): Ditto.
5506         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5507         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5508         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
5509         (*sibcall_pop_vzeroupper): Ditto.
5510         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5511         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5512         mode iterator.  Use "<c>zm" constraint for operand 1.
5513         (*call_value_vzeroupper): Ditto.
5514         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
5515         for operand 1.
5516         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5517         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5518         *call_value_pop_1.  Use "lzm" constraint for operand 1.
5519         (*call_value_pop_vzeroupper): Ditto.
5520         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5521         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5522         mode iterator.  Use "Uz" constraint for operand 1.
5523         (*sibcall_value_vzeroupper): Ditto.
5524         (*sibcall_value_rex64_ms_sysv): Ditto.
5525         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5526         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
5527         constraint for operand 1.
5528         (*sibcall_value_pop_vzeroupper): Ditto.
5529         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5530         and "z" constraint for operand 2.
5531         (*tls_global_dynamic_32_gnu): Ditto.
5532         (*tls_local_dynamic_base_32_gnu): Ditto.
5533         (*tls_local_dynamic_base_64): Ditto.
5534         (*tls_local_dynamic_32_once): Ditto.
5535         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5536         Update all callers.
5537         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5538
5539 2011-05-16  Richard Guenther  <rguenther@suse.de>
5540
5541         * gimple.c (gimple_types_compatible_p_1): Use names of the
5542         type itself, not its main variant.
5543         (iterative_hash_gimple_type): Likewise.
5544
5545 2011-05-16  Richard Guenther  <rguenther@suse.de>
5546
5547         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5548         always visit pointer target and function result and argument types.
5549
5550 2011-05-16  Jason Merrill  <jason@redhat.com>
5551
5552         PR c++/48999
5553         * tree-inline.c (copy_statement_list): Put back recursion.
5554
5555 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5556
5557         PR target/27663
5558         PR target/41076
5559         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5560         * config/avr/avr.md ("*ior<mode>qi.byte0",
5561         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5562
5563 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5564
5565         PR target/45099
5566         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5567         register is needed for a function argument.
5568
5569 2011-05-16  Richard Guenther  <rguenther@suse.de>
5570
5571         * gimple.c (struct type_hash_pair): New type.
5572         (type_hash_pair_compare): New function.
5573         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5574
5575 2011-05-16  Revital Eres  <revital.eres@linaro.org>
5576
5577         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5578
5579 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5580
5581         * config/i386/i386.md (floating point move splitters): Fix
5582         usage of standard_80387_constant_p.
5583         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5584
5585 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5586
5587         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5588
5589 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5590
5591         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5592         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5593         (tree_ssa_lim_finalize): Likewise.
5594
5595 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
5596
5597         * config/i386/constraint.md (Yd, Yx): New register constraints.
5598         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
5599         Yd conditional register constraint.
5600         (*movtf_internal): Use standard_sse_constant_opcode.
5601         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
5602         Yx conditional register constraint.
5603         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
5604         Yd conditional register constraint.  Use standard_sse_constant_p to
5605         check for valid SSE constants and call standard_sse_constant_opcode to
5606         output SSE insn.
5607         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5608         constants and call standard_sse_constant_opcode to output SSE insn.
5609         * config/i386/i386.c (ix86_option_ovverride_internal): Set
5610         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
5611         optimize_size is set.
5612         (standard_sse_constant_opcode): Output conditional AVX insn templates.
5613
5614 2011-05-14  Tobias Burnus  <burnus@net-b.de>
5615
5616         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5617
5618 2011-05-13  Martin Jambor  <mjambor@suse.cz>
5619
5620         * ipa-prop.c (ipa_cst_from_jfunc): New function.
5621         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5622         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5623         (evaluate_conditions_for_ipcp_clone): Removed.
5624         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5625         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5626         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5627
5628 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
5629
5630         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5631         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5632         lieu of MAY_HAVE_DEBUG_STMTS.
5633         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5634         debug statements if !MAY_HAVE_DEBUG_STMTS.
5635
5636 2011-05-13  Martin Thuresson  <martint@google.com>
5637
5638         PR gcov-profile/47793
5639         * libgcov.c (gcov_exit): Support relative profile paths.
5640         * doc/invoke.texi (-fprofile-dir): Update for above change.
5641
5642 2011-05-13  Richard Guenther  <rguenther@suse.de>
5643
5644         * gimple.c (gimple_canonical_types_compatible_p): Do not use
5645         type-pair caching, do not compare hashes.
5646
5647 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
5648
5649         PR middle-end/48965
5650         * tree-cfg.c (edge_to_cases_cleanup): Return true.
5651         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5652
5653 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5654
5655         * gimplify.c (gimplify_expr): Make sure operand is boolified.
5656         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5657         compatible type for TRUTH_NOT_EXPR.
5658
5659 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5660
5661         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5662         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
5663         can_create_pseudo_p ().
5664
5665 2011-05-13  Richard Guenther  <rguenther@suse.de>
5666
5667         PR lto/48978
5668         * gimple.c (iterative_hash_gimple_type): Revert change in
5669         pointer target and function result and argument hashing.
5670
5671 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
5672
5673         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5674         (*movxf_internal_nointeger): Ditto.
5675         (*movdf_internal_rex64): Ditto.
5676         (*movdf_internal): Ditto.
5677         (*movdf_internal_nointeger): Ditto.
5678         (*movsf_internal): Ditto.
5679         (sincos splitters): Use can_create_pseudo ().
5680
5681 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
5682
5683         * config/i386/i386-opts.h: New.
5684         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5685         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5686         ix86_section_threshold): Remove.
5687         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
5688         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5689         OPT_mbranch_cost_.
5690         (ix86_option_override_internal): Don't decode strings for options
5691         other than -march=, -mtune= and -mfpmath=.  Don't allow for
5692         __attribute__ uses in remaining diagnostics for options with
5693         string arguments.  Don't check for integer arguments being negative.
5694         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5695         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5696         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5697         ix86_branch_cost, ix86_section_threshold): Remove.
5698         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5699         HeaderInclude.
5700         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5701         but not Var.
5702         (masm=): Use Enum and Init.
5703         (asm_dialect): New Enum and EnumValue entries.
5704         (mbranch-cost=): Use UInteger.
5705         (mlarge-data-threshold=): Use UInteger and Init.
5706         (mcmodel=): Use Enum and Init.
5707         (cmodel): New Enum and EnumValue entries.
5708         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5709         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5710         mregparm=): Use UInteger.
5711         (mstringop-strategy=): Use Enum and Init.
5712         (stringop_alg): New Enum and EnumValue entries.
5713         (mtls-dialect=): Use Enum and Init.
5714         (tls_dialect): New Enum and EnumValue entries.
5715         (mabi=): Use Enum and Init.
5716         (calling_abi): New Enum and EnumValue entries.
5717         (mveclibabi=): Use Enum and Init.
5718         (ix86_veclibabi): New Enum and EnumValue entries.
5719
5720 2011-05-13  Nick Clifton  <nickc@redhat.com>
5721
5722         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5723         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5724
5725 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5726
5727         PR middle-end/48984
5728         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5729         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5730         (gimple_boolify): Check for cast for boolean_type_node instead for
5731         BOOLEAN_TYPE.
5732
5733 2011-05-13  Richard Guenther  <rguenther@suse.de>
5734
5735         PR tree-optimization/48172
5736         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5737         multiplying by number of iterations for equal step.
5738         (vect_create_cond_for_alias_checks): Likewise.
5739
5740 2011-05-13  Andreas Schwab  <schwab@redhat.com>
5741
5742         * configure.ac: Use AS_HELP_STRING throughout.
5743         * configure: Regenerate.
5744
5745 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5746
5747         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5748         (ix86_emit_restore_regs_using_mov): Likewise.
5749         (ix86_emit_restore_sse_regs_using_mov): Likewise.
5750
5751 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
5752
5753         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5754         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5755         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5756         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5757         RTX_OK_FOR_OLO10_P): ...here.
5758         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5759         SYMBOLIC_CONST.
5760
5761 2011-05-12  Kai Tietz  <ktietz@redhat.com>
5762
5763         * gimplify.c (gimple_boolify): Re-boolify expression
5764         arguments even if expression type is of kind BOOLEAN_TYPE.
5765         (gimplify_boolean_expr): Removed.
5766         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5767         and XOR. Additional take care that we keep expression's type.
5768         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5769         of TRUTH_AND|OR|XOR_EXPR.
5770
5771 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5772
5773         PR tree-optimization/48975
5774         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5775         on all bbs here and free and clear ifc_bbs at the end.
5776
5777 2011-05-12  Richard Guenther  <rguenther@suse.de>
5778
5779         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5780         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
5781         until after simple checks.
5782         (gimple_types_compatible_p): Likewise.
5783         (iterative_hash_gimple_type): Always hash pointer targets
5784         and function return and argument types.
5785         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5786         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
5787         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5788         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
5789         completely in the simple compare section.
5790         (gimple_register_canonical_type): Query the cache again after
5791         registering.
5792
5793 2011-05-12  Richard Guenther  <rguenther@suse.de>
5794
5795         PR tree-optimization/48172
5796         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5797         the number of iterations from the segment size calculation.
5798         (vect_create_cond_for_alias_checks): Adjust.
5799
5800 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5801
5802         PR debug/48967
5803         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5804         if validate_subreg fails.
5805
5806 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
5807
5808         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5809         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5810         early.
5811
5812 2011-05-12  DJ Delorie  <dj@redhat.com>
5813
5814         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5815         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5816         created builtin into rx_builtins array.
5817         (rx_builtin_decl): New function.
5818         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
5819
5820 2011-05-12  DJ Delorie  <dj@redhat.com>
5821             Nick Clifton  <nickc@redhat.com>
5822
5823         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5824         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5825         (rx_is_legitimate_address): Add pre-decrement and post-increment
5826         addressing in HImode and QImode.  Fix test for out of range
5827         REG+INT addressing.
5828         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5829         (rx_align_for_label): Test label before extracting its usage count.
5830         (rx_adjust_insn_lengths): Fix selection of insn codes.
5831         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5832
5833 2011-05-11  Jason Merrill  <jason@redhat.com>
5834
5835         * tree.c (type_hash_canon): Use struct tree_type_non_common.
5836
5837 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5838
5839         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5840         reindent the subsequent block.
5841
5842 2011-05-11  Satoru Takabayashi  <satorux@google.com>
5843             Paul Pluzhnikov  <ppluzhnikov@google.com>
5844
5845         * doc/install.texi (Configuration): Document --with-linker-hash-style.
5846         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5847         * config.in: Add LINKER_HASH_STYLE.
5848         * configure.ac: Add --with-linker-hash-style.
5849         * configure: Regenerate.
5850
5851 2011-05-11  Richard Guenther  <rguenther@suse.de>
5852
5853         PR middle-end/48964
5854         * gimple.c (iterative_hash_canonical_type): Fix typo.
5855
5856 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
5857
5858         * config/i386/i386.c (legitimize_tls_address)
5859         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5860         expanders directly for TARGET_GNU2_TLS.  Determine pic and
5861         __tls_get_addr symbol reference here.  Update call to
5862         gen_tls_global_dynamic_{32,64} for added arguments.
5863         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5864         expanders directly for TARGET_GNU2_TLS.  Determine
5865         __tls_get_addr symbol reference here.  Update call to
5866         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
5867         unique UNSPEC REG_EQUIV to libcall block.
5868         (ix86_tls_get_addr): Declare static.
5869         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5870         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5871         Do not determine pic and __tls_get_addr symbol reference here. Do not
5872         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5873         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5874         (tls_global_dynamic_64): Add operand 2.  Do not determine
5875         __tls_get_addr symbol reference here.  Do not call
5876         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5877         (tls_local_dynamic_base64): Ditto for operand 1.
5878
5879 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5880
5881         * function.c (expand_function_start): Initialize stack_check_probe_note
5882         only if the generic stack checking mechanism is used.
5883
5884 2011-05-11  Richard Guenther  <rguenther@suse.de>
5885
5886         PR tree-optimization/15256
5887         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5888         (A & B) | C, combine (A op CST1) op CST2.
5889         (tree_ssa_forward_propagate_single_use_vars): Only bother to
5890         visit assigns that have uses.
5891
5892 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
5893
5894         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5895         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5896         (unpack_ts_type_common_value_fields): ...this.  Update comment.
5897         (unpack_value_fields): Adjust for renaming.
5898         (lto_input_ts_type_tree_pointers): Split into...
5899         (lto_input_ts_type_common_tree_pointer): ...this and...
5900         (lto_input_ts_type_non_common_tree_pointers): ...this.
5901         (lto_input_tree_pointers): Adjust for above split.
5902         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5903         (pack_ts_type_common_value_fields): ...this.  Update comment.
5904         (lto_output_ts_type_tree_pointers): Split into...
5905         (lto_output_ts_type_common_tree_pointers): ...this and...
5906         (lto_output_ts_type_non_common_tree_pointers): ...this.
5907         (lto_output_tree_pointers): Adjust for above split.
5908         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5909         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5910         * stor-layout.c (vector_type_mode): Adjust location of mode field.
5911         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5912         Define.
5913         (struct tree_type): Split into...
5914         (struct tree_type_common: ...this and...
5915         (struct tree_type_with_lang_specific): ...this and...
5916         (struct tree_type_non_common): ...this.  Adjust accessor macros
5917         accordingly.
5918         (TYPE_VALUES_RAW): Define.
5919         (union tree_node): Update for above changes.
5920         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5921         TS_TYPE_NON_COMMON.
5922         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5923         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5924         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5925         * treestructu.def (TS_TYPE): Remove.
5926         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5927         Define.
5928
5929 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
5930
5931         PR debug/48159
5932         * tree-ssa.c (reset_debug_uses): New function.
5933         * tree-flow.h (reset_debug_uses): New prototype.
5934         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5935         * tree-loop-distribution.c (generate_loops_for_partition): Call
5936         reset_debug_uses on the stmts that will be removed.  Keep around
5937         all debug stmts, don't count them as bits in partition bitmap.
5938         (generate_builtin): Don't count debug stmts or labels as bits in
5939         partition bitmap.
5940
5941 2011-05-11  Richard Guenther  <rguenther@suse.de>
5942
5943         * gimple.c (gimple_type_hash_1): Merge with ...
5944         (gimple_type_hash): ... this.
5945         (gtc_visit): Remove mode parameter and simplify accordingly.
5946         (gimple_types_compatible_p_1): Likewise.
5947         (gimple_types_compatible_p): Likewise.
5948         (iterative_hash_gimple_type): Likewise.
5949         (visit): Likewise.
5950         (gimple_type_eq): Adjust.
5951
5952 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5953
5954         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5955         enters the branch create an anti edge in the opposite direction
5956         to prevent the creation of reg-moves.
5957         * modulo-sched.c: Adjust comment to reflect the fact we are
5958         scheduling closing branch.
5959         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5960         (stage_count): New field in struct partial_schedule.
5961         (calculate_stage_count): New function.
5962         (normalize_sched_times): Rename to reset_sched_times and handle
5963         incrementing the sched time of the nodes by a constant value
5964         passed as parameter.
5965         (duplicate_insns_of_cycles): Skip closing branch.
5966         (sms_schedule_by_order): Schedule closing branch.
5967         (ps_insn_find_column): Handle closing branch.
5968         (sms_schedule): Call reset_sched_times and adjust the code to
5969         support scheduling of the closing branch.
5970         (ps_insert_empty_row): Update calls to normalize_sched_times
5971         and rotate_partial_schedule functions.
5972
5973 2011-05-11  Richard Guenther  <rguenther@suse.de>
5974
5975         PR middle-end/48953
5976         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5977
5978 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
5979
5980         * opts.c (finish_options): Move warning settings from process_options.
5981         * toplev.c (process_options): Move warning settings to finish_options.
5982
5983 2011-05-11  Richard Guenther  <rguenther@suse.de>
5984
5985         PR tree-optimization/18041
5986         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5987         (simplify_bitwise_binary): ... this.  Handle operand conversions
5988         by applying them to the result instead.
5989         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
5990
5991 2011-05-11  Richard Guenther  <rguenther@suse.de>
5992
5993         * gimple.c (gimple_canonical_types_compatible_p): Split out
5994         from gimple_types_compatible_p and friends.  Do not recurse
5995         to pointed-to types.
5996         (gimple_canonical_type_eq): Use it.
5997         (iterative_hash_canonical_type): Split out from
5998         iterative_hash_gimple_type and friends.  Do not recurse
5999         to pointed-to types.
6000         (gimple_canonical_type_hash): Use it, allocate the hash here.
6001
6002 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6003
6004         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6005         recognizing doloop.
6006
6007 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6008
6009         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6010         instead of PREV_INSN.
6011
6012 2011-05-11  Revital Eres  <revital.eres@linaro.org>
6013
6014         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6015         * loop-doloop.c (doloop_condition_get): Likewise.
6016         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6017         (doloop_end): New.
6018         * config/arm/arm.md (*addsi3_compare0): Remove "*".
6019
6020 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
6021
6022         * tree.def (CASE_LABEL_EXPR): Add an operand.
6023         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6024
6025 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6026
6027         * c-decl.c (c_override_global_bindings_to_false): Remove.
6028         (global_bindings_p): Don't check
6029         c_override_global_bindings_to_false.
6030         * c-tree.h (c_override_global_bindings_to_false): Remove.
6031         * c-typeck.c (composite_type): Don't set
6032         c_override_global_bindings_to_false.
6033
6034 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
6035
6036         PR target/48857, 48495
6037         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6038         (VSX_MODE): Ditto.
6039         (VSX_MOVE_MODE): Ditto.
6040         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6041         VSX vector types.  Add V2DImode.
6042         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6043         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6044         (MODES_TIEABLE_P): Ditto.
6045
6046         * config/rs6000/rs6000.c (rs6000_emit_move): Use
6047         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6048         VSX_VECTOR_MODE.
6049         (init_cumulative_args): Ditto.
6050         (rs6000_function_arg_boundary): Ditto.
6051         (rs6000_function_arg_advance_1): Ditto.
6052         (rs6000_function_arg): Ditto.
6053         (rs6000_function_ok_for_sibcall): Ditto.
6054         (emit_frame_save): Ditto.
6055         (rs6000_function_value): Ditto.
6056         (rs6000_libcall_value): Ditto.
6057
6058 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6059
6060         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6061         i386/darwin-lib.h to $libgcc_tm_file.
6062         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6063
6064 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6065
6066         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6067
6068 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6069
6070         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
6071         * config/rs6000/rs6000-tables.opt: New file (generated).
6072         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6073         rs6000/rs6000-tables.opt to extra_options.
6074         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6075         * config/rs6000/rs6000.c (rs6000_select): Remove.
6076         (processor_target_table): Move contents to rs6000-cpus.def.
6077         (darwin_rs6000_override_options): Check
6078         global_options_set.x_rs6000_cpu_index instead of
6079         rs6000_select[1].string.
6080         (rs6000_option_override_internal): Likewise.
6081         (rs6000_handle_option): Don't assert that global structures are in
6082         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
6083         (rs6000_default_cpu): New variable.
6084         (rs6000_file_start): Set it instead of local default_cpu.  Check
6085         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6086         global_options_set.x_rs6000_tune_index instead of rs6000_select.
6087         (rs6000_darwin_file_start): Check rs6000_default_cpu and
6088         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6089         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6090         rs6000_select): Remove.
6091         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6092         Remove.
6093         (mcpu=, mtune=): Use Var, Init, Enum and Save.
6094         * config/rs6000/t-rs6000
6095         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6096         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6097         global_options_set.x_rs6000_cpu_index instead of
6098         rs6000_select[1].string.
6099         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6100         global_options_set.x_rs6000_cpu_index instead of
6101         rs6000_select[1].string.
6102
6103 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6104
6105         * config.gcc (libgcc_tm_file): Define instead of including files
6106         from ../../libgcc/config/ in tm_file.
6107         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6108         * configure: Regenerate.
6109         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6110         libgcc_tm.h, cs-libgcc_tm.h): New.
6111         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6112         (clean): Remove libgcc_tm.h.
6113         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6114         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6115         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6116
6117 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
6118
6119         PR target/48896
6120         * config/avr/avr.c (avr_ret_register): Return unsigned int
6121         instead of int.
6122         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6123         it to avr_libcall_value.
6124         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6125         expand_expr.
6126         (avr_expand_binop_builtin): Ditto.
6127         (avr_expand_unop_builtin): Ditto.
6128
6129 2011-05-10  DJ Delorie  <dj@redhat.com>
6130
6131         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6132         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6133         * config/rx/rx.c (rx_align_for_label): Add label and
6134         uses_threshold parameters.  Do not align when the label is not
6135         used enough.
6136         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6137
6138 2011-05-10  Richard Guenther  <rguenther@suse.de>
6139
6140         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6141         a series of conversions and apply foldings similar to what
6142         fold-const does.
6143         (tree_ssa_forward_propagate_single_use_vars): Call it.
6144
6145 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
6146
6147         PR tree-optimization/48611
6148         PR tree-optimization/48794
6149         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6150         referenced from RESX or EH_DISPATCH arguments.
6151
6152         PR debug/48928
6153         * dfp.c (decimal_to_decnumber): Handle conversion from
6154         dconst{1,2,m1,half}.
6155
6156 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6157
6158         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6159         for !flag_prefer_avx128.
6160         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6161
6162 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
6163
6164         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6165         (fold_ternary_loc): Use expr_location_or.
6166
6167 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6168
6169         PR debug/48853
6170         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6171         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6172         Pmode and mem_mode is not VOIDmode.
6173
6174 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
6175
6176         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6177         TYPE_QUAL_RESTRICT): Convert to enum.
6178
6179 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6180
6181         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6182         (const_pow2_1_to_8_operand): Ditto.
6183         (const_pow2_1_to_128_operand): Ditto.
6184         (const_pow2_1_to_32768_operand): Ditto.
6185         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6186         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
6187         in insn constraint to check integer value of operand 3.
6188         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6189
6190         (PINSR_MODE): New mode iterator.
6191         (sse2p4_1): New mode attribute.
6192         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6193         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6194         iterator.  Use const_int_operand instead of
6195         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
6196         exact_log2 in insn constraint to check integer value of operand 3.
6197
6198 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6199
6200         * config/i386/sse.md (blendbits): Remove mode attribute.
6201         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6202         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6203         Check integer value of operand 3 in insn constraint.
6204
6205 2011-05-09  Richard Guenther  <rguenther@suse.de>
6206
6207         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6208         for diagnostics.
6209         (lto_symtab_merge): Likewise.  Do not register types here.
6210         (lto_symtab_merge_decls_2): Likewise.
6211         (lto_symtab_merge_decls_1): Likewise.
6212         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6213         * gimple.c (enum gtc_mode): Declare.
6214         (gimple_types_compatible_p): Make static.
6215
6216 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6217
6218         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6219         temporary register to match Pmode.
6220
6221 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6222
6223         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6224         and *vec_concatv4si_1_avx.
6225
6226 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6227
6228         PR rtl-optimization/48927
6229         * ira-conflicts.c (commutative_constraint_p): Use
6230         recog_data.alternative_enabled_p to disable alternatives where
6231         "enabled" attribute is false.
6232         (get_dup_num): Ditto.
6233         * ira-lives.c (single_reg_class): Ditto.
6234         (ira_implicitly_set_insn_hard_regs): Ditto.
6235
6236 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
6237
6238         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6239         (dataflow_set_preserve_mem_locs): Likewise.
6240
6241 2011-05-09  Philipp Thomas  <pth@suse.de>
6242
6243         * config/mep/mep.c (mep_validate_vliw): Syntax description
6244         should not be translated.
6245
6246 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
6247
6248         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6249         * config/mips/mips-tables.opt: New file (generated).
6250         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6251         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6252         MIPS_ARCH_OPTION_NATIVE): Define.
6253         * config/mips/mips.c (mips_cpu_info_table): Move contents to
6254         mips-cpus.def.
6255         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6256         mips_parse_cpu): Remove.
6257         (mips_cpu_info_from_opt, mips_default_arch): New.
6258         (mips_handle_option): Don't assert that global structures are in
6259         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6260         (mips_option_override): Use new variables and functions to set
6261         state of these options.  Use strcmp to check for individual CPU names.
6262         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6263         definition.
6264         * config/mips/mips.opt (march=): Use ToLower and Enum.
6265         (mips): Use ToLower, Enum and Var.
6266         (mtune=): Use ToLower and Enum.
6267         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6268
6269 2011-05-08  Jan Hubicka  <jh@suse.cz>
6270
6271         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6272         Arrange type pairs to be UID ordered.
6273         (gimple_lookup_type_leader): Make inline.
6274
6275 2011-05-09  Nick Clifton  <nickc@redhat.com>
6276
6277         PR target/48899
6278         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6279         PROCESSOR_DEFAULT.
6280
6281         PR target/48897
6282         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6283         variable 's'.
6284
6285 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
6286
6287         * combine.c (simplify_comparison): Abstract out parts into...
6288         (simplify_compare_const): ... new function.
6289         (try_combine): Generalize parallel arithmetic/compare combining
6290         to call simplify_compare_const() and CANONICALIZE_COMPARE().
6291
6292 2011-05-08  Jan Hubicka  <jh@suse.cz>
6293
6294         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6295         (cgraph_create_virtual_clone): Call hooks once virtual clone
6296         is finished.
6297         * cgraph.h (cgraph_clone_node): Update prototype.
6298         * ipa-cp.c (ipcp_estimate_growth): Use
6299         estimate_ipcp_clone_size_and_time.
6300         * ipa-inline-transform.c (clone_inlined_nodes): Update.
6301         * lto-cgraph.c (input_node): Update.
6302         * ipa-inline.c (recursive_inlining): Update.
6303         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6304         (evaluate_conditions_for_known_args): Break out from ...
6305         (evaluate_conditions_for_edge): ... here.
6306         (evaluate_conditions_for_ipcp_clone): New function.
6307         (inline_node_duplication_hook): Update clone summary based
6308         on parameter map.
6309         (estimate_callee_size_and_time): Rename to ...
6310         (estimate_node_size_and_time): take NODE instead of EDGE;
6311         take POSSIBLE_TRUTHS as argument.
6312         (estimate_callee_size_and_time): Update.
6313         (estimate_ipcp_clone_size_and_time): New function.
6314         (do_estimate_edge_time): Update.
6315
6316 2011-05-08  Richard Guenther  <rguenther@suse.de>
6317
6318         PR middle-end/48908
6319         PR middle-end/48905
6320         * expmed.c (expand_shift_1): Compute adjusted constant shift
6321         amount manually.
6322
6323 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
6324
6325         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6326
6327 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
6328
6329         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6330
6331 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
6332
6333         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6334
6335 2011-05-07  Jan Hubicka  <jh@suse.cz>
6336
6337         * ipa-inline-transform.c (inline_call): Account when program size
6338         decreases.
6339         * ipa-inline.c (relative_time_benefit): New function.
6340         (edge_badness): Reorganize to be power 2 based; fix thinko when
6341         computing badness for negative growth; update comments to match
6342         reality; better dumps.
6343
6344 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6345
6346         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6347         type to bool and adjust comment.
6348         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6349         (fold_mathfn_compare): Remove calls to global_bindings_p.
6350         (fold_inf_compare): Likewise.
6351         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6352         * c-tree.h (global_bindings_p): Adjust prototype.
6353         * c-decl.c (global_bindings_p): Return bool and simplify.
6354
6355 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
6356
6357         PR tree-optimization/48837
6358         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6359         when accumulator transformation is performed.
6360
6361 2011-05-06  Jan Hubicka  <jh@suse.cz>
6362
6363         * i386.h (ix86_tune_indices): Add
6364         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6365         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6366         * i386.c (initial_ix86_tune_features): Add
6367         X86_SOFTARE_PREFETCHING_BENEFICIAL.
6368         (software_prefetching_beneficial_p): Remove predicate.
6369         (ix86_option_override_internal): Use new macro.
6370
6371 2011-05-06  Jan Hubicka  <jh@suse.cz>
6372
6373         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6374
6375 2011-05-06  Jan Hubicka  <jh@suse.cz>
6376
6377         * cgraph.c (cgraph_add_thunk): Create real function node instead
6378         of alias node; finalize it and mark needed/reachale; arrange visibility
6379         to be right and add it into the corresponding same comdat group list.
6380         (dump_cgraph_node): Dump thunks.
6381         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6382         cgraph_function_with_gimple_body_p,
6383         cgraph_first_function_with_gimple_body,
6384         cgraph_next_function_with_gimple_body): New functions.
6385         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6386         New macros.
6387         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6388         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6389         * cgraphunit.c (cgraph_finalize_function): Only look into possible
6390         devirtualization when optimizing.
6391         (verify_cgraph_node): Verify thunks.
6392         (cgraph_analyze_function): Analyze thunks.
6393         (cgraph_mark_functions_to_output): Output thunks only in combination
6394         with function they are assigned to.
6395         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6396         alias into normal node.
6397         (assemble_thunks): New functoin.
6398         (cgraph_expand_function): Use it.
6399         * lto-cgraph.c (lto_output_node): Stream thunks.
6400         (input_overwrite_node): Stream in thunks.
6401         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6402         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6403         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6404         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6405         (inline_analyze_function): Do not care about thunk jump functions.
6406         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6407         * ipa-prop.c (ipa_prop_write_jump_functions): Use
6408         cgraph_function_with_gimple_body_p.
6409         * passes.c (do_per_function_toporder): Use
6410         cgraph_function_with_gimple_body_p.
6411         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6412         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6413         (function_called_by_processed_nodes_p): Likewise.
6414
6415 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6416
6417         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6418         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6419         entries.
6420         (mabi=): Replace with separate entries for mabi=altivec,
6421         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6422         mabi=ieeelongdouble and mabi=ibmlongdouble.
6423         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6424         check for -mabi=spe without SPE ABI support here.
6425         (rs6000_handle_option): Replace OPT_mabi_ handling with
6426         OPT_mabi_altivec and OPT_mabi_spe handling.
6427
6428 2011-05-06  Cary Coutant  <ccoutant@google.com>
6429
6430         * dwarf2out.c (contains_subprogram_definition): New function.
6431         (should_move_die_to_comdat): Call it.
6432
6433 2011-05-06  Jeff Law  <law@redhat.com>
6434
6435         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6436         remove_ctrl_stmt_and_useless_edges.
6437         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6438         (fixup_template_block, thread_single_edge): Likewise.
6439         (mark_threaded_blocks): Use THREAD_TARGET.
6440
6441 2011-05-06  Alan Modra  <amodra@gmail.com>
6442
6443         PR target/48900
6444         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6445         const0_rtx as the arg to the dummy __tls_get_addr libcall.
6446
6447 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6448
6449         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6450         constraint modifier to "r".
6451
6452 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6453
6454         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6455         fall through for OPT_mcmodel_.
6456
6457 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6458
6459         * config/s390/s390.c (s390_asm_trampoline_template): Comment
6460         instruction sizes.
6461         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6462
6463 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6464
6465         PR target/47930
6466         * config/arm/arm.opt (marm): Document it.
6467         (mthumb): Reject negative variant.
6468
6469 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6470
6471         PR target/48898
6472         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6473         Fix typo in "ccvt" variable name.
6474
6475 2011-05-06  Tristan Gingold  <gingold@adacore.com>
6476
6477         PR target/48895
6478         * config/vms/vms-ar.c (main): Remove cwd variable.
6479
6480 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
6481
6482         PR debug/48902
6483         * var-tracking.c (prepare_call_arguments): Move else before #endif.
6484
6485 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
6486
6487         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6488         * gimplify.c (gimplify_switch_expr): Likewise.
6489         * omp-low.c (expand_omp_sections): Likewise.
6490         * tree-eh.c (lower_try_finally_switch): Likewise.
6491         (lower_eh_dispatch): Likewise.
6492         * tree.h (build_case_label): Declare.
6493         * tree.c (build_case_label): Define.
6494
6495 2011-05-05  Jason Merrill  <jason@redhat.com>
6496
6497         PR c++/40975
6498         * tree-inline.c (copy_tree_r): Use copy_statement_list.
6499         (copy_statement_list): Don't recurse.
6500         * stor-layout.c (copy_self_referential_tree_r): Don't allow
6501         STATEMENT_LIST.
6502
6503 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6504
6505         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6506         through from -mfpu= handling.
6507         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6508
6509 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
6510
6511         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6512         POST_MODIFY.
6513
6514 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
6515
6516         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6517         for 11.31.
6518         (hppa[12]*-*-hpux11*): Ditto.
6519         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6520         * config/ia64/hpux-unix2003.h: New.
6521         * config/pa/pa-hpux1131.opt: New.
6522         * config/pa/pa-hpux1131.h: New.
6523         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6524         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6525         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6526
6527 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6528
6529         PR debug/48853
6530         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6531         instead of mode as 3rd argument to recursive call.
6532         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6533         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6534         VOIDmode.
6535         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6536         don't give up if mode is Pmode and mem_mode is not VOIDmode.
6537         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6538         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6539
6540 2011-05-05  Julian Brown  <julian@codesourcery.com>
6541
6542         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6543         parenthesis in D-register case.
6544
6545 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6546
6547         * opt-functions.awk (var_type_struct): Handle Enum options.
6548         * optc-gen.awk: Don't check range of variables of character type.
6549         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6550         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6551         rs6000_sdata_name, rs6000_explicit_options): Remove.
6552         (rs6000_option_override_internal): Check for -malign-power here.
6553         Use global_options_set instead of rs6000_explicit_options.
6554         (rs6000_parse_fpu_option): Remove.
6555         (rs6000_handle_option): Access variables via opts and opts_set
6556         pointers.  Use error_at and warning_at.  Add fall-through
6557         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6558         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6559         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6560         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6561         here.  Don't use rs6000_parse_fpu_option.
6562         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6563         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6564         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6565         (mrecip=): Use Var.
6566         (mspe): Use Var and Save.
6567         (mtraceback=): Use Enum and Var.
6568         (rs6000_traceback_type): New Enum and EnumValue entries.
6569         (mfloat-gprs=): Use Enum, Var and Save.
6570         (rs6000_float_gprs): New Enum and EnumValue entries.
6571         (mlong-double-): use Var and Save.
6572         (msched-costly-dep=, minsert-sched-nops=): Use Var.
6573         (malign-): Use Enum and Var.
6574         (rs6000_alignment_flags): New Enum and EnumValue entries.
6575         (mfpu=): Use Enum.
6576         (fpu_type_t): New Enum and EnumValue entries.
6577         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6578         global_options_set instead of rs6000_explicit_options.
6579         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6580         global_options_set instead of rs6000_explicit_options.
6581         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6582         global_options_set instead of rs6000_explicit_options.
6583         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6584         global_options_set instead of rs6000_explicit_options.
6585         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6586         global_options_set instead of rs6000_explicit_options.
6587         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6588         global_options_set instead of rs6000_explicit_options.
6589         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6590         definition.
6591         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6592         global_options_set instead of rs6000_explicit_options.
6593         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6594         (rs6000_cmodel): New Enum and EnumValue entries.
6595         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6596         global_options_set instead of rs6000_explicit_options.
6597         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6598         (mtls-size=): Use Enum and Var.
6599         (rs6000_tls_size): New Enum and EnumValue entries.
6600
6601 2011-05-05  Michael Matz  <matz@suse.de>
6602
6603         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6604         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6605         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6606         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6607         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6608         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6609         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6610         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6611         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6612         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6613         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6614         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6615         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6616         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6617         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6618         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6619
6620 2011-05-05  Richard Guenther  <rguenther@suse.de>
6621
6622         * expmed.c (expand_variable_shift): Rename to ...
6623         (expand_shift_1): ... this.  Take an expanded shift amount.
6624         For rotates recurse directly not building trees for the shift amount.
6625         (expand_variable_shift): Wrap around expand_shift_1.
6626         (expand_shift): Adjust.
6627
6628 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6629
6630         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6631
6632 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
6633
6634         * tree.h (get_pending_sizes): Remove prototype.
6635         (put_pending_size): Likewise.
6636         (put_pending_sizes): Likewise.
6637         * stor-layout.c (pending_sizes): Delete.
6638         (get_pending_sizes): Likewise.
6639         (put_pending_size): Likewise.
6640         (put_pending_sizes): Likewise.
6641         (variable_size): Do not call put_pending_size and tidy up.
6642         * function.h (struct function): Remove dont_save_pending_sizes_p.
6643         * lto-streamer-in.c (input_function): Do not stream it.
6644         * lto-streamer-out.c (output_function): Likewise.
6645         * tree-inline.c (initialize_cfun): Do not copy it.
6646         * c-decl.c (store_parm_decls): Do not set it.
6647         * omp-low.c (create_task_copyfn): Likewise.
6648         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6649
6650 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
6651
6652         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6653         conditions.
6654         (*movdf_internal): Ditto.
6655         (*movdf_internal_nointeger): Ditto.
6656         (*movsf_internal): Ditto.
6657
6658 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6659
6660         * c-decl.c (finish_decl): Don't call get_pending_sizes.
6661         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
6662         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
6663         (c_variable_size): Remove.
6664         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
6665         call put_pending_sizes.
6666         (get_parm_info): Add parameter expr.  Use it to set
6667         arg_info->pending_sizes.
6668         (store_parm_decls): Use arg_info->pending_sizes instead or calling
6669         get_pending_sizes.
6670         * c-parser.c (c_parser_parms_declarator): Update call to
6671         c_parser_parms_list_declarator.
6672         (c_parser_parms_list_declarator): Take parameter expr.  Update
6673         call to push_parm_decl.  Update recursive call.  Don't call
6674         get_pending_sizes.  Update calls to get_parm_info.
6675         (c_parser_objc_method_definition): Update calls to
6676         c_parser_objc_method_decl and objc_start_method_definition.
6677         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6678         (c_parser_objc_method_decl): Add parameter expr.  Update call to
6679         grokparm.
6680         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6681         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6682         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6683
6684 2011-05-05  Michael Hope  <michael.hope@linaro.org>
6685
6686         PR pch/45979
6687         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6688         __ARM_EABI__ hosts.
6689
6690 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6691
6692         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6693         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6694         (spu_output_mi_thunk): New function.
6695
6696 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6697
6698         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6699         targetm.asm_out.print_operand.
6700         * config/sol2.c: Include target.h.
6701
6702 2011-05-04  Jan Hubicka  <jh@suse.cz>
6703
6704         * ipa-inline.c (reset_edge_caches): New function.
6705         (update_caller_keys): Add check_inlinablity_for; do not
6706         reset edge caches; remove now unnecesary loop.
6707         (update_callee_keys): Add comments; reset node_growth_cache of callee.
6708         (update_all_callee_keys): Likewise.
6709         (inline_small_functions): Sanity check cache; update code
6710         recomputing it.
6711
6712 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
6713
6714         PR rtl-optimization/47612
6715         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6716         as the last insn of the sequence to be moved.
6717
6718 2011-05-04  Tobias Burnus  <burnus@net-b.de>
6719
6720         PR fortran/48864
6721         * doc/invoke.texi (Ofast): Document that it
6722         enables Fortran's -fno-protect-parens.
6723
6724 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6725
6726         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6727
6728 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
6729
6730         * stor-layout.c (variable_size): Do not issue errors.
6731
6732 2011-05-04  Richard Guenther  <rguenther@suse.de>
6733
6734         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6735         for array-ref indices.
6736         (tree_coverage_counter_addr): Likewise.
6737         (build_fn_info_type): Use size_int for index types.
6738         (build_gcov_info): Likewise.
6739
6740 2011-05-04  Richard Guenther  <rguenther@suse.de>
6741
6742         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6743         to build_int_cst.
6744         * c-typeck.c (really_start_incremental_init): Use bitsize_int
6745         for constructor indices.
6746         (push_init_level): Likewise.
6747
6748 2011-05-04  Richard Guenther  <rguenther@suse.de>
6749
6750         * explow.c (promote_mode): Move variable declarations before code.
6751
6752 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
6753
6754         * tree.h (build_function_type_array): Declare.
6755         (build_varargs_function_type_array): Declare.
6756         (build_function_type_vec, build_varargs_function_type_vec): Define.
6757         * tree.c (build_function_type_array_1): New function.
6758         (build_function_type_array): New function.
6759         (build_varargs_function_type_array): New function.
6760
6761 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
6762
6763         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6764         before setting STMT_VINFO_TYPE.
6765
6766 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6767
6768         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6769         instead of spu_pass_by_reference.
6770
6771 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6772
6773         * calls.c (emit_library_call_value_1): Invoke
6774         promote_function_mode hook on libcall arguments.
6775         * explow.c (promote_function_mode, promote_mode): Handle TYPE
6776         argument being NULL.
6777         * targhooks.c (default_promote_function_mode): Lisewise.
6778         * config/s390/s390.c (s390_promote_function_mode): Likewise.
6779         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6780
6781         * doc/tm.texi: Document that TYPE argument might be NULL.
6782
6783 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6784
6785         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6786
6787 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6788
6789         From Bernd Schmidt
6790         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6791
6792 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6793
6794         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6795         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6796         Move ...
6797         * mips-tfile.c: ... here.
6798         Don't include coretypes.h, tm.h, filenames.h.
6799         (saber_stop): Remove definition and all calls.
6800         [__SABER__]: Remove.
6801         (__LINE__): Remove default.
6802         (Size_t, Ptrdiff_t): Remove definitions.
6803         Replace by size_t, ptrdiff_t.
6804         [!MIPS_DEBUGGING_INFO]: Remove.
6805         (SHASH_SIZE, THASH_SIZE): Remove defaults.
6806         (progname): Add const.
6807         (STATIC): Remove.
6808         Replace all uses by static.
6809         (ALIGN_SYMTABLE_OFFSET): Remove default.
6810         * mips-tdump.c: Don't include coretypes.h, tm.h.
6811         Remove !MIPS_IS_STAB guard.
6812         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6813         $(TM_H), filenames.h dependencies.
6814         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6815
6816 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6817
6818         From Jie Zhang
6819         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6820         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6821
6822 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6823
6824         From Bernd Schmidt
6825         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6826         account and save/restore RETS.
6827         (PROFILE_BEFORE_PROLOGUE): Define.
6828         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
6829         the push insn to use predecrement.
6830
6831 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6832
6833         From Jie Zhang
6834         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6835
6836 2011-05-04  Nick Clifton  <nickc@redhat.com>
6837
6838         * config/mn10300/mn10300.c: Include cfgloop.h.
6839         (DUMP): New macro.
6840         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
6841         Lcc or a FLcc insn into the instruction stream.
6842         (mn10300_block_contains_call): New function.  Returns true if the
6843         given basic block contains a CALL insn.
6844         (mn10300_loop_contains_call_insn): New function.  Returns true if
6845         the given loop contains a CALL insn.
6846         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
6847         to use the SETLB and Lcc or FLcc insns.
6848         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6849         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6850         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
6851         disable the SETLB optimization.
6852         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6853         __SETLB__ or __NO_SETLB__.
6854         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6855         (movsf_internal): Handle MDR register.
6856         (cmpsi): Make visible.
6857         (setlb): New pattern.
6858         (Lcc): New pattern.
6859         (FLcc): New pattern.
6860
6861 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6862
6863         PR target/48860
6864         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6865         for reg<->xmm moves.
6866         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6867         (vec_concatv2di_rex64_sse): Ditto.
6868         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6869         (*vec_extractv2di_1_rex64): Ditto.
6870
6871         Revert:
6872         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6873
6874         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6875         reg<->xmm moves.
6876         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6877
6878 2011-05-04  Richard Guenther  <rguenther@suse.de>
6879
6880         * tree.h (int_const_binop): Remove notrunc argument.
6881         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
6882         create integer constants that are properly truncated.
6883         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6884         (const_binop): Remove zero notrunc argument to int_const_binop.
6885         (size_binop_loc): Likewise.
6886         (fold_div_compare): Likewise.
6887         (maybe_canonicalize_comparison_1): Likewise.
6888         (fold_comparison): Likewise.
6889         (fold_binary_loc): Likewise.
6890         (multiple_of_p): Likewise.
6891         * expr.c (store_constructor): Likewise.
6892         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6893         (maybe_fold_stmt_addition): Likewise.
6894         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6895         * stor-layout.c (layout_type): Likewise.
6896         * tree-data-ref.c (tree_fold_divides_p): Likewise.
6897         * tree-sra.c (build_ref_for_offset): Likewise.
6898         (build_user_friendly_ref_for_offset): Likewise.
6899         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6900         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6901         * tree-ssa-loop-niter.c (inverse): Likewise.
6902         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6903         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6904         * tree-switch-conversion.c (check_range): Likewise.
6905         (build_constructors): Likewise.
6906         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6907         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6908         (extract_range_from_assert): Likewise.
6909         (vrp_int_const_binop): Likewise.
6910         (extract_range_from_binary_expr): Likewise.
6911         (extract_range_from_unary_expr): Likewise.
6912         (check_array_ref): Likewise.
6913         (find_case_label_range): Likewise.
6914         (simplify_div_or_mod_using_ranges): Likewise.
6915         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6916         comparing case labels for merging.
6917
6918 2011-05-03  Mark Wielaard  <mjw@redhat.com>
6919
6920         * dwarf2out.c (debug_str_hash_forced): Removed.
6921         (gen_label_for_indirect_string): Removed.
6922         (get_debug_string_label): Removed.
6923         (AT_string_form): Generate label directly.
6924         (output_indirect_string): Test indirect_string_node for
6925         DW_FORM_strp instead of checking label and refcount.
6926         (prune_indirect_string): Removed.
6927         (prune_unused_types): Don't check debug_str_hash_forced or
6928         call prune_indirect_string.
6929
6930 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6931
6932         PR other/48093
6933         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6934
6935 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6936
6937         PR debug/47994
6938         PR debug/47919
6939         * combine.c (try_combine): Skip debug insns at m_split tests.
6940
6941 2011-04-26  Mark Wielaard  <mjw@redhat.com>
6942
6943         PR42288
6944         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6945         when info_section_emitted.
6946
6947 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
6948
6949         * config/mips/mips-opts.h: New.
6950         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6951         to mips-opts.h.
6952         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6953         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6954         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
6955         via opts pointer.
6956         * config/mips/mips.h (enum mips_code_readable_setting): Move to
6957         mips-opts.h.
6958         (mips_abi, mips_code_readable): Don't declare.
6959         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6960         (mabi=): Use Enum and Var.
6961         (mips_abi): New Enum and EnumValue entries.
6962         (mcode-readable=): Use Enum and Var.
6963         (mips_code_readable_setting): New Enum and EnumValue entries.
6964         (mr10k-cache-barrier=): Use Enum and Var.
6965         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6966
6967 2011-05-03  Jan Hubicka  <jh@suse.cz>
6968
6969         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6970         replace hash by pointer map.
6971         (cgraph_node_set_element_def, cgraph_node_set_element,
6972         const_cgraph_node_set_element, varpool_node_set_element_def,
6973         varpool_node_set_element, const_varpool_node_set_element): Remove.
6974         (free_cgraph_node_set, free_varpool_node_set): New function.
6975         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6976         * tree-emutls.c: Free varpool node set.
6977         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6978         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6979         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6980         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6981         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6982         Move here from ipa.c; implement using pointer_map
6983         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6984         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6985         debug_cgraph_node_set, varpool_node_set_new,
6986         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6987         dump_varpool_node_set, debug_varpool_node_set):
6988         Move to ipa-uitls.c.
6989         * passes.c (ipa_write_summaries): Update.
6990
6991 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6992
6993         From Mike Frysinger:
6994         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6995         bf542/bf544/bf547/bf548/bf549.
6996
6997 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
6998
6999         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7000
7001 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7002
7003         From Bernd Schmidt:
7004         * config/bfin/bfin.md (MOVCC): New mode_macro.
7005         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7006         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
7007         comments from generated assembly.
7008
7009 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7010
7011         From Bernd Schmidt
7012         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7013         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7014         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7015         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7016         * config/bfin/lib1funcs.asm (___muldi3): New function.
7017
7018 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7019
7020         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7021         build_function_type_list instead of build_function_type.
7022         Rearrange initialization of `args' to do so.
7023
7024 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7025
7026         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7027         instead of build_function_type.
7028
7029 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7030
7031         * config/rs6000/rs6000.c (spe_init_builtins): Call
7032         build_function_type_list instead of build_function_type.
7033         (paired_init_builtins, altivec_init_builtins): Likewise.
7034         (builtin_function_type): Likewise.
7035
7036 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7037
7038         * config/sh/sh.c (sh_media_init_builtins): Call
7039         build_function_type_list instead of build_function_type.
7040
7041 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7042
7043         * config/sparc/sparc.c (sparc_file_end): Call
7044         build_function_type_list instead of build_function_type.
7045
7046 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7047
7048         * config/alpha/alpha.c (alpha_init_builtins): Call
7049         build_function_type_list instead of build_function_type.
7050
7051 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7052
7053         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7054         build_function_type_list instead of build_function_type.
7055
7056 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7057
7058         * config/iq2000/i2000.c (iq2000_init_builtins): Call
7059         build_function_type_list instead of build_function_type.
7060         Delete `endlink' variable.
7061
7062 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7063
7064         * config/avr/avr.c (avr_init_builtins): Call
7065         build_function_type_list instead of build_function_type.
7066
7067 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7068
7069         * config/picochip/picochip.c (picochip_init_builtins): Call
7070         build_function_type_list instead of build_function_type.
7071         Delete `endlink' variable.
7072
7073 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
7074
7075         * config/bfin/bfin.c (bfin_init_builtins): Call
7076         build_function_type_list instead of build_function_type.
7077
7078 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7079
7080         From Bernd Schmidt
7081         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7082         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
7083
7084 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7085
7086         From Jie Zhang:
7087         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7088         libbffastfp overrides libgcc when -mfast-fp.
7089
7090 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7091
7092         Originally from Bernd Schmidt
7093         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7094         * config/bfin/bfin.c (override_options): Test it and error if
7095         TARGET_FDPIC.
7096
7097 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
7098
7099         Originally From Bernd Schmidt
7100         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7101         FD-PIC.
7102
7103 2011-05-03  Jeff Law  <law@redhat.com>
7104
7105         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7106         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7107         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7108         than accessing AUX field directly.  Free the AUX field before
7109         clearing it.
7110         (thread_block, thread_through_loop_header): Likewise.
7111         (thread_single_edge, mark_threaded_blocks): Likewise.
7112         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
7113         (register_jump_thread): Do not attempt to thread to a NULL edge.
7114
7115 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
7116
7117         * function.c (init_function_start): Call decide_function_section.
7118         * varasm.c (decide_function_section): New function.
7119         (assemble_start_function): When not using
7120         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7121         or first_function_block_is_cold.
7122         * rtl.h (decide_function_section): Declare.
7123
7124 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
7125             Jakub Jelinek  <jakub@redhat.com>
7126
7127         PR target/48774
7128         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7129         only succeed if req_mode is the same as set_mode.
7130
7131 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
7132
7133         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7134         * genemit.c (gen_exp): Handle RETURN.
7135         * emit-rtl.c (verify_rtx_sharing): Likewise.
7136         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7137         * rtl.c (copy_rtx): RETURN is shared.
7138         * rtl.h (enum global_rtl_index): Add GR_RETURN.
7139         (ret_rtx): New.
7140         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7141         * config/s390/s390.c (s390_emit_epilogue): Likewise.
7142         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7143         * config/cris/cris.c (cris_expand_return): Likewise.
7144         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7145         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7146         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7147         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7148         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7149         Likewise.
7150         * config/v850/v850.c (expand_epilogue): Likewise.
7151         * config/bfin/bfin.c (bfin_expand_call): Likewise.
7152         * config/arm/arm.md (epilogue): Likewise.
7153         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7154         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7155         variable to ret_reg.
7156
7157 2011-05-03  Richard Guenther  <rguenther@suse.de>
7158
7159         PR lto/48846
7160         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7161         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7162         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7163
7164 2011-05-03  Richard Guenther  <rguenther@suse.de>
7165
7166         * c-decl.c (grokdeclarator): Instead of looking at
7167         TREE_OVERFLOW check if the constant fits in the index type.
7168
7169 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7170
7171         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7172         (vec_store_lanes<mode><mode>): Likewise.
7173
7174 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7175
7176         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7177         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7178         convert_optab_index values.
7179         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7180         * genopinit.c (optabs): Initialize the new optabs.
7181         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7182         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7183         (expand_STORE_LANES): New functions.
7184         * tree.h (build_array_type_nelts): Declare.
7185         * tree.c (build_array_type_nelts): New function.
7186         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7187         (vect_model_load_cost): Likewise.
7188         (vect_store_lanes_supported, vect_load_lanes_supported)
7189         (vect_record_strided_load_vectors): Declare.
7190         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7191         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7192         (vect_transform_strided_load): Split out statement recording into...
7193         (vect_record_strided_load_vectors): ...this new function.
7194         * tree-vect-stmts.c (create_vector_array, read_vector_array)
7195         (write_vector_array, create_array_ref): New functions.
7196         (vect_model_store_cost): Add store_lanes_p argument.
7197         (vect_model_load_cost): Add load_lanes_p argument.
7198         (vectorizable_store): Try to use store-lanes functions for
7199         interleaved stores.
7200         (vectorizable_load): Likewise load-lanes and loads.
7201         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7202         to vect_model_store_cost.
7203         (vect_build_slp_tree): Likewise vect_model_load_cost.
7204
7205 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7206
7207         * hooks.h (hook_bool_mode_uhwi_false): Declare.
7208         * hooks.c (hook_bool_mode_uhwi_false): New function.
7209         * target.def (array_mode_supported_p): New hook.
7210         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7211         * doc/tm.texi: Regenerate.
7212         * stor-layout.c (mode_for_array): New function.
7213         (layout_type): Use it.
7214         * config/arm/arm.c (arm_array_mode_supported_p): New function.
7215         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7216
7217 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
7218
7219         PR target/48723
7220         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7221         for -fstack-check if the size to allocate is negative.
7222
7223 2011-05-02  Lawrence Crowl  <crowl@google.com>
7224
7225         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7226         (timevar_cond_start): New for starting a timer only when it is not
7227         already running.
7228         (timevar_cond_stop): New for stopping a timer when it was not already
7229         running.
7230
7231         * timevar.c (timevar_stop): Enable start/stop timers to start again.
7232         (timevar_cond_start): New as above.
7233         (timevar_cond_stop): New as above.
7234
7235         * timevar.def: Add start/stop timers for compiler phases,
7236         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7237         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7238         and TV_PHASE_FINALIZE.
7239         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7240         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7241         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7242         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7243         Make unused TV_OVERLOAD into a start/stop timer.
7244
7245         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7246         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7247         to indicate that they are start/stop timers.
7248
7249         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7250         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7251         Move initialization to do_compile.
7252         (do_compile): Add initialization from above.
7253         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7254
7255         * c-decl.c (c_write_global_declarations): Add start/stop of
7256         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7257
7258         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7259         or TV_PARSE_INLINE, as appropriate.
7260         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7261         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7262
7263 2011-05-02  Jason Merrill  <jason@redhat.com>
7264
7265         PR c++/40975
7266         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7267
7268 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
7269
7270         PR c/35445
7271         * c-decl.c (finish_decl): Only create a composite if the types are
7272         compatible.
7273
7274 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
7275
7276         * config/fr30/fr30-protos.h (Mmode): Don't define.
7277         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
7278         definition where used.
7279         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7280         define.  Expand definitions where used.
7281         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7282         Expand definitions where used.
7283         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7284         rx_function_arg, rx_function_arg_advance,
7285         rx_function_arg_boundary): Expand definitions of those macros.
7286         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
7287         definition where used.
7288
7289 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7290
7291         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7292         reg<->xmm moves.
7293         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7294         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
7295         with *movv2sf_internal_rex64_avx.
7296         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7297         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7298         Use %v prefix in insn mnemonic to handle TARGET_AVX.
7299         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
7300         "vex" in "prefix" attribute calculation.
7301         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
7302
7303 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
7304
7305         PR target/47951
7306         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7307         inputs match the output.
7308
7309 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
7310
7311         PR target/47955
7312         * config/m68k/m68k.c (m68k_expand_prologue): Set
7313         current_function_static_stack_size.
7314
7315 2011-05-02   Jan Hubicka  <jh@suse.cz>
7316
7317         * lto-streamer.c (lto_streamer_cache_insert_1,
7318         lto_streamer_cache_lookup, lto_streamer_cache_create,
7319         lto_streamer_cache_delete): Use pointer map instead of hashtable.
7320         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7321
7322 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
7323
7324         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7325         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7326         config/m68k/t-opts: New files.
7327         * config/m68k/m68k-tables.opt: New file (generated).
7328         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7329         extra_options and m68k/t-opts to tmake_file.
7330         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7331         (all_isas): Initialize using m68k-isas.def.
7332         (all_microarchs): Initialize using m68k-microarchs.def.
7333         (m68k_find_selection): Remove.
7334         (m68k_handle_option): Don't assert that global structures are in
7335         use.  Use error_at.  Access variables via opts pointer.  Don't
7336         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
7337         directly for -m68020-40 and -m68020-60.
7338         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7339         m68k_tune_entry here.
7340         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7341         to m68k-opts.h.
7342         (m68k_library_id_string): Remove declaration.
7343         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7344         (m68k_library_id_string): New Variable.
7345         (march=, mcpu=, mtune=): Use Enum and Var.
7346
7347 2011-05-02  Richard Guenther  <rguenther@suse.de>
7348
7349         * varasm.c (output_constructor_regular_field): Compute zero-based
7350         index with double-ints.  Make sure to ICE instead of producing
7351         wrong code.
7352         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7353         in asserts.  Properly use a signed type.
7354
7355 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7356
7357         * config/i386/sse.md (V): New mode iterator.
7358         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
7359         TARGET_SSE2.
7360         (V_256): Rename from AVX256MODE.
7361         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
7362         condition to all users.
7363         (VF1): Ditto.
7364         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
7365         condition to all users.
7366         (VF_128): Make V4SF mode unconditional.
7367         (VF_256): Rename from AVX256MODEF2P.
7368         (VI4F_128): Rename from SSEMODE4S.
7369         (VI8F_128): Rename from SSEMODE2D.
7370         (VI4F_256): Rename from AVX256MODE8P.
7371         (VI8F_256): Rename from AVX256MODE4P.
7372         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7373         (ssescalarmodesuffix): Remove SF and DF modes.
7374         (SSEMODE124): Remove.
7375         (SSEMODE1248): Ditto.
7376         (SSEMODEF2P): Ditto.
7377         (AVXMODEF2P): Ditto.
7378         (AVXMODEFDP): Ditto.
7379         (AVXMODEFSP): Ditto.
7380         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7381         unconditional.
7382         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
7383         unconditional.
7384         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7385         xop_pcmov_<mode>256.  Use V mode iterator.
7386
7387         Adjust RTX patterns globally for renamed mode attributes.
7388
7389 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7390
7391         * haifa-sched.c (sched_emit_insn): Emit insn before first
7392         non-scheduled insn.  Inform back-end about new insn.  Add
7393         new insn to scheduled_insns list.
7394
7395 2011-05-02  Richard Guenther  <rguenther@suse.de>
7396
7397         PR tree-optimization/48822
7398         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7399         (process_scc): Indicate which iteration we start.
7400
7401 2011-05-02  Jan Hubicka  <jh@suse.cz>
7402
7403         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7404         (lto_section_overrun): New.
7405         * lto-section-out.c (append_block): Rename to ...
7406         (lto_append_block): ... this one; export.
7407         (lto_output_1_stream): Move lto lto-streamer.h
7408         (lto_output_data_stream): Update.
7409         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7410         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7411         functions.
7412
7413 2011-05-02  Richard Guenther  <rguenther@suse.de>
7414
7415         * tree.c (tree_code_counts): New global array.
7416         (record_node_allocation_statistics): Count individual tree codes.
7417         (dump_tree_statistics): Dump individual code stats.
7418
7419 2011-05-01  Jan Hubicka  <jh@suse.cz>
7420
7421         * ipa-inline.c (caller_growth_limits): Fix thinko when
7422         looking for largest stack frame.
7423         * ipa-inline.h (dump_inline_summary): Declare.
7424         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7425         on stack usage.
7426         (dump_inline_summary): Export.
7427         (debug_inline_summary): Declare as DEBUG_FUNCTION.
7428
7429 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
7430
7431         * reginfo.c (memory_move_cost): Change rclass argument type form
7432         'enum reg_class' to reg_class_t.
7433         * reload.h (memory_move_cost): Update prototype.
7434         * postreload.c reload_cse_simplify_set): Change type dclass var to
7435         reg_class_t.
7436         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7437         Update prototype.
7438         (ira_allocate_and_set_costs): Change aclass argument type form
7439         'enum reg_class' to reg_class_t.
7440         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7441         Change aclass argument type to reg_class_t.
7442         (update_conflict_hard_reg_costs): Change type aclass and pref vars
7443         to reg_class_t.
7444         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7445         memory_move_cost call.
7446
7447         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7448         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7449         Change type tmp var to reg_class_t.
7450
7451 2011-04-30  Jan Hubicka  <jh@suse.cz>
7452
7453         * ipa-inline.c (can_inline_edge_p): Disregard limits when
7454         inlining into function with flatten attribute.
7455         (want_inline_small_function_p): Be more realistic about inlining
7456         cold calls where callee size grows.
7457
7458 2011-04-30  Jan Hubicka  <jh@suse.cz>
7459
7460         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7461         flags.
7462
7463 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
7464
7465         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7466         PRINT_OPERAND_PUNCT_VALID_P): Remove.
7467         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7468         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7469         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7470         (print_operand): Rename to...
7471         (sparc_print_operand): ...this. Make static. Adjust
7472         sparc_print_operand function call.
7473         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7474         functions.
7475
7476 2011-04-30  Jan Hubicka  <jh@suse.cz>
7477
7478         PR middle-end/48752
7479         * ipa-inline.c (early_inliner): Disable when doing late
7480         addition of function.
7481
7482 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
7483
7484         * dwarf2out.c (get_address_mode): New inline.
7485         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7486         if not dwarf_strict emit
7487         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7488         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7489         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
7490         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7491         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7492         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7493         mem_loc_descriptor callers.
7494         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7495         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7496         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7497         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7498         (base_types): New variable.
7499         (get_base_type_offset, calc_base_type_die_sizes,
7500         base_type_for_mode, mark_base_types, base_type_cmp,
7501         move_marked_base_types): New functions.
7502         (calc_die_sizes): Assert that die_offset is 0 or equal to
7503         next_die_offset.
7504         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7505         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
7506         callers.  If not dwarf_strict, call mem_loc_descriptor even for
7507         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7508         (gen_subprogram_die): Don't give up on call site parameters
7509         with non-integral or large integral modes.  Adjust
7510         mem_loc_descriptor callers.
7511         (prune_unused_types): Call prune_unused_types_mark on base_types
7512         vector entries.
7513         (resolve_addr): Call mark_base_types.
7514         (dwarf2out_finish): Call move_marked_base_types.
7515
7516         PR tree-optimization/48809
7517         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7518         type.
7519         (gen_inbound_check): Don't compute index_expr - range_min in utype
7520         again, instead reuse SSA_NAME initialized in build_arrays.
7521         Remove two useless gsi_for_stmt calls.
7522
7523 2011-04-29  Jeff Law  <law@redhat.com>
7524
7525         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7526
7527 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7528
7529         * cgraph.h (cgraph_postorder): Remove declaration.
7530         * ipa-utils.h (ipa_free_postorder_info): Declare.
7531         (ipa_reverse_postorder): Likewise.
7532         * cgraphunit.c: Include ipa-utils.h.
7533         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7534         * ipa-inline.c: Include ipa-utils.h.
7535         (ipa_inline): Update call to ipa_reverse_postorder.
7536         * ipa-pure-const.c (propagate_pure_const): Update call to
7537         ipa_reduced_postorder and ipa_print_order.  Call
7538         ipa_free_postorder_info to clean up.
7539         (propagate_nothrow): Likewise.
7540         * ipa-reference.c (propagate): Removed a useless call to
7541         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7542         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
7543         * ipa.c: Include ipa-utils.h.
7544         (ipa_profile): Update call to ipa_reverse_postorder.
7545         (cgraph_postorder): Moved to...
7546         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7547         (ipa_utils_print_order): Renamed to ipa_print_order.
7548         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7549         comments.
7550         (ipa_free_postorder_info): New function.
7551         * passes.c: Include ipa-utils.h.
7552         (do_per_function_toporder): Update call to ipa_reverse_postorder.
7553         (ipa_write_summaries): Likewise.
7554         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7555         (cgraphunit.o): Likewise.
7556         (ipa.o): Likewise.
7557         (ipa-inline.o): Likewise.
7558
7559 2011-04-29  Jan Hubicka  <jh@suse.cz>
7560
7561         * gcc.dg/tree-ssa/inline-10.c: New testcase.
7562         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7563         * ipa-inline.h (clause_t): Turn into unsigned int.
7564         * ipa-inline-analysis.c (add_clause): Do more simplification.
7565         (and_predicates): Shortcut more cases.
7566         (predicates_equal_p): Move forward; check that clauses are properly
7567         ordered.
7568         (or_predicates): Shortcut more cases.
7569         (edge_execution_predicate): Rewrite as...
7570         (set_cond_stmt_execution_predicate): ... this function; handle
7571         __builtin_constant_p.
7572         (set_switch_stmt_execution_predicate): New .
7573         (compute_bb_predicates): New.
7574         (will_be_nonconstant_predicate): Update TODO.
7575         (estimate_function_body_sizes): Use compute_bb_predicates
7576         and free them later, always try to estimate if stmt is constant.
7577         (estimate_time_after_inlining, estimate_size_after_inlining):
7578         Gracefully handle optimized out edges.
7579         (read_predicate): Fix off by one error.
7580
7581 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7582
7583         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7584
7585 2011-04-27  Xinliang David Li  <davidxl@google.com>
7586
7587         * tree-profile.c (init_ic_make_global_vars): Set
7588         tls attribute on ic vars.
7589         * coverage.c (coverage_end_function): Initialize
7590         function_list with zero.
7591
7592 2011-04-29  Richard Guenther  <rguenther@suse.de>
7593
7594         * builtins.c (fold_builtin_classify_type): Use integer_type_node
7595         for the type of the result.
7596         (fold_builtin_isascii): Likewise.
7597         (fold_builtin_toascii): Use integer_type_node where appropriate.
7598         (fold_builtin_logb): Likewise.
7599         (fold_builtin_frexp): Likewise.
7600         (fold_builtin_strstr): Likewise.
7601         (fold_builtin_strpbrk): Likewise.
7602         (fold_builtin_fputs): Likewise.
7603         (fold_builtin_sprintf): Likewise.
7604         (fold_builtin_snprintf): Likewise.
7605         (fold_builtin_printf): Likewise.
7606         (do_mpfr_remquo): Use a proper type for the assigned constant.
7607         (do_mpfr_lgamma_r): Likewise.
7608         * dwarf2out.c (resolve_one_addr): Use size_int.
7609         * except.c (init_eh): Likewise.
7610         (assign_filter_values): Use integer_type_node for filter values.
7611         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7612         indices.
7613         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7614         for EH region numbers.
7615         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7616         for the shift amount.
7617
7618 2011-04-29  Richard Guenther  <rguenther@suse.de>
7619
7620         * expr.h (expand_shift): Rename to ...
7621         (expand_variable_shift): ... this.
7622         (expand_shift): Take a constant shift amount.
7623         * expmed.c (expand_shift): Rename to ...
7624         (expand_variable_shift): ... this.
7625         (expand_shift): New wrapper around expand_variable_shift.
7626         * expr.c (convert_move, emit_group_load_1, emit_group_store,
7627         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7628         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7629         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7630         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7631         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7632         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7633         emit_store_flag_1, emit_store_flag): Likewise.
7634         * builtins.c (expand_builtin_signbit): Likewise.
7635         * calls.c (load_register_parameters): Likewise.
7636         * function.c (assign_parm_setup_block): Likewise.
7637         * lower-subreg.c (resolve_shift_zext): Likewise.
7638         * optabs.c (widen_bswap, expand_abs_nojump,
7639         expand_one_cmpl_abs_nojump, expand_float): Likewise.
7640         * spu/spu.c (spu_expand_extv): Likewise.
7641         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7642
7643 2011-04-29  Richard Guenther  <rguenther@suse.de>
7644
7645         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7646         for the remapped region number.
7647         * predict.c (build_predict_expr): Use integer_type_node for the
7648         predict kind.
7649         * fold-const.c (fold_binary_loc): Use integer_type_node for
7650         the shift amount.  Use a proper type for the PLUS_EXPR operand.
7651
7652 2011-04-29  Michael Matz  <matz@suse.de>
7653
7654         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7655         other trees that just builtins.
7656         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7657
7658 2011-04-29  Richard Guenther  <rguenther@suse.de>
7659
7660         * tree-nested.c (get_trampoline_type): Use size_int.
7661         (get_nl_goto_field): Likewise.
7662         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7663         for all indexes.
7664         (lower_eh_constructs_2): Likewise.
7665         (lower_resx): Likewise.
7666         (lower_eh_dispatch): Likewise.
7667         * tree-mudflap.c (mf_build_string): Use size_int.
7668         (mudflap_register_call): Use integer_type_node for the flag.
7669         (mudflap_enqueue_constant): Use size_int.
7670         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7671         instead of rebuilding it.
7672
7673 2011-04-29  Richard Guenther  <rguenther@suse.de>
7674
7675         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7676         Handle OBJ_TYPE_REF.
7677         (find_func_aliases_for_call): Use it more consistently.
7678
7679 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
7680
7681         * haifa-sched.c (last_nondebug_scheduled_insn): New.
7682         (rank_for_schedule): Use it.
7683         (schedule_block): Set it.
7684
7685 2011-04-28  David Li  <davidxl@google.com>
7686
7687         * tree.c (crc32_string): Use crc32_byte.
7688         (crc32_byte): New function.
7689         * tree.h (crc32_byte): New function.
7690         * gcov.c (read_graph_file): Handle new cfg_cksum.
7691         (read_count_file): Ditto.
7692         * profile.c (instrument_values): Ditto.
7693         (get_exec_counts): Ditto.
7694         (read_profile_edge_counts): Ditto.
7695         (compute_branch_probabilities): Ditto.
7696         (compute_value_histograms): Ditto.
7697         (branch_prob): Ditto.
7698         (end_branch_prob): Ditto.
7699         * coverage.c (read_counts_file): Ditto.
7700         (get_coverage_counts): Ditto.
7701         (tree_coverage_counter_addr): Ditto.
7702         (coverage_checksum_string): Ditto.
7703         (coverage_begin_output): Ditto.
7704         (coverage_end_function): Ditto.
7705         (build_fn_info_type): Ditto.
7706         (build_fn_info_value): Ditto.
7707         * libgcov.c (gcov_exit): Ditto.
7708         * gcov-dump.c (tag_function): Ditto.
7709         (compute_checksum): Remove.
7710
7711 2011-04-29  Alan Modra  <amodra@gmail.com>
7712
7713         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7714         unspec plus offset.  Tidy macho code.
7715
7716 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7717
7718         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7719         node instead of a decl.  Update all callers.
7720         * cgraph.h: Update declaration.
7721
7722 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
7723
7724         PR tree-optimization/48765
7725         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7726         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7727         to indicate if loop aware SLP is being used.  Scan the statements
7728         and update the vectorization factor according to the type of
7729         vectorization before statement analysis.
7730         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7731         pass it to vect_analyze_loop_operations.
7732         (vectorizable_reduction): Set number of copies to 1 in case of pure
7733         SLP statement.
7734         * tree-vect-stmts.c (vectorizable_conversion,
7735         vectorizable_assignment, vectorizable_shift,
7736         vectorizable_operation, vectorizable_type_demotion,
7737         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7738         Likewise.
7739         (vectorizable_condition): Move the check that it is not SLP
7740         vectorization before the number of copies check.
7741         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7742         to vectorize the loop using SLP.
7743
7744 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
7745
7746         PR middle-end/48597
7747         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7748         inline asm.
7749
7750 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
7751
7752         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7753         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7754         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7755         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7756         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7757         linux*.h headers.
7758         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7759         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7760         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7761         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7762         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7763         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7764         REG_NAME.
7765         * config/i386/linux.h (REG_NAME): Don't define.
7766         * config/i386/linux64.h (REG_NAME): Don't define.
7767         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7768         Undefine before defining.
7769
7770 2011-04-28  Jan Hubicka  <jh@suse.cz>
7771
7772         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7773         nonconstant_names array.
7774         (estimate_function_body_sizes): Build nonconstant_names array; handle
7775         BUILT_IN_CONSTANT_P.
7776
7777 2011-04-28  Richard Guenther  <rguenther@suse.de>
7778
7779         PR bootstrap/48804
7780         Revert
7781         2011-04-28  Richard Guenther  <rguenther@suse.de>
7782
7783         * tree-ssa-structalias.c (solve_constraints): Build succ graph
7784         as late as possible.
7785
7786 2011-04-28  Richard Guenther  <rguenther@suse.de>
7787
7788         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7789         (debug_constraint): Do it here.
7790         (dump_constraints): And here.
7791         (rewrite_constraints): And here.
7792         (dump_constraint_edge): Remove.
7793         (dump_constraint_graph): Rewrite to produce DOT output.
7794         (solve_constraints): Build succ graph as late as possible.
7795         Dump constraint graphs before and after solving.
7796
7797 2011-04-28  Richard Guenther  <rguenther@suse.de>
7798
7799         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7800         New function split out from ...
7801         (find_func_aliases): ... here.  Call it.
7802         (find_func_aliases_for_call): Likewise.
7803
7804 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7805
7806         * internal-fn.h (internal_fn_name_array): Declare.
7807         (internal_fn_flags_array): Likewise.
7808
7809 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7810
7811         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
7812         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7813         Move from sse.md.
7814         (ssemodefsuffix): Remove.
7815         (ssevecmodesuffix): New mode attribute.
7816         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7817         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7818         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7819         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7820         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7821         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7822         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7823         ssemodesuffix mode attribute.
7824         (float splitters): Use ssevecmodesuffix mode attribute.
7825         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7826         (sseinsmode): Rename from avxvecmode.
7827         (avxsizesuffix): Rename from avxmodesuffix.
7828         (sseintvecmode): Rename from avxpermvecmode.
7829         (ssedoublevecmode): Rename from ssedoublesizemode.
7830         (ssehalfvecmode): Rename from avxhalfvecmode.
7831         (ssescalarmode): Rename from avxscalarmode.
7832         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7833         templates for ssemodesuffix mode attribute.
7834         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7835         mode attribute.
7836
7837         Adjust RTX patterns globally for renamed mode attributes.
7838
7839 2011-04-27  Jan Hubcika  <jh@suse.cz>
7840
7841         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7842         * ipa-inline-analysis.c: Include alloc-pool.h.
7843         (edge_predicate_pool): New.
7844         (trye_predicate_p): New function
7845         (false_predicate_p): New function.
7846         (add_clause): Sanity check that false clauses are "optimized";
7847         never add clauses to predicate that is already known to be false.
7848         (and_predicate): Use flase_predicate_p.
7849         (evaulate_predicate): Rename to ...
7850         (evaluate_predicate): ... this one; update all callers; assert
7851         that false is not listed among possible truths.
7852         (dump_predicate): Use true_predicate_p.
7853         (account_size_time): Use false_predicate_p.
7854         (evaulate_conditions_for_edge): Rename to ...
7855         (evaluate_conditions_for_edge) ... this one.
7856         (edge_set_predicate): New function.
7857         (inline_edge_duplication_hook): Duplicate edge predicates.
7858         (inline_edge_removal_hook): Free edge predicates.
7859         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7860         (dump_inline_summary): Update.
7861         (estimate_function_body_sizes): Set edge predicates.
7862         (estimate_calls_size_and_time): Handle predicates.
7863         (estimate_callee_size_and_time): Update.
7864         (remap_predicate): Add toplev_predicate; update comment.
7865         (remap_edge_predicates): New function.
7866         (inline_merge_summary): Compute toplev predicate; update.
7867         (read_predicate): New function.
7868         (read_inline_edge_summary): Use it.
7869         (inline_read_section): Likewise.
7870         (write_predicate): New function.
7871         (write_inline_edge_summary): Use it.
7872         (inline_write_summary): Likewise.
7873         (inline_free_summary): Free alloc pool and edge summary vec.
7874
7875 2011-04-27  Richard Guenther  <rguenther@suse.de>
7876
7877         * tree-ssa-structalias.c (changed_count): Remove.
7878         (changed): Use a bitmap.
7879         (unify_nodes): Adjust.
7880         (do_sd_constraint): Likewise.
7881         (do_ds_constraint): Likewise.
7882         (do_complex_constraint): Likewise.
7883         (solve_graph): Likewise.
7884
7885 2011-04-27  Jan Hubicka  <jh@suse.cz>
7886
7887         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7888
7889 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7890
7891         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7892         (avx_vperm2f128_*_operand): Ditto.
7893         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7894         Use avx_vpermilp_parallel in insn condition.
7895         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7896         Use avx_vperm2f128_parallel in insn condition.
7897
7898 2011-04-27  Richard Guenther  <rguenther@suse.de>
7899
7900         * Makefile.in (tree-ssa-structalias.o): Remove
7901         gt-tree-ssa-structalias.h dependency.
7902         (GTFILES): Remove tree-ssa-structalias.c.
7903         * tree.c (allocate_decl_uid): New function.
7904         (make_node_stat): Use it.
7905         (copy_node_stat): Likewise.
7906         * tree.h (allocate_decl_uid): Declare.
7907         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7908         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7909         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7910         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7911         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7912         (struct heapvar_map): Likewise.
7913         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7914         heapvar_insert): Likewise.
7915         (make_heapvar_for): Rename to ...
7916         (make_heapvar): ... this.  Simplify.
7917         (fake_var_decl_obstack): New global var.
7918         (build_fake_var_decl): New function.
7919         (make_constraint_from_heapvar): Adjust.
7920         (handle_lhs_call): Likewise.
7921         (create_function_info_for): Likewise.
7922         (intra_create_variable_infos): Likewise.
7923         (init_alias_vars): Allocate fake_var_decl_obstack.
7924         (init_alias_heapvars, delete_alias_heapvars): Remove.
7925         (compute_points_to_sets): Do not call init_alias_heapvars.
7926         (ipa_pta_execute): Likewise.
7927         (delete_points_to_sets): Free fake_var_decl_obstack.
7928
7929 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7930
7931         * config/spu/divmovti4.c (union qword_UTItype): New data type.
7932         (si_from_UTItype, si_to_UTItype): New functions.
7933         (__udivmodti4): Use them to implement type-punning.
7934         * config/spu/multi3.c (union qword_TItype): New data type.
7935         (si_from_TItype, si_to_TItype): New functions.
7936         (__multi3): Use them to implement type-punning.
7937
7938 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7939
7940         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7941
7942 2011-04-27  Jan Hubicka  <jh@suse.cz>
7943
7944         * ipa-prop.c (function_insertion_hook_holder): New holder.
7945         (ipa_add_new_function): New function.
7946         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7947         Register/deregister holder.
7948
7949 2011-04-27  Richard Guenther  <rguenther@suse.de>
7950
7951         PR tree-optimization/48772
7952         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7953
7954 2011-04-27  Richard Guenther  <rguenther@suse.de>
7955
7956         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7957         TARGET_MEM_REF handling.
7958
7959 2011-04-27  Nick Clifton  <nickc@redhat.com>
7960
7961         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7962         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7963         (REG_CLASS_NAMES): Likewise.
7964         (REG_CLASS_CONTENTS): Likewise.
7965         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7966         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7967         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
7968         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
7969         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
7970         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7971         duplicate register classes.
7972         (frv_class_likely_spilled_p): Likewise.
7973         (frv_register_move_cost): Likewise.
7974
7975         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7976         end of the regno_reg_class array.
7977
7978 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
7979
7980         PR c/48742
7981         * c-typeck.c (build_binary_op): Don't wrap arguments if
7982         int_operands is true.
7983
7984 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
7985
7986         PR target/48767
7987         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7988         targetm.calls.must_pass_in_stack for void type.
7989
7990 2011-04-26  Jan Hubicka  <jh@suse.cz>
7991
7992         * cgraphbuild.c (build_cgraph_edges): Update call
7993         of cgraph_create_edge and cgraph_create_indirect_edge.
7994         * cgraph.c (cgraph_create_edge_including_clones,
7995         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7996         cgraph_update_edges_for_call_stmt_node): Do not take nest
7997         argument; do not initialize call_stmt_size/time.
7998         (dump_cgraph_node): Do not dump nest.
7999         (cgraph_clone_edge): Do not take loop_nest argument;
8000         do not propagate it; do not clone call_stmt_size/time.
8001         (cgraph_clone_node): Likewise.
8002         (cgraph_create_virtual_clone): Update.
8003         * cgraph.h (struct cgraph_edge): Remove
8004         call_stmt_size/call_stmt_time/loop_nest.
8005         (cgraph_create_edge, cgraph_create_indirect_edge,
8006         cgraph_create_edge_including_clones, cgraph_clone_node): Update
8007         prototype.
8008         * tree-emutls.c (gen_emutls_addr): Update.
8009         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8010         loop_nest; handle indirect calls, too.
8011         (clone_inlined_nodes): Do not care about updating inline summaries.
8012         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8013         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8014         stream call_stmt_size/call_stmt_time/loop_nest.
8015         * ipa-inline.c (edge_badness): Update.
8016         (ipa_inline): dump summaries after inlining.
8017         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
8018         New.
8019         (inline_edge_summary): New function.
8020         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8021         (inline_edge_removal_hook): Handle edge summaries.
8022         (inline_edge_duplication_hook): New hook.
8023         (inline_summary_alloc): Alloc hooks.
8024         (initialize_growth_caches): Do not register removal hooks.
8025         (free_growth_caches); Do not free removal hook.
8026         (dump_inline_edge_summary): New function.
8027         (dump_inline_summary): Use it.
8028         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8029         (inline_update_callee_summaries): New function.
8030         (inline_merge_summary): Use it.
8031         (do_estimate_edge_time, do_estimate_edge_growth): Update.
8032         (read_inline_edge_summary): New function.
8033         (inline_read_section): Use it.
8034         (write_inline_edge_summary): New function.
8035         (inline_write_summary): Use it.
8036         (inline_free_summary): Free edge new holders.
8037         * tree-inline.c (copy_bb): Update.
8038
8039 2011-04-26  Jason Merrill  <jason@redhat.com>
8040
8041         * tree-eh.c (lower_try_finally_switch): Create the label along with
8042         the CASE_LABEL_EXPR.
8043
8044 2011-04-26  David S. Miller  <davem@davemloft.net>
8045             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8046
8047         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8048         * configure: Regenerate.
8049
8050 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
8051
8052         PR target/48258
8053         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8054         reduction.
8055         (VEC_reduc): New code iterator and splitters for vector reduction.
8056         (VEC_reduc_name): Ditto.
8057         (VEC_reduc_rtx): Ditto.
8058         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8059         (reduc_<VEC_reduc_name>_v4sf): Ditto.
8060
8061         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8062         support for extracting SF on VSX.
8063
8064         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8065         generating xscvspdp.
8066         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8067         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8068         double add, minimum, maximum vector reduction.
8069         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8070         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8071         optimize double vector reduction.
8072         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8073
8074 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
8075
8076         * config/fr30/fr30.h (inhibit_libc): Don't define.
8077         * config/m32r/m32r-protos.h: Correct comment.
8078         * config/v850/v850.h (GHS_default_section_names,
8079         GHS_current_section_names): Use tree, not union tree_node *.
8080
8081 2011-04-26  Xinliang David Li  <davidxl@google.com>
8082
8083         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8084         * c-family/c-opts.c (c_common_handle_option): Set
8085         warn_maybe_uninitialized.
8086         * opts.c (common_handle_option): Ditto.
8087         * common.opt:  New option.
8088         * tree-ssa.c (warn_uninit): Add one more parameter.
8089         (warn_uninitialized_var): Pass warning code.
8090         * tree-flow.h: Interface change.
8091
8092 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8093
8094         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
8095         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8096         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8097
8098 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8099
8100         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8101         * config/mips/mips.opt (mmips-tfile): Remove.
8102
8103         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8104         mips-tdump reference to ...
8105         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
8106         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8107         reference by Tru64 UNIX.
8108
8109 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
8110
8111         PR debug/48768
8112         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8113         is error_mark_node, set value to NULL.
8114
8115         PR tree-optimization/48734
8116         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8117         if return value from maybe_fold_*_comparsions isn't something
8118         the code is prepared to handle.
8119
8120 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
8121
8122         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8123         mode check.
8124         (ext_QIreg_nomode_operands): Remove.
8125         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8126         (*andsi_1): Ditto.
8127         (*andhi_1): Ditto.
8128
8129 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
8130
8131         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8132
8133 2011-04-26  Richard Guenther  <rguenther@suse.de>
8134
8135         * c-typeck.c (build_unary_op): Do not expand array-refs via
8136         pointer arithmetic.  Only adjust qualifiers for function types.
8137
8138 2011-04-26  Richard Guenther  <rguenther@suse.de>
8139
8140         PR middle-end/48694
8141         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8142         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
8143         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
8144         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
8145
8146 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
8147
8148         * doc/extend.texi: Document __underlying_type.
8149
8150 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
8151
8152         * config/rs6000/titan.md (automata_option "progress"): Remove.
8153
8154 2011-04-25  Jeff Law  <law@redhat.com>
8155
8156         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8157
8158 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8159
8160         * system.h (ENUM_BITFIELD): Remove.
8161
8162 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
8163             Eric Botcazou  <ebotcazou@adacore.com>
8164
8165         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8166         for STORE_FLAG_VALUE==-1 case.
8167
8168 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
8169
8170         PR target/43804
8171         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8172         LEGITIMATE_PIC_OPERAND_P.
8173
8174 2011-04-24  Jan Hubicka  <jh@suse.cz>
8175
8176         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8177         WPA hack.
8178         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8179         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8180         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
8181         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8182         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8183         Sanity check predicate length.
8184         (remap_predicate): Likewise; sanity check jump functions.
8185         (inline_read_section, inline_write_summary): Sanity check
8186         predicate length.
8187
8188 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
8189
8190         PR other/48748
8191         * doc/extend.texi (Type Traits): Document __is_standard_layout,
8192         __is_literal_type, and __is_trivial; update throughout about
8193         possibly cv-qualified void types.
8194
8195 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
8196
8197         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8198         testsuite and make it version agnostic.
8199
8200 2011-04-22  Jan Hubicka  <jh@suse.cz>
8201
8202         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8203
8204 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
8205
8206         PR c/48685
8207         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8208         to VOID_TYPE even around MODIFY_EXPR.
8209
8210 2011-04-22  Mike Stump  <mikestump@comcast.net>
8211
8212         * gensupport.c (read_md_rtx): Fix typo in comment.
8213         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8214         comment.
8215
8216 2011-04-22  Jan Hubicka  <jh@suse.cz>
8217
8218         * gengtype.c (open_base_files): Add ipa-inline.h include.
8219         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8220         ipa-prop.c; update all uses.
8221         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
8222         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8223         merge summary of inlined function into former caller.
8224         * ipa-inline.c (max_benefit): Remove.
8225         (edge_badness): Compensate for removal of benefits.
8226         (update_caller_keys): Use
8227         reset_node_growth_cache/reset_edge_growth_cache.
8228         (update_callee_keys): Likewise.
8229         (update_all_callee_keys): Likewise.
8230         (inline_small_functions): Do not collect max_benefit; do not reset
8231         estimated_growth; call free_growth_caches and initialize_growth_caches.
8232         * ipa-inline.h (struct condition, type clause_t, struct predicate,
8233         struct size_time_entry): New structures.
8234         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
8235         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8236         and estimated_growth.
8237         (edge_growth_cache_entry): New structure.
8238         (node_growth_cache, edge_growth_cache): New global vars.
8239         (estimate_growth): Turn into inline.
8240         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8241         initialize_growth_caches, free_growth_caches): Declare.
8242         (estimate_edge_growth): Rewrite.
8243         (estimate_edge_time): Implement as inline cache lookup.
8244         (reset_node_growth_cache, reset_edge_growth_cache): New inline
8245         functions.
8246         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8247         (NUM_CONDITIONS): New constant.
8248         (predicate_conditions): New enum.
8249         (IS_NOT_CONSTANT): New constant.
8250         (edge_removal_hook_holder): New var.
8251         (node_growth_cache, edge_growth_cache): New global vars.
8252         (true_predicate, single_cond_predicate, false_predicate,
8253         not_inlined_predicate, add_condition, add_clause, and_predicates,
8254         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8255         dump_clause, dump_predicate, account_size_time,
8256         evaulate_conditions_for_edge): New functions.
8257         (inline_summary_alloc): Move to heap.
8258         (inline_node_removal_hook): Clear condition and entry vectors.
8259         (inline_edge_removal_hook): New function.
8260         (initialize_growth_caches, free_growth_caches): New function.
8261         (dump_inline_summary): Update.
8262         (edge_execution_predicate): New function.
8263         (will_be_nonconstant_predicate): New function.
8264         (estimate_function_body_sizes): Compute BB and constantness predicates.
8265         (compute_inline_parameters): Do not clear estimated_growth.
8266         (estimate_edge_size_and_time): New function.
8267         (estimate_calls_size_and_time): New function.
8268         (estimate_callee_size_and_time): New function.
8269         (remap_predicate): New function.
8270         (inline_merge_summary): New function.
8271         (do_estimate_edge_time): New function based on...
8272         (estimate_edge_time): ... this one.
8273         (do_estimate_edge_growth): New function.
8274         (do_estimate_growth): New function based on....
8275         (estimate_growth): ... this one.
8276         (inline_analyze_function): Analyze after deciding on jump functions.
8277         (inline_read_section): New function.
8278         (inline_read_summary): Use it.
8279         (inline_write_summary): Write all the new data.
8280         * ipa-prop.c (ipa_get_param_decl_index): Export.
8281         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8282         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8283         Declare.
8284         (ipa_get_lattice): Move here from ipa-cp.c
8285         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8286         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8287         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8288         cgraph_edge_inlinable_p): Remove.
8289         * cgraphunit.c: Include ipainline.h
8290         (cgraph_process_new_functions): Update call of
8291         compute_inline_parameters.
8292
8293 2011-04-22  Richard Guenther  <rguenther@suse.de>
8294
8295         * tree.c (build_int_cst): Properly create canonicalized integer
8296         constants.
8297         (build_int_cst_type): Remove scary comments.
8298
8299 2011-04-22  Xinliang David Li  <davidxl@google.com>
8300
8301         * toplev.c (process_options): Enable -Werror=coverage-mismatch
8302         by default when -Wno-error is not specified.
8303         * opts-global.c (decode_options): Remove call to
8304         control_warning_options.
8305
8306 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
8307
8308         PR tree-optimization/48717
8309         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8310         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8311
8312 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
8313
8314         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
8315         definition where used.
8316
8317 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
8318
8319         PR c/48716
8320         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8321         TREE_STATIC variables declared inside of some OpenMP construct.
8322
8323 2011-04-22  Martin Jambor  <mjambor@suse.cz>
8324
8325         PR middle-end/48585
8326         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8327
8328 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
8329
8330         PR c/36750
8331         * c-typeck.c (pop_init_level): Do not warn about initializing
8332         with ` = {0}'.
8333
8334 2011-04-22  Alan Modra  <amodra@gmail.com>
8335
8336         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8337         when returning call_cookie.
8338         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8339         pointers, to functions with no more vector args than the current
8340         function, and some non-local calls for ABI_V4.
8341         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8342         sibcall_nonlocal_aix64): Combine to ..
8343         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
8344         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8345         (sibcall_value_nonlocal_aix<mode>): ..likewise.
8346         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8347         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
8348         operand.
8349         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8350         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8351         sibcall_value_symbolic_64): Delete.
8352
8353 2011-04-21  Xinliang David Li  <davidxl@google.com>
8354
8355         * cgraph.h: Remove pid.
8356         * cgraph.c: Remove pid.
8357         * value-prof.c (init_node_map): New function.
8358         (del_node_map): New function.
8359         (find_func_by_funcdef_no): New function.
8360         (gimple_ic_transform): Call new function.
8361         * cgraphunit.c (cgraph_finalize_function): Remove pid.
8362         * function.c (get_last_funcdef_no): New function.
8363         * function.h (get_last_funcdef_no): New function.
8364         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8365         to libgcov function.
8366         (tree-profiling): Call node map init and delete function.
8367
8368 2011-04-21  Ian Lance Taylor  <iant@google.com>
8369
8370         * godump.c (go_format_type): Use exported Go name for anonymous
8371         field name.
8372
8373 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8374
8375         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8376         Call builtin_function_type_list instead of builtin_function_type.
8377         (UNARY, BINARY, TRINARY, QUAD): Likewise.
8378
8379 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8380
8381         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8382         build_function_type_list instead of build_function_type.
8383         Delete variable `endlink'.
8384
8385 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8386
8387         * config/s390/s390.c (s390_init_builtins): Call
8388         build_function_type_list instead of build_function_type.
8389
8390 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8391
8392         * config/ia64/ia64.c (ia64_init_builtins): Call
8393         build_function_type_list instead of builtin_function_type.
8394
8395 2011-04-21  Easwaran Raman  <eraman@google.com>
8396
8397         * cfgexpand.c (stack_var): Remove OFFSET...
8398         (add_stack_var): ...and its reference here...
8399         (expand_stack_vars): ...and here.
8400         (stack_var_cmp): Sort by descending order of size.
8401         (partition_stack_vars): Change heuristic.
8402         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8403         (dump_stack_var_partition): Add newline after each partition.
8404
8405 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
8406             Jeff Law  <law@redhat.com>
8407
8408         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8409         * gengtype.c (matching_file_name_substitute): Likewise.
8410
8411 2011-04-21  Richard Guenther  <rguenther@suse.de>
8412
8413         PR lto/48703
8414         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8415
8416 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
8417
8418         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8419
8420 2011-04-21  Richard Guenther  <rguenther@suse.de>
8421
8422         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8423         file name.
8424
8425 2011-04-21  Richard Guenther  <rguenther@suse.de>
8426
8427         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8428         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8429         Use DECL_P, not SSA_VAR_P.
8430         (ptr_derefs_may_alias_p): Likewise.
8431         (ptr_deref_may_alias_ref_p_1): Likewise.
8432         (decl_refs_may_alias_p): Likewise.
8433         (refs_may_alias_p_1): Likewise.
8434         (ref_maybe_used_by_call_p_1): Likewise.
8435         (call_may_clobber_ref_p_1): Likewise.
8436         (indirect_ref_may_alias_decl_p): Assume indirect refrences
8437         are either MEM_REF or TARGET_MEM_REF.
8438         (indirect_refs_may_alias_p): Likewise.
8439         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8440         for MEM_EXPR of indirect calls.
8441
8442 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8443
8444         * vmsdbgout.c (write_srccorr): Compute file length from the string.
8445         (dst_file_info_struct): Remove flen field.
8446         (lookup_filename): Remove code that set flen field.
8447
8448 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8449
8450         * config/ia64/ia64.c (ia64_start_function): Add a guard.
8451
8452 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
8453
8454         PR target/48708
8455         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8456         vec_extract and vec_concat for non-SSE4_1 targets.
8457
8458 2011-04-21  Richard Guenther  <rguenther@suse.de>
8459
8460         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8461         return statements.
8462
8463 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8464
8465         * config/i386/cygming.h (union tree_node, TREE): Don't define or
8466         undefine.
8467         (FILE): Don't undefine.
8468
8469 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8470
8471         * config/alpha/alpha.c (struct machine_function): Use rtx, not
8472         struct rtx_def *.
8473         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8474         struct rtx_def *.
8475         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8476         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8477         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8478         rtx_def *.
8479         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
8480         definitions where used.
8481         * config/microblaze/microblaze.h (struct microblaze_args): Use
8482         rtx, not struct rtx_def *.
8483         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8484         rtx_def *.
8485         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8486         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8487         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8488         not struct rtx_def *.
8489         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8490         struct rtx_def *.
8491         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8492         rtx_def *.
8493         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8494
8495 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8496
8497         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8498         operand_equal_p to compare DR_BASE_ADDRESSes.
8499         (vect_check_interleaving): Likewise.
8500
8501 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8502
8503         PR target/46329
8504         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8505         for all Neon struct constants.
8506
8507 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8508
8509         * target.def (legitimate_constant_p): New hook.
8510         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8511         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8512         * doc/tm.texi: Regenerate.
8513         * hooks.h (hook_bool_mode_rtx_true): Declare.
8514         * hooks.c (hook_bool_mode_rtx_true): Define.
8515         * system.h (LEGITIMATE_CONSTANT_P): Poison.
8516         * calls.c (precompute_register_parameters): Replace uses of
8517         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8518         (emit_library_call_value_1): Likewise.
8519         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8520         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8521         * ira-costs.c (scan_one_insn): Likewise.
8522         * recog.c (general_operand, immediate_operand): Likewise.
8523         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8524         * reload1.c (init_eliminable_invariants): Likewise.
8525
8526         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8527         mode argument.
8528         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8529         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8530         argument.
8531         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8532         * config/alpha/predicates.md (input_operand): Update call to
8533         alpha_legitimate_constant_p.
8534
8535         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8536         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8537         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8538         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8539         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8540         (arm_legitimate_constant_p): New functions.
8541         (arm_cannot_force_const_mem): Make static.
8542
8543         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8544
8545         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8546         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8547         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8548         instead of bfin_legitimate_constant_p.
8549         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
8550         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8551
8552         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8553
8554         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8555
8556         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8557         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8558         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8559         (frv_legitimate_constant_p): Make static.  Add a mode argument.
8560
8561         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8562         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8563         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8564
8565         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8566         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8567         * config/i386/i386.c (legitimate_constant_p): Rename to...
8568         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
8569         argument.
8570         (ix86_cannot_force_const_mem): Update accordingly.
8571         (ix86_legitimate_address_p): Likewise.
8572         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8573         * config/i386/i386.md: Update commentary.
8574
8575         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8576         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8577         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8578         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
8579
8580         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8581
8582         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8583         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8584         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8585         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
8586
8587         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8588         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8589         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8590
8591         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8592         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8593         (m32r_legitimate_constant_p): New function.
8594
8595         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8596         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8597         LEGITIMATE_CONSTANT_P.
8598         (LEGITIMATE_CONSTANT_P): Delete.
8599         * config/m68k/m68k.c (m68k_expand_prologue): Call
8600         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8601         (m68k_legitimate_constant_p): New function.
8602         * config/m68k/m68k.md: Update comments.
8603
8604         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8605         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8606         (mcore_legitimate_constant_p): New function.
8607
8608         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8609         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8610         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8611         Add a mode argument.
8612         (mep_legitimate_address): Update accordingly.
8613         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8614
8615         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8616         Delete.
8617         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8618         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8619         static.  Check OP's mode for VOIDmode.
8620         (microblaze_legitimate_constant_p): New function.
8621         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8622
8623         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8624         * config/mips/mips.c (mips_legitimate_constant_p): New function.
8625         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8626         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8627         * config/mips/predicates.md: Update comments.
8628
8629         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8630         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8631         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8632         (mmix_legitimate_constant_p): Make static, return a bool, and take
8633         a mode argument.
8634         (mmix_print_operand_address): Update accordingly.
8635
8636         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8637         Delete.
8638         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8639         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8640         static.  Add a mode argument.
8641         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8642
8643         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8644
8645         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8646         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8647         (pa_legitimate_constant_p): New function.
8648
8649         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8650
8651         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8652         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8653         (pdp11_legitimate_constant_p): New function.
8654
8655         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8656         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8657         (rs6000_legitimate_constant_p): New function.
8658
8659         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8660         (rx_legitimate_constant_p): ...this.
8661         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8662         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8663         (rx_legitimate_constant_p): ...this.
8664         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8665         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8666
8667         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8668         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8669         * config/s390/s390.c (legitimate_constant_p): Rename to...
8670         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
8671         and add a mode argument.
8672         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8673
8674         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8675
8676         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8677         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8678         (sh_legitimate_constant_p): New function.
8679
8680         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8681         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8682         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8683         (legitimate_constant_p): Rename to...
8684         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
8685         argument.
8686         (constant_address_p): Update accordingly.
8687
8688         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8689         argument and return a bool.
8690         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8691         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8692         (spu_legitimate_constant_p): Add a mode argument and return a bool.
8693         (spu_rtx_costs): Update accordingly.
8694         * config/spu/predicates.md (vec_imm_operand): Likewise.
8695
8696         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8697
8698         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8699         * config/v850/v850.c (v850_legitimate_constant_p): New function.
8700         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8701
8702         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8703         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8704         * config/vax/vax.c (legitimate_constant_p): Likewise.
8705
8706         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8707         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8708         (xtensa_legitimate_constant_p): New function.
8709
8710 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8711
8712         * target.def (cannot_force_const_mem): Add a mode argument.
8713         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8714         * doc/tm.texi: Regenerate.
8715         * hooks.h (hook_bool_mode_rtx_false): Declare.
8716         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8717         (hook_bool_mode_const_rtx_true): Likewise.
8718         (hook_bool_mode_rtx_false): New function.
8719         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8720         to be non-VOID.  Update call to cannot_force_const_mem.
8721         (find_reloads): Update accordingly.
8722         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8723         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8724         argument.
8725         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8726         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8727         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8728         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8729         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8730         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8731         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8732         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8733         (m68k_cannot_force_const_mem): ...this new function.
8734         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8735         argument.
8736         (mips_const_insns, mips_legitimize_const_move): Update calls.
8737         (mips_secondary_reload_class): Likewise.
8738         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8739         (pa_cannot_force_const_mem): ...this new function.
8740         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8741         (rs6000_cannot_force_const_mem): ...this new function.
8742         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8743         argument.
8744         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8745         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8746         to...
8747         (xtensa_cannot_force_const_mem): ...this new function.
8748
8749 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8750
8751         * config/mips/mips.c (mips16_build_function_stub): Call
8752         build_function_type_list instead of build_function_type.
8753         (mips16_build_call_stub): Likewise.
8754
8755 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8756
8757         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8758         instead of build_function_type.
8759
8760 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8761
8762         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8763         instead of build_function_type.
8764
8765 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
8766
8767         PR target/48678
8768         * config/i386/i386.md (insv): Change operand 0 constraint to
8769         "register_operand".  Change operand 1 and 2 constraint to
8770         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
8771         * config/i386/sse.md (sse4_1_pinsrb): Export.
8772         (sse2_pinsrw): Ditto.
8773         (sse4_1_pinsrd): Ditto.
8774         (sse4_1_pinsrq): Ditto.
8775         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8776         * config/i386/i386.c (ix86_expand_pinsr): New.
8777
8778 2011-04-20  Easwaran Raman  <eraman@google.com>
8779
8780         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8781         containing union type only with -fstrict-aliasing.
8782
8783 2011-04-20  Jim Meyering  <meyering@redhat.com>
8784
8785         Remove useless if-before-free tests.
8786         * calls.c (expand_call, save_area): Likewise.
8787         * cfgcleanup.c (try_forward_edges): Likewise.
8788         * collect2.c (collect_execute): Likewise.
8789         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8790         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8791         * coverage.c (coverage_checksum_string): Likewise.
8792         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8793         * cselib.c (cselib_init): Likewise.
8794         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8795         (df_set_clean_cfg): Likewise.
8796         * function.c (free_after_compilation): Likewise.
8797         * gcc.c (do_spec_1, main): Likewise.
8798         * gcov.c (create_file_names): Likewise.
8799         * gensupport.c (identify_predicable_attribute): Likewise.
8800         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8801         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8802         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8803         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8804         * ipa-pure-const.c (local_pure_const): Likewise.
8805         * ipa-reference.c (propagate): Likewise.
8806         * ira-costs.c (free_ira_costs): Likewise.
8807         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8808         * matrix-reorg.c (mat_free): Likewise.
8809         * prefix.c (get_key_value): Likewise.
8810         * profile.c (compute_value_histograms): Likewise.
8811         * reload1.c (free_reg_equiv): Likewise.
8812         * sched-deps.c (free_deps): Likewise.
8813         * sel-sched-ir.c (fence_clear): Likewise.
8814         * sese.c (set_rename, if_region_set_false_region): Likewise.
8815         * tree-data-ref.c (free_rdg): Likewise.
8816         * tree-eh.c (lower_try_finally): Likewise.
8817         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8818         * tree-ssa-live.c (delete_var_map): Likewise.
8819         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8820         * tree-ssa-pre.c (phi_trans_add): Likewise.
8821
8822 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
8823
8824         PR tree-optimization/48611
8825         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8826         beyond ERT_MUST_NOT_THROW region.
8827
8828 2011-04-20  Catherine Moore  <clm@codesourcery.com>
8829
8830         * config/mips/mips.opt (mfix-24k): New.
8831         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8832         * config/mips/mips.md (length): Increase by 4 for stores if
8833         fixing 24K errata.
8834         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8835         all noreorder if fixing 24K errata.
8836         * doc/invoke.texi: Document mfix-24k.
8837
8838 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
8839
8840         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8841         quad-word modes, reduce to 9-bit index range when above 1016 limit.
8842
8843 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8844
8845         * config/arm/arm.c (arm_gen_constant): Move movw support ....
8846         (const_ok_for_op): ... to here.
8847
8848 2011-04-20  Kai Tietz  <ktietz@redhat.com>
8849
8850         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8851         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8852
8853 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8854
8855         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8856
8857 2011-04-20  Richard Guenther  <rguenther@suse.de>
8858
8859         PR tree-optimization/47892
8860         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8861         are if-convertible.
8862
8863 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8864
8865         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8866
8867 2011-04-20  Tristan Gingold  <gingold@adacore.com>
8868
8869         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8870
8871 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
8872
8873         PR target/18145
8874
8875         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8876         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8877         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8878         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8879         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8880
8881         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8882         New prototype.
8883
8884         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8885         (avr_asm_named_section, avr_asm_output_aligned_common,
8886         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8887         New functions to update...
8888         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8889         (avr_asm_init_sections): Overwrite section callbacks for
8890         data_section, bss_section.
8891         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8892         from here to...
8893         (avr_file_end): ...here.
8894
8895 2011-04-20  Richard Guenther  <rguenther@suse.de>
8896
8897         PR middle-end/48695
8898         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8899         objects and types here.  Adjust for their offset before comparing.
8900
8901 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8902
8903         * tree-vect-stmts.c (vectorizable_store): Only chain one related
8904         statement per copy.
8905
8906 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8907
8908         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8909         (GIMPLE_H): Include $(INTERNAL_FN_H).
8910         (OBJS-common): Add internal-fn.o.
8911         (internal-fn.o): New rule.
8912         * internal-fn.def: New file.
8913         * internal-fn.h: Likewise.
8914         * internal-fn.c: Likewise.
8915         * gimple.h: Include internal-fn.h.
8916         (GF_CALL_INTERNAL): New gf_mask.
8917         (gimple_statement_call): Put fntype into a union with a new
8918         internal_fn field.
8919         (gimple_build_call_internal): Declare.
8920         (gimple_build_call_internal_vec): Likewise.
8921         (gimple_call_same_target_p): Likewise.
8922         (gimple_call_internal_p): New function.
8923         (gimple_call_internal_fn): Likewise.
8924         (gimple_call_fntype): Return null for internal calls.
8925         (gimple_call_set_fntype): Assert that the function is not internal.
8926         (gimple_call_set_fn): Likewise.
8927         (gimple_call_set_fndecl): Likewise.
8928         (gimple_call_set_internal_fn): New function.
8929         (gimple_call_addr_fndecl): Handle null functions.
8930         (gimple_call_return_type): Likewise null types.
8931         * gimple.c (gimple_build_call_internal_1): New function.
8932         (gimple_build_call_internal): Likewise.
8933         (gimple_build_call_internal_vec): Likewise.
8934         (gimple_call_same_target_p): Likewise.
8935         (gimple_call_flags): Handle calls to internal functions.
8936         (gimple_call_fnspec): New function.
8937         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8938         (gimple_has_side_effects): Handle null functions.
8939         (gimple_rhs_has_side_effects): Likewise.
8940         (gimple_call_copy_skip_args): Handle calls to internal functions.
8941         * cfgexpand.c (expand_call_stmt): Likewise.
8942         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8943         * gimple-fold.c (gimple_fold_call): Handle null functions.
8944         (gimple_fold_stmt_to_constant_1): Don't fold
8945         calls to internal functions.
8946         * gimple-low.c (gimple_check_call_args): Handle calls to internal
8947         functions.
8948         * gimple-pretty-print.c (dump_gimple_call): Likewise.
8949         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8950         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8951         (do_warn_unused_result): Likewise.
8952         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8953         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8954         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8955         the target of a call.
8956         (initialize_hash_element): Update accordingly.
8957         (hashable_expr_equal_p): Use gimple_call_same_target_p.
8958         (iterative_hash_hashable_expr): Handle calls to internal functions.
8959         (print_expr_hash_elt): Likewise.
8960         * tree-ssa-pre.c (can_value_number_call): Likewise.
8961         (eliminate): Handle null functions.
8962         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8963         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8964         (find_func_aliases): Likewise.
8965         * value-prof.c (gimple_ic_transform): Likewise.
8966         (gimple_indirect_call_to_profile): Likewise.
8967         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8968         * lto-streamer-out.c (output_gimple_stmt): Likewise.
8969
8970 2011-04-19  Jan Hubicka  <jh@suse.cz>
8971
8972         * ipa-inline-transform.c (save_inline_function_body): Add comments.
8973         * ipa-inline.c (inline_small_functions): Compute summaries first,
8974         populate heap later.
8975
8976 2011-04-19  Jan Hubicka  <jh@suse.cz>
8977
8978         * cgraph.h (save_inline_function_body): Remove.
8979         * ipa-inline-transform.c: New file, broke out of...
8980         * ipa-inline.c: ... this one; Update toplevel comment.
8981         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8982         make global.
8983         (update_noncloned_frequencies): Move to ipa-inline-transform.c
8984         (cgraph_mark_inline_edge): Rename to inline_call; move to
8985         ipa-inline-transform.c.
8986         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8987         move to ipa-inline-transform.c
8988         (recursive_inlining, inline_small_functions, flatten_function,
8989         ipa_inline, inline_always_inline_functions,
8990         early_inline_small_functions): Update.
8991         (inline_transform): Move to ipa-inline-transform.c.
8992         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8993         Declare.
8994         * Makefile.in (ipa-inline-transform.o): New file.
8995         * cgraphunit.c (save_inline_function_body): Move to
8996         ipa-inline-transform.c
8997
8998 2011-04-19  DJ Delorie  <dj@redhat.com>
8999
9000         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9001         registers if we already know there aren't any.
9002         (m32c_emit_epilogue): Don't emit a barrier here.
9003         (m32c_emit_eh_epilogue): Likewise.
9004         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9005         operands at expand time.
9006         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9007         int" wchar type.
9008         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9009         duplicates.  Provide aliases instead.
9010         * config/m32c/prologue.md (eh_return): Emit a barrier here.
9011         (eh_epilogue): Add a "(return)" here as a hint to other parts of
9012         the compiler.
9013
9014 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
9015
9016         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9017         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9018         (general_or_i64_p, sparc_register_move_cost): New function.
9019
9020 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9021
9022         * doc/install.texi (Configuration, --enable-threads): Remove mach.
9023         Add lynx, mipssde.  Sort table.
9024
9025 2011-04-19  Xinliang David Li  <davidxl@google.com>
9026
9027         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9028         not negative.
9029
9030 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
9031
9032         PR target/48678
9033         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9034         is a SUBREG with non-MODE_INT mode inside of it.
9035
9036 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9037
9038         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9039         also according to actual contants.
9040         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9041         (gimple_fold_call): Use it.
9042         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9043
9044 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9045
9046         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9047         non-pointer assignments.
9048
9049 2011-04-19  Martin Jambor  <mjambor@suse.cz>
9050
9051         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9052         account anc_offset and otr_type from the indirect edge info.
9053         * ipa-prop.c (get_ancestor_addr_info): New function.
9054         (compute_complex_ancestor_jump_func): Assignment analysis moved to
9055         get_ancestor_addr_info, call it.
9056         (ipa_note_param_call): Do not initialize information about polymorphic
9057         calls, return the indirect call graph edge.  Remove the last
9058         parameter, adjust all callers.
9059         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9060         parameters.  Initialize polymorphic information in the indirect edge.
9061
9062 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9063
9064         PR lto/48148
9065         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9066         the types if they have different enumeration identifiers.
9067
9068 2011-04-19  Jan Hubicka  <jh@suse.cz>
9069
9070         * cgraph.h (cgraph_optimize_for_size_p): Declare.
9071         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9072         * predict.c (cgraph_optimize_for_size_p): Break out from ...
9073         (optimize_function_for_size_p) ... here.
9074
9075 2011-04-19  Richard Guenther  <rguenther@suse.de>
9076
9077         PR lto/48207
9078         * tree.c (free_lang_data): Do not reset the decl-assembler-name
9079         langhook.
9080
9081 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
9082
9083         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9084         if DECL_NO_INLINE_WARNING_P is set on the function.
9085
9086 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
9087
9088         PR fortran/47976
9089         * reload1.c (inc_for_reload): Return void. All callers changed.
9090         (emit_input_reload_insns): Don't try to delete previous output
9091         reloads to a register, or record spill_reg_store for autoincs.
9092
9093 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
9094
9095         * gengtype.h: Updated copyright year.
9096         (struct input_file_st): Add inpisplugin field.
9097         (type_fileloc): New function.
9098         * gengtype.c
9099         (write_typed_struct_alloc_def): Add gcc_assert.
9100         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9101         (write_typed_alloc_defns): Don't output for plugin files.
9102         (input_file_by_name): Clear inpisplugin field.
9103         (main): Set inpisplugin field for plugin files.
9104
9105 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
9106
9107         * gengtype-state.c (string_eq): New.
9108         (read_state): Use string_eq instead of strcmp when creating the
9109         state_ident_tab.
9110
9111 2011-04-19  Wei Guozhi  <carrot@google.com>
9112
9113         PR target/47855
9114         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9115         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9116         linkage.
9117         * config/arm/constraints.md (Uu): New constraint.
9118         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9119
9120 2011-04-19  Tristan Gingold  <gingold@adacore.com>
9121
9122         * config.gcc (-*-*-*vms): Added.
9123         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9124         definitions moved.
9125         * config/vms/vms-ld.c: New file.
9126         * config/vms/vms-ar.c: New file.
9127         * config/vms/t-vmsnative: New file.
9128
9129 2011-04-18  Xinliang David Li  <davidxl@google.com>
9130
9131         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9132
9133 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
9134
9135         PR middle-end/48661
9136         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9137         if TREE_TYPE (v) is non-NULL.
9138
9139         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9140         gimple_get_virt_mehtod_for_binfo.
9141         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9142         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9143         callers.
9144         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9145
9146 2011-04-18  Michael Matz  <matz@suse.de>
9147             Steve Ellcey  <sje@cup.hp.com>
9148
9149         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9150         use its mode as source mode if it isn't VOIDmode.
9151
9152 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
9153
9154         * doc/passes.texi: Fill crossref nodes.
9155
9156 2011-04-18  Jim Meyering  <meyering@redhat.com>
9157
9158         Fix doubled-word typos in comments and strings
9159         * config/alpha/vms-unwind.h: s/for for/for/
9160         * config/arm/unwind-arm.h: Likewise.
9161         * config/microblaze/microblaze.c: Likewise.
9162         * config/sh/constraints.md: s/in in/in/
9163         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9164
9165 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
9166
9167         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9168         (AVX_FLOAT_MODE_P): Ditto.
9169         (AVX128_VEC_FLOAT_MODE_P): Ditto.
9170         (AVX256_VEC_FLOAT_MODE_P): Ditto.
9171         (AVX_VEC_FLOAT_MODE_P): Ditto.
9172         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9173         (UNSPEC_MASKSTORE): Ditto.
9174         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9175         Merge from <sse>_movmsk<ssemodesuffix> and
9176         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
9177         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
9178         iterator.
9179         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9180         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9181         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9182
9183 2011-04-18  Jan Hubicka  <jh@suse.cz>
9184
9185         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9186
9187         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9188         (want_inline_function_called_once_p): Break out the logic from
9189         ipa_inline.
9190         (edge_badness): Ensure that profile is not misupdated.
9191         (lookup_recursive_calls): Prioritize by call frequencies.
9192         (inline_small_functions): Move program size estimates here;
9193         actually process whole queue even when unit growth has been
9194         met. (to properly compute inline_failed reasons and for the
9195         case unit size decrease.) Revisit comments on recursive inlining.
9196         (ipa_inline): Remove unit summary code; first inline hot calls
9197         of functions called once, cold calls next.
9198         (order, nnodes): Remove unused variables.
9199         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9200         (GTFILES): Remove ipa-inline.c
9201         * sel-sched.c (fill_insns): Silence uninitialized var warning.
9202
9203 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9204
9205         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9206
9207 2011-04-18  Jie Zhang  <jie@codesourcery.com>
9208             Richard Earnshaw  <rearnsha@arm.com>
9209
9210         * arm.c (neon_builtin_type_bits): Remove.
9211         (typedef enum neon_builtin_mode): New.
9212         (T_MAX): Don't define.
9213         (typedef enum neon_builtin_datum): Remove bits, codes[],
9214         num_vars and base_fcode.  Add mode, code and fcode.
9215         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9216         VAR10): Change accordingly.
9217         (neon_builtin_data[]): Change accordingly
9218         (arm_init_neon_builtins): Change accordingly.
9219         (neon_builtin_compare): Remove.
9220         (locate_neon_builtin_icode): Remove.
9221         (arm_expand_neon_builtin): Change accordingly.
9222
9223         * arm.h (enum arm_builtins): Move to ...
9224         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9225
9226         * arm.c (arm_builtin_decl): Declare.
9227         (TARGET_BUILTIN_DECL): Define.
9228         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9229         (arm_builtin_decls[]): New.
9230         (arm_init_neon_builtins): Store builtin declarations in
9231         arm_builtin_decls[].
9232         (arm_init_tls_builtins): Likewise.
9233         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
9234         (arm_builtin_decl): New.
9235
9236 2011-04-18  Richard Guenther  <rguenther@suse.de>
9237
9238         * tree.c (upper_bound_in_type): Build properly canonicalized
9239         INTEGER_CSTs.
9240         (lower_bound_in_type): Likewise.
9241
9242 2011-04-18  Richard Guenther  <rguenther@suse.de>
9243
9244         * gimple.h (gimple_call_addr_fndecl): New function.
9245         (gimple_call_fndecl): Use it.
9246         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9247         for direct calls.
9248         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9249         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9250
9251 2011-04-18  Richard Guenther  <rguenther@suse.de>
9252
9253         PR middle-end/48650
9254         * tree.c (build_string): STRING_CST is now derived from tree_typed.
9255
9256 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9257
9258         PR lto/48492
9259         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9260         DECL_IN_CONSTANT_POOL without RTL.
9261
9262 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
9263             Ira Rosen  <ira.rosen@linaro.org>
9264
9265         PR target/48252
9266         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9267         to match neon_vzip/vuzp/vtrn_internal.
9268         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9269         outputs explicitly dependent on both inputs.
9270         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9271
9272 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
9273
9274         PR tree-optimization/48616
9275         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9276         whether the shift is by scalar or vector based on whether all SLP
9277         scalar stmts have the same rhs.
9278
9279 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
9280
9281         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9282         memory operands.
9283
9284 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
9285
9286         PR target/43700
9287         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9288         registers.
9289
9290 2011-04-17  Jan Hubicka  <jh@suse.cz>
9291
9292         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9293         * cgrpahunit.c (cgraph_finalize_function): Do not set
9294         finalized_by_frontend.
9295         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9296         finalized_by_frontend.
9297
9298 2011-04-17  Jan Hubicka  <jh@suse.cz>
9299
9300         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9301         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9302         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9303         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9304         method.
9305         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9306         gimple-fold.c
9307         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9308
9309 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
9310
9311         PR lto/48538
9312         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9313         is non-null before accessing it.
9314         (input_cgraph): Remove trailing spaces.
9315
9316 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9317
9318         * params.def (sms-min-sc): New param flag.
9319         * modulo-sched.c (sms_schedule): Use it.
9320         * doc/invoke.texi (sms-min-sc): Document it.
9321
9322 2011-04-17  Jan Hubicka  <jh@suse.cz>
9323
9324         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9325         present, also set gimple_call_set_cannot_inline.
9326         * ipa-inline.c: Update toplevel comment.
9327         (MAX_TIME): Remove.
9328         (cgraph_clone_inlined_nodes): Fix linebreaks.
9329         (cgraph_check_inline_limits): Restructure to ...
9330         (caller_growth_limits): ... this one; be more tolerant
9331         on growth in nested inline chains; add explanatory comment;
9332         fix stack accounting thinko introduced by previous patch.
9333         (cgraph_default_inline_p): Remove.
9334         (report_inline_failed_reason): New function.
9335         (can_inline_edge_p): New function.
9336         (can_early_inline_edge_p): New function.
9337         (leaf_node_p): Move upwards in file.
9338         (want_early_inline_function_p): New function.
9339         (want_inline_small_function_p): New function.
9340         (want_inline_self_recursive_call_p): New function.
9341         (cgraph_edge_badness): Rename to ...
9342         (edge_badness) ... this one; fix linebreaks.
9343         (update_edge_key): Update call of edge_baddness; add
9344         detailed dump about queue updates.
9345         (update_caller_keys): Use can_inline_edge_p and
9346         want_inline_small_function_p.
9347         (cgraph_decide_recursive_inlining): Rename to...
9348         (recursive_inlining): Use can_inline_edge_p and
9349         want_inline_self_recursive_call_p; simplify and remove no longer
9350         valid FIXME.
9351         (cgraph_set_inline_failed): Remove.
9352         (add_new_edges_to_heap): Use can_inline_edge_p and
9353         want_inline_small_function_p.
9354         (cgraph_decide_inlining_of_small_functions): Rename to ...
9355         (inline_small_functions): ... this one; cleanup; use
9356         can/want predicates; cleanup debug ouput; work edges till fibheap
9357         is exhausted and do not stop once unit growth is reached; remove
9358         later loop processing remaining edges.
9359         (cgraph_flatten): Rename to ...
9360         (flatten_function): ... this one; use can_inline_edge_p
9361         and can_early_inline_edge_p predicates.
9362         (cgraph_decide_inlining): Rename to ...
9363         (ipa_inline): ... this one; remove unreachable nodes before
9364         inlining functions called once; simplify the pass.
9365         (cgraph_perform_always_inlining): Rename to ...
9366         (inline_always_inline_functions): ... this one; use
9367         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9368         (cgraph_decide_inlining_incrementally): Rename to ...
9369         (early_inline_small_functions): ... this one; simplify
9370         using new predicates; cleanup; make dumps prettier.
9371         (cgraph_early_inlining): Rename to ...
9372         (early_inliner): newer inline regular functions into always-inlines;
9373         fix updating of call stmt summaries.
9374         (pass_early_inline): Update for new names.
9375         (inline_transform): Fix formating.
9376         (gate_cgraph_decide_inlining): Rename to ...
9377         (pass_ipa_inline): ... this one.
9378         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9379         * ipa-inline-analysis.c (dump_inline_summary): Update.
9380         (compute_inline_parameters): Do not compute disregard_inline_limits;
9381         look for mismatching arguments.
9382         (estimate_growth): Fix handlig of non-trivial self recursion.
9383         (inline_read_summary): Do not read info->disregard_inline_limits.
9384         (inline_write_summary): Do not write info->disregard_inline_limits.
9385         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9386         and move all checks into can_inline_edge_p predicate; re-enable code
9387         comparing optimization levels.
9388         (expand_call_inline): Do not test inline_forbidden_into_p.
9389         * Makefile.in (ipa-inline.o): Update arguments.
9390
9391 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9392
9393         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9394
9395 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9396
9397         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9398
9399 2011-04-17  Michael Matz  <matz@suse.de>
9400
9401         PR tree-optimization/48622
9402         PR lto/48645
9403         * ipa-inline-analysis.c (inline_read_summary): Read size/time
9404         in same order as they're written.
9405
9406 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9407
9408         * config/pa/predicates.md: Reorganize and simplify predicates.
9409         Eliminate duplicate code checks.
9410         (arith_operand): Rename to arith14_operand
9411         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9412         * config/pa/pa.md: Use renamed operands.
9413         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9414         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9415         arith11_operand, adddi3_operand, indexed_memory_operand,
9416         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9417         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9418         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9419         move_dest_operand, move_src_operand, prefetch_cc_operand,
9420         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9421         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9422         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9423         div_operand, int5_operand, movb_comparison_operator,
9424         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9425         arith_double_operand, ireg_operand, lhs_lshift_operand,
9426         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9427         integer_store_memory_operand): Likewise.
9428         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9429         (integer_store_memory_operand, read_only_operand,
9430         function_label_operand, borx_reg_operand,
9431         non_hard_reg_operand): Likewise.
9432         (eq_neq_comparison_operator): Delete unused operator.
9433         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9434         function_label_operand.
9435         (emit_move_sequence): Likewise.
9436
9437 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9438
9439         * config/i386/sse.md (sseunpackmode): New mode attribute.
9440         (ssepackmode): Ditto.
9441         (vec_pack_trunc_<mode>): Macroize expander from
9442         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9443         (vec_unpacks_lo_<mode>): Macroize expander from
9444         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9445         (vec_unpacks_hi_<mode>): Macroize expander from
9446         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9447         (vec_unpacku_lo_<mode>): Macroize expander from
9448         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9449         (vec_unpacku_hi_<mode>): Macroize expander from
9450         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9451         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9452         ix86_expand_sse4_unpack.
9453         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9454
9455 2011-04-16  Jan Hubicka  <jh@suse.cz>
9456
9457         * cgraphbuild.c: Include ipa-inline.h.
9458         (reset_inline_failed): Use initialize_inline_failed.
9459         * cgraph.c: Include ipa-inline.h.
9460         (cgraph_create_node_1): Do not initialize estimated_growth.
9461         (initialize_inline_failed): More to ipa-inline-analysis.c
9462         (dump_cgraph_node): Do not dump inline flags.
9463         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9464         and disregard_inline_limits flags.
9465         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9466         time, size, estimated_growth.
9467         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9468         Update.
9469         * cgraphunit.c (cgraph_decide_is_function_needed): Use
9470         DECL_DISREGARD_INLINE_LIMITS.
9471         (cgraph_analyze_function): Do not initialize
9472         node->local.disregard_inline_limits.
9473         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9474         inlinable, versionable and disregard_inline_limits.
9475         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9476         cgraph_check_inline_limits, cgraph_default_inline_p,
9477         cgraph_edge_badness, update_caller_keys, update_callee_keys,
9478         add_new_edges_to_heap): Update.
9479         (cgraph_decide_inlining_of_small_function): Update; set
9480         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9481         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9482         cgraph_decide_inlining_incrementally): Update.
9483         * ipa-inline.h (inline_summary): Add inlinable, versionable,
9484         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9485         time, size and estimated_growth parameters.
9486         (estimate_edge_growth): Update.
9487         (initialize_inline_failed): Declare.
9488         * ipa-split.c: Include ipa-inline.h
9489         (execute_split_functions): Update.
9490         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9491         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9492         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9493         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9494         estimated_growth to INT_MIN.
9495         (inline_node_duplication_hook): Likewise.
9496         (dump_inline_summary): Dump new fields.
9497         (compute_inline_parameters): Update.
9498         (estimate_edge_time, estimate_time_after_inlining,
9499         estimate_size_after_inlining, estimate_growth, inline_read_summary,
9500         inline_write_summary):
9501         (initialize_inline_failed): Move here from cgraph.c.
9502         * tree-sra.c: Include ipa-inline.h.
9503         (ipa_sra_preliminary_function_checks): Update.
9504         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9505         ipa-inline.h.
9506
9507 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9508
9509         * config/i386/sse.md (V16): New mode iterator.
9510         (VI1, VI8): Ditto.
9511         (AVXMODEQI, AVXMODEDI): Remove.
9512         (sse2, sse3): New mode attribute.
9513         (mov<mode>): Use V16 mode iterator.
9514         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9515         (push<mode>1): Use V16 mode iterator.
9516         (movmisalign<mode>): Ditto.
9517         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9518         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9519         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9520         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9521         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9522         avx_movdqu<avxmodesuffix>.
9523         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9524         *avx_movdqu<avxmodesuffix>.
9525         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9526         avx_lddqu<avxmodesuffix>.
9527         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9528         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9529         avx_movnt<AVXMODEDI:mode>.
9530         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9531         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9532
9533 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
9534
9535         PR target/48629
9536         * haifa-sched.c (prune_ready_list, schedule_block): Use
9537         sched_pressure_p rather than flag_sched_pressure.
9538
9539 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
9540
9541         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9542         cgraph_get_node instead of cgraph_get_create_node.
9543
9544 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
9545
9546         * cfgexpand.c (expand_debug_expr): Use
9547         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9548
9549 2011-04-15  Michael Matz  <matz@suse.de>
9550
9551         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9552         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9553         * function.c (gimplify_parameters): Ditto.
9554         * gimplify.c (gimplify_vla_decl): Ditto.
9555
9556         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9557         (gimple_call_set_alloca_for_var): New inline function.
9558         (gimple_call_alloca_for_var_p): Ditto.
9559         * gimple.c (gimple_build_call_from_tree): Remember
9560         CALL_ALLOCA_FOR_VAR_P state.
9561         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9562
9563         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9564         calls if they were for VLA objects.
9565
9566 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9567
9568         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9569         of ADR_EXPRs.
9570
9571 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9572
9573         PR middle-end/48601
9574         * tree-emutls.c (lower_emutls_function_body): Call
9575         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
9576         result is non-NULL.
9577
9578 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
9579
9580         * c-decl.c (detect_field_duplicates): Call
9581         objc_detect_field_duplicates instead of objc_get_interface_ivars.
9582
9583 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
9584
9585         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9586         * gimple.c (gimple_asm_clobbers_memory_p): Define.
9587         * ipa-pure-const.c (check_stmt): Call it.
9588         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9589
9590 2011-04-15  Richard Guenther  <rguenther@suse.de>
9591
9592         PR tree-optimization/48290
9593         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9594         Properly decide inhibiting propagation based on the valueized
9595         operand.  Do loop-closed SSA form preserving here ...
9596         (init_copy_prop): ... not here.
9597
9598 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
9599
9600         PR target/48612
9601         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9602         (*ieee_smax<mode>3): Likewise.
9603
9604 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9605
9606         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9607         Replace match_operand with match_dup for the third operand in
9608         these expanders.
9609
9610 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9611
9612         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9613         to track processing of conditionals.  Update all callers.
9614         (try_combine, simplify_if_then_else): Update.
9615
9616 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9617
9618         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9619         -fsched-pressure.
9620
9621 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
9622
9623         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9624         instead of match_operand for operand 3.
9625
9626 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
9627
9628         * recog.h (insn_operand_data): Add an "allows_mem" field.
9629         * genoutput.c (output_operand_data): Initialize it.
9630         * optabs.c (maybe_legitimize_operand_same_code): New function.
9631         (maybe_legitimize_operand): Use it when matching the original
9632         op->value.
9633
9634 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9635
9636         * gimplify.c: Fix issues in comments throughout.
9637         (voidify_wrapper_expr): Fix long line.
9638         (build_stack_save_restore): Likewise.
9639         (gimplify_loop_expr): Likewise.
9640         (gimplify_compound_lval): Likewise.
9641         (gimplify_init_ctor_eval): Likewise.
9642         (gimplify_modify_expr_rhs): Likewise.
9643         (omp_notice_threadprivate_variable): Likewise.
9644
9645 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9646
9647         * cfgexpand.c (expand_call_stmt): Convert the function type to the
9648         original one if this is not a builtin function.
9649
9650 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
9651
9652         PR target/48605
9653         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9654         offset it as needed based on top 2 bits in operands[3], change
9655         MEM mode to SFmode and mask those 2 bits away from operands[3].
9656
9657 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9658
9659         * c-parser.c (c_parser_objc_protocol_definition): Updated for
9660         change from objc_declare_protocols() to objc_declare_protocol().
9661
9662 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
9663
9664         * config/i386/sse.md (sse4_1): New mode attribute.
9665         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9666         avx_blend<ssemodesuffix><avxmodesuffix> and
9667         sse4_1_blend<ssemodesuffix> using VF mode iterator.
9668         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9669         avx_blendv<ssemodesuffix><avxmodesuffix> and
9670         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9671         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9672         avx_dp<ssemodesuffix><avxmodesuffix> and
9673         sse4_1_dp<ssemodesuffix> using VF mode iterator.
9674         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9675         (sse4_1_packusdw): Merge with *avx_packusdw.
9676         (sse4_1_pblendvb): Merge with *avx_pblendvb.
9677         (sse4_1_pblendw): Merge with *avx_pblendw.
9678         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9679         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9680         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9681         VF mode iterator.
9682         (sse4_1_round<ssescalarmodesuffix>): Merge with
9683         *avx_round<ssescalarmodesuffix>.
9684         (aesenc): Merge with *avx_aesenc.
9685         (aesenclast): Merge with *avx_aesenclast.
9686         (aesdec): Merge with *avx_aesdec.
9687         (aesdeclast): Merge with *avx_aesdeclast.
9688         (pclmulqdq): Merge with *pclmulqdq.
9689         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9690         New predicate.
9691         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9692
9693 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
9694
9695         PR middle-end/48608
9696         * cfgexpand.c (get_decl_align_unit): Renamed to ...
9697         (align_local_variable): This.  Update DECL_ALIGN.
9698         (add_stack_var): Updated.
9699         (expand_one_stack_var): Likewise.
9700
9701 2011-04-14  Richard Guenther  <rguenther@suse.de>
9702
9703         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9704         Remove.
9705         (dse_initialize_block_local_data, dse_leave_block,
9706         record_voperand_set, get_stmt_uid): Likewise.
9707         (dse_possible_dead_store_p): Allow any kind of killing stmt.
9708         (dse_optimize_stmt): Remove voperand set handling code.
9709         Simplify and improve to handle any kind of killing stmt.
9710         (dse_record_phi): Remove.
9711         (dse_enter_block): Simplify.
9712         (tree_ssa_dse): Likewise.
9713         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9714
9715 2011-04-14  Jan Hubicka  <jh@suse.cz>
9716
9717         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9718         * cgraph.h (struct inline_summary): Move to ipa-inline.h
9719         (cgraph_local_info): Remove inline_summary.
9720         * ipa-cp.c: Include ipa-inline.h.
9721         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9722         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9723         accesor.
9724         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9725         (input_overwrite_node): Do not set inline summary.
9726         (input_node): Do not stream inline summary.
9727         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9728         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9729         growth; we do not have inline parameters computed for that anyway.
9730         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9731         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9732         (inline_summary_t): New type and VECtor.
9733         (debug_inline_summary, dump_inline_summaries): Declare.
9734         (inline_summary): Use VOCtor.
9735         (estimate_edge_growth): Kill hack computing call stmt size directly.
9736         * lto-section-in.c (lto_section_name): Add inline section.
9737         * ipa-inline-analysis.c: Include lto-streamer.h
9738         (node_removal_hook_holder, node_duplication_hook_holder): New holders
9739         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9740         (inline_summary_vec): Define.
9741         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9742         dump_inline_summaries): New functions.
9743         (estimate_function_body_sizes): Properly compute size/time of outgoing
9744         calls.
9745         (compute_inline_parameters): Alloc inline_summary; do not compute
9746         size/time of incomming calls.
9747         (estimate_edge_time): Avoid missing time summary hack.
9748         (inline_read_summary): Read inline summary info.
9749         (inline_write_summary): Write inline summary info.
9750         (inline_free_summary): Free all hooks and inline summary vector.
9751         * lto-streamer.h: Add LTO_section_inline_summary section.
9752         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9753         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9754
9755 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9756
9757         * tree-vectorizer.h (vect_strided_store_supported): Add a
9758         HOST_WIDE_INT argument.
9759         (vect_strided_load_supported): Likewise.
9760         (vect_permute_store_chain): Return void.
9761         (vect_transform_strided_load): Likewise.
9762         (vect_permute_load_chain): Delete.
9763         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9764         count argument.  Check that the count is a power of two.
9765         (vect_strided_load_supported): Likewise.
9766         (vect_permute_store_chain): Return void.  Update after above changes.
9767         Assert that the access is supported.
9768         (vect_permute_load_chain): Likewise.
9769         (vect_transform_strided_load): Return void.
9770         * tree-vect-stmts.c (vectorizable_store): Update calls after
9771         above interface changes.
9772         (vectorizable_load): Likewise.
9773         (vect_analyze_stmt): Don't check for strided powers of two here.
9774
9775 2011-04-14  Richard Guenther  <rguenther@suse.de>
9776
9777         PR tree-optimization/48590
9778         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9779         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9780         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9781         BUILT_IN_STACK_SAVE.
9782         * tree-ssa-dce.c (propagate_necessity): Handle
9783         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9784
9785 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9786
9787         * c-parser.c (c_parser_objc_class_declaration): Updated call to
9788         objc_declare_class.
9789
9790 2011-04-14  Richard Guenther  <rguenther@suse.de>
9791
9792         * tree.h (get_object_alignment_1): Declare.
9793         * builtins.c (get_object_alignment_1): Split out worker from ...
9794         (get_object_alignment): ... here.
9795         * fold-const.c (get_pointer_modulus_and_residue): Use
9796         get_object_alignment_1.
9797
9798 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9799
9800         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9801         type parameter.
9802         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9803         parameter.  Generalise code to handle arrays as well as vectors.
9804         (vect_setup_realignment): Update accordingly.
9805         * tree-vect-stmts.c (vectorizable_store): Likewise.
9806         (vectorizable_load): Likewise.
9807
9808 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9809
9810         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9811         within the per-copy loop.
9812
9813 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9814
9815         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9816         in the dump file.
9817
9818 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9819
9820         * doc/options.texi (Negative): Explicitly mention that the
9821         Negative chain must be circular.
9822
9823 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
9824
9825         * function.h (block_chainon): Declare.
9826         * function.c (block_chainon): Define.
9827
9828 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
9829             Eric Weddington  <eric.weddington@atmel.com>
9830             Georg-Johann Lay  <avr@gjlay.de>
9831
9832         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9833         New Includes
9834         (avr_init_builtins, avr_expand_builtin,
9835         avr_expand_delay_cycles, avr_expand_unop_builtin,
9836         avr_expand_binop_builtin ): New functions.
9837         (avr_builtin_id): New enum
9838         (struct avr_builtin_description): New struct
9839         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9840         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9841
9842         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9843         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9844         UNSPECV_DELAY_CYCLES): new enumeration values
9845         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9846         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9847         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9848         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9849         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9850         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9851         "fmulsu"): New insns
9852
9853         * config/avr/avr-c.c: fix line endings
9854         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9855         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9856         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9857         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9858         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9859
9860         * doc/extend.texi (AVR Built-in Functions): New node
9861         (Target Builtins): Add documentation of AVR
9862         built-in functions.
9863
9864 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
9865
9866         PR target/44643
9867         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9868         alone. Error if non-const data has attribute progmem.
9869
9870 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9871
9872         * tree.h (struct tree_constructor): Include tree_typed instead of
9873         tree_common.
9874         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9875         TS_TYPED instead of TS_COMMON.
9876
9877 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9878
9879         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9880         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9881         (sse2_psadbw): Merge with *avx_psadbw.
9882         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9883         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9884         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9885         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9886         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9887         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9888         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9889         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9890         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9891         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9892         (ssse3_palignrti): Merge with *avx_palignrti.
9893
9894 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9895
9896         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9897         * tree-ssanames.c (fini_ssanames): VEC_free it.
9898         (make_ssa_name_fn): Update for VECness of free_ssanames.
9899         (release_ssa_name, release_dead_ssa_names): Likewise.
9900         * tree.h (struct tree_ssa_name): Include tree_typed instead of
9901         tree_common.
9902         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9903         TS_TYPED instead of TS_COMMON.
9904
9905 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9906
9907         * postreload-gcse.c (gcse_after_reload_main): Add calls to
9908         statistics_counter_event.
9909         * tree-ssa-copyrename.c (stats): Define.
9910         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
9911         statistics_counter_event.
9912         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9913         (bswap_stats, widen_mul_stats): Define.
9914         (insert_reciprocals): Increment rdivs_inserted.
9915         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
9916         rfuncs_inserted.  Add calls to statistics_counter_event.
9917         (execute_cse_sincos_1): Increment inserted.
9918         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
9919         statistics_counter_event.
9920         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
9921         of bswap_stats.  Add calls to statistics_counter_event.
9922         (convert_mult_to_widen): Increment widen_mults_inserted.
9923         (convert_plusminus_to_widen): Increment maccs_inserted.
9924         (convert_mult_to_fma): Increment fmas_inserted.
9925         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
9926         calls to statistics_counter_event.
9927
9928 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
9929
9930         PR rtl-optimization/48455
9931         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9932         `temp_costs->mem_cost'.
9933
9934 2011-04-13  Jan Hubicka  <jh@suse.cz>
9935
9936         * ipa-inline.h: New file.
9937         * ipa-inline-analysis.c: New file. Broken out of ...
9938         * ipa-inline.c: ... this file; update toplevel comment;
9939         include ipa-inline.h
9940         (inline_summary): Move to ipa-inline.h
9941         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9942         ipa-inline-analysis.c.
9943         (cgraph_estimate_time_after_inlining): Rename to
9944         estiamte_time_after_inlining; move to ipa-inline-analysis.c
9945         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9946         to estimate_edge_growth.
9947         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9948         rename to estimate_size_after_inlining.
9949         (cgraph_mark_inline_edge): Update for new naming convention.
9950         (cgraph_check_inline_limits): Likewise.
9951         (cgraph_edge_badness): Likewise.
9952         (cgraph_decide_recursive_inlining): Likewise.
9953         (cgraph_decide_inlining_of_small_functions): Likewise.
9954         (cgraph_decide_inlining_incrementally): Likewise.
9955         (cgraph_estimate_growth): Rename to estimate_growth; move to
9956         ipa-inline-analysis.c.
9957         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9958         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9959         (compute_inline_parameters): Likewise.
9960         (compute_inline_parameters_for_current): Likewise.
9961         (pass_inline_parameters): Likewise.
9962         (inline_indirect_intraprocedural_analysis): Likewise.
9963         (analyze_function): Rename to inline_analyze_function; likewise.
9964         (add_new_function): Move to ipa-inline-analysis.c.
9965         (inline_generate_summary): Likewise.
9966         (inline_read_summary): Likewise.
9967         (inline_write_summary): Likewise.
9968         * Makefile.in (ipa-inline-analysis.c): New file.
9969
9970 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9971
9972         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9973         * configure: Regenerate.
9974
9975 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9976
9977         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9978         instead of tree_common.
9979         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9980         Likewise.
9981         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9982         TS_TYPED rather than TS_COMMON.
9983         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9984
9985 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
9986
9987         PR target/45263
9988         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9989         r20 around calls of __tablejump_elpm__
9990
9991 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
9992
9993         PR middle-end/48591
9994         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9995         NULL.
9996         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9997
9998 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
9999
10000         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10001         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10002         (cfi_vec): New typedef.
10003         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10004         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10005         (cie_cfi_vec): New static variable.
10006         (cie_cfi_head): Delete.
10007         (add_cfi): Accept a cfi_vec * as first argument. All callers and
10008         declaration changed. Use vector rather than list operations.
10009         (new_cfi): Don't initialize the dw_cfi_next field.
10010         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10011         rather than list operations.
10012         (lookup_cfa): Use vector rather than list operations.
10013         (output_cfis): New argument upto. Accept a cfi_vec rather than
10014         a dw_cfi_ref list head as argument. All callers changed.
10015         Iterate over the vector using upto as a maximum index.
10016         (output_all_cfis): New static function.
10017         (output_fde): Use vector rather than list operations. Use the
10018         new upto argument for output_cfis rather than manipulating a
10019         list.
10020         (dwarf2out_begin_prologue): Change initializations to match
10021         new struct members.
10022         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10023         from the vector length rather than searching for the end of a list.
10024         Use output_all_cfis.
10025         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10026
10027 2011-04-13  Nick Clifton  <nickc@redhat.com>
10028
10029         * config/rx/rx.md (movmemsi): Do not use this pattern when
10030         volatile pointers are involved.
10031
10032 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
10033
10034         * config/i386/sse.md (pinsrbits): Remove.
10035         (sse2_packsswb): Merge with *avx_packsswb.
10036         (sse2_packssdw): Merge with *avx_packssdw.
10037         (sse2_packuswb): Merge with *avx_packuswb.
10038         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10039         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10040         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10041         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10042         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10043         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10044         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10045         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10046         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10047         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10048         (sse2_loadld): Merge with *avx_loadld.
10049         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10050         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10051         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10052         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10053         (vec_concatv2di): Merge with *vec_concatv2di_avx.
10054
10055 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
10056
10057         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10058         calling TREE_CHAIN.
10059         * print-tree.c (print_node): Likewise.
10060         * tree-inline.c (copy_tree_r): Likewise.
10061         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10062         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10063         instead of TS_COMMON.
10064         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10065         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10066         (copy_node_stat): Zero TREE_CHAIN only if necessary.
10067         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10068         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10069         ...and these...
10070         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10071         * tree.h: ...here.
10072         (TREE_CHAIN): Check for a TS_COMMON structure.
10073         (TREE_TYPE): Check for a TS_TYPED structure.
10074
10075 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
10076
10077         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10078         cgraph_get_create_node instead of cgraph_node.
10079
10080 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10081
10082         * c-parser.c (c_parser_initelt): Updated call to
10083         objc_build_message_expr.
10084         (c_parser_postfix_expression): Likewise.
10085
10086 2011-04-12  Kai Tietz  <ktietz@redhat.com>
10087
10088         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10089         MASK_MS_BITFIELD_LAYOUT bit.
10090
10091 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10092
10093         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10094         assert it is always true.
10095         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10096         moves.
10097
10098 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10099
10100         * c-parser.c (c_lex_one_token): Rewritten conditional used when
10101         compiling Objective-C to be more efficient.
10102
10103 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
10104
10105         * opts-common.c (decode_cmdline_options_to_array): Remove variable
10106         argv_copied.
10107
10108 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10109
10110         * recog.h, genoutput.c, optabs.c: Revert last patch.
10111
10112 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10113
10114         PR target/48090
10115         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10116
10117 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10118
10119         * recog.h (insn_operand_data): Add an "allows_mem" field.
10120         * genoutput.c (output_operand_data): Initialize it.
10121         * optabs.c (maybe_legitimize_operand_same_code): New function.
10122         (maybe_legitimize_operand): Use it when matching the original
10123         op->value.
10124
10125 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10126
10127         * genpreds.c (process_define_predicate): Move most processing
10128         to gensupport.c.  Continue to validate the expression.
10129         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10130         (process_define_predicate): Move processing to gensupport.c.
10131         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10132         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10133         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
10134         argument.
10135         (valid_predicate_name_p): New function, split out from old
10136         genpreds.c:process_define_predicate.
10137         (process_define_predicate): New function, combining code from
10138         old genpreds.c and genrecog.c functions.
10139         (process_rtx): Call it for DEFINE_PREDICATE and
10140         DEFINE_SPECIAL_PREDICATE.
10141
10142 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10143
10144         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10145         size of a '%A' memory reference.
10146         (T_DREG, T_QREG): New neon_builtin_type_bits.
10147         (arm_init_neon_builtins): Assert that the load and store operands
10148         are neon_struct_operands.
10149         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10150         (NEON_ARG_MEMORY): New builtin_arg.
10151         (neon_dereference_pointer): New function.
10152         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10153         Handle NEON_ARG_MEMORY.
10154         (arm_expand_neon_builtin): Update after above interface changes.
10155         Use NEON_ARG_MEMORY for loads and stores.
10156         * config/arm/predicates.md (neon_struct_operand): New predicate.
10157         * config/arm/iterators.md (V_two_elem): Tweak formatting.
10158         (V_three_elem): Use BLKmode for accesses that have no associated mode.
10159         (V_four_elem): Tweak formatting.
10160         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10161         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10162         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10163         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10164         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10165         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10166         (neon_vst4<mode>): Replace pointer operand with a memory operand.
10167         Use %A in the output template.
10168         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10169         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10170         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10171         the width of the memory access.  Remove post-increment.
10172         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10173
10174 2011-04-12  Nick Clifton  <nickc@redhat.com>
10175
10176         * config/v850/v850.c (expand_prologue): Do not use the CALLT
10177         instruction for interrupt handlers if the target is the basic V850
10178         architecture.
10179         (expand_epilogue): Likewise.
10180
10181 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10182
10183         PR rtl-optimization/48549
10184         * combine.c (propagate_for_debug): Also stop after BB_END of
10185         this_basic_block.  Process LAST and just stop processing after it.
10186         (combine_instructions): If last_combined_insn has been deleted,
10187         set last_combined_insn to its PREV_INSN.
10188
10189 2011-04-12  Richard Guenther  <rguenther@suse.de>
10190
10191         PR tree-optimization/46076
10192         * gimple.h (struct gimple_statement_call): Add fntype field.
10193         (gimple_call_fntype): Adjust.
10194         (gimple_call_set_fntype): New function.
10195         * gimple.c (gimple_build_call_1): Set the call function type.
10196         * gimplify.c (gimplify_call_expr): Preserve the function
10197         type the frontend used for the call.
10198         (gimplify_modify_expr): Likewise.
10199         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10200         function type.
10201         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10202         function type.
10203         * tree-ssa.c (useless_type_conversion_p): Function pointer
10204         conversions are useless.
10205
10206 2011-04-12  Martin Jambor  <mjambor@suse.cz>
10207
10208         * cgraph.h (cgraph_node): Remove function declaration.
10209         (cgraph_create_node): Declare.
10210         (cgraph_get_create_node): Likewise.
10211         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10212         Updated all callers.
10213         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10214         the decl does not already exist.  Call cgraph_get_create_node instead
10215         of cgraph_node.
10216         (cgraph_get_create_node): New function.
10217         (cgraph_same_body_alias): Update comment.
10218         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10219         assert it does not return NULL.
10220         (cgraph_update_edges_for_call_stmt): Likewise.
10221         (cgraph_clone_edge): Likewise.
10222         (cgraph_create_virtual_clone): Likewise.
10223         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10224         instead of cgraph_node.
10225         (cgraph_add_new_function): Call cgraph_create_node or
10226         cgraph_get_create_node instead of cgraph_node.
10227         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10228         instead of cgraph_node.
10229         (record_eh_tables): Likewise.
10230         (mark_address): Likewise.
10231         (mark_load): Likewise.
10232         (build_cgraph_edges): Call cgraph_get_create_node instead
10233         of cgraph_node.
10234         (rebuild_cgraph_edges): Likewise.
10235         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10236         instead of cgraph_node.
10237         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10238         cgraph_node.
10239         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10240         cgraph_create_node instead of cgraph_node.
10241         * c-decl.c (finish_function): Call cgraph_get_create_node instead
10242         of cgraph_node.
10243         * lto-cgraph.c (input_node): Likewise.
10244         * lto-streamer-in.c (input_function): Likewise.
10245         * varasm.c (mark_decl_referenced): Likewise.
10246         (assemble_alias): Likewise.
10247
10248 2011-04-12  Martin Jambor  <mjambor@suse.cz>
10249
10250         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10251         instead of cgraph_node and assert it does not return NULL.
10252         * lto-streamer-in.c (lto_read_body): Likewise.
10253         * omp-low.c (new_omp_context): Likewise.
10254         (create_task_copyfn): Likewise.
10255         * tree-emutls.c (lower_emutls_function_body): Likewise.
10256         * matrix-reorg.c (transform_allocation_sites): Likewise.
10257
10258 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10259
10260         PR c/48552
10261         * c-typeck.c (build_asm_expr): Error out on attempts to use
10262         void type outputs or inputs for constraints that allow reg or
10263         don't allow memory.
10264
10265 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
10266             Richard Earnshaw  <rearnsha@arm.com>
10267
10268         PR target/48250
10269         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10270         to use sign-magnitude offsets. Reject unsupported unaligned
10271         cases. Add detailed description in comments.
10272         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10273         condition from TARGET_32BIT to TARGET_ARM.
10274
10275 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
10276
10277         * tree.h (struct typed_tree): New.
10278         (struct tree_common): Include it instead of tree_base.
10279         (TREE_TYPE): Update for new location of type field.
10280         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10281         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10282         (union tree_node): Add typed field.
10283         * treestruct.def (TS_TYPED): New.
10284         * lto-streamer.c (check_handled_ts_structures): Handle it.
10285         * tree.c (MARK_TS_TYPED): New macro.
10286         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10287
10288 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
10289
10290         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10291         (force_nonfallthru): Do not alter the loop nest if no basic block
10292         was created.
10293
10294 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10295
10296         * config/i386/sse.md (VI): New mode iterator.
10297         (SSEMODEI): Remove.
10298         (AVX256MODEI): Ditto.
10299         (AVXMODEF4P): Ditto.
10300         (avxvecpsmode): Ditto.
10301         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
10302         (sse2_andnot<mode>3): New expander.
10303         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10304         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
10305         (<any_logic:code><mode>3): Use VI mode iterator.
10306         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10307         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
10308         (*andnottf3): Handle AVX three-operand constraints.
10309         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10310
10311 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10312             Robert Millan  <rmh@gnu.org>
10313
10314         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10315         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10316         GNU_USER_DYNAMIC_LINKER64): Define.
10317         (REG_NAME): Don't undefine.
10318         (MD_UNWIND_SUPPORT): Undefine.
10319         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10320         (REG_NAME): Don't undefine.
10321         (MD_UNWIND_SUPPORT): Undefine.
10322         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10323
10324 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10325
10326         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10327         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10328
10329 2011-04-11  Xinliang David Li  <davidxl@google.com>
10330
10331         * value-profile.c (check_ic_target): New function.
10332         (gimple_ic_transform): Sanity check indirect call target.
10333         * gimple-low.c (gimple_check_call_args): Interface change.
10334         (gimple_check_call_matching_types): New function.
10335         * tree-inline.c (tree_can_inline_p): Call new function.
10336
10337 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
10338
10339         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10340         tree-pretty-print.h & realmpfr.h.
10341
10342 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
10343
10344         PR middle-end/48464
10345         * ira.c (setup_pressure_classes): Fix typo in loop condition.
10346         (setup_allocno_and_important_classes): Ditto.
10347
10348 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10349
10350         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10351         GNU_USER_DYNAMIC_LINKER.
10352         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10353         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10354         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10355         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10356         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10357         GNU_USER_TARGET_OS_CPP_BUILTINS.
10358         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10359         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10360         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10361         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10362         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10363         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10364         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10365         GNU_USER_TARGET_OS_CPP_BUILTINS.
10366         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10367         GNU_USER_DYNAMIC_LINKER.
10368         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10369         GNU_USER_TARGET_OS_CPP_BUILTINS.
10370         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10371         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10372         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10373         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10374         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10375         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10376         GNU_USER_DYNAMIC_LINKER64): Remove.
10377         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10378         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10379         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10380         GNU_USER_DYNAMIC_LINKER.
10381         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10382         GNU_USER_TARGET_OS_CPP_BUILTINS.
10383         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10384         GNU_USER_TARGET_OS_CPP_BUILTINS.
10385         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10386         to GNU_USER_TARGET_OS_CPP_BUILTINS.
10387         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10388         GNU_USER_TARGET_OS_CPP_BUILTINS.
10389         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10390         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10391         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10392         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10393         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10394         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10395         GNU_USER_DYNAMIC_LINKER.
10396         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10397         GNU_USER_TARGET_OS_CPP_BUILTINS.
10398         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10399         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10400         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10401         GNU_USER_DYNAMIC_LINKER.
10402         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10403         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10404         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10405         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10406         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10407         GNU_USER_DYNAMIC_LINKER.
10408         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10409         GNU_USER_DYNAMIC_LINKERN32.
10410         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10411         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
10412         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
10413         GNU_USER_DYNAMIC_LINKER32.
10414         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10415         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10416         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10417         GNU_USER_DYNAMIC_LINKER.
10418         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10419         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10420         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10421         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10422         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10423         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10424         GNU_USER_DYNAMIC_LINKER32.
10425         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10426         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10427         GNU_USER_DYNAMIC_LINKER.
10428         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10429         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10430         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10431         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
10432         GNU_USER_DYNAMIC_LINKER64.
10433         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10434         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10435         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10436         GNU_USER_DYNAMIC_LINKER.
10437         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10438         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10439         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10440         GNU_USER_DYNAMIC_LINKER.
10441         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10442         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10443         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10444         GNU_USER_DYNAMIC_LINKER32.
10445         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10446         GNU_USER_DYNAMIC_LINKER64.
10447         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10448         GNU_USER_DYNAMIC_LINKER64.
10449         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10450         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10451         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10452         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10453         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10454
10455 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10456
10457         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
10458         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10459         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10460         GNU_USER_DYNAMIC_LINKER.
10461         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10462         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
10463         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10464         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10465         GNU_USER_DYNAMIC_LINKER64.
10466         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10467         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10468         GNU_USER_LINK_EMULATION.
10469         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10470         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10471         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10472         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10473         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10474         CPP_SPEC, CC1_SPEC): Remove.
10475         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10476         (GNU_USER_DYNAMIC_LINKER): Define.
10477         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10478         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10479         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10480         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10481         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10482         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10483         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10484         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10485         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10486         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10487         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10488         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10489         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10490         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10491         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10492         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10493         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10494         GNU_USER_DYNAMIC_LINKER.
10495         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10496         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10497         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10498         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10499         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10500         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10501         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10502         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10503         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10504         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10505
10506 2011-04-11  Kai Tietz  <ktietz@redhat.com>
10507
10508         PR target/9601
10509         PR target/11772
10510         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10511         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10512         comment.
10513         (ix86_is_msabi_thiscall): Removed.
10514         (ix86_is_type_thiscall): Likewise.
10515         (ix86_get_callcvt): New function.
10516         (ix86_comp_type_attributes): Simplify check.
10517         (ix86_function_regparm): Use ix86_get_callcvt for calling
10518         convention attribute checks.
10519         (ix86_return_pops_args): Likewise.
10520         (ix86_static_chain): Likewise.
10521         (x86_this_parameter): Likewise.
10522         (x86_output_mi_thunk): Likewise.
10523         (ix86_function_type_abi): Optimize check for types without attributes.
10524         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10525         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10526         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10527         by flag-values.
10528         (IX86_BASE_CALLCVT): Helper macro.
10529         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10530         Use ix86_get_callcvt for calling convention attribute checks and avoid
10531         symbol-decoration for stdcall in TARGET_RTD case.
10532         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10533         Likewise.
10534         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10535         for declaration.
10536
10537 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10538
10539         * config/i386/sse.md (VI_128): New mode iterator.
10540         (VI12_128): Rename from SSEMODE12.
10541         (VI14_128): Rename from SSEMODE14.
10542         (VI124_128): New mode iterator.
10543         (VI24_128): Rename from SSEMODE248.
10544         (VI248_128): Rename from SSEMODE248.
10545         (SSEMODE124C8): Remove.
10546         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10547         (*sse2_<plusminus_insn><mode>3): Merge with
10548         *avx_<plusminus_insn><mode>3.
10549         (*mulv8hi3): Merge with *avx_mulv8hi3.
10550         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10551         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10552         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10553         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10554         (ashr<mode>3): Merge with *avx_ashr<mode>3.
10555         (lshr<mode>3): Merge with *avx_lshr<mode>3.
10556         (ashl<mode>3): Merge with *avx_ashl<mode>3.
10557         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10558         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10559         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10560         (*<smaxmin:code>v8hi3): Ditto.
10561         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10562         (*<smaxmin:code>v16qi3): Ditto.
10563         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10564         (*sse2_eq<mode>3): Ditto.
10565         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10566         (*sse2_gt<mode>3): Ditto.
10567         (vcondv2di): Split out of vcond<mode>.
10568         (vconduv2di): Split out of vcondu<mode>.
10569
10570 2011-04-11  Richard Guenther  <rguenther@suse.de>
10571
10572         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10573         before calling tree_low_cst.
10574
10575 2011-04-11  Richard Guenther  <rguenther@suse.de>
10576
10577         * stor-layout.c (layout_type): Compute all array index size operations
10578         in the original type.
10579         (initialize_sizetypes): Add comment.
10580         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10581
10582 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10583
10584         * common.opt (Tbss=, Tdata=, Ttext=): New options.
10585
10586 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10587
10588         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10589         of cgraph_node, handle NULL return value.
10590         (cgraph_global_info): Likewise.
10591         (cgraph_rtl_info): Likewise.
10592         * tree-inline.c (estimate_num_insns): Likewise.
10593         * gimplify.c (unshare_body): Likewise.
10594         (unvisit_body): Likewise.
10595         (gimplify_body): Likewise.
10596         * predict.c (optimize_function_for_size_p): Likewise.
10597         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10598         (call_may_clobber_ref_p_1): Likewise.
10599         * varasm.c (function_section_1): Likewise.
10600         (assemble_start_function): Likewise.
10601
10602 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10603
10604         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10605         of cgraph_node.
10606         * final.c (rest_of_clean_state): Likewise.
10607         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10608         * passes.c (pass_init_dump_file): Likewise.
10609         (execute_all_ipa_transforms): Likewise.
10610         (function_called_by_processed_nodes_p): Likewise.
10611         * predict.c (maybe_hot_frequency_p): Likewise.
10612         (probably_never_executed_bb_p): Likewise.
10613         (compute_function_frequency): Likewise.
10614         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10615         (unnest_nesting_tree_1): Likewise.
10616         (lower_nested_functions): Likewise.
10617         * tree-optimize.c (execute_fixup_cfg): Likewise.
10618         (tree_rest_of_compilation): Likewise.
10619         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10620         * tree-sra.c (ipa_early_sra): Likewise.
10621         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10622         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10623         * ipa.c (record_cdtor_fn): Likewise.
10624         * ipa-inline.c (cgraph_early_inlining): Likewise.
10625         (compute_inline_parameters_for_current): Likewise.
10626         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10627         * ipa-pure-const.c (local_pure_const): Likewise.
10628         * ipa-split.c (split_function): Likewise.
10629         (execute_split_functions): Likewise.
10630         * cgraphbuild.c (build_cgraph_edges): Likewise.
10631         (rebuild_cgraph_edges): Likewise.
10632         (cgraph_rebuild_references): Likewise.
10633         (remove_cgraph_callee_edges): Likewise.
10634         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10635         (verify_cgraph_node): Likewise.
10636         (cgraph_analyze_functions): Likewise.
10637         (cgraph_preserve_function_body_p): Likewise.
10638         (save_inline_function_body): Likewise.
10639         (save_inline_function_body): Likewise.
10640         * tree-inline.c (copy_bb): Likewise.
10641         (optimize_inline_calls): Likewise.
10642
10643 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10644
10645         PR tree-optimization/48195
10646         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10647         ipa_check_create_edge_args.
10648         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10649         ipa_check_create_edge_args.
10650         * ipa-inline.c (inline_generate_summary): Do not call
10651         ipa_check_create_node_params and ipa_check_create_edge_args.
10652         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10653         ipa_check_create_edge_args.
10654
10655 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
10656
10657         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10658         instead of loop.
10659         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10660         * function.c (record_hard_reg_sets): Likewise.
10661         * ira.c (compute_regs_asm_clobbered): Likewise.
10662         * sched-deps.c (sched_analyze_1): Likewise.
10663         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10664
10665 2011-04-09  Xinliang David Li  <davidxl@google.com>
10666
10667         PR tree-optimization/PR48484
10668         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10669         has_valid_pred lazily
10670
10671 2011-04-09  Duncan Sands  <baldrick@free.fr>
10672
10673         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10674
10675 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
10676
10677         * combine.c (combine_validate_cost): Adjust comments.  Set registered
10678         cost of I0 to zero at the end, if any.
10679
10680 2011-04-08  Xinliang David Li  <davidxl@google.com>
10681
10682         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10683         to insane profile data.
10684
10685 2011-04-08  Xinliang David Li  <davidxl@google.com>
10686
10687         * ipa-cp.c (ipcp_update_profiling): Correct
10688          negative scale factor due to insane profile data.
10689
10690 2011-04-08  Xinliang David Li  <davidxl@google.com>
10691
10692         * final.c (dump_basic_block_info): New function.
10693         (final): Dump basic block.
10694         (final_scan_insn): Remove old dump.
10695
10696 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
10697
10698         PR target/47829
10699         * config.gcc (i386-*-freebsd): Disable unwind table generation for
10700         crtbegin/crtend.
10701
10702 2011-04-08  Michael Matz  <matz@suse.de>
10703
10704         PR middle-end/48389
10705         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10706         functions.
10707         (rebuild_jump_labels): Call rebuild_jump_labels_1.
10708         * rtl.h (rebuild_jump_labels_chain): Declare.
10709         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10710         insns inserted on edges.
10711
10712 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
10713
10714         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10715         * config/arm/arm-arches.def: New.
10716         * config/arm/arm-opts.h: New.
10717         * config/arm/genopt.sh: New.
10718         * config/arm/arm-tables.opt: New (generated).
10719         * config/arm/arm.c (arm_handle_option, arm_target_help,
10720         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10721         (all_architectures): Get most table contents from arm-arches.def.
10722         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10723         arm_selected_tune here.
10724         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10725         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10726         (march=, mcpu=, mtune=): Use Enum and Var.
10727         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10728         (arm.o): Update dependencies.
10729
10730 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
10731
10732         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10733         of header_file.
10734         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10735         (write_typed_alloc_defns): Likewise.
10736         (main): Calls write_typed_alloc_defns with output_header.
10737
10738 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
10739
10740         PR inline-asm/48435
10741         * ira-color.c (setup_profitable_hard_regs): Add comments.
10742         Don't take prohibited hard regs into account.
10743         (setup_conflict_profitable_regs): Rename to
10744         get_conflict_profitable_regs.
10745         (check_hard_reg_p): Check prohibited hard regs.
10746
10747 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
10748
10749         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10750         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10751         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10752
10753 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10754
10755         PR target/48366
10756         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10757         move from floating point to shift amount register.
10758         (emit_move_sequence): Remove secondary reload support for floating
10759         point to shift amount amount register copies.
10760         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10761         amount register copies.
10762         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10763         register, return false if mode isn't a scalar integer mode.
10764         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10765
10766 2011-04-08  Richard Guenther  <rguenther@suse.de>
10767
10768         * gimple.c (gimple_call_flags): Remove kludge.
10769
10770 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10771
10772         * sel-sched.c (sel_region_init): Move call to
10773         sel_setup_region_sched_flags after setup_current_loop_nest.
10774
10775 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
10776
10777         PR rtl-optimization/48272
10778         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10779         init_insn_reg_pressure_info.  Adjust a caller.
10780         * sched-int.h (init_insn_reg_pressure_info): Declare.
10781         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10782         when sched-pressure is enabled.
10783
10784 2011-04-08  Richard Guenther  <rguenther@suse.de>
10785
10786         * gimple.c (gimple_set_modified): Do not queue calls to
10787         MODIFIED_NORETURN_CALLS here ...
10788         * tree-ssa-operands.c (update_stmt_operands): ... but here.
10789
10790 2011-04-08  Richard Guenther  <rguenther@suse.de>
10791
10792         PR lto/48467
10793         * toplev.c (lang_dependent_init): Do not open asm_out_file
10794         in WPA mode, nor perform debug machinery initialization.
10795         (finalize): Do not unlink asm_out_file in WPA mode.
10796
10797 2011-04-08  Richard Guenther  <rguenther@suse.de>
10798
10799         * gimple.h (gimple_call_fntype): New function.
10800         (gimple_call_return_type): Use it.
10801         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10802         * gimple-low.c (gimple_check_call_args): Likewise.
10803         * gimple.c (gimple_call_flags): Likewise.
10804         (gimple_call_arg_flags): Likewise.
10805         (gimple_call_return_flags): Likewise.
10806         * tree-cfg.c (verify_gimple_call): Likewise.
10807         (do_warn_unused_result): Likewise.
10808         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10809         * value-prof.c (gimple_ic_transform): Fix fndecl check.
10810
10811 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
10812
10813         PR rtl-optimization/48235
10814         * sel-sched.c (code_motion_process_successors): Recompute the last
10815         insn in basic block if control flow changed.
10816         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
10817         Update condition for ilist_remove.
10818
10819 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10820
10821         PR rtl-optimization/48302
10822         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10823         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
10824         it to record added preheader blocks.
10825         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
10826         on to sel_add_loop_preheaders.
10827         (sel_region_init): Move call to setup_current_loop_nest after
10828         sel_init_bbs.
10829
10830 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10831
10832         PR target/48273
10833         * cfgloop.h (loop_has_exit_edges): New helper.
10834         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10835         non-clonable.
10836         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10837         that have no exit edges.
10838
10839 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10840
10841         PR rtl-optimization/48442
10842         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
10843         all callers.  Adjust assert.
10844
10845 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
10846
10847         PR tree-optimization/48377
10848         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10849         is_packed to true even for types with smaller TYPE_ALIGN than
10850         TYPE_SIZE.
10851
10852 2011-04-08  Richard Guenther  <rguenther@suse.de>
10853
10854         PR bootstrap/48513
10855         * doc/tm.texi: Re-generate.
10856
10857 2011-04-08  Wei Guozhi  <carrot@google.com>
10858
10859         PR target/47855
10860         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10861         * config/arm/arm.c (arm_attr_length_push_multi): New function.
10862         * config/arm/arm.md (*push_multi): Change the length computation to
10863         call a C function.
10864
10865 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
10866
10867         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10868         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10869         * doc/tm.texi: Regenerate.
10870         * system.h (ASM_OUTPUT_BSS): Poison.
10871         * varasm.c (asm_output_bss): Remove function.
10872         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10873
10874         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10875         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10876         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10877         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10878         Likewise.
10879         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10880         Likewise.
10881         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10882         Likewise.
10883         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10884
10885 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10886
10887         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10888         EnumValue lines.
10889
10890 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10891
10892         * config/m68k/m68k.c (m68k_handle_option): Don't handle
10893         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10894         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10895         OPT_mcpu32.
10896         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10897         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10898         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10899         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10900         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10901         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10902         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10903         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10904         options.  Don't map other m68k options manually.  Don't handle
10905         old-style options as canonical.
10906         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10907         * doc/install.texi (m68k-*-*): Document binutils version requirement.
10908
10909 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10910
10911         * basic-block.h (force_nonfallthru): Move to...
10912         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10913         (force_nonfallthru): ...here.
10914         * cfghooks.c (force_nonfallthru): New function.
10915         * cfgrtl.c (force_nonfallthru): Rename into...
10916         (rtl_force_nonfallthru): ...this.
10917         (commit_one_edge_insertion): Do not set AUX field.
10918         (commit_edge_insertions): Do not discover new basic blocks.
10919         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10920         (cfg_layout_rtl_cfg_hooks): Likewise.
10921         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10922         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
10923         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10924
10925 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
10926
10927         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10928         Remove macros.
10929
10930 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
10931
10932         * config/i386/sse.md: Update copyright year.
10933         (avxcvtvecmode): Remove.
10934         (sse_movhlps): Merge with *avx_movhlps.
10935         (sse_movlhps): Merge with *avx_movlhps.
10936         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10937         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10938         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10939         (sse_loadhps): Merge with *avx_loadhps.
10940         (sse_storelps): Merge with *avx_storelps.
10941         (sse_loadlps): Merge with *avx_loadlps.
10942         (sse_movss): Merge with *avx_movss.
10943         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10944         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10945         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10946         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10947         (vec_set<mode>_0): Ditto.
10948         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10949         (sse4_1_insertps): Merge with *avx_insertps.
10950         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10951         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10952         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10953         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10954         (sse2_storehpd): Merge with *avx_storehpd.
10955         (sse2_loadhpd): Merge with *avx_loadhpd.
10956         (sse2_loadlpd): Merge with *avx_loadlpd.
10957         (sse2_movsd): Merge with *avx_movsd.
10958         (*vec_concatv2df): Merge with *vec_concatv2df.
10959
10960 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
10961
10962         PR debug/48343
10963         * combine.c (combine_instructions): Add last_combined_insn,
10964         update it if insn is after it, pass it to all try_combine calls.
10965         (try_combine): Add last_combined_insn parameter, pass it instead of
10966         i3 to propagate_for_debug.
10967
10968 2011-04-07  Nick Clifton  <nickc@redhat.com>
10969
10970         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10971         to handle MDR <-> data register transfers.
10972         (movhi_internal): Likewise.
10973
10974 2011-04-07  Alan Modra  <amodra@gmail.com>
10975
10976         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10977         previous stack info.
10978
10979 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10980
10981         PR target/43920
10982         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
10983         flow_find_cross_jump.  Swap variables to implement backward replacement.
10984         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10985
10986 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10987
10988         PR target/43920
10989         * cfgcleanup.c (walk_to_nondebug_insn): New function.
10990         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
10991         and bb2.
10992         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10993         src1 or src2.  Redirect edges to the last basic block.  Update
10994         frequency and count on multiple basic blocks in case of fallthru.
10995
10996 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10997
10998         PR target/43920
10999         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11000         function.
11001         (old_insns_match_p): Change return type.  Replace return false/true
11002         with return dir_none/dir_both.  Use can_replace_by.
11003         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
11004         direction from dir_p.  Register replacement direction in dir, last_dir
11005         and afterlast_dir.  Handle new return type of old_insns_match_p using
11006         merge_dir.  Return replacement direction in dir_p.
11007         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11008         return type of old_insns_match_p.
11009         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11010         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11011         flow_find_cross_jump.
11012         * basic-block.h (enum replace_direction): New type.
11013         (flow_find_cross_jump): Add parameter to declaration.
11014
11015 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
11016
11017         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11018         (AVXMODEDCVTPS2DQ): Ditto.
11019         (VEC_FLOAT_MODE): Ditto.
11020         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
11021         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11022         (<any_logic:code><mode>3): Use VF mode iterator.
11023         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11024         Use VF mode iterator.
11025         (copysign<mode>3): Use VF mode iterator.
11026         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
11027         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11028         (*<any_logic:code><MODEF:mode>3): Merge with
11029         *avx_<any_logic:code><MODEF:mode>3.
11030         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11031         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11032         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11033         (avx_cvtdq2ps<avxmodesuffix>): Remove.
11034         (sse2_cvtdq2ps): Use %v modifier.
11035         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11036         (avx_cvtps2dq<avxmodesuffix>): Remove.
11037         (sse2_cvtps2dq): Use %v modifier.
11038         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11039         (avx_cvttps2dq<avxmodesuffix>): Remove.
11040         (sse2_cvttps2dq): Use %v modifier.
11041         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11042         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11043         (sse2_cvtsd2siq): Fix insn template.
11044         (sse2_cvtsd2siq_2): Ditto.
11045         (sse2_cvttsd2siq): Ditto.
11046         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11047         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11048
11049 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
11050
11051         * gcov-io.c: Use GCC Runtime Library Exception.
11052
11053 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
11054
11055         PR debug/48466
11056         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11057         as base_reg whatever register reg has been eliminated to, instead
11058         of hardcoding STACK_POINTER_REGNUM.
11059
11060 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
11061
11062         * doc/tm.texi.in: Document C target hooks as separate from general
11063         target hooks.
11064         * doc/tm.texi: Regenerate.
11065         * genhooks.c (struct hook_desc): Add docname field.
11066         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
11067         docname field.
11068         (hook_array): Include c-target.def.
11069         (emit_documentation): Use docname field in output.
11070         (emit_init_macros): Take docname argument.  Only emit definitions
11071         for hooks matching docname.
11072         (main): Expect additional arguments in all cases.  Pass argument
11073         to emit_init_macros.
11074         * target.def: Move initial macro definitions and comments to
11075         target-hooks-macros.h.
11076         (gcc_targetcm): Move to c-family/c-target.def.
11077         * target.h (targetcm): Move declaration to c-family/c-target.h.
11078         * targhooks.c (default_handle_c_option): Move to
11079         c-family/c-opts.c.
11080         * targhooks.h (default_handle_c_option): Move declaration to
11081         c-family/c-common.h.
11082         * target-hooks-macros.h: New file.
11083         * config.gcc (target_has_targetcm): Define and use to add to
11084         c_target_objs and cxx_target_objs.
11085         * config/default-c.c: New file.
11086         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11087         of target.h and target-def.h.
11088         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11089         (darwin_objc_construct_string, darwin_cfstring_ref_p,
11090         darwin_check_cfstring_format_arg): Make static.
11091         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11092         TARGET_STRING_OBJECT_REF_TYPE_P,
11093         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11094         * config/darwin-protos.h (darwin_objc_construct_string,
11095         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11096         declare.
11097         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11098         TARGET_STRING_OBJECT_REF_TYPE_P,
11099         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11100         * config/t-darwin (darwin-c.o): Update dependencies.
11101         * system.h (TARGET_HAS_TARGETCM): Poison.
11102         * Makefile.in (TARGET_H): Update.
11103         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11104         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11105         (default-c.o): New target.
11106         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11107         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11108         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
11109         c-target.def.
11110         (build/genhooks.o): Update dependencies.
11111
11112 2011-04-06  Richard Guenther  <rguenther@suse.de>
11113
11114         * ipa-inline.c (enum inlining_mode): Remove.
11115         (cgraph_flatten): Use some other token.
11116         (cgraph_edge_early_inlinable_p): New function, split out from ...
11117         (cgraph_perform_always_inlining): New function, split out from ...
11118         (cgraph_decide_inlining_incrementally): ... here.
11119         (cgraph_mark_inline_edge): Adjust.
11120         (cgraph_early_inlining): Re-structure.
11121         (pass_early_inline): Require SSA form.
11122
11123 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
11124             Julian Brown  <julian@codesourcery.com>
11125             Mark Shinwell  <shinwell@codesourcery.com>
11126
11127         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11128         LO_REGS only for Thumb-1.
11129         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11130         be used in short instructions when optimising for size on Thumb-2.
11131
11132 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
11133
11134         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11135         associated with user returns to be preserved.
11136
11137 2011-04-06  Tristan Gingold  <gingold@adacore.com>
11138
11139         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11140         symbol_queue_size, DBXOUT_DECR_NESTING,
11141         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11142         if XCOFF_DEBUGGING_INFO.
11143
11144 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
11145
11146         * config/i386/i386.md (attribute isa): New.
11147         (attribute enabled): New.
11148         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11149         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11150         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11151         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11152         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11153         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11154         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11155         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11156
11157         * config/i386/sse.md (VF): New mode iterator.
11158         (VF1): Ditto.
11159         (VF2): Ditto.
11160         (VF_128): Ditto.
11161         (SSEMODEF4): Remove.
11162         (attribute sse): Handle V8SF and V4DF modes.
11163         (<absneg:code><mode>2): Use VF mode iterator.
11164         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
11165         mode iterator.
11166         (<plusminus_insn><mode>3): Use VF mode iterator.
11167         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11168         Use VF mode iterator.
11169         (<sse>_vm<plusminus_insn><mode>3): Merge with
11170         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
11171         (mul<mode>3): Use VF mode iterator.
11172         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
11173         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
11174         mode iterator.
11175         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11176         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11177         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
11178         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
11179         mode iterator.
11180         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11181         Use VF1 mode iterator.
11182         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11183         (sqrt<VF2:mode>2): New expander.
11184         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11185         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11186         and sqrtv2df2.  Use VF mode iterator.
11187         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
11188         mode iterator.
11189         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11190         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11191         Use VF1 mode iterator.
11192         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11193         (<smaxmin:code><mode>3): Use VF mode iterator.
11194         (*<smaxmin:code><mode>3_finite): Merge with
11195         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
11196         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11197         (<sse>_vm<smaxmin:code><mode>2): Merge with
11198         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
11199         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
11200         mode iterator.
11201         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
11202         mode iterator.
11203         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11204         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11205         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11206         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11207         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
11208         VF mode iterator.
11209         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11210         Use VF_128 mode iterator.
11211         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
11212         mode iterator.
11213         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
11214         VF_128 mode iterator.
11215         (vcond<mode>): Use VF mode iterator.
11216         * config/i386/predicates.md (sse_comparison_operator): Merge with
11217         avx_comparison_float_operator.  Do not declare as special_predicate.
11218         * config/i386/i386.c (struct builtin_description): Update for renamed
11219         compare patterns.
11220         (ix86_expand_args_builtin): Ditto.
11221         (ix86_expand_sse_compare_mask): Ditto.
11222
11223 2011-04-06  Richard Guenther  <rguenther@suse.de>
11224
11225         * tree-inline.c (estimate_num_insns): For calls simply account
11226         for all passed arguments and a used return value.
11227
11228 2011-04-06  Richard Guenther  <rguenther@suse.de>
11229
11230         PR tree-optimization/47663
11231         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11232         call_stmt_time fields.
11233         (cgraph_edge_inlinable_p): Declare.
11234         (cgraph_edge_recursive_p): New inline function.
11235         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11236         (cgraph_clone_edge): Copy it.
11237         * ipa-inline.c (cgraph_estimate_edge_time): New function.
11238         Account for call stmt time.
11239         (cgraph_estimate_time_after_inlining): Take edge argument.
11240         (cgraph_estimate_edge_growth): Account call stmt size.
11241         (cgraph_estimate_size_after_inlining): Take edge argument.
11242         (cgraph_mark_inline_edge): Adjust.
11243         (cgraph_check_inline_limits): Likewise.
11244         (cgraph_recursive_inlining_p): Remove.
11245         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11246         (cgraph_decide_recursive_inlining): Take edge argument and
11247         adjust.
11248         (cgraph_decide_inlining_of_small_functions): Do not avoid
11249         diags for recursive inlining here.
11250         (cgraph_flatten): Adjust.
11251         (cgraph_decide_inlining_incrementally): Likewise.
11252         (estimate_function_body_sizes): Remove call cost handling.
11253         (compute_inline_parameters): Initialize caller edge call costs.
11254         (cgraph_estimate_edge_growth): New function.
11255         (cgraph_estimate_growth): Use it.
11256         (cgraph_edge_badness): Likewise.
11257         (cgraph_check_inline_limits): Take an edge argument.
11258         (cgraph_decide_inlining_of_small_functions): Adjust.
11259         (cgraph_decide_inlining): Likewise.
11260         * tree-inline.c (estimate_num_insns): Only account for call
11261         return value if it is used.
11262         (expand_call_inline): Avoid diagnostics on recursive inline
11263         functions here.
11264         * lto-cgraph.c (lto_output_edge): Output edge call costs.
11265         (input_edge): Input edge call costs.
11266
11267 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11268
11269         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11270
11271 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
11272
11273         * doc/invoke.texi (Spec Files): Fix typo.
11274
11275 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
11276
11277         * profile.c (branch_prob): Move declaration of local variable.  Remove
11278         obsolete ??? comment.  Expand the location explicitly instead of using
11279         the LOCATION_FILE and LOCATION_LINE macros.
11280
11281 2011-04-06  Wei Guozhi  <carrot@google.com>
11282
11283         PR target/47855
11284         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11285         (arm_cond_branch): Likewise.
11286         (arm_cond_branch_reversed): Likewise.
11287         (arm_jump): Likewise.
11288         (push_multi): Likewise.
11289         * config/arm/constraints.md (Py): New constraint.
11290
11291 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11292
11293         PR bootstrap/48471
11294         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11295         Move these...
11296         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11297         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11298         #ifdef DBX_DEBUGGING_INFO.
11299
11300 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
11301
11302         PR bootstrap/48403
11303         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11304         if old and new states differ.
11305
11306 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
11307
11308         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11309         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11310         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11311         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11312         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11313         mcfv4e): Use Alias.
11314         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11315         ColdFire options to -mcpu= options.
11316
11317 2011-04-05  Jeff Law  <law@redhat.com>
11318
11319         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11320         check if BB is a successor of LOOP->header and return
11321         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11322
11323 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
11324
11325         * cprop.c (struct reg_use): Remove.
11326         (reg_use_table): Make an array of RTX.
11327         (find_used_regs, constprop_register, local_cprop_pass,
11328         bypass_block): Simplify users of reg_use_table.
11329         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
11330         on one of the uses found by find_used_regs.
11331
11332 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11333
11334         PR bootstrap/48469
11335         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11336         declaration.
11337
11338 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11339
11340         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11341         as an rtx.
11342         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11343
11344 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
11345
11346         PR middle-end/48441
11347         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11348
11349 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11350
11351         * combine.c: Include obstack.h.
11352         (struct insn_link): Define.
11353         (uid_log_links): Adjust type.
11354         (FOR_EACH_LOG_LINK): New macro.
11355         (insn_link_obstack): Declare.
11356         (alloc_insn_link): Define.
11357         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
11358         type of link variables.
11359         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11360         (try_combine, record_promoted_values, distribute_notes): Likewise.
11361         (distribute_links): Likewise.  Tweak prototype.
11362         (clear_log_links): Delete.
11363         (adjust_for_new_dest): Call alloc_insn_link.
11364         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11365
11366 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11367
11368         * gcse.c (modify_mem_list): Convert to an array of VECs.
11369         (canon_modify_mem_list, compute_transp): Tweak formatting.
11370         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
11371         (load_killed_in_block_p): Likewise.
11372         (record_last_mem_set_info): Likewise.
11373         (clear_modify_mem_tables): Likewise.
11374
11375 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11376
11377         PR middle-end/48461
11378         * function.c (emit_use_return_register_into_block): Only define if
11379         HAVE_return.
11380
11381 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
11382
11383         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11384
11385 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
11386
11387         * config/rx/rx-opts.h: New.
11388         * config/rx/rx.c (rx_cpu_type): Remove.
11389         (rx_handle_option): Don't assert that global structures are in
11390         use.  Access variables via opts pointer.  Defer most handling of
11391         OPT_mint_register_.  Use error_at.
11392         (rx_option_override): Handle deferred OPT_mint_register_ here.
11393         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11394         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11395         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11396         (rx_cpu_types): New Enum and EnumValue entries.
11397         (mint-register=): Use Defer and use Var accordingly.
11398
11399 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11400
11401         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11402         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11403         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11404         Move these...
11405         (debug_free_queue, debug_nesting, symbol_queue_index):
11406         ...and these...
11407         * dbxout.c: ...to here.  Make static.
11408
11409 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11410
11411         * gcse.c (modify_pair): Define.  Define a VEC of it.
11412         (canon_modify_mem_list): Convert to an array of VECs.
11413         (free_insn_expr_list_list): Delete.
11414         (clear_modify_mem_tables): Call VEC_free instead.
11415         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11416         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11417         (canon_list_insert, compute_transp): Likewise.
11418
11419 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11420
11421         PR target/43920
11422         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11423         for size.
11424
11425 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11426
11427         PR target/43920
11428         * function.c (emit_use_return_register_into_block): New function.
11429         (thread_prologue_and_epilogue_insns): Use
11430         emit_use_return_register_into_block.
11431
11432 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11433
11434         PR target/43920
11435         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11436         insn.
11437
11438 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11439
11440         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11441
11442 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
11443
11444         * config/arm/arm.md (define_constants for unspec): Replace with
11445         define_c_enum.
11446         (define_constants for unspecv): Replace with define_c_enum.
11447         * config/arm/neon.md (define_constants for unspec): Replace with
11448         define_c_enum.
11449
11450 2011-04-04  Richard Henderson  <rth@redhat.com>
11451
11452         PR bootstrap/48400
11453         * dwarf2out.c (output_line_info): Always emit line info from
11454         at least one section.
11455         (dwarf2out_init): Create text_section_line_info here ...
11456         (set_cur_line_info_table): ... not here.
11457
11458 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
11459
11460         PR target/48380
11461         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11462         not called.
11463
11464         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11465
11466 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
11467
11468         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11469         (expr_equiv_p): Remove.
11470         (insert_set_in_table): Look at <dest, src> pair instead of expr.
11471         (hash_scan_set): Update call to insert_set_in_table.
11472         (dump_hash_table): Dump <dest, src> pair.
11473         (lookup_set): Simplify.  Lookup <dest, src> pair.
11474         (compute_transp): Remove, fold heavily simplified code into...
11475         (compute_local_properties): ...here.  Expect COMP and TRANSP
11476         unconditionally.
11477         (find_avail_set): Take set directly from struct expr.
11478         (find_bypass-set): Likewise.
11479         (bypass_block): Likewise.
11480         (cprop_insn): Likewise.  Remove redundant INSN_P test.
11481
11482         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11483         checks on form of COND from find_implicit_sets to here.
11484         (find_implicit_sets): Cleanup control flow. Split critical edges
11485         if it exposes implicit sets.  Allocate/resize implicit_sets as
11486         necessary.
11487         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11488         changed something.  Run df_analyze after find_implicit_sets if any
11489         edges were split.  Do not allocate implicit_sets here.
11490
11491         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11492         (gcse_obstack): Renamed to cprop_obstack.
11493         (GNEW, GNEWVEC, GNEWVAR): Remove.
11494         (gmalloc): Remove.
11495         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11496         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11497         (gcse_alloc): Likewise, and rename to cprop_alloc.
11498         (alloc_gcse_men, free_gcse_mem): Remove.
11499         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11500         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11501         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11502
11503         * cprop.c (oprs_not_set_p): Remove.
11504         (mark_set, mark_clobber): Remove.
11505         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11506         (reg_not_set_p): New function.
11507         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11508         (cprop_insn): Likewise.
11509         (cprop_jump): Use FOR_EACH_EDGE.
11510
11511 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
11512
11513         PR bootstrap/48403
11514         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11515         (rank_for_schedule): Use scheduled_insns vector instead of
11516         last_scheduled_insn.
11517         (ok_for_early_queue_removal): Likewise.
11518         (queue_to_ready): Search forward in nonscheduled_insns_begin if
11519         we have a dbg_cnt.
11520         (choose_ready): Likewise.
11521         (commit_schedule): Use VEC_iterate.
11522         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
11523         a dbg_cnt, use it and ensure the first insn is in the ready list.
11524         (haifa_sched_init): Allocate scheduled_insns.
11525         (sched_extend_ready_list): Don't allocate it; reserve space.
11526         (haifa_sched_finish): Free it.
11527
11528 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11529
11530         * optc-gen.awk: Always remove type from Variable entry before
11531         recording in var_seen.
11532
11533 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
11534
11535         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11536         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11537         call to tidy_fallthru_edges.
11538
11539 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11540
11541         * doc/options.texi (ToLower): Document.
11542         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11543         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11544         * opts.h (cl_option): Add cl_tolower field.
11545         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11546         arguments with lowercase strings.
11547         * config/rx/rx.opt (mcpu=): Add ToLower.
11548         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11549         argument.
11550
11551 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11552
11553         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11554
11555 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11556
11557         * config/vax/vax.c: Include reload.h.
11558
11559 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
11560
11561         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11562         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11563         (sparc_preferred_reload_class): New function.
11564
11565 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
11566
11567         PR debug/48401
11568         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11569         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11570
11571 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
11572
11573         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11574         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11575
11576 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
11577
11578         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11579         (ASM_OUTPUT_ALIGNED_BSS): Define.
11580
11581 2011-04-03  Michael Matz  <matz@suse.de>
11582
11583         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11584         and next_slot members.
11585         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11586         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11587         (lto_streamer_cache_append): Declare.
11588         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11589         unsigned index, remove offset parameter, ensure that we append
11590         or update existing entries.
11591         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11592         parameter, update next_slot for append.
11593         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11594         parameter.
11595         (lto_streamer_cache_insert_at): Likewise.
11596         (lto_streamer_cache_append): New function.
11597         (lto_streamer_cache_lookup): Use unsigned index.
11598         (lto_streamer_cache_get): Likewise.
11599         (lto_record_common_node): Don't test tree_node_can_be_shared.
11600         (preload_common_node): Adjust call to lto_streamer_cache_insert.
11601         (lto_streamer_cache_delete): Don't free offsets member.
11602         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11603         (lto_output_string_with_length): Use lto_output_data_stream.
11604         (lto_output_tree_header): Remove ix parameter, don't write it.
11605         (lto_output_builtin_tree): Likewise.
11606         (lto_write_tree): Adjust callers to above, don't track and write
11607         offset, write unsigned index.
11608         (output_unreferenced_globals): Don't emit all global vars.
11609         (write_global_references): Use unsigned indices.
11610         (lto_output_decl_state_refs): Likewise.
11611         (write_symbol): Likewise.
11612         * lto-streamer-in.c (lto_input_chain): Move earlier.
11613         (input_function): Use unsigned index.
11614         (input_alias_pairs): Don't read and then ignore all global vars.
11615         (lto_materialize_tree): Remove ix_p parameter, don't read index,
11616         don't pass it back, use lto_streamer_cache_append.
11617         (lto_register_var_decl_in_symtab): Use unsigned index.
11618         (lto_register_function_decl_in_symtab): Likewise.
11619         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11620         index.
11621         (lto_get_builtin_tree): Don't read index, use
11622         lto_streamer_cache_append.
11623         (lto_read_tree): Adjust call to lto_materialize_tree.
11624
11625         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11626         don't use function calls in arguments to MIN.
11627
11628         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11629         twice.
11630
11631         * gimple.c (gimple_type_leader_entry): Mark deletable.
11632
11633 2011-04-03  Alan Modra  <amodra@gmail.com>
11634
11635         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11636
11637 2011-04-03  Michael Matz  <matz@suse.de>
11638
11639         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11640         an integer.
11641         * tree.h (tree_decl_non_common.vindex): Adjust comment.
11642
11643 2011-04-03  Michael Matz  <matz@suse.de>
11644
11645         * cgraphbuild.c (record_reference): Canonicalize constructor values.
11646         * gimple-fold.c (canonicalize_constructor_val): Accept being called
11647         without function context.
11648         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11649         current_function_decl and cfun.
11650
11651 2011-04-03  Michael Matz  <matz@suse.de>
11652
11653         * tree.c (decl_init_priority_insert): Don't create entry for
11654         default priority.
11655         (decl_fini_priority_insert): Ditto.
11656         (fields_compatible_p, find_compatible_field): Remove.
11657         * tree.h (fields_compatible_p, find_compatible_field): Remove.
11658         * gimple.c (gimple_compare_field_offset): Adjust block comment.
11659
11660 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
11661
11662         * combine.c (try_combine): Remove useless local variable.
11663
11664 2011-04-03  Richard Guenther  <rguenther@suse.de>
11665             Ira Rosen  <ira.rosen@linaro.org>
11666
11667         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11668         non-variable offsets and compare the remaining bases of the two
11669         accesses instead of looking for exact same data-ref.
11670
11671 2011-04-02  Kai Tietz  <ktietz@redhat.com>
11672
11673         PR target/48416
11674         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11675
11676         * i386.c (ix86_is_msabi_thiscall): New helper function.
11677         (ix86_is_type_thiscall): New helper function.
11678         (ix86_comp_type_attributes): Handle thiscall for method-functions
11679         special.
11680         (init_cumulative_args): Likewise.
11681         (find_drap_reg): Likewise.
11682         (ix86_static_chain): Likewise.
11683         (x86_this_parameter): Likewise.
11684         (x86_output_mi_thunk): Likewise.
11685
11686 2011-04-01  Olivier Hainque  <hainque@adacore.com>
11687             Nicolas Setton  <setton@adacore.com>
11688             Eric Botcazou  <ebotcazou@adacore.com>
11689
11690         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11691         (add_gnat_descriptive_type_attribute): New function.
11692         (gen_array_type_die): Call it.
11693         (gen_enumeration_type_die): Likewise.
11694         (gen_struct_or_union_type_die): Likewise.
11695         (modified_type_die): Likewise.
11696         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11697         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11698         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11699
11700 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11701
11702         PR bootstrap/48148
11703         * dwarf2out.c (resolve_addr): Don't call force_decl_die
11704         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11705
11706         Revert:
11707         2011-03-17  Richard Guenther  <rguenther@suse.de>
11708
11709         PR bootstrap/48148
11710         * lto-cgraph.c (input_overwrite_node): Clear the abstract
11711         origin for decls in other ltrans units.
11712         (input_varpool_node): Likewise.
11713
11714 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11715
11716         PR middle-end/48335
11717         * expr.c (expand_assignment): Handle all possibilities
11718         if TO_RTX is CONCAT.
11719         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11720         (store_split_bit_field): If SUBREG_REG (op0) or
11721         op0 itself has smaller mode than word, return it
11722         for offset 0 and const0_rtx for out-of-bounds stores.
11723         If word is const0_rtx, skip it.
11724
11725 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
11726
11727         * config/h8300/h8300.c (print_operand_address): Rename to...
11728         (h8300_print_operand_address): ...this. Make static. Adjust comments.
11729         Call h8300_print_operand and h8300_print_operand_address instead of
11730         print_operand and print_operand_address. Declare.
11731         (print_operand): Renake to...
11732         (h8300_print_operand): ...this. Make static. Adjust comments.
11733         Call h8300_print_operand instead of print_operand. Declare.
11734         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11735         (h8300_register_move_cost): Likewise.
11736         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11737         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11738         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11739         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11740         * config/h8300/h8300-protos.h (print_operand): Delete.
11741         (print_operand_address): Delete.
11742
11743 2011-04-01  Richard Henderson  <rth@redhat.com>
11744
11745         PR 48400
11746         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11747         in strict mode before dwarf4.  Re-order tests to early out
11748         before switching sections.
11749
11750 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
11751
11752         * config/h8300/constraints.md: New file.
11753         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
11754         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11755         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11756         * config/h8300/predicates.md (bit_operand): Likewise.
11757         (incdec_operand): Use satisfies_constraint_M and
11758         satisfies_constraint_O.  Don't use C code block.
11759         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11760         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11761         (compute_mov_length): Use satisfies_constraint_G.
11762         (fix_bit_operand): Use satisfies_constraint_U.
11763         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11764         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11765         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11766         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11767         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11768         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11769         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11770         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11771         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11772         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11773         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11774         (EXTRA_MEMORY_CONSTRAINT): Delete.
11775
11776 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
11777             Michael Meissner  <meissner@linux.vnet.ibm.com>
11778
11779         PR target/48262
11780         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11781         operands, as per the specifications.
11782
11783         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11784         (vec_extract_evenv4sf): Ditto.
11785         (vec_extract_evenv8hi): Ditto.
11786         (vec_extract_evenv16qi): Ditto.
11787         (vec_extract_oddv4si): Ditto.
11788
11789 2011-03-31  Mark Wielaard  <mjw@redhat.com>
11790
11791         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11792         high_pc attribute if the CU has no associated code. Only output
11793         DW_AT_entry_pc for CU if not generating strict dwarf and
11794         dwarf_version < 4.
11795
11796 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
11797
11798         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11799         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11800         out of ...
11801         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11802         * final.c (final_start_function): Call the new function rather
11803         than using a NULL argument for dwarf2out_frame_debug.
11804
11805         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11806         that contains the prologue.
11807
11808         * haifa-sched.c (queue_insn): New arg REASON.  All callers
11809         changed.  Print it in debugging output.
11810
11811         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11812
11813         * sched-ebb.c (begin_schedule_ready): Remove second argument.
11814         Split most of the code into...
11815         (begin_move_insn): ... here.  New function.
11816         (ebb_sched_info): Add a pointer to it.
11817         * haifa-sched.c (scheduled_insns): New static variable.
11818         (sched_extend_ready_list): Allocate it.
11819         (schedule_block): Use it to record the order of scheduled insns.
11820         Perform RTL changes to move insns only after all scheduling
11821         decisions have been made.
11822         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11823         begin_move_insn field.
11824         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11825         * sched-int.h (struct haifa_sched_info): Remove second argument
11826         from begin_schedule_ready hook.  Add new member begin_move_insn.
11827         * sched-rgn.c (begin_schedule_ready): Remove second argument.
11828         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11829
11830         * haifa-sched.c (prune_ready_list): New function, broken out of
11831         schedule_block.
11832         (schedule_block): Use it.
11833
11834 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11835
11836         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11837
11838 2011-04-01  Kai Tietz  <ktietz@redhat.com>
11839
11840         * config.gcc (*-*-mingw*): Allow as option the
11841         posix threading model.
11842         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
11843         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11844         definition.
11845         (CPP_SPEC): Add pthread/no-pthread handling.
11846         (LIB_SPEC): Likewise.
11847         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11848         (LIB_SPEC): Likewise.
11849         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11850         flag to pass -pthread option for shared libgcc build.
11851         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11852         for shared libgcc build.
11853         * config/i386/t-mingw-pthread: New file.
11854         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11855         New define to enable use of library pthread by default.
11856         * config/i386/mingw.opt (pthread): New driver option.
11857         (no-pthread): New driver option.
11858         * config/i386/cygming.opt: Make sure trailing empty line is retained.
11859         * config/i386/mingw-w64.opt: Likewise.
11860
11861 2011-04-01  Gary Funck  <gary@intrepid.com>
11862
11863         * c-decl.c (grokdeclarator): Fix formatting.
11864
11865 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11866
11867         * expr.c (emit_block_move_via_movmem): Use n_generator_args
11868         instead of n_operands.
11869         (set_storage_via_setmem): Likewise.
11870         * optabs.c (maybe_gen_insn): Likewise.
11871         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11872         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11873         (mips_expand_builtin_direct): Likewise.
11874         * config/spu/spu.c (expand_builtin_args): Likewise.
11875
11876 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11877
11878         * recog.h (insn_data_d): Add n_generator_args.
11879         * genoutput.c (data): Likewise.
11880         (output_insn_data): Print it.
11881         (max_opno, num_dups): Delete.
11882         (scan_operands): Just fill in "d->operand[...]".
11883         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11884
11885 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11886
11887         * gensupport.h (pattern_stats): New structure.
11888         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11889         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11890         (max_operand_1, max_operand_vec): Delete.
11891         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11892
11893 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
11894
11895         * emit-rtl.c (emit_pattern_after_setloc): New function.
11896         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11897         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11898         (emit_pattern_after): New function.
11899         (emit_insn_after, emit_jump_insn_after): Call it.
11900         (emit_call_insn_after, emit_debug_insn_after): Likewise.
11901         (emit_pattern_before_setloc): New function.
11902         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11903         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11904         Likewise.
11905         (emit_pattern_before): New function.
11906         (emit_insn_before, emit_jump_insn_before): Call it.
11907         (emit_call_insn_before, emit_debug_insn_before): Likewise.
11908
11909 2011-03-31  Richard Henderson  <rth@redhat.com>
11910
11911         * dwarf2out.c (dw_separate_line_info_ref): Remove.
11912         (dw_separate_line_info_entry): Remove.
11913         (enum dw_line_info_opcode): New.
11914         (dw_line_info_entry): Use it.
11915         (dw_line_info_table, dw_line_info_table_p): New.
11916         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11917         (line_info_table, line_info_label_num): Remove.
11918         (line_info_table_in_use): Remove.
11919         (separate_line_info_table): Remove.
11920         (separate_line_info_table_allocated): Remove.
11921         (separate_line_info_table_in_use): Remove.
11922         (LINE_INFO_TABLE_INCREMENT): Remove.
11923         (line_info_label_num): New.
11924         (cur_line_info_table): New.
11925         (text_section_line_info, cold_text_section_line_info): New.
11926         (separate_line_info): New.
11927         (SEPARATE_LINE_CODE_LABEL): Remove.
11928         (print_dwarf_line_table): Remove.
11929         (debug_dwarf): Don't dump it.
11930         (output_one_line_info_table): New.
11931         (output_line_info): Use it.
11932         (new_line_info_table): New.
11933         (set_cur_line_info_table): New.
11934         (dwarf2out_switch_text_section): Use it.
11935         (dwarf2out_begin_function): Likewise.
11936         (push_dw_line_info_entry): New.
11937         (dwarf2out_source_line): Rewrite for new line info tables.
11938         (dwarf2out_init): Remove dead initailizations.
11939
11940 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11941
11942         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
11943         various flags.
11944         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11945         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11946         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11947         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11948         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11949         * opt-functions.awk (flag_init, switch_bit_fields): New.
11950         (switch_flags): Don't handle flags moved to bit-fields.  Don't
11951         generate CL_MISSING_OK or CL_SAVE.
11952         * optc-gen.awk: Update to generate bit-field output as well as
11953         flags field.
11954         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11955         bit-field instead of CL_REJECT_DRIVER flag.
11956         * opts-common.c (generate_canonical_option,
11957         decode_cmdline_option): Use bit-fields instead of CL_* flags.
11958         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11959         instead of CL_REJECT_NEGATIVE flag.
11960         * toplev.c (print_switch_values): Use cl_report bit-field instead
11961         of CL_REPORT flag.
11962
11963 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11964
11965         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11966         a zero minimum index only if it is redundant.
11967
11968 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
11969
11970         PR rtl-optimization/48381
11971         * ira-color.c (assign_hard_reg): Use hard reg set intersection
11972         instead of ira_class_hard_reg_index for calculating conflicting
11973         hard registers.
11974
11975 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
11976
11977         * cprop.c: Clean up hash table building.
11978         (reg_avail_info): Remove.
11979         (oprs_available_p): Remove.
11980         (record_last_reg_set_info): Remove.
11981         (record_last_set_info): Remove.
11982         (reg_available_p): New function.
11983         (gcse_constant_p): Do not treat unfolded conditions as constants.
11984         (make_set_regs_unavailable): New function.
11985         (hash_scan_set): Simplify with new reg_available_p.
11986         (compute_hash_table_work): Traverse insns stream only once.
11987         Do not compute reg_avail_info. Traverse insns in reverse order.
11988         Record implicit sets after recording explicit sets from the block.
11989
11990 2011-03-31  Michael Matz  <matz@suse.de>
11991
11992         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11993
11994 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
11995
11996         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11997         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11998         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11999         (h8300_mode_dependent_address_p): New function.
12000         (h8300_get_index): Make static.
12001
12002 2011-03-31  Jeff Law  <law@redhat.com>
12003
12004         * reload1.c (elimination_effects): Fix typo in recent change.
12005
12006         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
12007         typo potentially leading to null pointer dereference.
12008
12009         * caller-save.c (new_saved_hard_reg): Eliminate return value.
12010         (setup_save_areas): Corresponding changes to avoid useless
12011         assignments.
12012
12013         * jump.c (reversed_comparison_code_parts): Avoid successive return
12014         statements when REVERSE_CONDITION is defined.
12015
12016         * expr.c (expand_assignment): Avoid useless assignments.
12017         (expand_expr_real_1): Likewise.
12018         (expand_expr_real_2): Avoid useless statements.
12019
12020         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12021
12022         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12023
12024         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12025         statements.
12026
12027         * stmt.c (expand_expr_stmt): Avoid useless assignment.
12028
12029 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
12030
12031         PR target/47109
12032         * doc/tm.texi.in (TARGET_VERSION): Remove.
12033         * doc/tm.texi: Regenerate.
12034         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12035         * collect2.c (main): Don't use TARGET_VERSION.
12036         * mips-tdump.c (main): Don't use TARGET_VERSION.
12037         * mips-tfile.c (main): Don't use TARGET_VERSION.
12038         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12039         * config/rs6000/vxworksae.h: Remove.
12040         * config/alpha/alpha.h (TARGET_VERSION): Remove.
12041         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12042         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12043         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12044         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12045         * config/arm/arm.h (TARGET_VERSION): Remove.
12046         * config/arm/coff.h (TARGET_VERSION): Remove.
12047         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12048         * config/arm/elf.h (TARGET_VERSION): Remove.
12049         * config/arm/freebsd.h (TARGET_VERSION): Remove.
12050         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12051         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12052         * config/arm/pe.h (TARGET_VERSION): Remove.
12053         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12054         * config/arm/semi.h (TARGET_VERSION): Remove.
12055         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12056         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12057         * config/arm/vxworks.h (TARGET_VERSION): Remove.
12058         * config/avr/avr.h (TARGET_VERSION): Remove.
12059         * config/bfin/bfin.h (TARGET_VERSION): Remove.
12060         * config/fr30/fr30.h (TARGET_VERSION): Remove.
12061         * config/frv/frv.h (TARGET_VERSION): Remove.
12062         * config/h8300/h8300.h (TARGET_VERSION): Remove.
12063         * config/i386/cygwin.h (TARGET_VERSION): Remove.
12064         * config/i386/darwin.h (TARGET_VERSION): Remove.
12065         * config/i386/darwin64.h (TARGET_VERSION): Remove.
12066         * config/i386/djgpp.h (TARGET_VERSION): Remove.
12067         * config/i386/freebsd.h (TARGET_VERSION): Remove.
12068         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12069         * config/i386/gnu.h (TARGET_VERSION): Remove.
12070         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12071         * config/i386/i386elf.h (TARGET_VERSION): Remove.
12072         * config/i386/linux.h (TARGET_VERSION): Remove.
12073         * config/i386/linux64.h (TARGET_VERSION): Remove.
12074         * config/i386/lynx.h (TARGET_VERSION): Remove.
12075         * config/i386/mingw32.h (TARGET_VERSION): Remove.
12076         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12077         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12078         * config/i386/netware.h (TARGET_VERSION): Remove.
12079         * config/i386/nto.h (TARGET_VERSION): Remove.
12080         * config/i386/openbsd.h (TARGET_VERSION): Remove.
12081         * config/i386/vxworks.h (TARGET_VERSION): Remove.
12082         * config/ia64/elf.h (TARGET_VERSION): Remove.
12083         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12084         * config/ia64/hpux.h (TARGET_VERSION): Remove.
12085         * config/ia64/linux.h (TARGET_VERSION): Remove.
12086         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12087         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12088         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12089         * config/lm32/lm32.h (TARGET_VERSION): Remove.
12090         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12091         * config/m32c/m32c.h (TARGET_VERSION): Remove.
12092         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12093         * config/m32r/m32r.h (TARGET_VERSION): Remove.
12094         * config/m68k/linux.h (TARGET_VERSION): Remove.
12095         * config/m68k/m68k.h (TARGET_VERSION): Remove.
12096         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12097         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12098         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12099         * config/mep/mep.h (TARGET_VERSION): Remove.
12100         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12101         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12102         * config/mips/iris6.h (MACHINE_TYPE): Remove.
12103         * config/mips/linux.h (TARGET_VERSION): Remove.
12104         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12105         * config/mips/vxworks.h (TARGET_VERSION): Remove.
12106         * config/mmix/mmix.h (TARGET_VERSION): Remove.
12107         * config/mn10300/linux.h (TARGET_VERSION): Remove.
12108         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12109         * config/pa/pa.h (TARGET_VERSION): Remove.
12110         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12111         * config/picochip/picochip.h (TARGET_VERSION): Remove.
12112         * config/rs6000/aix.h (TARGET_VERSION): Remove.
12113         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12114         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12115         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12116         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12117         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12118         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12119         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12120         * config/rs6000/linux.h (TARGET_VERSION): Remove.
12121         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12122         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12123         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12124         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12125         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12126         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12127         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12128         * config/s390/linux.h (TARGET_VERSION): Remove.
12129         * config/s390/s390.h (TARGET_VERSION): Remove.
12130         * config/s390/tpf.h (TARGET_VERSION): Remove.
12131         * config/score/score.h (TARGET_VERSION): Remove.
12132         * config/sh/linux.h (TARGET_VERSION): Remove.
12133         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12134         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12135         * config/sh/sh.h (TARGET_VERSION): Remove.
12136         * config/sh/sh64.h (TARGET_VERSION): Remove.
12137         * config/sh/superh.h (TARGET_VERSION): Remove.
12138         * config/sh/vxworks.h (TARGET_VERSION): Remove.
12139         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12140         * config/sparc/linux.h (TARGET_VERSION): Remove.
12141         * config/sparc/linux64.h (TARGET_VERSION): Remove.
12142         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12143         TARGET_NAME32, TARGET_NAME): Remove.
12144         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12145         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12146         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12147         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12148         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12149         * config/spu/spu.h (TARGET_VERSION): Remove.
12150         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12151         * config/v850/v850.h (TARGET_VERSION): Remove.
12152         * config/vax/linux.h (TARGET_VERSION): Remove.
12153         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12154         * config/xtensa/elf.h (TARGET_VERSION): Remove.
12155         * config/xtensa/linux.h (TARGET_VERSION): Remove.
12156
12157 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
12158
12159         PR target/48142
12160         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12161         frame-related from frame-unrelated adjustments to the stack pointer.
12162
12163 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
12164
12165         * common.opt (fdebug-types-section): Move earlier.
12166         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12167
12168 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
12169
12170         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12171         var.
12172
12173 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
12174
12175         * tree.h (CASE_CHAIN): Define.
12176         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12177         (gimple_redirect_edge_and_branch): Likewise.
12178
12179 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
12180
12181         PR middle-end/48367
12182         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12183         calculation.
12184
12185 2011-03-30  Jeff Law  <law@redhat.com>
12186
12187         * PR bootstrap/48371
12188         * reload1.c (reload): Fix botch in last change.
12189
12190         * reload.h (struct reload): Fix typo introduced in last change.
12191
12192 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12193
12194         * config/arm/arm.opt (mhard-float, msoft-float): Mark
12195         Undocumented.  Remove help text.
12196         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12197         -mhard-float.
12198
12199 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12200
12201         * doc/options.texi (NegativeAlias): Document.
12202         (Alias): Mention NegativeAlias.
12203         * opt-functions.awk: Handle NegativeAlias.
12204         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
12205         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12206         * opts.h (CL_NEGATIVE_ALIAS): Define.
12207         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12208         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12209         OPT_mspe_.
12210         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12211         Alias entries.
12212         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12213         mno-spe and mno-isel instead of mspe=no and -misel=no.
12214
12215 2011-03-29  Mark Wielaard  <mjw@redhat.com>
12216
12217         * common.opt (fdebug-types-section): New flag.
12218         * doc/invoke.texi: Document new -fno-debug-types-section flag.
12219         * dwarf2out.c (use_debug_types): New define.
12220         (struct die_struct): Mark die_id with GTY desc use_debug_types.
12221         (print_die): Guard output of type unit signatures using
12222         use_debug_types.
12223         (build_abbrev_table): Replace assert of dwarf_version >= 4
12224         with assert on use_debug_types.
12225         (size_of_die): Likewise.
12226         (unmark_dies): Likewise.
12227         (value_format): Decide AT_ref_external form on use_debug_types.
12228         (output_die): Replace dwarf_version version check guard with
12229         use_debug_types where appropriate.
12230         (modified_type_die): Likewise.
12231         (gen_reference_type_die): Likewise.
12232         (dwarf2out_start_source_file): Likewise.
12233         (dwarf2out_end_source_file): Likewise.
12234         (prune_unused_types_walk_attribs): Likewise.
12235         (dwarf2out_finish): Likewise.
12236
12237 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
12238
12239         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12240
12241 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12242
12243         PR rtl-optimization/48332
12244         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12245         mode of input operand N and modeN to its actual mode.
12246
12247 2011-03-30  Jeff Law  <law@redhat.com>
12248
12249         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12250         define accessor macro.
12251         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12252         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12253         (reg_equiv_init): Likewise.
12254         (reg_equivs_size): New variable.
12255         (reg_equiv_init_size): Remove.
12256         (allocate_initial_values): Move prototype to here from....
12257         * integrate.h (allocate_initial_values): Remove prototype.
12258         * integrate.c: Include reload.h.
12259         (allocate_initial_values): Corresponding changes.
12260         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12261         (fix_reg_equiv_init, no_equiv): Corresponding changes.
12262         (update_equiv_regs): Corresponding changes.
12263         (ira): Corresponding changes.
12264         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12265         (push_secondary_reload): Corresponding changes.
12266         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12267         (make_memloc, find_reloads_address): Corresponding changes.
12268         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12269         (find_reloads_address_1): Corresponding changes.
12270         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12271         (refers_to_regno_for_reload_p): Corresponding changes.
12272         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12273         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12274         * reload1.c: Include ggc.h.
12275         (grow_reg_equivs): New function.
12276         (replace_pseudos_in, reload): Corresponding changes.
12277         (calculate_needs_all_insns, alter_regs): Corresponding changes.
12278         (eliminate_regs_1, elimination_effects): Corresponding changes.
12279         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12280         (delete_output_reload): Likewise.
12281         * caller-save.c (mark_referenced_regs): Corresponding changes.
12282         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12283         * frv/predicates.md (frv_load_operand): Corresponding changes.
12284         * microblaze/microblaze.c (double_memory_operand): Corresponding
12285         changes.
12286         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12287         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12288         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12289         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12290         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12291         changes.
12292         * pa/pa.c (emit_move_sequence): Corresponding changes.
12293         * vax/vax.c (nonindexed_address_p): Corresponding changes.
12294
12295 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12296
12297         PR target/47551
12298         * config/arm/arm.c (coproc_secondary_reload_class): Handle
12299         structure modes.  Don't check neon_vector_mem_operand for
12300         vector or structure modes.
12301
12302 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12303             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12304
12305         PR target/43590
12306         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12307         operand 1 and reshuffle the operands to match.
12308         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12309
12310 2011-03-30  Christian Schüler  <cschueler@gmx.de>
12311
12312         PR driver/48208
12313         * config/c.opt (F): Added 'Driver' to -F option.
12314
12315         PR driver/48260
12316         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12317           handler function.
12318         * config/darwin.opt: Added '-arch' option.
12319
12320 2011-03-30  Nick Clifton  <nickc@redhat.com>
12321
12322         * config/rx/rx.md: Add peepholes and patterns to combine
12323         extending loads and simple arithmetic instructions.
12324         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12325         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12326         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12327         modes to use pre-decrement and post-increment addressing.
12328         (rx_is_restricted_memory_address): Add range checking of REG+INT
12329         addresses.
12330         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
12331         (rx_memory_move_cost): Adjust cost of stores.
12332         (rx_adjust_insn_length): New function.
12333
12334 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
12335
12336         PR c/48305
12337         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12338         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12339         matching arg00/arg01 types.
12340
12341 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
12342
12343         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12344         last_location to UNKNOWN_LOCATION.
12345
12346 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
12347
12348         PR target/48349
12349         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12350         FLOAT_SSE_REGS.
12351
12352 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12353             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12354
12355         PR bootstrap/48337
12356         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12357         Init(PROCESSOR_V7).
12358         (sparc_cpu): Likewise.
12359         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12360         PROCESSOR_V7.
12361
12362 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12363
12364         PR target/48336
12365         PR middle-end/48342
12366         PR rtl-optimization/48345
12367         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12368         hard regs for given mode from profitable regs when doing secondary
12369         allocation.
12370
12371 2011-03-29  Jeff Law  <law@redhat.com>
12372
12373         PR bootstrap/48327
12374         * tree-ssa-threadupdate.c (struct redirection_data): Remove
12375         do_not_duplicate field.
12376         (lookup_redirection_data): Corresponding changes.
12377         (create_duplicates): Always create a template block.
12378         (redirect_edges): Remove code which reused the original block
12379         when it was going to become unreachable code.
12380         (thread_block): Don't set do_not_duplicate field.
12381
12382 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
12383
12384         * lto-opts.c (register_user_option_p, lto_register_user_option):
12385         Make type argument unsigned.
12386         * lto-streamer.h (lto_register_user_option): Make type argument
12387         unsigned.
12388         * opth-gen.awk: Make CL_* macros unsigned.
12389         * opts-common.c (find_opt): Make lang_mask argument unsigned.
12390         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12391         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12392         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12393         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12394         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12395         (find_opt): Make lang_mask argument unsigned.
12396
12397 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12398
12399         PR rtl-optimization/48331
12400         PR rtl-optimization/48334
12401         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12402         for any used algorithm.
12403
12404 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12405
12406         * ira-conflicts.c (build_object_conflicts): Add unused attribute
12407         to parent_max.
12408
12409 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
12410
12411         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12412         (alpha_option_override): Don't set alpha_sr_alias_set.
12413         (emit_frame_store_1): Use gen_frame_mem rather than calling
12414         set_mem_alias_set.
12415         (alpha_expand_epilogue): Ditto.
12416
12417 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
12418
12419         PR tree-optimization/48290
12420         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12421         vectorization, check that relevant phis in the basic block after
12422         the inner loop are really inner loop's exit phis.
12423
12424 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
12425
12426         PR debug/48190
12427         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12428         (cached_dw_loc_list_def): New structure.
12429         (cached_dw_loc_list): New typedef.
12430         (cached_dw_loc_list_table): New variable.
12431         (cached_dw_loc_list_table_hash): New function.
12432         (cached_dw_loc_list_table_eq): Likewise.
12433         (add_location_or_const_value_attribute): Take a bool cache_p.
12434         Cache the list when the parameter is true.
12435         (gen_formal_parameter_die): Update caller.
12436         (gen_variable_die): Likewise.
12437         (dwarf2out_finish): Likewise.
12438         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12439         while generating debug info for the decl.
12440         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12441         (dwarf2out_init): Initialize cached_dw_loc_list_table.
12442         (resolve_addr): Cache the result of resolving a chain of
12443         location lists.
12444
12445 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
12446
12447         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12448         conflict object hard regset nodes have intersecting hard reg sets.
12449
12450         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12451         after regstat_init_n_sets_and_refs.
12452
12453         * ira.c: Add more comments at the top.
12454         (setup_stack_reg_pressure_class, setup_pressure_classes):
12455         Add comments how we compute the register pressure classes.
12456         (setup_allocno_and_important_classes): Add more comments.
12457         (setup_class_translate_array, reorder_important_classes)
12458         (setup_reg_class_relations): Add comments.
12459
12460         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
12461         start of the file.
12462
12463         * ira-color.c: Add 2011 to the Copyright line.
12464         (assign_hard_reg):  Add more comments.
12465         (improve_allocation): Ditto.
12466
12467         * ira-costs.c: Add 2011 to the Copyright line.
12468         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12469         comments.
12470         (setup_regno_cost_classes_by_mode): Ditto.
12471
12472         Initial patches from ira-improv branch:
12473
12474         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12475
12476         * ira-build.c (ira_create_object): Remove initialization of
12477         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
12478         (ira_create_allocno): Remove initialization of
12479         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12480         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12481         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12482         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12483         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12484         Initialize ALLOCNO_ADD_DATA.
12485         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12486         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12487         ALLOCNO_REG.
12488         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
12489         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12490
12491         * ira.c (ira_reallocate): Remove.
12492         (setup_pressure_classes): Call
12493         ira_init_register_move_cost_if_necessary.  Use
12494         ira_register_move_cost instead of ira_get_register_move_cost.
12495         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12496         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12497
12498         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12499         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12500         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12501         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12502         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12503         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12504         Fix formatting.
12505         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12506         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12507         (struct allocno_color_data): New.
12508         (allocno_color_data_t): New typedef.
12509         (allocno_color_data): New definition.
12510         (ALLOCNO_COLOR_DATA): New macro.
12511         (struct object_color_data): New.
12512         (object_color_data_t): New typedef.
12513         (object_color_data): New definition.
12514         (OBJECT_COLOR_DATA): New macro.
12515         (update_copy_costs, calculate_allocno_spill_cost): Call
12516         ira_init_register_move_cost_if_necessary.  Use
12517         ira_register_move_cost instead of ira_get_register_move_cost.
12518         (move_spill_restore, update_curr_costs): Ditto.
12519         (allocno_spill_priority): Make it inline.
12520         (color_pass): Allocate and free allocno_color_dat and object_color_data.
12521         (struct coalesce_data, coalesce_data_t): New.
12522         (allocno_coalesce_data): New definition.
12523         (ALLOCNO_COALESCE_DATA): New macro.
12524         (merge_allocnos, coalesced_allocno_conflict_p): Use
12525         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12526         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12527         (coalesce_allocnos): Ditto.
12528         (setup_coalesced_allocno_costs_and_nums): Ditto.
12529         (collect_spilled_coalesced_allocnos): Ditto.
12530         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12531         (setup_slot_coalesced_allocno_live_ranges): Ditto.
12532         (coalesce_spill_slots): Ditto.
12533         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
12534         free allocno_coalesce_data.
12535
12536         * ira-conflicts.c: Fix formatting.
12537         (process_regs_for_copy): Call
12538         ira_init_register_move_cost_if_necessary.  Use
12539         ira_register_move_cost instead of ira_get_register_move_cost.
12540         (build_object_conflicts): Optimize.
12541
12542         * ira-costs.c (record_reg_classes): Optimize.  Call
12543         ira_init_register_move_cost_if_necessary.  Use
12544         ira_register_move_cost, ira_may_move_in_cost, and
12545         ira_may_move_out_cost instead of ira_get_register_move_cost and
12546         ira_get_may_move_cost.
12547         (record_address_regs): Ditto.
12548         (scan_one_insn): Optimize.
12549         (find_costs_and_classes): Optimize.
12550         (process_bb_node_for_hard_reg_moves): Call
12551         ira_init_register_move_cost_if_necessary.  Use
12552         ira_register_move_cost instead of ira_get_register_move_cost.
12553
12554         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12555         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12556         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12557         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12558         definitions.
12559         (ira_initiate_emit_data, ira_finish_emit_data)
12560         (create_new_allocno): New functions.
12561         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12562         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12563         Use ira_register_move_cost instead of ira_get_register_move_cost.
12564
12565         * ira-int.h: Fix some comments.
12566         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12567         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12568         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12569         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
12570         add_data.
12571         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
12572         bitfield after mode.  Make hard_regno a short int.  Make
12573         hard_regno short.  Remove first_coalesced_allocno and
12574         next_coalesced_allocno.  Move mem_optimized_dest_p,
12575         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12576         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
12577         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12578         temp, colorable_p.  Add new member add_data.
12579         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12580         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12581         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12582         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12583         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12584         (ALLOCNO_ADD_DATA): New macro.
12585         (ira_emit_data_t): New typedef.
12586         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
12587         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12588         from struct ira_allocno.
12589         (ALLOCNO_EMIT_DATA): New macro.
12590         (ira_allocno_emit_data, allocno_emit_reg): New.
12591         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12592         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12593         (OBJECT_ADD_DATA): New macro.
12594         (ira_reallocate): Remove.
12595         (ira_initiate_emit_data, ira_finish_emit_data): New.
12596         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12597         (ira_init_register_move_cost_if_necessary): New.
12598         (ira_object_conflict_iter_next): Merge into
12599         ira_object_conflict_iter_cond.
12600         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12601
12602         * ira-live.c (process_single_reg_class_operands): Call
12603         ira_init_register_move_cost_if_necessary.  Use
12604         ira_register_move_cost instead of ira_get_register_move_cost.
12605
12606         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12607
12608         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12609
12610         * ira-costs.c: Fix formatting.
12611         (cost_classes, cost_classes_num): Remove.
12612         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12613         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12614         (cost_classes_del, cost_classes_htab): New.
12615         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12616         (initiate_regno_cost_classes, setup_cost_classes): New.
12617         (setup_regno_cost_classes_by_aclass): New.
12618         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12619         (record_reg_classes): Use regno_cost_classes instead of
12620         cost_classes.  Move checking opposite operand up.
12621         (record_address_regs): Use regno_cost_classes
12622         instead of cost_classes.
12623         (scan_one_insn): Ditto.  Use always general register.
12624         (print_allocno_costs): Use regno_cost_classes instead of
12625         cost_classes.
12626         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
12627         (find_costs_and_classes): Set up cost classes for each registers.
12628         Use also their mode for this.  Use regno_cost_classes instead of
12629         cost_classes.
12630         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12631         cost_classes.
12632         (free_ira_costs, ira_init_costs): Don't use cost_classes.
12633         (ira_costs, ira_set_pseudo_classes): Call
12634         initiate_regno_cost_classes and finish_regno_cost_classes.
12635
12636         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
12637
12638         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12639
12640         * target.def (ira_cover_classes): Remove.
12641
12642         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12643
12644         * doc/tm.texi.in: Ditto.
12645
12646         * ira-conflicts.c: Remove mentioning cover classes from the file.
12647         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
12648         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
12649
12650         * targhooks.c (default_ira_cover_classes): Remove.
12651
12652         * targhooks.h (default_ira_cover_classes): Ditto.
12653
12654         * haifa-sched.c: Remove mentioning cover classes from the file.
12655         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12656         ira_pressure_classes and ira_pressure_classes_num instead of
12657         ira_reg_class_cover_size and ira_reg_class_cover.  Use
12658         sched_regno_pressure_class instead of sched_regno_cover_class.
12659         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12660         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12661
12662         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
12663         classes from the file.
12664         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12665         (struct object_hard_regs, struct object_hard_regs_node): New.
12666         (struct ira_object): New members profitable_hard_regs,
12667         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12668         (struct ira_allocno): Rename cover_class to aclass.  Rename
12669         cover_class_cost and updated_cover_class_cost to class_cost and
12670         updated_class_cost.  Remove splay_removed_p and
12671         left_conflict_size.  Add new members colorable_p.
12672         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12673         (ALLOCNO_COLORABLE_P): New macro.
12674         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12675         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12676         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12677         (OBJECT_...): Rename parameter C to O.
12678         (OBJECT_PROFITABLE_HARD_REGS): New macro.
12679         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12680         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12681         (struct target_ira_int): New members x_ira_max_memory_move_cost,
12682         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12683         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12684         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12685         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
12686         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
12687         x_ira_reg_class_subunion.
12688         (ira_max_memory_move_cost, ira_max_register_move_cost)
12689         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12690         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12691         (ira_important_class_nums, ira_reg_class_superunion): New macros.
12692         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12693         (ira_reg_class_union): Rename to ira_reg_class_subunion.
12694         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12695         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12696         (ira_tune_allocno_costs_and_cover_classes): Rename to
12697         ira_tune_allocno_costs.
12698         (ira_debug_hard_regs_forest): New.
12699         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12700         (ira_object_conflict_iter_next): Fix comments.
12701         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12702         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12703         cover_class to aclass.
12704         (ira_allocate_and_accumulate_costs): Ditto.
12705         (ira_allocate_and_set_or_copy_costs): Ditto.
12706
12707         * opts.c (decode_options): Remove ira_cover_class check.
12708
12709         * ira-color.c: Remove mentioning cover classes from the file.  Use
12710         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12711         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12712         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12713         (splay-tree.h): Remove include.
12714         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12715         before copy_freq_compare_func.
12716         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12717         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12718         New definitions.
12719         (hard_regs_roots, hard_regs_node_vec): Ditto.
12720         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12721         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12722         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12723         (create_new_object_hard_regs_node): Ditto.
12724         (add_new_object_hard_regs_node_to_forest): Ditto.
12725         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12726         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12727         Ditto.
12728         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12729         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12730         (remove_unused_object_hard_regs_nodes): Ditto.
12731         (enumerate_object_hard_regs_nodes): Ditto.
12732         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12733         (object_hard_regs_subnode_t): Ditto.
12734         (struct object_hard_regs_subnode): Ditto.
12735         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12736         (setup_object_hard_regs_subnode_index): Ditto.
12737         (get_object_hard_regs_subnodes_num): Ditto.
12738         (form_object_hard_regs_nodes_forest): Ditto.
12739         (finish_object_hard_regs_nodes_tree): Ditto.
12740         (finish_object_hard_regs_nodes_forest): Ditto.
12741         (allocnos_have_intersected_live_ranges_p): Rename to
12742         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12743         (pseudos_have_intersected_live_ranges_p): Rename to
12744         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12745         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12746         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12747         (update_copy_costs): Remove assert.  Skip cost update if the hard
12748         reg does not belong the class.
12749         (assign_hard_reg): Process only profitable hard regs.
12750         (uncolorable_allocnos_num): Make it scalar.
12751         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12752         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12753         and ira_reg_class_max_nregs.
12754         (bucket_allocno_compare_func): Check frequency first.
12755         (sort_bucket): Add compare function as a parameter.
12756         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12757         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12758         (push_allocno_to_stack): Rewrite for checking new allocno
12759         colorability.
12760         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
12761         (push_only_colorable): Pass new parameter to sort_bucket.
12762         (push_allocno_to_spill): Remove.
12763         (allocno_spill_priority_compare): Make it inline and rewrite.
12764         (splay_tree_allocate, splay_tree_free): Remove.
12765         (allocno_spill_sort_compare): New function.
12766         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
12767         build and use splay tree.  Choose first allocno in uncolorable
12768         allocno bucket to spill.  Remove setting spill cost.
12769         (all_conflicting_hard_regs): Remove.
12770         (setup_allocno_available_regs_num): Check only profitable hard
12771         regs.  Print info about hard regs nodes.
12772         (setup_allocno_left_conflicts_size): Remove.
12773         (put_allocno_into_bucket): Don't call
12774         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
12775         (improve_allocation): New.
12776         (color_allocnos): Call setup_profitable_hard_regs,
12777         form_object_hard_regs_nodes_forest, improve_allocation,
12778         finish_object_hard_regs_nodes_forest.  Setup spill cost.
12779         (print_loop_title): Use pressure classes.
12780         (color_allocnso): Ditto.
12781         (do_coloring): Remove allocation and freeing splay_tree_node_pool
12782         and allocnos_for_spilling.
12783         (ira_sort_regnos_for_alter_reg): Don't setup members
12784         {first,next}_coalesced_allocno.
12785         (color): Remove allocating and freeing removed_splay_allocno_vec.
12786         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12787         prohibited_class_mode_regs.
12788
12789         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
12790         formatting.
12791         (update_allocno_pressure_excess_length): Use pressure classes.
12792         (inc_register_pressure, dec_register_pressure): Check for pressure
12793         class.
12794         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12795         pressure class.  Use ira_reg_class_nregs instead of
12796         ira_reg_class_max_nregs.
12797         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12798         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12799         (single_reg_class): Use ira_reg_class_nregs instead of
12800         ira_reg_class_max_nregs.
12801         (process_bb_node_lives): Use pressure classes.
12802
12803         * ira-emit.c: Remove mentioning cover classes from the file.  Use
12804         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12805         (change_loop): Use pressure classes.
12806         (modify_move_list): Call ira_set_allocno_class instead of
12807         ira_set_allocno_cover_class.
12808
12809         * ira-build.c: Remove mentioning cover classes from the file.  Use
12810         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12811         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
12812         ALLOCNO_UPDATED_CLASS_COST instead of
12813         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12814         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12815         (ira_create_allocno): Remove initialization of
12816         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
12817         ALLOCNO_COLORABLE_P.
12818         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12819         Update conflict regs for the objects.
12820         (create_cap_allocno): Remove assert.  Don't propagate
12821         ALLOCNO_AVAILABLE_REGS_NUM.
12822         (ira_free_allocno_costs): New function.
12823         (finish_allocno): Change a part of code into call of
12824         ira_free_allocno_costs.
12825         (low_pressure_loop_node_p): Use pressure classes.
12826         (object_range_compare_func): Don't compare classes.
12827         (setup_min_max_conflict_allocno_ids): Ditto.
12828
12829         * loop-invariant.c: Remove mentioning cover classes from the file.
12830         Use ira_pressure_classes and ira_pressure_classes_num instead of
12831         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
12832         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12833         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12834         Use reg_allocno_class instead of reg_cover_class.
12835         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12836         STACK_REG_COVER_CLASS.
12837         (get_regno_cover_class): Rename to get_regno_pressure_class.
12838         (move_loop_invariants): Initialize and finalize regstat.
12839
12840         * ira.c: Remove mentioning cover classes from the file.  Add
12841         comments about coloring without cover classes.  Use ALLOCNO_CLASS
12842         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12843         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12844         setup_class_subset_and_memory_move_costs.
12845         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12846         (setup_cover_and_important_classes): Rename to
12847         setup_allocno_and_important_classes.
12848         (setup_class_translate_array): New.
12849         (setup_class_translate): Call it for allocno and pressure classes.
12850         (cover_class_order): Rename to allocno_class_order.
12851         (comp_reg_classes_func): Use ira_allocno_class_translate instead
12852         of ira_class_translate.
12853         (reorder_important_classes): Set up ira_important_class_nums.
12854         (setup_reg_class_relations): Set up ira_reg_class_superunion.
12855         (print_class_cover): Rename to print_classes.  Add parameter.
12856         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12857         Print pressure classes too.
12858         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
12859         setup_reg_subclasses.
12860         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12861         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12862         (setup_prohibited_class_mode_regs): Use
12863         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12864         (clarify_prohibited_class_mode_regs): New function.
12865         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12866         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12867         (ira_init_once): Initialize them.
12868         (free_register_move_costs): Process them.
12869         (ira_init): Move calls of find_reg_classes and
12870         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12871         Call clarify_prohibited_class_mode_regs.
12872         (ira_no_alloc_reg): Remove.
12873         (too_high_register_pressure_p): Use pressure classes.
12874
12875         * sched-deps.c: Remove mentioning cover classes from the file.
12876         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12877         ira_pressure_classes and ira_pressure_classes_num instead of
12878         ira_reg_class_cover_size and ira_reg_class_cover.
12879         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12880         sched_regno_pressure_class instead of sched_regno_cover_class.
12881         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
12882         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12883
12884         * ira.h: Add 2010 to Copyright.
12885         (ira_no_alloc_reg): Remove external.
12886         (struct target_ira): Rename x_ira_hard_regno_cover_class,
12887         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12888         x_ira_class_translate to x_ira_hard_regno_allocno_class,
12889         x_ira_allocno_classes_num, x_ira_allocno_classes, and
12890         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
12891         x_ira_pressure_classes, x_ira_pressure_class_translate, and
12892         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
12893         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
12894         x_ira_no_alloc_regs.
12895         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12896         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12897         ira_allocno_classes_num and ira_allocno_classes.
12898         (ira_class_translate): Rename to ira_allocno_class_translate.
12899         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12900         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12901         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12902         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12903         (ira_no_alloc_regs): New.
12904
12905         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
12906         classes from the file.  Use ALLOCNO_CLASS instead of
12907         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
12908         ALLOCNO_COVER_CLASS_COST.
12909         (regno_cover_class): Rename to regno_aclass.
12910         (record_reg_classes): Use ira_reg_class_subunion instead of
12911         ira_reg_class_union.
12912         (record_address_regs): Check overflow.
12913         (scan_one_insn): Ditto.
12914         (print_allocno_costs): Print total mem cost fore regional allocation.
12915         (print_pseudo_costs): Use REG_N_REFS.
12916         (find_costs_and_classes): Use classes intersected with them on the
12917         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
12918         ira_reg_class_union.  Use ira_allocno_class_translate and
12919         regno_aclass instead of ira_class_translate and regno_cover_class.
12920         Modify code for finding regno_aclass.  Setup preferred classes for
12921         the next pass.
12922         (setup_allocno_cover_class_and_costs): Rename to
12923         setup_allocno_class_and_costs.  Use regno_aclass instead of
12924         regno_cover_class.  Use ira_set_allocno_class instead of
12925         ira_set_allocno_cover_class.
12926         (init_costs, finish_costs): Use regno_aclass instead of
12927         regno_cover_class.
12928         (ira_costs): Use setup_allocno_class_and_costs instead of
12929         setup_allocno_cover_class_and_costs.
12930         (ira_tune_allocno_costs_and_cover_classes): Rename to
12931         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
12932         by processing objects.  Use ira_reg_class_max_nregs instead of
12933         ira_reg_class_nregs.
12934
12935         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12936
12937         * sched-int.h: Remove mentioning cover classes from the file.
12938         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12939
12940         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
12941         classes from the file.
12942         (struct reg_pref): Rename coverclass into allocnoclass.
12943         (reg_cover_class): Rename to reg_allocno_class.
12944
12945         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12946
12947         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12948
12949         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12950
12951         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12952
12953         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12954
12955         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12956
12957         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12958
12959         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12960
12961         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12962
12963         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12964
12965         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12966         (i386_ira_cover_classes): Ditto.
12967
12968         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12969
12970         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12971
12972         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12973
12974         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12975
12976         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12977
12978         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12979
12980         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12981         (mips_ira_cover_classes): Ditto.
12982
12983         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12984
12985         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12986
12987         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12988
12989         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12990
12991         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12992
12993         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12994         (IRA_COVER_CLASSES_VSX): Ditto.
12995
12996         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12997         (rs6000_ira_cover_classes): Ditto.
12998
12999         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13000
13001         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13002
13003         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13004
13005         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13006
13007         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13008
13009         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13010
13011         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13012
13013         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13014
13015         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13016
13017         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13018
13019 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
13020
13021         PR debug/48253
13022         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13023         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13024         dw_fde_unlikely_section_end_label, cold_in_std_section,
13025         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13026         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13027         fields.
13028         (output_fde): Use dw_fde_second_{begin,end} if second is
13029         true, otherwise dw_fde_{begin,end}.
13030         (output_call_frame_info): Test dw_fde_second_begin != NULL
13031         instead of dw_fde_switched_sections.
13032         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13033         fields, initialize new fields.  Initialize in_std_section
13034         unconditionally from the first partition.
13035         (dwarf2out_end_epilogue): Don't override dw_fde_end when
13036         dw_fde_second_begin is non-NULL.
13037         (dwarf2out_switch_text_section): Stop initializing removed
13038         dw_fde_struct fields, initialize new fields, initialize
13039         also dw_fde_end here.  Set dw_fde_switch_cfi even when
13040         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
13041         (struct var_loc_list_def): Add last_before_switch field.
13042         (arange_table, arange_table_allocated, arange_table_in_use,
13043         ARANGE_TABLE_INCREMENT, add_arange): Removed.
13044         (size_of_aranges): Count !in_std_section and !second_in_std_section
13045         hunks in fdes, instead of looking at arange_table_in_use.
13046         (output_aranges): Add aranges_length argument, don't call
13047         size_of_aranges here.  Instead of using aranges_table*
13048         emit ranges for fdes when !in_std_section resp.
13049         !second_in_std_section.
13050         (dw_loc_list): Break ranges crossing section switch.
13051         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
13052         use dw_fde_second_end instead of dw_fde_end as end of last range.
13053         (gen_subprogram_die): Don't call add_arange.  Use
13054         dw_fde_{begin,end} for first partition and if switched
13055         section dw_fde_second_{begin,end} for the second.
13056         (var_location_switch_text_section_1,
13057         var_location_switch_text_section): New functions.
13058         (dwarf2out_begin_function): Initialize cold_text_section even
13059         when function_section () isn't text_section.
13060         (prune_unused_types): Don't walk arange_table.
13061         (dwarf2out_finish): Don't needlessly test
13062         flag_reorder_blocks_and_partition when testing cold_text_section_used.
13063         If info_section_emitted, call size_of_aranges and if it indicates
13064         non-empty .debug_aranges, call output_aranges with the computed
13065         size.  Stop using removed dw_fde_struct fields, use
13066         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13067         for second.
13068
13069         PR debug/48203
13070         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13071         create ENTRY_VALUE if incoming or address of incoming's MEM
13072         is a hard REG.
13073         * dwarf2out.c (mem_loc_descriptor): Don't emit
13074         DW_OP_GNU_entry_value of DW_OP_fbreg.
13075         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13076         on ENTRY_VALUE is able to find the canonical parameter VALUE.
13077         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13078         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13079         ENTRY_VALUE_EXPs.
13080         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13081         is a REG_P or MEM_P with REG_P address, compute hash directly
13082         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13083         (preserve_only_constants): Don't clear VALUES forwaring
13084         ENTRY_VALUE to some other VALUE.
13085
13086 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
13087
13088         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13089         instead of GEN_INT.
13090
13091 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
13092
13093         * cfgexpand.c (expand_gimple_cond): Always set the source location and
13094         block before expanding the statement.
13095         (expand_gimple_stmt_1): Likewise.  Set them here...
13096         (expand_gimple_stmt): ...and not here.  Tidy.
13097         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13098         unknown.
13099
13100 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
13101
13102         * Makefile.in: New rule for cprop.o.
13103         * gcse.c: Move constant/copy propagation to cprop.c.
13104         (compute_local_properties): Only handle expression tables.
13105         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13106         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13107         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13108         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13109         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13110         compute_cprop_data, find_used_regs, try_replace_reg,
13111         find_avail_set, cprop_jump, constprop_register, cprop_insn,
13112         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13113         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13114         find_bypass_set, reg_killed_on_edge, bypass_block,
13115         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13116         execute_rtl_cprop, pass_rtl_cprop): Move to...
13117         * cprop.c: ...here.  New file, constant/copy propagation for RTL
13118         moved from gcse.c to here with minor cleanups in duplicated code.
13119
13120 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
13121
13122         * config/i386/i386.c (flag_opts): Fix a typo in
13123         -mavx256-split-unaligned-store.
13124
13125 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
13126
13127         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13128         LIBCALL_VALUE): Remove macros.
13129         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13130         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13131         (h8300_function_value, h8300_libcall_value,
13132         h8300_function_value_regno_p): New functions.
13133
13134 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
13135
13136         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13137
13138 2011-03-28  Jeff Law  <law@redhat.com>
13139
13140         * tree-ssa-threadupdate.c (redirect_edges): Call
13141         create_edge_and_update_destination_phis as needed.
13142         (create_edge_and_update_destination_phis): Accept new BB argument.
13143         All callers updated.
13144         (thread_block): Do not update the profile when threading around
13145         intermediate blocks.
13146         (thread_single_edge): Likewise.
13147         (determine_bb_domination_status): If BB is not a successor of the
13148         loop header, return NONDOMINATING.
13149         (register_jump_thread): Note when we register a jump thread around
13150         an intermediate block.
13151         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13152         (thread_across_edge): Use it.
13153
13154 2011-03-28  Tristan Gingold  <gingold@adacore.com>
13155
13156         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13157         when for_return is 2.
13158
13159 2011-03-28  Jeff Law  <law@redhat.com>
13160
13161         * var-tracking.c (canonicalize_values_mark): Delete unused
13162         lhs assignment.
13163         (canonicalize_values_star, set_variable_part): Likewise.
13164         (clobber_variable_part, delete_variable_part): Likewise.
13165
13166 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
13167
13168         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13169
13170 2011-03-28  Martin Jambor  <mjambor@suse.cz>
13171
13172         * tree-inline.c (expand_call_inline): Do not check that destination
13173         node is analyzed.
13174         (optimize_inline_calls): Assert that destination node is analyzed.
13175         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13176         not call tree_lowering_passes.
13177         * cgraph.h (cgraph_analyze_function): Declare.
13178         * cgraphunit.c (cgraph_analyze_function): Make public.
13179
13180 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
13181
13182         * config/sparc/sparc-opts.h: New.
13183         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13184         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13185         (sparc_option_override): Store processor_type enumeration rather
13186         than string in cpu_default.  Remove name and enumeration from
13187         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
13188         without using sparc_select.  Use target_flags_explicit instead of
13189         fpu_option_set.
13190         * config/sparc/sparc.h (enum processor_type): Move to
13191         sparc-opts.h.
13192         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13193         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13194         HeaderInclude entry.
13195         (mcpu=, mtune=): Use Var and Enum.
13196         (sparc_processor_type): New Enum and EnumValue entries.
13197
13198 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13199             Iain Sandoe  <iains@gcc.gnu.org>
13200
13201         PR target/48245
13202         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13203
13204 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
13205
13206         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13207         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13208         Insert new statements at it in lieu of STMT.
13209         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13210         * tree-vect-stmts.c (vectorizable_store): Likewise.
13211         (vectorizable_load): Likewise.
13212
13213 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
13214
13215         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13216         (divtf3): Ditto.
13217         (multf3): Ditto.
13218         (subtf3): Ditto.
13219
13220 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
13221
13222         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13223         unaligned 256bit load/store.
13224         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13225         (*avx_movdqu<avxmodesuffix>): Likewise.
13226
13227 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13228
13229         PR target/48288
13230         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13231         * config/pa/pa.md (iordi3): Use new predicate in expander.
13232         (iorsi3): Likewise.
13233
13234 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
13235
13236         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13237         FUNCTION_VALUE_REGNO_P): Remove macros.
13238         * config/mips/mips-protos.h (mips_function_value): Remove.
13239         * config/mips/mips.c (mips_function_value): Rename to...
13240         (mips_function_value_1): ... this. Make static.  Handle receiving
13241         the function type in 'fn_decl_or_type' argument.
13242         (mips_function_value, mips_libcall_value,
13243         mips_function_value_regno_p): New function.
13244         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13245         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13246
13247 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
13248
13249         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13250         and -mavx256-split-unaligned-store.
13251         (ix86_option_override_internal): Split 32-byte AVX unaligned
13252         load/store by default.
13253         (ix86_avx256_split_vector_move_misalign): New.
13254         (ix86_expand_vector_move_misalign): Use it.
13255
13256         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13257         -mavx256-split-unaligned-store.
13258
13259         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13260         256bit load/store.  Generate unaligned store on misaligned memory
13261         operand.
13262         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13263         256bit load/store.
13264         (*avx_movdqu<avxmodesuffix>): Likewise.
13265
13266         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13267         -mavx256-split-unaligned-store.
13268
13269 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
13270
13271         PR target/38598
13272         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13273         Update commentary.
13274
13275 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
13276
13277         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13278         opno arguments with an expand_operand.  Use create_input_operand.
13279         (mips_prepare_builtin_target): Delete.
13280         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13281         functions.
13282         (mips_expand_builtin_direct): Use create_output_operand and
13283         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
13284         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
13285         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13286
13287 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
13288
13289         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13290         function.
13291         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13292
13293 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
13294
13295         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13296         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
13297         basic blocks and call commit_edge_insertions directly.
13298         (fixup_abnormal_edges): Move from here to...
13299         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
13300         on the edges and return whether some have actually been inserted.
13301         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13302         compensation code.
13303
13304 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
13305
13306         PR rtl-optimization/48144
13307         * sel-sched-ir.c (merge_history_vect): Factor out from ...
13308         (merge_expr_data): ... here.
13309         (av_set_intersect): Rename to av_set_code_motion_filter.
13310         Update all callers.  Call merge_history_vect when an expression
13311         is found in both sets.
13312         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13313
13314 2011-03-26  Alan Modra  <amodra@gmail.com>
13315
13316         * config/rs6000/predicates.md (word_offset_memref_op): Handle
13317         cmodel medium addresses.
13318         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13319         64-bit gpr loads and stores.
13320         (rs6000_secondary_reload_ppc64): New function.
13321         * config/rs6000/rs6000-protos.h: Declare it.
13322         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13323
13324 2011-03-26  Alan Modra  <amodra@gmail.com>
13325
13326         PR target/47487
13327         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13328         GNU Go in traceback table.
13329
13330 2011-03-25  Richard Henderson  <rth@redhat.com>
13331
13332         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13333         if there are exactly 6 operands.
13334         (set_storage_via_setmem): Similarly.
13335
13336 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13337
13338         * collect2.c (write_c_file_stat): Handle backslash
13339         as right-hand directory separator.
13340         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13341         checking just for slash.
13342         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13343         instead of checking for trailing slash.
13344         * gcc.c (record_temp_file): Use filename_cmp instead
13345         of strcmp.
13346         (do_spec_1): Likewise.
13347         (replace_outfile_spec_function): Likewise.
13348         (is_directory): Use filename_ncmp instead of strncmp.
13349         (print_multilib_info): Likewise.
13350         * gcov.c (find_source): Use filename_cmp instead
13351         instead of strcmp.
13352         (make_gcov_file_name): Fix order of slash/backslash
13353         checks.
13354         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13355         (add_standard_paths): Likewise.
13356         * mips-tfile.c (saber_stop): Handle backslash.
13357         * prefix.c (update_path): Use filename_ncmp instead of
13358         strncmp.
13359         * profile.c (output_location): Use filename_cmp instead
13360         of strcmp.
13361         * read-md.c (handle_toplevel_file): Handle backslash.
13362         * tlink.c (frob_extension):  Likewise.
13363         * tree-cfg.c (same_line_p): Use filename_cmp instead of
13364         strcmp.
13365         * tree-dump.c (dequeue_and_dump): Handle backslash.
13366         * tree.c (get_file_function_name): Likewise.
13367         * gengtype.c (read_input_list): Likewise.
13368         (get_file_realbasename): Likewise.
13369         (get_output_file_with_visibility): Use filename_cmp
13370         instead of strcmp.
13371
13372 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
13373
13374         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13375         case to VFPv1.
13376
13377 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13378
13379         * fold-const.c (expr_location_or): New function.
13380         (fold_truth_not_expr): Call it.
13381
13382 2011-03-25  Jeff Law  <law@redhat.com>
13383
13384         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13385         va_end.
13386         * c-family/c-common.c (def_fn_type): Likewise.
13387         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13388         * emit-rtl.c (gen_rtvec): Likewise.
13389         * lto/lto-lang.c (def_fn_type): Likewise.
13390
13391 2011-03-25  Richard Guenther  <rguenther@suse.de>
13392
13393         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13394         also generate copies.
13395         (fini_copy_prop): Handle constant values properly.
13396
13397 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
13398
13399         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13400         mode size instead of bitsize with DWARF2_ADDR_SIZE.
13401         (hash_loc_operands, compare_loc_operands): Handle
13402         DW_OP_GNU_entry_value.
13403
13404 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13405
13406         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13407         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13408         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13409         comment and use macro TARGET_64BIT_MS_ABI instead.
13410         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13411         and change default behavior for 32-bit MS_ABI.
13412         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13413         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13414         32-bit, too.
13415         (ix86_cfun_abi): Likewise.
13416         (ix86_maybe_switch_abi): Adjust comment.
13417         (init_cumulative_args): Check for bit-ness in MS_ABI case.
13418         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13419         instead of checking for SYSV_ABI.
13420         (ix86_nsaved_sseregs): Likewise.
13421         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13422         to 16 bytes.
13423         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13424         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13425         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13426         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13427         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13428
13429 2011-03-25  Richard Guenther  <rguenther@suse.de>
13430
13431         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13432         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13433         (verify_gimple): Remove.
13434         * tree-cfg.c (verify_gimple_call): Merge verification
13435         from verify_stmts.
13436         (verify_gimple_phi): Merge verification from verify_stmts.
13437         (verify_gimple_label): New function.
13438         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13439         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13440         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13441         (verify_stmts): Rename to verify_gimple_in_cfg.
13442         (verify_gimple_in_cfg): New function.
13443         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13444         * tree-ssa.c (verify_ssa): Likewise.
13445         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13446
13447 2011-03-25  Richard Guenther  <rguenther@suse.de>
13448
13449         * passes.c (init_optimization_passes): Add FRE pass after
13450         early SRA.
13451
13452 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
13453             Andrew Stubbs  <ams@codesourcery.com>
13454
13455         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13456         for Cortex-A8.
13457         (arm_movdi_vfp_cortexa8): New pattern.
13458         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13459         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13460         instructions when tuning for Cortex-A8.  Set attribute "arch".
13461         * config/arm/arm.md: Move include arm-tune.md up a bit.
13462         (define_attr "arch"): Add "onlya8" and "nota8" values.
13463         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13464
13465 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13466
13467         PR bootstrap/48282
13468         Revert:
13469         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13470
13471         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13472         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13473         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13474         * passes.c (init_optimization_passes): Move
13475         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13476
13477 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13478
13479         * c-typeck.c (comptypes_internal): Replace target
13480         hook call of comp_type_attributes by version in tree.c file.
13481         * gimple.c (gimple_types_compatible_p_1): Likewise.
13482         * tree-ssa.c (useless_type_conversion_p): Likewise.
13483         * tree.c (build_type_attribute_qual_variant): Likewise.
13484         (attribute_value_equal): New static helper function.
13485         (comp_type_attributes): New function.
13486         (merge_attributes): Use attribute_value_equal for comparison.
13487         (attribute_list_contained): Likewise.
13488         * tree.h (comp_type_attributes): New prototype.
13489
13490 2011-03-25  Richard Guenther  <rguenther@suse.de>
13491
13492         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13493         of complex types at -O0.
13494         (verify_gimple_assign_binary): Likewise.
13495         (verify_gimple_assign_ternary): Likewise.
13496
13497 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13498
13499         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13500         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13501
13502 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13503
13504         PR debug/48041
13505         * dwarf2out.c (output_abbrev_section): Only write table when
13506         abbrev_die_table_in_use > 1.
13507
13508 2011-02-24  Richard Henderson  <rth@redhat.com>
13509
13510         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13511         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13512         (alpha_expand_unaligned_load_words): Use extql.
13513         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13514         (emit_insxl): Handle all modes for consistency.
13515
13516 2011-02-24  Richard Henderson  <rth@redhat.com>
13517
13518         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13519         (alpha_expand_unaligned_load): Likewise.
13520         (alpha_expand_unaligned_store): Likewise.
13521         (alpha_expand_unaligned_load_words): Likewise.
13522         (alpha_expand_unaligned_store_words): Likewise.
13523         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13524         (alpha_split_lock_test_and_set_12): Likewise.
13525         (print_operand, alpha_fold_builtin_extxx): Likewise.
13526         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13527         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13528         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13529         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13530         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13531         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13532         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13533         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13534         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13535         (extwl, extll, extql): Similarly.
13536         (inswh, inslh, insqh): Similarly.
13537         (mskbl, mskwl, mskll, mskql): Similarly.
13538         (mskwh, msklh, mskqh): Similarly.
13539
13540 2011-02-24  Richard Henderson  <rth@redhat.com>
13541
13542         * config/alpha/alpha.md (attribute isa): Add er, ner.
13543         (attribute enabled): Handle them.
13544         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13545
13546 2011-02-24  Richard Henderson  <rth@redhat.com>
13547
13548         * config/alpha/alpha.md (attribute isa): Add vms.
13549         (attribute enabled): Handle it.
13550         (*movsf): Merge *movsf_{nofix,fix,nofp}.
13551         (*movdf): Merge *movdf_{nofix,fix,nofp}.
13552         (*movtf): Rename from *movtf_internal for consistency.
13553         (*movsi): Merge with *movsi_nt_vms.
13554         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13555         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13556         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13557         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13558
13559 2011-02-24  Richard Henderson  <rth@redhat.com>
13560
13561         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13562         (extendqisi2, extendhisi2): Likewise.
13563         (extendqidi2): Simplify BWX/non-BWX expansions.
13564         (extendhidi2): Similarly.
13565
13566 2011-02-24  Richard Henderson  <rth@redhat.com>
13567
13568         * config/alpha/alpha.md (attribute isa): New.
13569         (attribute enabled): New.
13570         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13571         (zero_extendqisi2, zero_extendqidi2): Similarly.
13572         (zero_extendhisi2, zero_extendhidi2): Similarly.
13573         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13574
13575 2011-02-24  Richard Henderson  <rth@redhat.com>
13576
13577         * config/alpha/predicates.md (input_operand): Revert last change;
13578         update comment to mention 32-bit VMS rather than Windows.
13579
13580 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13581
13582         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13583         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13584         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13585         * passes.c (init_optimization_passes): Move
13586         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13587
13588 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13589
13590         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13591
13592 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13593
13594         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13595         correctly.
13596
13597 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
13598
13599         PR debug/48204
13600         * simplify-rtx.c (simplify_const_unary_operation): Call
13601         real_convert when changing mode class with FLOAT_EXTEND.
13602
13603 2011-03-24  Nick Clifton  <nickc@redhat.com>
13604
13605         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13606         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13607         * config/rx/rx.c (rx_option_override): Set align_jumps,
13608         align_loops and align_labels if not set by the user.
13609         (rx_align_for_label): New function.
13610         (rx_max_skip_for_label): New function.
13611         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13612         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13613         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13614         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13615         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13616
13617 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13618
13619         PR rtl-optimization/48263
13620         * optabs.c (expand_binop_directly): Reinstate convert_modes code
13621         and original commutative_p handling.  Use maybe_gen_insn.
13622
13623 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13624
13625         * reload.c (find_reloads_subreg_address): Add address_reloaded
13626         parameter and return true there if the full address has been
13627         reloaded.
13628         (find_reloads_toplev): Pass address_reloaded flag.
13629         (find_reloads_address_1): Don't use address_reloaded parameter.
13630
13631 2011-03-24  Jeff Law  <law@redhat.com>
13632
13633         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13634         unused variable "ann".
13635         (remove_unused_locals): Likewise.
13636
13637         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13638         statement.
13639
13640         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13641         after it is freed.
13642
13643 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13644
13645         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13646         for invalid symbolic addresses.
13647         (s390_secondary_reload): Don't use s390_check_symref_alignment for
13648         larl operands.
13649
13650 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13651
13652         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13653         the argument in calls to fold_truth_not_expr.
13654
13655 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13656
13657         * tree.c (record_node_allocation_statistics): New function.
13658         (make_node_stat, copy_node_stat, build_string): Call it.
13659         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13660         (build1_stat, build_omp_clause): Likewise.
13661
13662 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13663
13664         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13665         last commit.
13666
13667 2011-03-24  Richard Guenther  <rguenther@suse.de>
13668
13669         PR tree-optimization/48271
13670         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13671         blocks that still exist.
13672
13673 2011-03-24  Richard Guenther  <rguenther@suse.de>
13674
13675         PR tree-optimization/48270
13676         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13677         not free datarefs before ddrs.
13678
13679 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13680
13681         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13682         from the address built for a reference with variable offset.
13683
13684 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13685
13686         PR target/48237
13687         * config/i386/i386.md (*movdf_internal_rex64): Do not split
13688         alternatives that can be handled with movq or movabsq insn.
13689         (*movdf_internal): Disable for !TARGET_64BIT.
13690         (*movdf_internal_nointeger): Ditto.
13691         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13692
13693 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13694
13695         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13696         (FUNCTION_ARG_ADVANCE): Likewise.
13697         * tm.texi.in: Change references to them to hook references.
13698         * tm.texi: Regenerate.
13699         * targhooks.c (default_function_arg): Eliminate check for target macro.
13700         (default_function_incoming_arg): Likewise.
13701         (default_function_arg_advance): Likewise.
13702         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13703         (function_arg_advance): Likewise.
13704         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13705
13706 2011-03-24  Richard Guenther  <rguenther@suse.de>
13707
13708         PR middle-end/48269
13709         * tree-object-size.c (addr_object_size): Do not double-account
13710         for MEM_REF offsets.
13711
13712 2011-03-24  Diego Novillo  <dnovillo@google.com>
13713
13714         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13715         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13716         (lto_input_data_block): Move from lto-opts.c.  Make extern.
13717         Update all users.
13718         (lto_input_string): Rename from input_string.  Make extern.
13719         Update all users.
13720         * lto-streamer-out.c (lto_output_string_with_length): Rename from
13721         output_string_with_length.
13722         Output 0 to indicate a non-NULL string.  Update all callers to
13723         not emit 0.
13724         (lto_output_string): Rename from output_string.  Make extern.
13725         Update all users.
13726         (lto_output_decl_state_streams): Make extern.
13727         (lto_output_decl_state_refs): Make extern.
13728         * lto-streamer.h (lto_input_string): Declare.
13729         (lto_input_data_block): Declare.
13730         (lto_output_string): Declare.
13731         (lto_output_string_with_length): Declare.
13732         (lto_output_decl_state_streams): Declare.
13733         (lto_output_decl_state_refs): Declare.
13734
13735 2011-03-24  Richard Guenther  <rguenther@suse.de>
13736
13737         PR tree-optimization/46562
13738         * tree.c (build_invariant_address): New function.
13739         * tree.h (build_invariant_address): Declare.
13740         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13741         a renamed function moved ...
13742         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13743         Take valueization callback parameter.
13744         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13745         * gimple-fold.h: New file.
13746         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13747         (ccp_fold, fold_const_aggregate_ref,
13748         fold_ctor_reference, fold_nonarray_ctor_reference,
13749         fold_array_ctor_reference, fold_string_cst_ctor_reference,
13750         get_base_constructor): Move ...
13751         * gimple-fold.c: ... here.
13752         (gimple_fold_stmt_to_constant_1): New function
13753         split out from ccp_fold.  Take a valueization callback parameter.
13754         Valueize all operands.
13755         (gimple_fold_stmt_to_constant): New wrapper function.
13756         (fold_const_aggregate_ref_1): New function split out from
13757         fold_const_aggregate_ref.  Take a valueization callback parameter.
13758         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13759         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13760         invariant POINTER_PLUS_EXPRs to invariant form.
13761         (vn_valueize): New function.
13762         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13763         * tree-vrp.c (vrp_valueize): New function.
13764         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13765         to fold statements to constants.
13766         * tree-ssa-pre.c (eliminate): Properly guard propagation of
13767         function declarations.
13768         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13769         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13770
13771 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13772
13773         * config/h8300/predicates.md (jump_address_operand): Fix register
13774         mode check.
13775
13776 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
13777
13778         * doc/invoke.texi (max-stores-to-sink): Document.
13779         * params.h (MAX_STORES_TO_SINK): Define.
13780         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13781         if either vectorization or if-conversion is disabled.
13782         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13783         tree-vect-data-refs.c vect_equal_offsets.
13784         (dr_equal_offsets_p): New function.
13785         (find_data_references_in_bb): Remove static.
13786         * tree-data-ref.h (find_data_references_in_bb): Declare.
13787         (dr_equal_offsets_p): Likewise.
13788         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13789         (vect_drs_dependent_in_basic_block): Update calls to
13790         vect_equal_offsets.
13791         (vect_check_interleaving): Likewise.
13792         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13793         (cond_if_else_store_replacement): Rename to...
13794         (cond_if_else_store_replacement_1): ... this.  Change arguments and
13795         documentation.
13796         (cond_if_else_store_replacement): New function.
13797         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13798         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13799
13800 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
13801
13802         PR target/46934
13803         * config/arm/arm.md (casesi): Use the gen_int_mode() function
13804         to subtract lower bound instead of GEN_INT().
13805
13806 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
13807
13808         PR other/48179
13809         PR other/48221
13810         PR other/48234
13811         * doc/extend.texi (Alignment): Move section to match order in TOC.
13812         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13813         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13814
13815 2011-03-23  Jeff Law  <law@redhat.com>
13816
13817         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13818         before removing the edge.
13819
13820         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13821         it may have been freed by redirect_branch_edge or
13822         redirect_edge_succ_nodup.
13823
13824 2011-03-23  Richard Guenther  <rguenther@suse.de>
13825
13826         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13827         (check_va_list_escapes): Likewise.
13828         (check_all_va_list_escapes): Likewise.
13829
13830 2011-03-23  Richard Guenther  <rguenther@suse.de>
13831
13832         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13833         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13834         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13835         (alias.o): Likewise.
13836         (ipa-type-escape.o): Remove.
13837         (ipa-struct-reorg.o): Likewise.
13838         (GTFILES): Remove ipa-struct-reorg.c.
13839         * alias.c: Do not include ipa-type-escape.h.
13840         * tree-ssa-alias.c: Likewise.
13841         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13842         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13843         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13844         and ipa-type-escape passes.
13845         * tree-pass.h (pass_ipa_type_escape): Remove.
13846         (pass_ipa_struct_reorg): Likewise.
13847         * ipa-struct-reorg.h: Remove.
13848         * ipa-struct-reorg.c: Likewise.
13849         * ipa-type-escape.h: Likewise.
13850         * ipa-type-escape.c: Likewise.
13851         * doc/invoke.texi (-fipa-struct-reorg): Remove.
13852         (--param struct-reorg-cold-struct-ratio): Likewise.
13853         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13854         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13855         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13856
13857 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13858
13859         * config/s390/2084.md: Enable all insn reservations also for z9_ec
13860         cpu attribute value.
13861         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13862         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13863         * config/s390/s390.c (processor_flags_table): New constant array.
13864         (s390_handle_arch_option): Remove.
13865         (s390_handle_option): Remove s390_handle_arch_option invocations
13866         and OPT_mwarn_framesize_ handling.
13867         (s390_option_override): Remove s390_handle_arch_option invocation.
13868         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13869         warnings.
13870         * config/s390/s390.md (cpu attribute): Add z9_ec value.
13871         * config/s390/s390.opt (s390_tune, s390_arch)
13872         (march=): Replace s390_arch_option enum and values with
13873         processor_type.  Set variable name to s390_arch.  Set
13874         initialization value.
13875         (mtune=): Replace s390_arch_option with processor_type.  Set
13876         variable name to s390_tune.  Set initialization value.
13877
13878 2011-03-23  Julian Brown  <julian@codesourcery.com>
13879
13880         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13881         accesses which are not naturally aligned.
13882
13883 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13884
13885         PR target/47553
13886         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13887
13888 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13889
13890         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13891         parameter from "int" to "enum insn_code".
13892         (expand_operand_type): New enum.
13893         (expand_operand): New structure.
13894         (create_expand_operand): New function.
13895         (create_fixed_operand, create_output_operand): Likewise
13896         (create_input_operand, create_convert_operand_to): Likewise.
13897         (create_convert_operand_from, create_address_operand): Likewise.
13898         (create_integer_operand): Likewise.
13899         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13900         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13901         (expand_insn, expand_jump_insn): Likewise.
13902         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13903         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13904         (expand_movstr, expand_builtin___clear_cache): Likewise.
13905         (expand_builtin_lock_release): Likewise.
13906         * explow.c (allocate_dynamic_stack_space): Likewise.
13907         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
13908         and use the default handling in that case.
13909         * expmed.c (check_predicate_volatile_ok): Delete.
13910         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13911         (emit_cstore): Likewise.
13912         * expr.c (emit_block_move_via_movmem): Likewise.
13913         (set_storage_via_setmem, expand_assignment): Likewise.
13914         (emit_storent_insn, try_casesi): Likewise.
13915         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
13916         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13917         (expand_vec_shift_expr, expand_binop_directly): Likewise.
13918         (expand_twoval_unop, expand_twoval_binop): Likewise.
13919         (expand_unop_direct, emit_indirect_jump): Likewise.
13920         (emit_conditional_move, vector_compare_rtx): Likewise.
13921         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13922         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13923         (expand_sync_lock_test_and_set): Likewise.
13924         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
13925         (emit_unop_insn): Likewise.
13926         (expand_copysign_absneg): Change icode to an insn_code.
13927         (create_convert_operand_from_type): New function.
13928         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13929         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13930         (expand_insn, expand_jump_insn): Likewise.
13931         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13932         than const_int_operand for operand 2.
13933
13934 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13935
13936         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13937         if possible.
13938
13939 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13940
13941         * emit-rtl.c (emit_pattern_before_noloc): New function.
13942         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13943         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13944         (emit_pattern_after_noloc): New function.
13945         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13946         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13947
13948 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13949
13950         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13951         (__ffsDI2): Likewise.
13952
13953 2011-03-22  Richard Henderson  <rth@redhat.com>
13954
13955         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13956         of !TARGET_ABI_OPEN_VMS.
13957         (alpha_trampoline_init, alpha_start_function): Likewise.
13958         (alpha_expand_epilogue, alpha_file_start): Likewise.
13959         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13960         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13961         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13962         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13963         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13964
13965 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13966
13967         * config/s390/s390-opts.h: New.
13968         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13969         s390_arch_flags, s390_warn_framesize, s390_stack_size,
13970         s390_stack_guard): Remove.
13971         (s390_handle_arch_option): Return void.  Take enum
13972         s390_arch_option value instead of string and searching array.
13973         (s390_handle_option): Don't assert that global structures are in
13974         use.  Access variables via opts pointer.  Use error_at.  Don't use
13975         sscanf for -mstack-guard= or -mstack-size=.  Update call to
13976         s390_handle_arch_option.
13977         (s390_option_override): Update call to s390_handle_arch_option.
13978         (s390_emit_prologue): Use %d format for s390_stack_size in
13979         diagnostic.  Use %wd for HOST_WIDE_INT.
13980         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13981         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13982         * config/s390/s390.opt (config/s390/s390-opts.h): New
13983         HeaderInclude entry.
13984         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13985         s390_arch_flags, s390_warn_framesize): New Variable entries.
13986         (s390_arch_option): New Enum and EnumValue entries.
13987         (march=): Use Enum instead of Var.
13988         (mstack-guard=, mstack-size=): Use UInteger and Var.
13989         (mtune=): Use Enum.
13990
13991 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13992
13993         * config/score/score.c (score_handle_option): Don't assert that
13994         global structures are in use.  Access target_flags via opts
13995         pointer.  Use value of -march= option to determine target_flags
13996         settings.
13997         * config/score/score.opt (march=): Use Enum.
13998         (score_arch): New Enum and EnumValue entries.
13999
14000 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14001
14002         * config/mep/mep.c (option_mtiny_specified): Remove.
14003         (mep_option_override): Move register handling for -mivc2 from
14004         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
14005         instead of option_mtiny_specified.
14006         (mep_handle_option): Access target_flags via opts pointer.  Don't
14007         assert that global structures are in use.  Defer part of -mivc2
14008         handling and move it to mep_option_override.
14009         * config/mep/mep.opt (IVC2): New Mask entry.
14010         (mivc2): Use Var and Defer instead of Mask.
14011
14012 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14013
14014         * config/v850/v850-opts.h: New.
14015         * config/v850/v850.c (small_memory): Replace with
14016         small_memory_physical_max array.  Make that array static const.
14017         (v850_handle_memory_option): Take integer value of argument.  Take
14018         gcc_options pointer, option text and location.  Return void.
14019         Update for changes to small memory structures.
14020         (v850_handle_option): Access target_flags via opts pointer.  Don't
14021         assert that global structures are in use.  Update calls to
14022         v850_handle_memory_option.
14023         (v850_encode_data_area): Update references to small memory settings.
14024         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
14025         (enum small_memory_type): Move to v850-opts.h.
14026         * config/v850/v850.opt (config/v850/v850-opts.h): New
14027         HeaderInclude entry.
14028         (small_memory_max): New Variable entry.
14029         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
14030         (mtda, mzda): Likewise.
14031
14032 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14033
14034         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14035         pointer.  Don't assert that global structures are in use.
14036
14037 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14038
14039         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14040         via opts pointer.  Don't assert that global structures are in use.
14041
14042 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14043
14044         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14045         (munix=93): Use Var.
14046         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14047         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14048         * config/pa/pa-opts.h: New.
14049         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14050         (pa_handle_option): Don't assert that global structures are in
14051         use.  Access target_flags via opts pointer.  Don't handle
14052         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14053         OPT_munix_98 here.
14054         (pa_option_override): Handle deferred OPT_mfixed_range_.
14055
14056 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14057
14058         * config/mn10300/mn10300-opts.h: New.
14059         * config/mn10300/mn10300.c (mn10300_processor,
14060         mn10300_tune_string): Remove.
14061         (mn10300_handle_option): Don't assert that global structures are
14062         in use.  Access mn10300_processor via opts pointer.  Don't handle
14063         OPT_mtune_ here.
14064         * config/mn10300/mn10300.h (enum processor_type): Move to
14065         mn10300-opts.h.
14066         (mn10300_processor): Remove.
14067         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14068         HeaderInclude entry.
14069         (mn10300_processor): New Variable entry.
14070         (mtune=): Use Var.
14071
14072 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14073
14074         * config/microblaze/microblaze.c: Don't include opts.h.
14075         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14076         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14077         (mno-clearbss): Use Var and Warn.
14078
14079 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14080
14081         * config/m32r/m32r-opts.h: New.
14082         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14083         (m32r_handle_option): Don't assert that global structures are in
14084         use.  Access target_flags and m32r_cache_flush_func via opts
14085         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
14086         OPT_mno_flush_trap here.
14087         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14088         include of m32r-opts.h.
14089         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14090         HeaderInclude entry.
14091         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14092         (mmodel=): Use Enum and Var.
14093         (m32r_model): New Enum and EnumValue entries.
14094         (mno-flush-trap): Use Var.
14095         (msdata=): Use Enum and Var.
14096         (m32r_sdata): New Enum and EnumValue entries.
14097
14098 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14099
14100         * config/m32c/m32c.c: Don't include opts.h.
14101         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14102         m32c_handle_option): Remove.
14103         (m32c_option_override): Check global_options_set.x_target_memregs
14104         instead of target_memregs_set.
14105         * config/m32c/m32c.h (target_memregs): Remove.
14106         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14107         variable.
14108
14109 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14110
14111         * config/iq2000/iq2000-opts.h: New.
14112         * config/iq2000/iq2000.c: Don't include opts.h.
14113         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14114         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14115         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14116         HeaderInclude entry.
14117         (iq2000_tune): New Variable entry.
14118         (march=): Add comment.  Use Enum.
14119         (iq2000_arch): New Enum and EnumValue entries.
14120         (mcpu=): Use Enum and Var.
14121         (iq2000_tune): New Enum and EnumValue entries.
14122
14123 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14124
14125         * config/ia64/ia64-opts.h: New.
14126         * config/ia64/ia64.c (ia64_tune): Remove.
14127         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14128         here.  Use error_at.
14129         (ia64_option_override): Handle deferred OPT_mfixed_range_.
14130         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14131         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14132         HeaderInclude entry.
14133         (ia64_tune): New Variable entry.
14134         (mfixed-range=): Use Defer and Var.
14135         (mtune=): Use Enum and Var.
14136         (ia64_tune): New Enum and EnumValue entries.
14137
14138 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14139
14140         * config/frv/frv-opts.h: New.
14141         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14142         frv-opts.h.
14143         (frv_cpu_type): Remove.
14144         * config/frv/frv.c: Don't include opts.h.
14145         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
14146         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
14147         (frv_cpu_type): New Variable entry.
14148         (frv_cpu): New Enum and EnumValue entries.
14149
14150 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14151
14152         * config/cris/cris.c (cris_handle_option): Access target_flags via
14153         opts pointer.  Don't assert that global structures are in use.
14154         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14155         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14156
14157 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14158
14159         * config/bfin/bfin-opts.h: New.
14160         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14161         bfin_si_revision, bfin_workarounds): Remove.
14162         (bfin_cpus): Make static const.
14163         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14164         not bfin_lib_id_given.
14165         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
14166         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
14167         pointer. Use error_at.  Don't assert that global structures are in use.
14168         * config/bfin/bfin.h: Include bfin-opts.h.
14169         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14170         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14171         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14172         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14173         entries.
14174
14175 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14176
14177         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14178         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14179         or -msoft-float here.
14180         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14181         -msoft-float and -mhard-float.
14182         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
14183         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14184         msoft-float.
14185         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14186         -msoft-float.
14187         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14188         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14189         not mhard-float.
14190         (LIBGCC_SPEC): Don't handle -msoft-float.
14191         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14192         -mhard-float.
14193         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14194         msoft-float.
14195         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14196         -mfloat-abi=*, not -msoft-float and -mhard-float.
14197         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14198         -msoft-float.
14199         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14200         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14201         mhard-float and msoft-float.
14202         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14203         mfloat-abi=soft in comments, not mhard-float and msoft-float.
14204         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14205         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14206         mhard-float.
14207         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14208         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14209         msoft-float.
14210         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14211         not mhard-float.
14212         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14213         not msoft-float.
14214
14215 2011-03-22  Richard Henderson  <rth@redhat.com>
14216
14217         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14218         TARGET_ABI_WINDOWS_NT.
14219         (alpha_output_function_end_prologue): Likewise.
14220         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14221         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14222         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14223         (trap, *movsi_nt_vms): Likewise.
14224         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14225         (*tablejump_osf_nt_internal): Remove.
14226         * config/alpha/predicates.md (input_operand): Only test Pmode.
14227
14228 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14229
14230         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14231         via opts pointer.  Use error_at.  Don't assert that global
14232         structures are in use.
14233
14234 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14235
14236         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14237         (ix86_handle_option): Access ix86_isa_flags and
14238         ix86_isa_flags_explicit via opts pointer.  Don't assert that
14239         global structures are in use.
14240         (ix86_function_specific_save, ix86_function_specific_restore):
14241         Update ix86_isa_flags_explicit field name.
14242         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14243         (ix86_isa_flags_explicit): Rename TargetSave entry to
14244         x_ix86_isa_flags_explicit.
14245
14246 2011-03-22  Richard Henderson  <rth@redhat.com>
14247
14248         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14249         (alpha_option_override, direct_return): Likewise.
14250         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14251         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14252         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14253         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14254         (alpha_expand_epilogue, alpha_end_function): Likewise.
14255         (alpha_init_libfuncs): Likewise.
14256         (struct machine_function): Remove unicosmk members.
14257         (print_operand) ['t']: Remove.
14258         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14259         unicosmk_output_module_name, unicosmk_output_common,
14260         current_section_align, unicosmk_output_text_section_asm_op,
14261         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14262         unicosmk_section_type_flags, unicosmk_unique_section,
14263         unicosmk_asm_named_section, unicosmk_insert_attributes,
14264         unicosmk_output_align, unicosmk_defer_case_vector,
14265         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14266         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14267         unicosmk_output_ssib, unicosmk_add_call_info_word,
14268         unicosmk_extern_head, unicosmk_output_default_externs,
14269         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14270         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14271         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14272         * config/alpha/alpha-protos.h: Update.
14273         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14274         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14275         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14276         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14277         (*mulsi_se, mulvsi3): Likewise.
14278         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14279         (*divmodsi_internal, call, call_value, realign): Likewise.
14280         (moddi3, umoddi3): Likewise; remove duplicate expander.
14281         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14282         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14283         (*movdi_nofix): Remove r/U alternative.
14284         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14285         * config/alpha/constraints.md ("U"): Remove.
14286         * config/alpha/predicates.md (call_operand"): Don't test
14287         TARGET_ABI_UNICOSMK.
14288
14289 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14290
14291         * target.def (handle_option): Take gcc_options and
14292         cl_decoded_option pointers and location_t.
14293         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14294         * doc/tm.texi: Regenerate.
14295         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14296         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14297         * lto-opts.c (lto_reissue_options): Generate option structure for
14298         targetm.handle_option call.
14299         * opts.c (target_handle_option): Update call to
14300         targetm.handle_option.  Remove assertions about values now passed
14301         down to hook.
14302         * targhooks.c (default_target_handle_option): New.
14303         * targhooks.h (default_target_handle_option): Declare.
14304         * config/alpha/alpha.c: Include opts.h.
14305         (alpha_handle_option): Update to new hook interface.
14306         * config/arm/arm.c: Include opts.h.
14307         (arm_handle_option): Update to new hook interface.
14308         * config/arm/t-arm (arm.o): Update dependencies.
14309         * config/bfin/bfin.c: Include opts.h.
14310         (bfin_handle_option): Update to new hook interface.
14311         * config/cris/cris.c: Include opts.h.
14312         (cris_handle_option): Update to new hook interface.
14313         * config/frv/frv.c: Include opts.h.
14314         (frv_handle_option): Update to new hook interface.
14315         * config/i386/i386.c: Include opts.h.
14316         (ix86_handle_option): Update to new hook interface.
14317         (ix86_valid_target_attribute_inner_p): Generate option structure
14318         for call to ix86_handle_option.
14319         * config/i386/t-i386 (i386.o): Update dependencies.
14320         * config/ia64/ia64.c: Include opts.h.
14321         (ia64_handle_option): Update to new hook interface.
14322         * config/ia64/t-ia64 (ia64.o): Update dependencies.
14323         * config/iq2000/iq2000.c: Include opts.h.
14324         (iq2000_handle_option): Update to new hook interface.
14325         * config/m32c/m32c.c: Include opts.h.
14326         (m32c_handle_option): Update to new hook interface.
14327         * config/m32r/m32r.c: Include opts.h.
14328         (m32r_handle_option): Update to new hook interface.
14329         * config/m68k/m68k.c: Include opts.h.
14330         (m68k_handle_option): Update to new hook interface.
14331         * config/mep/mep.c: Include opts.h.
14332         (mep_handle_option): Update to new hook interface.
14333         * config/microblaze/microblaze.c: Include opts.h.
14334         (microblaze_handle_option): Update to new hook interface.
14335         * config/mips/mips.c: Include opts.h.
14336         (mips_handle_option): Update to new hook interface.
14337         * config/mn10300/mn10300.c: Include opts.h.
14338         (mn10300_handle_option): Update to new hook interface.
14339         * config/pa/pa.c: Include opts.h.
14340         (pa_handle_option): Update to new hook interface.
14341         * config/pdp11/pdp11.c: Include opts.h.
14342         (pdp11_handle_option): Update to new hook interface.
14343         * config/rs6000/rs6000.c: Include opts.h.
14344         (rs6000_handle_option): Update to new hook interface.
14345         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14346         * config/rx/rx.c: Include opts.h.
14347         (rx_handle_option): Update to new hook interface.
14348         * config/s390/s390.c: Include opts.h.
14349         (s390_handle_option): Update to new hook interface.
14350         * config/score/score.c: Include opts.h.
14351         (score_handle_option): Update to new hook interface.
14352         * config/sh/sh.c: Include opts.h.
14353         (sh_handle_option): Update to new hook interface.
14354         * config/sparc/sparc.c: Include opts.h.
14355         (sparc_handle_option): Update to new hook interface.
14356         * config/v850/v850.c: Include opts.h.
14357         (v850_handle_option): Update to new hook interface.
14358
14359 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14360
14361         * gcc.c (driver_unknown_option_callback): Only permit and save
14362         unknown -Wno- options.
14363         (driver_wrong_lang_callback): Save options directly instead of via
14364         driver_unknown_option_callback.
14365
14366 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14367
14368         * combine.c (simplify_set): Try harder to find the best CC mode when
14369         simplifying a nested COMPARE on the RHS.
14370
14371 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14372
14373         * config/alpha/gnu.h: Remove.
14374         * config/arc: Remove directory.
14375         * config/arm/netbsd.h: Remove.
14376         * config/arm/t-pe: Remove.
14377         * config/crx: Remove directory.
14378         * config/i386/netbsd.h: Remove.
14379         * config/m68hc11: Remove directory.
14380         * config/m68k/uclinux-oldabi.h: Remove.
14381         * config/mcore/mcore-pe.h: Remove.
14382         * config/mcore/t-mcore-pe: Remove.
14383         * config/netbsd-aout.h: Remove.
14384         * config/rs6000/gnu.h: Remove.
14385         * config/sh/sh-symbian.h: Remove.
14386         * config/sh/symbian-base.c: Remove.
14387         * config/sh/symbian-c.c: Remove.
14388         * config/sh/symbian-cxx.c: Remove.
14389         * config/sh/symbian-post.h: Remove.
14390         * config/sh/symbian-pre.h: Remove.
14391         * config/sh/t-symbian: Remove.
14392         * config/svr3.h: Remove.
14393         * config/vax/netbsd.h: Remove.
14394         * config.build: Don't handle i[34567]86-*-pe.
14395         * config.gcc: Remove handling of deprecations for most deprecated
14396         targets.
14397         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14398         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14399         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14400         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14401         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14402         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14403         Remove cases.
14404         * config.host: Don't handle i[34567]86-*-pe.
14405         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14406         (ASM_SPEC32): Don't handle -mcall-gnu.
14407         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14408         -mcall-gnu.
14409         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14410         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14411         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14412         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14413         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14414         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14415         conditional on SYMBIAN.
14416         * configure.ac: Don't handle powerpc*-*-gnu*.
14417         * configure: Regenerate.
14418         * doc/extend.texi (interrupt attribute): Don't mention CRX.
14419         * doc/install-old.texi (m6811, m6812): Don't mention.
14420         * doc/install.texi (arc-*-elf*): Don't document multilib option.
14421         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14422         (m68k-uclinuxoldabi): Don't mention.
14423         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14424         Remove.
14425         (-mcall-gnu): Remove.
14426         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14427         families): Remove constraint documentation.
14428
14429 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
14430
14431         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14432         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14433         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14434
14435 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14436
14437         PR target/48226
14438         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14439         vector when peeking at the next token for vector, don't expand the
14440         keywords.
14441
14442 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
14443
14444         * config/avr/avr-protos.h (expand_epilogue): Change prototype
14445         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14446         * config/avr/avr.c (init_cumulative_args)
14447         (avr_function_arg_advance): Use it.
14448         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14449         sibcall epilogues.
14450         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14451         (avr_function_ok_for_sibcall): ...this new function.
14452         (avr_lookup_function_attribute1): New static Function.
14453         (avr_naked_function_p, interrupt_function_p)
14454         (signal_function_p, avr_OS_task_function_p)
14455         (avr_OS_main_function_p): Use it.
14456         * config/avr/avr.md ("sibcall", "sibcall_value")
14457         ("sibcall_epilogue"): New expander.
14458         ("*call_insn", "*call_value_insn"): New insn.
14459         ("call_insn", "call_value_insn"): Remove
14460         ("call", "call_value", "epilogue"): Change expander to handle
14461         sibling calls.
14462
14463 2011-03-21  Nick Clifton  <nickc@redhat.com>
14464
14465         * doc/invoke.texi (Overall Options): Move closing brace to end of
14466         options list.
14467         (Optimization Options): Add missing @gol.
14468         (Directory Options): Likewise.
14469         (i386 and x86-64 Options): Likewise.
14470         (RS6000 and PowerPC Options): Likewise.
14471         (i386 and x86-64 Windows Options): Likewise.
14472         (V850 Options): Add text missing from descriptions.
14473
14474 2011-03-22  Richard Henderson  <rth@redhat.com>
14475
14476         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14477         (avr_incoming_return_addr_rtx): New.
14478         (emit_push_byte): New.
14479         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
14480         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
14481         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
14482         (emit_pop_byte): New.
14483         (expand_epilogue): Use it.  Pop frame pointer by bytes.
14484         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14485         (INCOMING_RETURN_ADDR_RTX): New.
14486         (INCOMING_FRAME_SP_OFFSET): New.
14487         (ARG_POINTER_CFA_OFFSET): New.
14488         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14489         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14490         (pophi): Remove.
14491
14492         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14493
14494 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14495
14496         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14497         (FUNCTION_ARG_ADVANCE): Likewise.
14498         * tm.texi.in: Change references to them to hook references.
14499         * tm.texi: Regenerate.
14500         * targhooks.c (default_function_arg): Eliminate check for target
14501         macro.
14502         (default_function_incoming_arg): Likewise.
14503         (default_function_arg_advance): Likewise.
14504         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14505         (function_arg_advance): Likewise.
14506         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14507
14508 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14509
14510         * tree.c (build_call_1): New function.
14511         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14512
14513 2011-03-22  Richard Guenther  <rguenther@suse.de>
14514
14515         PR tree-optimization/48228
14516         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14517         for single-arg PHIs.
14518
14519 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
14520
14521         PR rtl-optimization/48143
14522         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14523         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14524         sse2_cvtps2pd): Likewise.
14525
14526 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14527
14528         * recog.c (canonicalize_change_group): Use validate_unshare_change.
14529
14530 2011-03-22  Richard Guenther  <rguenther@suse.de>
14531
14532         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14533         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14534         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14535         and REALIGN_LOAD_EXPR.
14536         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14537         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14538         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14539         DOT_PROD_EXPR case ...
14540         (expand_expr_real_2): ... here.
14541         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14542         and REALIGN_LOAD_EXPR.
14543         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14544         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14545         (vect_create_epilog_for_reduction): Likewise.
14546         (vectorizable_reduction): Likewise.
14547         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14548         * tree-vect-stmts.c (vectorizable_load): Likewise.
14549
14550 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14551
14552         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14553
14554 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14555
14556         * config/s390/s390.c (s390_delegitimize_address): Fix offset
14557         handling for PLTOFF/GOTOFF.
14558
14559 2011-03-22  Nick Clifton  <nickc@redhat.com>
14560
14561         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14562         trailing backslash from the end of the macro definition.
14563
14564 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14565
14566         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14567         and PLT unspecs.
14568
14569 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
14570
14571         * expr.h (prepare_operand): Move to...
14572         * optabs.h (prepare_operand): ...here and change the insn code
14573         parameter from "int" to "enum insn_code".
14574         (insn_operand_matches): Declare.
14575         * expr.c (init_expr_target): Use insn_operand_matches.
14576         (compress_float_constant): Likewise.
14577         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14578         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14579         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14580         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14581         Likewise.
14582         (gen_cond_trap): Likewise.
14583         (prepare_operand): Likewise.  Change icode to an insn_code.
14584         (insn_operand_matches): New function.
14585         * reload.c (find_reloads_address_1): Use insn_operand_matches.
14586         * reload1.c (gen_reload): Likewise.
14587         * targhooks.c (default_secondary_reload): Likewise.
14588
14589 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14590
14591         * config/alpha/alpha.md (unspec): New define_c_enum.
14592         (unspecv): Ditto.
14593
14594 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14595
14596         PR debug/48214
14597         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14598         between a call and its CALL_ARG_LOCATION note.
14599
14600 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
14601
14602         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14603
14604 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14605
14606         PR c/42544
14607         PR c/48197
14608         * c-common.c (shorten_compare): If primopN is first sign-extended
14609         to opN and then zero-extended to result type, set primopN to opN.
14610
14611 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
14612
14613         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14614         for barrier handlers.
14615
14616 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14617
14618         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14619         UNSPEC constants to be in the unspec enumeration, and redefine
14620         all UNSPECV constants to be in the unspecv enumeration, so that
14621         dumps print which unspec/unspec_volatile this is.
14622         * config/rs6000/vector.md (UNSPEC_*): Ditto.
14623         * config/rs6000/paired.md (UNSPEC_*): Ditto.
14624         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14625         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14626         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14627
14628         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14629         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14630         UNSPECV_LWSYNC, since these are used as unspec_volatile.
14631         * config/rs6000/sync.md (isync, lwsync): Ditto.
14632
14633 2011-03-21  Richard Guenther  <rguenther@suse.de>
14634
14635         * params.def (lto-min-partition): Fix typo.
14636
14637 2011-03-21  Richard Guenther  <rguenther@suse.de>
14638
14639         PR c/47939
14640         * c-decl.c (grokdeclarator): Drop to the main variant only
14641         for array types.  Drop flag_gen_aux_info check.
14642
14643 2011-03-21  Richard Guenther  <rguenther@suse.de>
14644
14645         PR translation/47911
14646         * params.def (lto-partitions): Fix typo.
14647         (lto-min-partition): Fix wording.
14648
14649 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
14650
14651         * config/rs6000/t-freebsd: Remove duplication from file.
14652
14653 2011-03-21  Richard Guenther  <rguenther@suse.de>
14654
14655         PR middle-end/47661
14656         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14657
14658 2011-03-21  Richard Guenther  <rguenther@suse.de>
14659
14660         PR lto/48210
14661         * params.def (lto-partitions): Require at least 1 partition.
14662
14663 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14664
14665         * gthr-solaris.h: Remove.
14666         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14667         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14668         (LIB_SPEC): Likewise.
14669         * config/sol2.opt (threads): Remove.
14670         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14671         (sparc*-*-solaris2*): Likewise.
14672         * configure.ac (enable_threads): Enable solaris support.
14673         * configure: Regenerate.
14674         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14675         * doc/install.texi (Configuration, --enable-threads=lib): Remove
14676         solaris.
14677
14678 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14679
14680         * config.gcc: Obsolete *-*-solaris2.8*.
14681         * doc/install.texi (Specific, *-*-solaris2*): Document it.
14682
14683 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14684
14685         PR bootstrap/48135
14686         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14687         reference.  Solaris 8 perl works.
14688
14689 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14690
14691         PR bootstrap/48135
14692         * doc/install.texi (Prerequisites): Move jar etc. up.
14693         Explain support library version requirements.
14694
14695 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14696
14697         PR bootstrap/48135
14698         * doc/install.texi (Prerequisites): Move Perl to build
14699         requirements.  Always necessary on Solaris 2 with Sun ld.
14700
14701 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14702
14703         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14704         binutils 2.21.
14705         (Specific, i?86-*-solaris2.[89]): Likewise.
14706         (Specific, i?86-*-solaris2.10): Likewise.
14707         (Specific, mips-sgi-irix6): Likewise.
14708         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14709         Update for binutils 2.21.
14710
14711 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14712
14713         * configure.ac (gcc_cv_lto_plugin): Fix typo.
14714         Allow -fuse-linker-plugin for non-default plugin linker.
14715         * configure: Regenerate.
14716
14717 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14718
14719         PR bootstrap/48167
14720         * gengtype.c (files_rules): Added rule for cp/parser.h.
14721
14722 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14723
14724         PR target/48213
14725         * config/s390/s390.c (s390_delegitimize_address): Don't call
14726         lowpart_subreg if orig_x has BLKmode.
14727
14728 2011-03-21  Kai Tietz  <ktietz@redhat.com>
14729
14730         PR target/12171
14731         * doc/plugins.texi: Adjust documentation for plugin register_callback.
14732         * tree.h (attribute_spec): Add new member affects_type_identity.
14733         * attribs.c (empty_attribute_table): Adjust attribute_spec
14734         initializers.
14735         * config/alpha/alpha.c: Likewise.
14736         * config/arc/arc.c: Likewise.
14737         * config/arm/arm.c: Likewise.
14738         * config/avr/avr.c: Likewise.
14739         * config/bfin/bfin.c: Likewise.
14740         * config/crx/crx.c: Likewise.
14741         * config/darwin.h: Likewise.
14742         * config/h8300/h8300.c: Likewise.
14743         * config/i386/cygming.h: Likewise.
14744         * config/i386/i386.c: Likewise.
14745         * config/ia64/ia64.c: Likewise.
14746         * config/m32c/m32c.c: Likewise.
14747         * config/m32r/m32r.c: Likewise.
14748         * config/m68hc11/m68hc11.c: Likewise.
14749         * config/m68k/m68k.c: Likewise.
14750         * config/mcore/mcore.c: Likewise.
14751         * config/mep/mep.c: Likewise.
14752         * config/microblaze/microblaze.c: Likewise.
14753         * config/mips/mips.c: Likewise.
14754         * config/rs6000/rs6000.c: Likewise.
14755         * config/rx/rx.c: Likewise.
14756         * config/sh/sh.c: Likewise.
14757         * config/sol2.h: Likewise.
14758         * config/sparc/sparc.c: Likewise.
14759         * config/spu/spu.c: Likewise.
14760         * config/stormy16/stormy16.c: Likewise.
14761         * config/v850/v850.c: Likewise.
14762
14763 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
14764
14765         * simplify-rtx.c (simplify_binary_operation_1): Handle
14766         (xor (and A B) C) case when B and C are both constants.
14767
14768 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
14769
14770         * tree-dfa.c (add_referenced_var): Fix typo in comment.
14771
14772 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14773
14774         PR bootstrap/48168
14775         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14776
14777 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
14778
14779         PR rtl-optimization/48156
14780         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14781         assume df and df_lr are not NULL.
14782
14783 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14784
14785         PR debug/48023
14786         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14787         between a call and its CALL_ARG_LOCATION note.
14788
14789 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
14790
14791         PR debug/48178
14792         * config/sh/sh.c (find_barrier): Don't emit a constant pool
14793         between a call and its corresponding CALL_ARG_LOCATION note.
14794
14795 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
14796
14797         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14798         instead of loop. Use HARD_REGISTER_NUM_P predicate.
14799         * haifa-sched.c (setup_ref_regs): Ditto.
14800         * caller-save.c (add_used_regs_1): Ditto.
14801         * dse.c (look_for_hardregs): Ditto.
14802         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14803         * sched-rgn.c (check_live_1): Ditto.
14804
14805 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14806
14807         * c-decl.c (diagnose_mismatched_decls): Give an error for
14808         redefining a typedef with variably modified type.
14809
14810 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14811
14812         * c-decl.c (grokfield): Don't allow typedefs for structures or
14813         unions with no tag by default.
14814         * doc/extend.texi (Unnamed Fields): Update.
14815
14816 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
14817
14818         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14819         Rewrite using indirect functions.
14820         (lwp_slwpcb): Ditto.
14821         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14822         (avx_vinsertf128<mode>): Ditto.
14823
14824 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14825
14826         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14827         unspecs.
14828
14829 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14830
14831         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14832         splitting between a call and its corresponding CALL_ARG_LOCATION note.
14833
14834 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14835
14836         PR rtl-optimization/48170
14837         * gcse.c (hoist_code): Remove bogus asserts.
14838
14839 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
14840
14841         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14842         computation for prologue/epilogue.
14843
14844 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14845
14846         * Makefile.in (check-consistency): Remove.
14847
14848 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
14849
14850         PR debug/48176
14851         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14852         arange_table_in_use is 0, but either text_section_used or
14853         cold_text_section_used is true.  Don't call it if
14854         !info_section_emitted.
14855
14856 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
14857
14858         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14859         FUNCTION_VALUE_REGNO_P): Remove.
14860         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14861         Remove.
14862         * config/avr/avr.c (avr_ret_register): Make static inline.
14863         (avr_function_value_regno_p): New function.
14864         (avr_libcall_value): Make static. Add 'func' argument.
14865         (avr_function_value): Make static. Rename 'func' argument to
14866         'fn_decl_or_type', forward it to avr_libcall_value. Call
14867         avr_ret_register function instead of RET_REGISTER macro.
14868         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14869
14870 2011-03-18  Jason Merrill  <jason@redhat.com>
14871
14872         PR c++/23372
14873         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14874
14875 2011-03-18  Richard Guenther  <rguenther@suse.de>
14876
14877         * doc/install.texi (--enable-gold): Remove.
14878         (--with-plugin-ld): Document.
14879         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14880
14881 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
14882
14883         PR middle-end/47790
14884         * expr.c (optimize_bitfield_assignment_op): Revamp to work
14885         again after expansion changes.
14886
14887 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
14888
14889         * combine.c (try_combine): Do simplification only call of
14890         subst() on i2 even when i1 is present. Update comments.
14891
14892 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
14893
14894         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14895         and UNSPEC_PCREL_SYMOFF.
14896
14897 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14898
14899         * config/s390/s390.md: Use define_c_enum for the unspec constant
14900         definitions.
14901
14902 2011-03-18  Richard Henderson  <rth@redhat.com>
14903             Jakub Jelinek  <jakub@redhat.com>
14904
14905         PR bootstrap/48161
14906         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14907         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14908
14909 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14910
14911         PR middle-end/47725
14912         * combine.c (cant_combine_insn_p): Don't check zero/sign
14913         extended hard registers.
14914
14915 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14916
14917         PR middle-end/47725
14918         * combine.c (cant_combine_insn_p): Check zero/sign extended
14919         hard registers.
14920
14921 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
14922
14923         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14924         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14925         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14926         Change return type to bool.
14927         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14928
14929 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14930
14931         PR debug/48163
14932         * var-tracking.c (prepare_call_arguments): If CALL target
14933         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14934         pc instead of looking it up using cselib_lookup and use
14935         Pmode for it if x has VOIDmode.
14936         * dwarf2out.c (gen_subprogram_die): If also both first and
14937         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14938
14939         PR debug/48163
14940         * function.c (assign_parms): For data.passed_pointer parms
14941         use MEM of data.entry_parm instead of data.entry_parm itself
14942         as DECL_INCOMING_RTL.
14943         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14944         also when passed and declared mode is the same, DECL_RTL
14945         is a MEM with pseudo as address and DECL_INCOMING_RTL is
14946         a MEM too.
14947
14948 2011-03-16  Jeff Law  <law@redhat.com>
14949
14950         PR rtl-optimization/37273
14951         * ira-costs.c (scan_one_insn): Detect constants living in memory and
14952         handle them like argument loads from stack slots.  Do not double
14953         count memory for memory constants and argument loads from stack slots.
14954
14955 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14956
14957         PR debug/48160
14958         * var-tracking.c (prepare_call_arguments): Check SUBREG.
14959
14960 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14961
14962         PR target/48171
14963         * config/i386/i386.opt: Add Save to -mavx and -mfma.
14964
14965 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14966
14967         PR bootstrap/48153
14968         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14969         if dwarf_strict.
14970         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14971         Clear call_arg_locations and call_arg_loc_last always.
14972
14973         PR middle-end/48152
14974         * var-tracking.c (prepare_call_arguments): If argument needs to be
14975         passed by reference, adjust argtype and mode.
14976
14977 2011-03-17  Richard Guenther  <rguenther@suse.de>
14978
14979         PR middle-end/48134
14980         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14981         a value make sure to fold the statement.
14982
14983 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
14984
14985         PR target/43872
14986         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14987         return condition with !cfun->calls_alloca.
14988
14989 2011-03-17  Richard Guenther  <rguenther@suse.de>
14990
14991         PR bootstrap/48148
14992         * lto-cgraph.c (input_overwrite_node): Clear the abstract
14993         origin for decls in other ltrans units.
14994         (input_varpool_node): Likewise.
14995
14996 2011-03-17  Richard Guenther  <rguenther@suse.de>
14997
14998         PR middle-end/48165
14999         * tree-object-size.c (compute_object_offset): Properly return
15000         the offset operand of MEM_REFs as sizetype.
15001
15002 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
15003
15004         PR rtl-optimization/48141
15005         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15006         * dse.c: Include params.h.
15007         (active_local_stores_len): New variable.
15008         (add_wild_read, dse_step1): Clear it when setting active_local_stores
15009         to NULL.
15010         (record_store, check_mem_read_rtx): Decrease it when removing
15011         from the chain.
15012         (scan_insn): Likewise.  Increase it when adding to chain, if it
15013         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15014         set active_local_stores to NULL before the addition.
15015         * Makefile.in (dse.o): Depend on $(PARAMS_H).
15016
15017         PR rtl-optimization/48141
15018         * dse.c (record_store): If no positions are needed in an insn
15019         that cannot be deleted, at least unchain it from active_local_stores.
15020
15021 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
15022
15023         PR debug/47510
15024         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15025         (lookup_type_die_strip_naming_typedef): ... here.
15026         (get_context_die): Use it.
15027         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15028         the anonymous struct named by the naming typedef.
15029
15030 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
15031
15032         PR target/48154
15033         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15034         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15035
15036 2011-03-16  Jeff Law  <law@redhat.com>
15037
15038         * tree-vrp.c (identify_jump_threads): Slightly simplify type
15039         check for operands of conditional.  Allow type to be a pointer.
15040
15041 2011-03-16  Richard Guenther  <rguenther@suse.de>
15042
15043         PR tree-optimization/48149
15044         * fold-const.c (fold_binary_loc): Fold
15045         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15046
15047 2011-03-16  Richard Guenther  <rguenther@suse.de>
15048
15049         PR tree-optimization/26134
15050         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15051         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15052         (non_rewritable_mem_ref_base): Handle complex type component
15053         accesses, constrain offsets for vector and complex extracts
15054         more properly.
15055
15056 2011-03-16  Richard Guenther  <rguenther@suse.de>
15057
15058         PR tree-optimization/48146
15059         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15060         operands avoiding the need for renaming.
15061
15062 2011-03-16  Richard Guenther  <rguenther@suse.de>
15063
15064         * gimple-fold.c (maybe_fold_reference): Open-code relevant
15065         constant folding.  Move MEM_REF canonicalization first.
15066         Rely on fold_const_aggregate_ref for initializer folding.
15067         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15068
15069 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
15070
15071         PR middle-end/48136
15072         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15073         arg0/arg1 or their arguments are always fold converted to matching
15074         types.
15075
15076         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15077         to nargs.
15078
15079 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15080
15081         PR lto/46944
15082         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15083         Handle in-tree gold.
15084         (ld_vers): Extract binutils version for gold.
15085         (gcc_cv_ld_hidden): Handle gold here.
15086         (gcc_cv_lto_plugin): Determine level of linker plugin support.
15087         * configure: Regenerate.
15088         * config.in: Regenerate.
15089         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15090         -fuse-linker-plugin otherwise.
15091         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
15092         (LINK_COMMAND_SPEC): Use it.
15093         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15094
15095 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
15096
15097         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15098         * calls.c: Remove debug.h include.
15099         (emit_call_1): Don't call virtual_call_token debug hook.
15100         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15101         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15102         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15103         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15104         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15105         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15106         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15107         dwarf2out_virtual_call): Remove.
15108         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15109         copy_call_info and virtual_call hooks.
15110         (dwarf2out_init): Don't initialize vcall_insn_table,
15111         debug_dcall_section and debug_vcall_section.
15112         (prune_unused_types): Don't mark nodes from dcall_table.
15113         (dwarf2out_finish): Don't output dcall or vcall tables.
15114         * final.c (final_scan_insn): Don't call direct_call or
15115         virtual_call debug hooks.
15116         * debug.h (struct gcc_debug_hooks): Remove direct_call,
15117         virtual_call_token, copy_call_info and virtual_call hooks.
15118         (debug_nothing_uid): Remove prototype.
15119         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15120         copy_call_info and virtual_call hooks.
15121         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15122         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15123         * debug.c (do_nothing_debug_hooks): Likewise.
15124         (debug_nothing_uid): Remove.
15125         * doc/invoke.texi (-fenable-icf-debug): Remove.
15126         * common.opt (-fenable-icf-debug): Likewise.
15127
15128         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15129         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15130         call's MEM.  Handle functions returning aggregate through a hidden
15131         first pointer.  For virtual calls add clobbered pc to call arguments
15132         chain.
15133         * dwarf2out.c (gen_subprogram_die): Emit
15134         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15135         can't be emitted.
15136
15137         PR debug/45882
15138         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15139         * rtl.h (ENTRY_VALUE_EXP): Define.
15140         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15141         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15142         * print-rtl.c (print_rtx): Likewise.
15143         * gengtype.c (adjust_field_rtx_def): Likewise.
15144         * var-tracking.c (vt_add_function_parameter): Adjust
15145         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15146         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15147         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15148         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15149         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15150
15151         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15152         Call var_location debug hook even on CALL_INSNs.
15153         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15154         * rtl.def (ENTRY_VALUE): New.
15155         * dwarf2out.c: Include cfglayout.h.
15156         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15157         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15158         (struct call_arg_loc_node): New type.
15159         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15160         tail_call_site_count): New variables.
15161         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15162         DW_TAG_GNU_call_site_parameter.
15163         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15164         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15165         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15166         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15167         and DW_AT_GNU_all_source_call_sites.
15168         (mem_loc_descriptor): Handle ENTRY_VALUE.
15169         (add_src_coords_attributes): Don't add enything if
15170         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15171         (dwarf2out_abstract_function): Save and clear call_arg_location,
15172         call_site_count and tail_call_site_count around dwarf2out_decl call.
15173         (gen_call_site_die): New function.
15174         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15175         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15176         (dwarf2out_function_decl): Clear call_arg_locations,
15177         call_arg_loc_last, set call_site_count and tail_call_site_count
15178         to -1 and free block_map.
15179         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15180         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
15181         followed by any real instructions.
15182         (dwarf2out_begin_function): Set call_site_count and
15183         tail_call_site_count to 0.
15184         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15185         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15186         attempt to force a DIE for it and worst case remove the attribute.
15187         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15188         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15189         the decl itself.
15190         * var-tracking.c: Include tm_p.h.
15191         (vt_stack_adjustments): For calls call note_register_arguments.
15192         (argument_reg_set): New variable.
15193         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15194         ensure the VALUE is resolved.
15195         (call_arguments): New variable.
15196         (prepare_call_arguments): New function.
15197         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15198         (struct expand_loc_callback_data): Add ignore_cur_loc field.
15199         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15200         always use the best expression.
15201         (vt_expand_loc): Add ignore_cur_loc argument.
15202         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15203         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15204         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15205         note for all calls.
15206         (vt_add_function_parameter): Use cselib_lookup_from_insn.
15207         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15208         argument.  Don't call cselib_preserve_only_values and
15209         cselib_reset_table.
15210         (note_register_arguments): New function.
15211         (vt_initialize): Compute argument_reg_set.  Call
15212         vt_add_function_parameters before processing basic blocks instead of
15213         afterwards.  For calls call prepare_call_arguments before calling
15214         cselib_process_insn.
15215         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15216         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15217         (var-tracking.o): Depend on $(TM_P_H).
15218         * cfglayout.h (insn_scope): New prototype.
15219         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15220         * cfglayout.c (insn_scope): No longer static.
15221         * insn-notes.def (CALL_ARG_LOCATION): New.
15222         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15223         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15224         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15225         nothing for DECL_EXTERNAL BLOCK_VARS.
15226
15227 2011-03-16  Alan Modra  <amodra@gmail.com>
15228
15229         PR target/45844
15230         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15231         create invalid offset address for vsx splat insn.
15232         * config/rs6000/predicates.md (splat_input_operand): New.
15233         * config/rs6000/vsx.md (vsx_splat_*): Use it.
15234
15235 2011-03-15  Xinliang David Li  <davidxl@google.com>
15236
15237         PR c/47837
15238         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15239         (normalize_preds): New function.
15240         (is_use_properly_guarded): Normalize def predicates.
15241
15242 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15243
15244         PR target/46788
15245         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15246         in the output template.
15247
15248 2011-03-15  Richard Guenther  <rguenther@suse.de>
15249
15250         PR middle-end/47650
15251         * tree-pretty-print.c (dump_function_declaration): Properly
15252         dump unprototyped and varargs function types.
15253
15254 2011-03-15  Richard Guenther  <rguenther@suse.de>
15255
15256         PR tree-optimization/13954
15257         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15258         and friends.
15259
15260 2011-03-15  Richard Guenther  <rguenther@suse.de>
15261
15262         PR tree-optimization/48037
15263         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15264         selects into BIT_FIELD_REFs.
15265         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15266         vector select.
15267
15268 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
15269
15270         PR tree-optimization/48129
15271         * builtins.c (fold_builtin_snprintf): Convert to type of
15272         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15273         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15274
15275 2011-03-15  Richard Guenther  <rguenther@suse.de>
15276
15277         PR tree-optimization/41490
15278         * tree-ssa-dce.c (propagate_necessity): Handle returns without
15279         value but with VUSE.
15280         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15281         return statements.
15282         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15283         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15284         * tree-tailcall.c (find_tail_calls): Ignore returns.
15285
15286 2011-03-15  Richard Guenther  <rguenther@suse.de>
15287
15288         PR middle-end/48031
15289         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15290         or variable-indexed array accesses when in gimple form.
15291
15292 2011-03-15  Richard Guenther  <rguenther@suse.de>
15293
15294         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15295
15296 2011-03-15  Alan Modra  <amodra@gmail.com>
15297
15298         PR target/48032
15299         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15300         presume symbol_refs without a symbol_ref_decl are suitably
15301         aligned, nor other trees we may see here.  Handle anchor symbols.
15302         (legitimate_constant_pool_address_p): Comment.  Add mode param.
15303         Check cmodel=medium addresses.  Adjust all calls.
15304         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15305         creating cmodel=medium optimized access to locals.
15306         * config/rs6000/constraints.md (R): Pass QImode to
15307         legitimate_constant_pool_address_p.
15308         * config/rs6000/predicates.md (input_operand): Pass mode to
15309         legitimate_constant_pool_address_p.
15310         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15311         Update prototype.
15312
15313 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15314
15315         PR target/48053
15316         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15317         64-bit constants being loaded into registers other than GPRs such
15318         as loading 0 into a VSX register.
15319
15320 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15321
15322         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15323
15324 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15325
15326         PR middle-end/47917
15327         * builtins.c (fold_builtin_snprintf): New function.
15328         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15329         (fold_builtin_4): Likewise.
15330
15331         PR middle-end/38878
15332         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15333         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
15334         and C - X == X also strip nops from +/-/p+ operand.
15335         When optimizing -X == C, fold C to arg0's type.
15336
15337         PR debug/47946
15338         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15339         emit it as add_AT_int instead of add_AT_unsigned.
15340
15341 2011-03-14  Tom Tromey  <tromey@redhat.com>
15342
15343         * unwind-dw2.c: Include sys/sdt.h if it exists.
15344         (_Unwind_DebugHook): Use STAP_PROBE2.
15345         * config.in, configure: Rebuild.
15346         * configure.ac: Check for sys/sdt.h.
15347
15348 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
15349
15350         * config/i386/i386.md (ROUND_FLOOR): New constant.
15351         (ROUND_CEIL): Ditto.
15352         (ROUND_TRUNC): Ditto.
15353         (ROUND_MXCSR): Ditto.
15354         (ROUND_NO_EXC): Ditto.
15355         (rint<mode>2): Use new defines instead of numerical constants.
15356         (floor<mode>2): Ditto.
15357         (ceil<mode>2): Ditto.
15358         (btrunc<mode>2): Ditto.
15359         * config/i386/i386-builtin-types.def: Define ROUND function type
15360         aliases.
15361         * config/i386/i386.c (enum ix86_builtins): Add
15362         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15363         (struct builtin_description): Add
15364         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15365         (ix86_expand_sse_round): New static function.
15366         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15367         function types.
15368         (ix86_builtin_vectorized_function): Handle
15369         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15370
15371 2011-03-14  Tom Tromey  <tromey@redhat.com>
15372
15373         * c-parser.c (c_parser_asm_string_literal): Clear
15374         warn_overlength_strings.
15375
15376 2011-03-14  Tom Tromey  <tromey@redhat.com>
15377
15378         * c-parser.c (disable_extension_diagnostics): Save
15379         warn_overlength_strings.
15380         (restore_extension_diagnostics): Restore warn_overlength_strings.
15381
15382 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15383
15384         * BASE-VER: Change to 4.7.0.
15385
15386 2011-03-14  Richard Guenther  <rguenther@suse.de>
15387
15388         PR middle-end/48098
15389         * tree.c (build_vector_from_val): Adjust assert to requirements
15390         and reality.
15391
15392 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15393
15394         PR bootstrap/48102
15395         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15396
15397 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
15398
15399         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15400         terms of target_flags_explicit. Adjust copyright year.
15401
15402         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15403         * config/rs6000/t-freebsd: New file. Add override for
15404         LIB2FUNCS_EXTRA.
15405
15406 2011-03-13  Chris Demetriou  <cgd@google.com>
15407
15408         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15409         (-fno-diagnostics-show-option): this, to reflect current default.
15410         (-Werror=): Update text about -fno-diagnostics-show-option.
15411
15412 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
15413
15414         PR target/48053
15415         * config/rs6000/predicates.md (easy_vector_constant_add_self,
15416         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15417         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15418         mode is not V2DImode or V2DFmode.
15419         (vspltis_constant): Do not handle V2DImode and V2DFmode.
15420         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15421         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15422         registers to 0.
15423         (movdi_internal64): Likewise.
15424
15425 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
15426
15427         PR tree-optimization/47127
15428         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15429         parameter.
15430         (set_cloog_options): Same.
15431         (scop_to_clast): Same.
15432         (print_clast_stmt): Do not call cloog_state_malloc and
15433         cloog_state_free.
15434         (print_generated_program): Same.
15435         (gloog): Same.
15436         * graphite-clast-to-gimple.h (cloog_state): Declared.
15437         (scop_to_clast): Adjust declaration.
15438         * graphite.c (cloog_state): Defined here.
15439         (graphite_initialize): Call cloog_state_malloc.
15440         (graphite_finalize): Call cloog_state_free.
15441
15442 2011-03-11  Jason Merrill  <jason@redhat.com>
15443
15444         * attribs.c (lookup_attribute_spec): Take const_tree.
15445         * tree.h: Adjust.
15446
15447 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
15448
15449         * config/sparc/sparc.c (sparc_option_override): Use
15450         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15451
15452 2011-03-11  Richard Guenther  <rguenther@suse.de>
15453
15454         PR tree-optimization/48067
15455         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15456         multiplication result will be only used once on the target
15457         stmt.
15458
15459 2011-03-11  Richard Guenther  <rguenther@suse.de>
15460
15461         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15462
15463 2011-03-11  Richard Guenther  <rguenther@suse.de>
15464
15465         PR lto/48073
15466         * tree.c (find_decls_types_r): Do not walk types only reachable
15467         from IDENTIFIER_NODEs.
15468
15469 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15470
15471         PR middle-end/48044
15472         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15473         all vnode->force_output nodes as needed.
15474
15475 2011-03-11  Jason Merrill  <jason@redhat.com>
15476
15477         PR c++/48069
15478         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15479         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15480
15481 2011-03-11  Martin Jambor  <mjambor@suse.cz>
15482
15483         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15484         cgraph_node.
15485
15486 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15487
15488         PR tree-optimization/48063
15489         * ipa-inline.c (cgraph_decide_inlining): Don't try to
15490         inline functions called once if !tree_can_inline_p (node->callers).
15491
15492 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
15493
15494         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15495         extra_objs.
15496         * config/score/score3.c: Delete.
15497         * config/score/score3.h: Delete.
15498         * config/score/mul-div.S: Delete.
15499         * config/score/sfp-machine.h: Add new file.
15500         * config/score/constraints.md: Add new file.
15501         * config/score/t-score-softfp: Add new file.
15502         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15503         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15504         (score7_extra_constraint): Delete.
15505         (score7_option_override): Remove unused code.
15506         * config/score/score.c: Remove score3 and score5 define and code.
15507         * config/score/score.h: Remove score3 and score5 define and code.
15508         * config/score/score.md: Remove score3 template and unusual insn.
15509         * config/score/score.opt: Remove score3 and score5 options.
15510
15511 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15512
15513         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15514         when _HPUX_SOURCE is defined.
15515         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15516
15517 2011-03-10  Jason Merrill  <jason@redhat.com>
15518
15519         PR c++/48029
15520         * stor-layout.c (layout_type): Don't set structural equality
15521         on arrays of incomplete type.
15522         * tree.c (type_hash_eq): Handle comparing them properly.
15523
15524 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
15525
15526         PR debug/48043
15527         * config/s390/s390.c (s390_delegitimize_address): Make sure the
15528         result mode matches original rtl mode.
15529
15530 2011-03-10  Nick Clifton  <nickc@redhat.com>
15531
15532         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15533         (andsi3, andsi3_flags): Fix timings for three operand alternative.
15534
15535 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
15536
15537         PR rtl-optimization/47866
15538         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15539         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15540         if target wasn't scalar.
15541         * function.c (assign_stack_temp_for_type): Assert that neither
15542         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15543         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15544         macro.
15545         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15546
15547 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15548
15549         * config/s390/s390-protos.h (s390_label_align): New prototype.
15550         * config/s390/s390.c (s390_label_align): New function.
15551         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15552
15553 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
15554
15555         PR target/47755
15556         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15557         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
15558         (output_vec_const_move): Ditto.
15559
15560 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
15561
15562         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15563         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15564         * config/mips/mips.c (mips_preferred_reload_class): Make static.
15565         Change 'rclass' argument and result type to reg_class_t.
15566         (TARGET_PREFERRED_RELOAD_CLASS): Define.
15567
15568 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
15569
15570         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15571         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15572         (TARGET_MEMORY_MOVE_COST): Define.
15573         (avr_register_move_cost, avr_memory_move_cost): New Functions.
15574
15575 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
15576
15577         PR debug/47881
15578         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15579         removed anything.
15580
15581         PR tree-optimization/48022
15582         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15583         for EQ/NE_EXPR.
15584
15585 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
15586
15587         PR debug/47991
15588         * var-tracking.c (find_use_val): Return NULL for
15589         cui->sets && cui->store_p BLKmode MEMs.
15590
15591 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
15592
15593         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15594         Remove.
15595         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15596         xstormy16_print_operand_address): Remove.
15597         * config/stormy16/stormy16.c (xstormy16_print_operand,
15598         xstormy16_print_operand_address): Make static.
15599         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15600
15601 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
15602
15603         PR target/47862
15604         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15605         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15606         before definition.
15607
15608 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
15609
15610         PR bootstrap/48000
15611         * cfgloopmanip.c (fix_bb_placements): Return immediately
15612         if FROM is BASE_LOOP's header.
15613
15614 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
15615
15616         * gimplify.c (gimplify_function_tree): Fix building calls
15617         to __builtin_return_address.
15618
15619 2011-03-07  Alan Modra  <amodra@gmail.com>
15620
15621         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15622         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15623         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15624         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15625         return_mode args.
15626         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15627         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15628         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15629         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15630         * config/rs6000/rs6000.c
15631         (rs6000_elf_end_indicate_exec_stack): Rename to..
15632         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
15633         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
15634         (rs6000_file_start): ..here.
15635         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15636         file scope variables.
15637         (call_ABI_of_interest): New function.
15638         (init_cumulative_args): Set above vars when function return value
15639         is a float, vector, or small struct.
15640         (rs6000_function_arg_advance_1): Likewise for function args.
15641         (rs6000_va_start): Set rs6000_passes_float if variable arg function
15642         references float args.
15643
15644 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
15645
15646         * doc/cfg.texi: Remove "See" before @ref.
15647         * doc/invoke.texi: Likewise.
15648
15649 2011-03-05  Jason Merrill  <jason@redhat.com>
15650
15651         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15652
15653 2011-03-05  Anthony Green  <green@moxielogic.com>
15654
15655         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15656
15657 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
15658
15659         PR rtl-optimization/47899
15660         * cfgloopmanip.c (fix_bb_placements): Fix first argument
15661         to flow_loop_nested_p when moving the loop upward.
15662
15663 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
15664
15665         PR target/47719
15666         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
15667
15668 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
15669
15670         PR tree-optimization/47967
15671         * ipa-cp.c (build_const_val): Return NULL instead of creating
15672         VIEW_CONVERT_EXPR for mismatching sizes.
15673         (ipcp_create_replace_map): Return NULL if build_const_val failed.
15674         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15675         give up on versioning.
15676
15677 2011-03-05  Alan Modra  <amodra@gmail.com>
15678
15679         PR target/47986
15680         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15681         full cmodel medium/large lo_sum + high addresses.
15682
15683 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15684
15685         * config/s390/s390.c (s390_decompose_address): Reject non-literal
15686         pool references in UNSPEC_LTREL_OFFSET.
15687
15688 2011-03-04  Jan Hubicka  <jh@suse.cz>
15689
15690         PR lto/47497
15691         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15692         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15693         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15694         Add node pointers.
15695         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15696         cgraph_add_thunk): Add node pointers.
15697         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15698         associated to right node.
15699         (input_node): Update use of cgraph_same_body_alias
15700         and cgraph_add_thunk.
15701
15702 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15703
15704         * config/i386/i386.opt (mprefer-avx128): New flag.
15705         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15706         modes when the flag -mprefer-avx128 is on.
15707
15708 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
15709
15710         * dwarf2out.c (compare_loc_operands): Fix address handling.
15711
15712 2011-03-04  Alan Modra  <amodra@gmail.com>
15713
15714         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15715
15716 2011-03-04  Richard Guenther  <rguenther@suse.de>
15717
15718         PR middle-end/47968
15719         * expmed.c (extract_bit_field_1): Prefer vector modes that
15720         vec_extract patterns can handle.
15721
15722 2011-03-04  Richard Guenther  <rguenther@suse.de>
15723
15724         PR middle-end/47975
15725         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15726
15727 2011-03-04  Richard Henderson  <rth@redhat.com>
15728
15729         * explow.c (emit_stack_save): Remove 'after' parameter.
15730         (emit_stack_restore): Likewise.
15731         * expr.h: Update to match.
15732         * builtins.c, calls.c, stmt.c: Likewise.
15733         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15734         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15735         * function.c (expand_function_end): Insert the emit_stack_save
15736         sequence before parm_birth_insn instead of after.
15737
15738 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
15739
15740         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15741         (ssse3_pmaddubsw128): Ditto.
15742         (ssse3_pmaddubsw): Ditto.
15743
15744 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
15745
15746         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15747
15748 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
15749
15750         PR c/47963
15751         * gimplify.c (omp_add_variable): Only call omp_notice_variable
15752         on TYPE_SIZE_UNIT if it is a DECL.
15753
15754         PR debug/47283
15755         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15756         first operand is not is_gimple_mem_ref_addr, try to fold it.
15757         If the operand still isn't is_gimple_mem_ref_addr, clear
15758         MEM_EXPR on op0.
15759
15760 2011-03-03  Richard Guenther  <rguenther@suse.de>
15761
15762         PR middle-end/47283
15763         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15764         match comment.
15765         (refs_may_alias_p_1): For release branches return true if
15766         we are confused by our input.
15767
15768 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15769
15770         * config/s390/s390.c (s390_function_value): Rename to ...
15771         (s390_function_and_libcall_value): ... this.
15772         (s390_function_value): New function.
15773         (s390_libcall_value): New function.
15774         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15775         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15776         target macro definitions.
15777         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15778
15779 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
15780
15781         * config/i386/freebsd64.h (CC1_SPEC): Define.
15782         * config/i386/linux64.h (CC1_SPEC): Define.
15783         * config/i386/x86-64.h (CC1_SPEC): Don't define.
15784
15785 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
15786
15787         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15788         Remove.
15789         * config/stormy16/stormy16.c: Include reload.h.
15790         (xstormy16_memory_move_cost): New function.
15791         (TARGET_MEMORY_MOVE_COST): Define.
15792
15793 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
15794
15795         PR rtl-optimization/47925
15796         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15797         with side effects.  Remove the more-specific check for volatile asms.
15798
15799 2011-03-02  Alan Modra  <amodra@gmail.com>
15800
15801         PR target/47935
15802         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15803         toc relative addresses for valid offsets.
15804
15805 2011-03-01  Richard Guenther  <rguenther@suse.de>
15806
15807         PR tree-optimization/47890
15808         * tree-vect-loop.c (get_initial_def_for_induction): Set
15809         related stmt properly.
15810
15811 2011-03-01  Richard Guenther  <rguenther@suse.de>
15812
15813         PR lto/47924
15814         * lto-streamer.c (lto_record_common_node): Also register
15815         the canonical type.
15816
15817 2011-03-01  Richard Guenther  <rguenther@suse.de>
15818
15819         PR lto/46911
15820         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15821         Do not stream DECL_ABSTRACT_ORIGIN.
15822         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15823         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15824         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15825         Do not stream DECL_ABSTRACT_ORIGIN.
15826         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15827         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15828
15829 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
15830
15831         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15832         FUNCTION_VALUE_REGNO_P): Remove.
15833         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15834         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15835         Add 'outgoing' argument.
15836         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15837         function.
15838         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15839         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15840
15841 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
15842
15843         PR debug/28047
15844         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15845         (lookup_filename): Likewise.
15846         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15847
15848 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
15849             Jakub Jelinek  <jakub@redhat.com>
15850
15851         PR middle-end/47893
15852         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15853         (assign_stack_local_1): Change last argument type to int.
15854         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15855         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
15856         don't record padding space into frame_space_list nor use those areas.
15857         (assign_stack_local): Adjust caller.
15858         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15859         of assign_stack_local, pass 0 as last argument.
15860         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15861         callers.
15862
15863 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
15864
15865         PR debug/47283
15866         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15867         Use target address_mode and pointer_mode hooks instead of hardcoded
15868         Pmode and ptr_mode.  Handle some simple cases of extending if
15869         POINTERS_EXTEND_UNSIGNED < 0.
15870         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15871         Call convert_debug_memory_address.
15872         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15873         convert_debug_memory_address.
15874
15875         PR middle-end/46790
15876         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15877         * configure: Regenerated.
15878         * config.in: Regenerated.
15879         * varasm.c (default_function_section): Return NULL
15880         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15881
15882 2011-02-28  Martin Jambor  <mjambor@suse.cz>
15883
15884         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15885         the description to match the printed values.
15886
15887 2011-02-28  Richard Guenther  <rguenther@suse.de>
15888
15889         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15890         of the copied scope tree.
15891
15892 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15893
15894         * doc/extend.texi (Function Attributes): Avoid deeply (and
15895         wrongly) nested tables.
15896
15897 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
15898
15899         PR middle-end/47903
15900         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15901         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15902         r isn't op0 nor op1.
15903
15904 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15905
15906         * config/avr/avr.md: Remove magic comment for emacs.
15907
15908 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15909
15910         PR target/45261
15911         * config/avr/avr.c (avr_option_override): Use error on bad options.
15912         (avr_help): New function.
15913         (TARGET_HELP): Define.
15914
15915 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
15916
15917         PR target/42240
15918         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15919         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15920
15921 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
15922
15923         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15924         (ARM Options): Ditto.
15925         (i386 and x86-64 Options): Ditto.
15926         (RX Options): Ditto.
15927         (SPARC Options): Ditto.
15928
15929 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
15930
15931         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15932         FreeBSD 6 and later.  Generally use cpu generic.
15933
15934 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
15935
15936         * doc/cpp.texi: Update copyright years.
15937
15938 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
15939
15940         PR target/46898
15941         * config/lm32/lm32.md (ashrsi3): Added needed variable.
15942
15943 2011-02-25  Jon Beniston  <jon@beniston.com>
15944
15945         PR target/46898
15946         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15947         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15948         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15949         (lm32_block_move_inline): Add type cast to remove warning.
15950         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15951         (gen_int_relational): Move declarations to start of function.
15952
15953 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
15954
15955         PR tree-optimization/45470
15956         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15957         can throw internally only.
15958         * tree-vect-stmts.c (vectorizable_call): Likewise.
15959
15960 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
15961
15962         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15963         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15964         * config/stormy16/stormy16-protos.h
15965         (xstormy16_preferred_reload_class): Remove.
15966         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15967         static. Change 'rclass' argument and return type to reg_class_t.
15968         (TARGET_PREFERRED_RELOAD_CLASS,
15969         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15970
15971 2011-02-24  Richard Guenther  <rguenther@suse.de>
15972
15973         * lto-streamer-in.c (input_bb): Do not find referenced vars
15974         in debug statements.
15975
15976 2011-02-23  Jason Merrill  <jason@redhat.com>
15977
15978         * common.opt (fabi-version): Document v5 and v6.
15979
15980 2011-02-23  Richard Guenther  <rguenther@suse.de>
15981
15982         PR tree-optimization/47849
15983         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15984
15985 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15986
15987         * opts-common.c (decode_cmdline_option): Print empty string
15988         argument as "" in decoded->orig_option_with_args_text.
15989         * gcc.c (execute): Print empty string argument as ""
15990         in the verbose output.
15991         (do_spec_1): Keep empty string argument.
15992
15993 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
15994
15995         * config.gcc: Declare score-* and crx-* obsolete.
15996
15997 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15998
15999         PR rtl-optimization/47763
16000         * web.c (web_main): Ignore naked clobber when replacing register.
16001
16002 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
16003
16004         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16005         Remove.
16006
16007 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16008
16009         PR doc/47848
16010         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16011
16012 2011-02-22  Mike Stump  <mikestump@comcast.net>
16013
16014         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16015         assembler.
16016         * configure: Regenerate.
16017
16018 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
16019
16020         PR rtl-optimization/46002
16021         * ira-color.c (update_copy_costs): Change class intersection
16022         test to reg_class_contents[] test of 'hard_regno'.
16023
16024 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
16025
16026         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16027         than Driver option.
16028         * config/hpux11.opt (mt): Likewise.
16029         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16030         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16031         * config/vax/elf.opt (mno-asm-pic): Likewise.
16032         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16033
16034 2011-02-21  Mike Stump  <mikestump@comcast.net>
16035
16036         PR target/47822
16037         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16038         tree so we can get save the type.
16039         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16040         for CFString instead of trying to use past the end of the builtins.
16041         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16042         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16043         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16044         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16045         Rename to darwin_builtin_cfstring.
16046         (darwin_init_cfstring_builtins): Return the built type.
16047
16048 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
16049
16050         PR target/47840
16051         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16052         (_mm256_insert_epi64): Use _mm_insert_epi64.
16053
16054 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
16055
16056         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16057         * config/stormy16/stormy16-protos.h
16058         (xstormy16_mode_dependent_address_p): Remove.
16059         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16060         Make static. Change return type to bool. Change argument type to
16061         const_rtx. Remove dead code.
16062         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16063
16064 2011-02-21  Richard Guenther  <rguenther@suse.de>
16065
16066         PR lto/47820
16067         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16068         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16069         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16070         TUs context.
16071         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16072         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16073
16074 2011-02-20  Richard Guenther  <rguenther@suse.de>
16075
16076         PR lto/47822
16077         * tree.c (free_lang_data_in_decl): Clean builtins from
16078         the TU decl BLOCK_VARS.
16079
16080 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
16081
16082         PR debug/47620
16083         PR debug/47630
16084         * haifa-sched.c (fix_tick_ready): Skip tick computation
16085         for debug insns.
16086
16087 2011-02-19  Richard Guenther  <rguenther@suse.de>
16088
16089         PR lto/47647
16090         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16091         Remove lazy BLOCK_VARS streaming.
16092         (lto_input_ts_block_tree_pointers): Likewise.
16093         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16094
16095 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
16096
16097         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16098
16099 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
16100
16101         * config/i386/biarch32.h, config/i386/mach.h,
16102         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16103
16104 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
16105
16106         PR target/47800
16107         * config/i386/i386.md (peephole2 for shift and plus): Use
16108         operands[1] original mode in the first insn.
16109
16110 2011-02-18  Mike Stump  <mikestump@comcast.net>
16111
16112         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16113
16114 2011-02-18  Jan Hubicka  <jh@suse.cz>
16115
16116         PR middle-end/47788
16117         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16118         to zero when the function is not inlinable at all.
16119
16120 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16121
16122         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16123         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16124         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16125         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16126         * config/pa/t-pa64: Likewise.
16127         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16128
16129 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
16130
16131         PR driver/47787
16132         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16133
16134 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16135
16136         PR target/47792
16137         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16138
16139 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
16140
16141         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16142         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16143         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16144         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16145         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16146         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16147         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16148         m32r_load_postinc_p, m32r_store_preinc_predec_p,
16149         m32r_legitimate_address_p): New functions.
16150         * config/m32r/constraints.md (constraint "S"): Don't use
16151         STORE_PREINC_PREDEC_P.
16152         (constraint "U"): Don't use LOAD_POSTINC_P.
16153
16154 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
16155
16156         PR rtl-optimization/46178
16157         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16158         compute ira_hard_regno_cover_class[].
16159
16160 2011-02-18  Richard Guenther  <rguenther@suse.de>
16161
16162         PR lto/47798
16163         * lto-streamer.h (lto_global_var_decls): Declare.
16164         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16165         statics for global var processing.
16166
16167 2011-02-18  Richard Guenther  <rguenther@suse.de>
16168
16169         PR tree-optimization/47737
16170         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16171         edge dominance check.
16172
16173 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
16174
16175         PR debug/47780
16176         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16177         avoid invalid rtx sharing.
16178
16179 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
16180
16181         * doc/cpp.texi (Obsolete Features): Add background on the
16182         origin of assertions.
16183
16184 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
16185
16186         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
16187         objc_abi == 2.
16188         * config/darwin.c (output_objc_section_asm_op): Added support for
16189         ABI v1 and v2.
16190         (is_objc_metadata): New.
16191         (darwin_objc2_section): New.
16192         (darwin_objc1_section): New.
16193         (machopic_select_section): Added support for ABI v1 and v2.
16194         (darwin_emit_objc_zeroed): New.
16195         (darwin_output_aligned_bss): Detect objc metadata and treat it
16196         appropriately.
16197         (darwin_asm_output_aligned_decl_common): Same.
16198         (darwin_asm_output_aligned_decl_local): Same.
16199         * config/darwin-sections.def: Updated for ABI v1 and v2.
16200         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16201         compiling Objective-C code for the NeXT runtime, default to using
16202         ABI version 0 for 32-bit, and version 2 for 64-bit.
16203
16204 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16205
16206         * common.opt (optimize_fast): New Variable.
16207         * opts.c (default_options_optimization): Use opts->x_optimize_fast
16208         instead of local variable ofast.
16209
16210 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
16211
16212         * doc/invoke.texi (fobjc-abi-version): Documented.
16213         (fobjc-nilcheck): Documented.
16214         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16215         version.
16216
16217 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16218
16219         PR driver/47390
16220         * common.opt (export-dynamic): New Driver option.
16221         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16222
16223 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16224
16225         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16226
16227 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
16228             Jan Hubicka  <jh@suse.cz>
16229
16230         PR debug/47106
16231         PR debug/47402
16232         * cfgexpand.c (account_used_vars_for_block): Remove.
16233         (estimated_stack_frame_size): Use referenced vars.
16234         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16235         that were referenced in the original function.  Test src_fn
16236         rather than cfun.  Drop redundant get_var_ann.
16237         (setup_one_parameter): Drop redundant get_var_ann.
16238         (declare_return_variable): Likewise.
16239         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16240         (copy_arguments_for_versioning): Drop redundant get_var_ann.
16241         * ipa-inline.c (compute_inline_parameters): Do not compute
16242         disregard_inline_limits here.
16243         (compute_inlinable_for_current, pass_inlinable): New.
16244         (pass_inline_parameters): Require PROP_referenced_vars.
16245         * cgraphunit.c (cgraph_process_new_functions): Don't run
16246         compute_inline_parameters explicitly unless function is in SSA form.
16247         (cgraph_analyze_function): Set .disregard_inline_limits.
16248         * tree-sra.c (convert_callers): Compute inliner parameters
16249         only for functions already in SSA form.
16250
16251 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16252
16253         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16254         -mlittle-endian-data.
16255
16256 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16257
16258         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16259         -mno-fpu, not -fpu and -no-fpu.
16260         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16261         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16262
16263 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
16264
16265         PR target/43653
16266         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16267         input reload with PLUS RTX.
16268
16269 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16270
16271         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16272         of InverseVar(MDMX).
16273
16274 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16275
16276         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16277         --m4-340.
16278
16279 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16280
16281         * config/mn10300/mn10300.opt (mno-crt0): New.
16282
16283 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16284
16285         * config/m68k/uclinux.opt (static-libc): New Driver option.
16286
16287 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16288
16289         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16290
16291 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16292
16293         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16294         %{muser-extend-enabled}.
16295
16296 2011-02-16  Richard Guenther  <rguenther@suse.de>
16297
16298         PR tree-optimization/47738
16299         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16300         the TODO from tree_predictive_commoning.
16301
16302 2011-02-15  Jeff Law  <law@redhat.com>
16303
16304         Revert
16305         2011-01-25  Jeff Law  <law@redhat.com>
16306
16307         PR rtl-optimization/37273
16308         * ira-costs.c (scan_one_insn): Detect constants living in memory and
16309         handle them like argument loads from stack slots.  Do not double
16310         count memory for memory constants and argument loads from stack slots.
16311
16312 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16313
16314         PR middle-end/47725
16315         * combine.c (cant_combine_insn_p): Revert the last change.
16316
16317 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
16318
16319         PR target/47755
16320         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16321         mode for vector constants.  Remove code that checks for TImode.
16322
16323 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16324
16325         PR debug/47106
16326         PR debug/47402
16327         * cgraph.h (compute_inline_parameters): Return void.
16328         * ipa-inline.c (compute_inline_parameters): Adjust.
16329
16330 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16331
16332         PR debug/47106
16333         PR debug/47402
16334         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16335         rather than decl.
16336         * cfgexpand.c (estimated_stack_frame_size): Likewise.
16337         * ipa-inline.c (compute_inline_parameters): Adjust.
16338
16339 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16340
16341         PR debug/47106
16342         PR debug/47402
16343         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16344         Adjust all users.  Pass FN to...
16345         * tree-flow-inline.h (first_referenced_var): ... this.  Add
16346         fn argument.
16347         * ipa-struct-reorg.c: Adjust.
16348         * tree-dfa.c: Adjust.
16349         * tree-into-ssa.c: Adjust.
16350         * tree-sra.c: Adjust.
16351         * tree-ssa-alias.c: Adjust.
16352         * tree-ssa-live.c: Adjust.
16353         * tree-ssa.c: Adjust.
16354         * tree-ssanames.c: Adjust.
16355         * tree-tailcall.c: Adjust.
16356
16357 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16358
16359         PR debug/47106
16360         PR debug/47402
16361         * tree-flow.h (referenced_var_lookup): Add fn parameter.
16362         Adjust all callers.
16363         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16364         * tree-flow-inline.h: Adjust.
16365         * gimple-pretty-print.c: Adjust.
16366         * tree-into-ssa.c: Adjust.
16367         * tree-ssa.c: Adjust.
16368         * cfgexpand.c: Adjust.
16369
16370 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16371
16372         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16373         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16374         (EXTRA_CONSTRAINT): Delete.
16375         * config/iq2000/constraints.md: New file.
16376         * config/iq2000/iq2000.md: Include it.
16377         (define_insn ""): Delete.
16378         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16379         unsupported constraint letters from patterns.
16380         (call_value, call_value_internal1): Likewise.
16381         (call_value_multiple_internal1): Likewise.
16382
16383 2011-02-15  Nick Clifton  <nickc@redhat.com>
16384
16385         * config/mn10300/mn10300.c: Include tm-constrs.h.
16386         (struct liw_data): New data structure describing an LIW candidate
16387         instruction.
16388         (extract_bundle): Use struct liw_data.  Allow small integer
16389         operands for some instructions.
16390         (check_liw_constraints): Use struct liw_data.  Remove swapped
16391         parameter.  Add comments describing the checks.  Fix bug when
16392         assigning the source of liw1 to the source of liw2.
16393         (liw_candidate): Delete.  Code moved into extract_bundle.
16394         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
16395         before swapping.
16396         * config/mn10300/predicates.md (liw_operand): New predicate.
16397         Allows registers and small integer constants.
16398         * config/mn10300/constraints.md (O): New constraint.  Accetps
16399         integers in the range -8 to +7 inclusive.
16400         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16401         for moving a small integer into a register.  Give this alternative
16402         LIW attributes.
16403         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16404         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16405         using the J,K,L and M constraints,
16406         (liw): Remove SI mode on second operands to allow for HI and QI
16407         mode values.
16408         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
16409         instruction.
16410
16411 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16412
16413         PR middle-end/47725
16414         * combine.c (cant_combine_insn_p): Check zero/sign extended
16415         hard registers.
16416
16417 2011-02-15  Richard Guenther  <rguenther@suse.de>
16418
16419         PR tree-optimization/47743
16420         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16421         for a non-type-compatible VN lookup bail out.
16422
16423 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16424
16425         * config/fr30/constraints.md: New file.
16426         * config/fr30/fr30.md: Include it.
16427         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16428         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16429         (EXTRA_CONSTRAINT): Delete.
16430
16431 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16432
16433         * config/frv/constraints.md: New file.
16434         * config/frv/predicates.md: Include it.
16435         * config/frv/frv.c (reg_class_from_letter): Delete.
16436         (frv_option_override): Don't initialize it.
16437         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16438         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16439         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16440         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16441         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16442         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16443         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16444         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16445         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16446         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16447         (REG_CLASS_FROM_CONSTRAINT): Delete.
16448
16449 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
16450
16451         PR middle-end/47581
16452         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16453         if frame size is 0 in a leaf function.
16454
16455 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16456
16457         PR pch/14940
16458         * config/alpha/host-osf.c: New file.
16459         * config/alpha/x-osf: New file.
16460         * config.host (alpha*-dec-osf*): Use it.
16461
16462 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16463
16464         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16465         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16466         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16467         (rx_mode_dependent_address_p): ...this. Make static. Change argument
16468         type to const_rtx.
16469         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16470
16471 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16472
16473         * config/stormy16/constraints.md: New file.
16474         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16475         Use satisfies_constraint_Q and satisfies_constraint_R.
16476         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16477         Delete.
16478         (xstormy16_legitiamte_address_p): Declare.
16479         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16480         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16481         (EXTRA_CONSTRAINT): Delete.
16482         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16483         Un-staticize.
16484         (xstormy16_extra_constraint_p): Delete.
16485
16486 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
16487
16488         PR tree-optimization/46494
16489         * loop-unroll.c (split_edge_and_insert): Adjust comment.
16490         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16491         (pass_rtl_loop_done): Add TODO_verify_flow.
16492         * fwprop.c (pass_rtl_fwprop): Likewise.
16493         * modulo-sched.c (pass_sms): Likewise.
16494         * tree-ssa-dom.c (pass_dominator): Likewise.
16495         * tree-ssa-loop-ch.c (pass_ch): Likewise.
16496         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16497         (pass_tree_loop_done): Likewise.
16498         * tree-ssa-pre.c (execute_pre): Likewise.
16499         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16500         * tree-ssa-sink.c (pass_sink_code): Likewise.
16501         * tree-vrp.c (pass_vrp): Likewise.
16502
16503 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16504
16505         * config/v850/constraints.md: New file.
16506         * config/v850/v850.md: Include it.
16507         * config/v850/predicates.md (reg_or_0_operand): Use
16508         satisfies_constraint_G.
16509         (special_symbolref_operand): Use satisfies_constraint_K.
16510         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16511         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16512         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16513         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16514         (EXTRA_CONSTRAINT): Delete.
16515         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16516         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16517         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16518
16519 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16520
16521         PR target/47696
16522         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16523         description.
16524
16525 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16526
16527         * config/mcore/constraints.md: New file.
16528         * config/mcore/mcore.md: Include it.
16529         * config/mcore/mcore.c (reg_class_from_letter): Delete.
16530         * config/mcore/mcore.h (reg_class_from_letter): Delete.
16531         (REG_CLASS_FROM_LETTER): Delete.
16532         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16533         insn_const_int_ok_for_constraint.
16534         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16535         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16536         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16537         (EXTRA_CONSTRAINT): Delete.
16538
16539 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16540
16541         PR ada/41929
16542         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16543         (IS_SIGHANDLER): Define.
16544         (sparc64_is_sighandler): New function, split off from
16545         sparc64_fallback_frame_state.
16546         (sparc_is_sighandler): New function, split off from
16547         sparc_fallback_frame_state.
16548         (sparc64_fallback_frame_state): Merge with ...
16549         (sparc_fallback_frame_state): ... this into ...
16550         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16551         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
16552         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
16553         stack instead of hardcoded offsets.
16554
16555 2011-02-14  Andriy Gapon  <avg@freebsd.org>
16556
16557         PR target/45808
16558         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16559
16560 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16561
16562         * configure: Regenerate.
16563
16564 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
16565
16566         PR driver/45731
16567         * gcc.c (asm_options): Correct spec matching --target-help.
16568
16569 2011-02-12  Martin Jambor  <mjambor@suse.cz>
16570
16571         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16572         to gimple call error.
16573
16574 2011-02-12  Mike Stump  <mikestump@comcast.net>
16575
16576         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16577         comments in backslash regions.
16578
16579 2011-02-12  Mike Stump  <mikestump@comcast.net>
16580             Jakub Jelinek  <jakub@redhat.com>
16581             Iain Sandoe  <iains@gcc.gnu.org>
16582
16583         PR target/47324
16584         * dwarf2out.c (output_cfa_loc): When required, apply the
16585         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16586         (output_loc_sequence): Likewise.
16587         (output_loc_operands_raw): Likewise.
16588         (output_loc_sequence_raw): Likewise.
16589         (output_cfa_loc): Likewise.
16590         (output_loc_list): Suppress register number adjustment when
16591         calling output_loc_sequence()
16592         (output_die): Likewise.
16593
16594 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
16595
16596         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16597         Remove macros.
16598         * config/xtensa/xtensa.c (xtensa_register_move_cost,
16599         xtensa_memory_move_cost): New functions.
16600         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16601
16602 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
16603
16604         PR lto/47225
16605         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16606         in the current directory.
16607         * configure: Rebuilt.
16608
16609 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16610
16611         * config/darwin.c (darwin_override_options): Add a hunk missed
16612         from the commit of r168571.  Trim comment line lengths and
16613         correct indents of the preceding block.
16614
16615 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16616
16617         * gcc.c (driver_handle_option): Concatenate the argument to -F with
16618         the switch.
16619
16620 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16621
16622         * common.opt (nostartfiles): New Driver option.
16623
16624 2011-02-11  Xinliang David Li  <davidxl@google.com>
16625
16626         PR tree-optimization/47707
16627         * tree-chrec.c (convert_affine_scev): Keep type precision.
16628
16629 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
16630
16631         PR tree-optimization/47420
16632         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16633
16634 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
16635
16636         PR rtl-optimization/47614
16637         * rtl.h (check_for_inc_dec): Declare.
16638         * dse.c (check_for_inc_dec): Externalize...
16639         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16640         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16641
16642 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16643
16644         PR driver/47678
16645         * gcc.c (main): Do not compile inputs if there were errors in
16646         option handling.
16647         * opts-common.c (read_cmdline_option): Check for wrong language
16648         after other error checks.
16649
16650 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
16651
16652         * cgraph.c: Fix comment typos.
16653         * cgraph.h: Likewise.
16654         * cgraphunit.c: Likewise.
16655         * ipa-cp.c: Likewise.
16656         * ipa-inline.c: Likewise.
16657         * ipa-prop.c: Likewise.
16658         * ipa-pure-const.c: Likewise.
16659         * ipa-ref.c: Likewise.
16660         * ipa-reference.c: Likewise.
16661
16662 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16663
16664         PR debug/47684
16665         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16666
16667 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16668
16669         PR testsuite/47400
16670         * doc/sourcebuild.texi (Require Support): Document
16671         dg-require-ascii-locale.
16672
16673 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
16674
16675         * doc/lto.texi (Write summary): Fix missing parentheses.
16676
16677 2011-02-10  DJ Delorie  <dj@redhat.com>
16678
16679         * config/m32c/m32c.c (m32c_option_override): Disable
16680         -fcombine-stack-adjustments until flag value tracking and compare
16681         optimization can be rewritten.
16682
16683 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
16684
16685         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16686         PROCESSOR_POWER7.
16687         (PROCESSOR_DEFAULT64): Likewise.
16688
16689 2011-02-10  Richard Henderson  <rth@redhat.com>
16690
16691         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16692         change from 2011-02-03.
16693         * config/rx/rx.c (flags_from_code): Likewise.
16694         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16695         is valid, n/pz otherwise.
16696         (rx_select_cc_mode): Return CCmode if Y is not zero.
16697
16698 2011-02-10  Richard Guenther  <rguenther@suse.de>
16699
16700         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16701
16702 2011-02-10  Richard Guenther  <rguenther@suse.de>
16703
16704         PR tree-optimization/47677
16705         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16706
16707 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
16708
16709         PR target/47665
16710         * combine.c (make_compound_operation): Only change shifts into
16711         multiplication for SCALAR_INT_MODE_P.
16712
16713 2011-02-10  Jie Zhang  <jie@codesourcery.com>
16714
16715         PR testsuite/47622
16716         Revert
16717         2011-02-05  Jie Zhang  <jie@codesourcery.com>
16718         PR debug/42631
16719         * web.c (entry_register): Don't clobber the number of the
16720         first uninitialized reference in used[].
16721
16722 2011-02-09  Richard Guenther  <rguenther@suse.de>
16723
16724         PR tree-optimization/47664
16725         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16726         all edges again.
16727
16728 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
16729
16730         PR target/46481
16731         PR target/47032
16732         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16733         PROCESSOR_POWER7.
16734         (PROCESSOR_DEFAULT64): Same.
16735         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16736
16737 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16738
16739         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16740
16741 2011-02-09  Martin Jambor  <mjambor@suse.cz>
16742
16743         PR middle-end/45505
16744         * tree-sra.c (struct access): New flags grp_scalar_read and
16745         grp_scalar_write.  Changed description of assignment read and write
16746         flags.
16747         (dump_access): Dump new flags, reorder all of them.
16748         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16749         to detect multiple scalar reads.
16750         (analyze_access_subtree): Use the new scalar read write flags instead
16751         of the old flags.  Adjusted comments.
16752
16753 2011-02-08  DJ Delorie  <dj@redhat.com>
16754
16755         PR target/47548
16756         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16757         patterns.
16758
16759 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16760
16761         * config/m68k/uclinux.opt: New.
16762         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16763
16764 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16765
16766         * config/cris/elf.opt (sim): New Driver option.
16767
16768 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16769
16770         * config/xtensa/elf.opt: New.
16771         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16772
16773 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16774
16775         * config/vax/elf.opt: New.
16776         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16777
16778 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16779
16780         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16781
16782 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16783
16784         * config/gnu-user.opt: New.
16785         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16786         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16787         *-*-uclinux*): Use gnu-user.opt.
16788
16789 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
16790
16791         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16792         * config/i386/gnu.h (CPP_SPEC): Likewise.
16793
16794 2011-02-08  Ian Lance Taylor  <iant@google.com>
16795
16796         * common.opt (fcx-limited-range): Add SetByCombined flag.
16797         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16798         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16799         (fassociative-math, freciprocal-math): Likewise.
16800         (funsafe-math-optimizations): Likewise.
16801         * opth-gen.awk: Handle SetByCombined.
16802         * optc-gen.awk: Likewise.
16803         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16804         (set_unsafe_math_optimizations_flags): Likewise.
16805         * doc/options.texi (Option properties): Document SetByCombined.
16806
16807 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16808
16809         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16810         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16811         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16812         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16813         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16814
16815 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
16816
16817         PR tree-optimization/46834
16818         PR tree-optimization/46994
16819         PR tree-optimization/46995
16820         * graphite-sese-to-poly.c (used_outside_reduction): New.
16821         (detect_commutative_reduction): Call used_outside_reduction.
16822         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16823         translate_scalar_reduction_to_array only when at least one
16824         loop-phi/close-phi tuple has been detected.
16825
16826 2011-02-08  Richard Guenther  <rguenther@suse.de>
16827
16828         PR middle-end/47639
16829         * tree-vect-generic.c (expand_vector_operations_1): Update
16830         stmts here ...
16831         (expand_vector_operations): ... not here.  Cleanup EH info
16832         and the CFG if required.
16833
16834 2011-02-08  Richard Guenther  <rguenther@suse.de>
16835
16836         PR tree-optimization/47641
16837         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16838         require type compatibility.
16839
16840 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16841
16842         * gimple-low.c (lower_function_body): Don't remove the location of
16843         the return statement here.
16844         (lower_gimple_return): Do it here instead but only if the return
16845         statement is actually used twice.
16846
16847 2011-02-08  Richard Guenther  <rguenther@suse.de>
16848
16849         PR tree-optimization/47632
16850         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16851         unused up_to_stmt parameter, return whether cfg-cleanup is
16852         necessary, remove EH info properly.
16853         (forward_propagate_into_gimple_cond): Adjust caller.
16854         (forward_propagate_into_cond): Likewise.
16855         (forward_propagate_comparison): Likewise.
16856         (tree_ssa_forward_propagate_single_use_vars): Make
16857         forward_propagate_comparison case similar to the two others.
16858
16859 2011-02-08  Nick Clifton  <nickc@redhat.com>
16860
16861         * config/mn10300/mn10300.opt (mliw): New command line option.
16862         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16863         (liw_bundling): New automaton.
16864         (liw): New attribute.
16865         (liw_op): New attribute.
16866         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16867         (movsi_internal): Add LIW attributes.
16868         (andsi3): Likewise.
16869         (iorsi3): Likewise.
16870         (xorsi3): Likewise.
16871         (addsi3): Separate register and immediate alternatives.
16872         Add LIW attributes.
16873         (subsi3): Likewise.
16874         (cmpsi): Likewise.
16875         (aslsi3): Likewise.
16876         (lshrsi3): Likewise.
16877         (ashrsi3): Likewise.
16878         (liw): New pattern.
16879         * config/mn10300/mn10300.c (liw_op_names): New
16880         (mn10300_print_operand): Handle 'W' operand descriptor.
16881         (extract_bundle): New function.
16882         (check_liw_constraints): New function.
16883         (liw_candidate): New function.
16884         (mn10300_bundle_liw): New function.
16885         (mn10300_reorg): New function.
16886         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16887         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16888         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16889         __LIW__ or __NO_LIW__.
16890         * doc/invoke.texi: Describe the -mliw command line option.
16891
16892 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16893
16894         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16895         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16896         pthread_mutex_unlock): Remove.
16897         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16898         * config/pa/t-pa64: Likewise.
16899         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16900         shared libc if not linking against libpthread.
16901         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16902
16903 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
16904
16905         PR target/47558
16906         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16907         on 10.6 and later to ensure that we always use the unwinder from
16908         the system.  Only add -no_compact_unwind when tarteting darwin
16909         10.6 or later.
16910
16911 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
16912
16913         PR target/46997
16914         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16915         (vec_interleave_lowv2sf): Ditto.
16916         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16917         (vec_extract_oddv2sf): Ditto.
16918
16919 2011-02-07  Mike Stump  <mikestump@comcast.net>
16920
16921         PR target/42333
16922         Add __ieee_divdc3 entry point.
16923         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16924         entry point.
16925         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16926         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16927         * config/darwin.c (darwin_rename_builtins): Add.
16928         * config/darwin-protos.h (darwin_rename_builtins): Add.
16929
16930 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
16931
16932         PR target/47636
16933         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16934         for the condition.
16935
16936 2011-02-07  Mike Stump  <mikestump@comcast.net>
16937
16938         * config/darwin.opt (mmacosx-version-min): Update default OS version.
16939
16940 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
16941
16942         PR target/47534
16943         * config/avr/libgcc.S (exit): Move .endfunc
16944
16945 2011-02-07  Richard Guenther  <rguenther@suse.de>
16946
16947         PR tree-optimization/47615
16948         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16949         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16950         (run_scc_vn): Initialize it.
16951         (visit_reference_op_load): Use it.
16952         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16953
16954 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16955
16956         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16957         DImode trapping arithmetic libfuncs.
16958
16959 2011-02-07  Richard Guenther  <rguenther@suse.de>
16960
16961         PR tree-optimization/47621
16962         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16963         two duplicates ...
16964         (execute_update_addresses_taken): ... here.  Make it more
16965         conservative in what we accept.
16966
16967 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16968
16969         * config/sparc/freebsd.h (ASM_SPEC): Define.
16970         * config/sparc/vxworks.h (ASM_SPEC): Define.
16971
16972 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16973
16974         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16975
16976 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
16977
16978         * doc/invoke.texi: Remove reference to compiler internals from
16979         user documentation.
16980
16981         * reg-notes.def: Remove REG_VALUE_PROFILE.
16982         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16983
16984 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
16985
16986         PR middle-end/47610
16987         * varasm.c (default_section_type_flags): If decl is NULL,
16988         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16989
16990 2011-02-05  Jie Zhang  <jie@codesourcery.com>
16991
16992         PR debug/42631
16993         * web.c (entry_register): Don't clobber the number of the
16994         first uninitialized reference in used[].
16995
16996 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
16997
16998         PR tree-optimization/46194
16999         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17000         (build_classic_dist_vector_1): Do not represent classic distance
17001         vectors when the access functions are variating in different loops.
17002
17003 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17004
17005         * config/mips/iris6.opt: New.
17006         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17007
17008 2011-02-04  Richard Henderson  <rth@redhat.com>
17009             Steve Ellcey  <sje@cup.hp.com>
17010
17011         PR target/46997
17012         * config/ia64/predicates.md (mux1_brcst_element): New.
17013         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17014         * config/ia64/ia64.c (ia64_unpack_assemble): New.
17015         (ia64_unpack_sign): New.
17016         (ia64_expand_unpack): Rewrite using new routines.
17017         (ia64_expand_widen_sum): Ditto.
17018         (ia64_expand_dot_prod_v8qi): Ditto.
17019         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17020         routines, add endian check.
17021         (pmpy2_even): Rename from pmpy2_r, add endian check.
17022         (pmpy2_odd): Rename from pmpy2_l, add endian check.
17023         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17024         (vec_widen_smult_hi_v4hi): Ditto.
17025         (vec_widen_umult_lo_v4hi): Ditto.
17026         (vec_widen_umult_hi_v4hi): Ditto.
17027         (mulv2si3): Change endian checks.
17028         (sdot_prodv4hi): Rewrite with new calls.
17029         (udot_prodv4hi): New.
17030         (vec_pack_ssat_v4hi): Add endian check.
17031         (vec_pack_usat_v4hi): Ditto.
17032         (vec_pack_ssat_v2si): Ditto.
17033         (max1_even): Rename from max1_r, add endian check.
17034         (max1_odd): Rename from max1_l, add endian check.
17035         (*mux1_rev): Format change.
17036         (*mux1_mix): Ditto.
17037         (*mux1_shuf): Ditto.
17038         (*mux1_alt): Ditto.
17039         (*mux1_brcst_v8qi): Use new predicate.
17040         (vec_extract_evenv8qi): Remove endian check.
17041         (vec_extract_oddv8qi): Ditto.
17042         (vec_interleave_lowv4hi): Format change.
17043         (vec_interleave_highv4hi): Ditto.
17044         (mix2_even): Rename from mix2_r, add endian check.
17045         (mix2_odd): Rename from mux2_l, add endian check.
17046         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17047         (vec_extract_evenodd_helper): Format change.
17048         (vec_extract_evenv4hi): Remove endian check.
17049         (vec_extract_oddv4hi): Remove endian check.
17050         (vec_interleave_lowv2si): Format change.
17051         (vec_interleave_highv2si): Format change.
17052         (vec_initv2si): Remove endian check.
17053         (vecinit_v2si): Add endian check.
17054         (reduc_splus_v2sf): Add endian check.
17055         (reduc_smax_v2sf): Ditto.
17056         (reduc_smin_v2sf): Ditto.
17057         (vec_initv2sf): Remove endian check.
17058         (fpack): Add endian check.
17059         (fswap): Add endian check.
17060         (vec_interleave_highv2sf): Add endian check.
17061         (vec_interleave_lowv2sf): Add endian check.
17062         (fmix_lr): Add endian check.
17063         (vec_setv2sf): Format change.
17064         (*vec_extractv2sf_0_be): Use shift to extract operand.
17065         (*vec_extractv2sf_1_be): New.
17066         (vec_pack_trunc_v4hi): Add endian check.
17067         (vec_pack_trunc_v2si): Format change.
17068
17069 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
17070
17071         PR inline-asm/23200
17072         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
17073         do bb, locus and block comparison and disallow loads if it is not set.
17074         (stmt_is_replaceable_p): New function.
17075         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17076         callers.
17077         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17078         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17079         SSA_NAME_DEF_STMT.
17080         * tree-flow.h (stmt_is_replaceable_p): New prototype.
17081
17082 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17083
17084         * config/rs6000/xilinx.opt: New.
17085         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17086
17087 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
17088
17089         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17090
17091 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
17092
17093         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17094         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17095         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17096         secondary_reload_info, xtensa_secondary_reload): Remove.
17097         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17098         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17099         (xtensa_preferred_reload_class): Make static. Change return and
17100         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17101         Use CONST_DOUBLE_P predicate.
17102         (xtensa_preferred_output_reload_class): New function.
17103         (xtensa_secondary_reload): Make static.
17104
17105 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
17106
17107         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17108         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17109         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17110
17111 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17112
17113         PR middle-end/31490
17114         * output.h (SECTION_RELRO): Define.
17115         (SECTION_MACH_DEP): Adjust.
17116         (get_variable_section): New prototype.
17117         * varpool.c (varpool_finalize_named_section_flags): New function.
17118         (varpool_assemble_pending_decls): Call it.
17119         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17120         * cgraphunit.c (cgraph_output_in_order): Call
17121         varpool_finalize_named_section_flags.
17122         * varasm.c (get_section): Allow section flags conflicts between
17123         relro and read-only sections if the section hasn't been declared yet.
17124         Set SECTION_OVERRIDE after diagnosing section type conflict.
17125         (get_variable_section): No longer static.
17126         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17127         readonly sections that need relocations.
17128         (decl_readonly_section_1): New function.
17129         (decl_readonly_section): Use it.
17130
17131         Revert:
17132         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
17133                     Steve Ellcey  <sje@cup.hp.com>
17134
17135         PR middle-end/31490
17136         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17137         if section attribute used.
17138
17139 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17140
17141         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17142         * config/darwin.c (SECTION_NO_ANCHOR): Define.
17143         (darwin_init_sections): Remove assertion.
17144
17145 2011-02-03  Nick Clifton  <nickc@redhat.com>
17146
17147         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17148         lt and ge.
17149         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
17150         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17151         instead of "n" and "pz".
17152         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17153         CC_FLAG_S.
17154
17155 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17156
17157         PR target/47312
17158         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17159         fma, expand FMA_EXPR as fma{,f,l} call.
17160
17161         PR lto/47274
17162         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17163         copy them into a unsigned char variable and pass address of it to
17164         lto_output_data_stream.
17165
17166         PR target/47564
17167         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17168         around backend_init_target and lang_dependent_init_target calls.
17169         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17170         (verify_cgraph_node): Don't call set_cfun here.  Use
17171         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17172         Set error_found for incorrectly represented calls to thunks.
17173
17174 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
17175
17176         PR debug/43092
17177         PR rtl-optimization/43494
17178         * rtl.h (for_each_inc_dec_fn): New type.
17179         (for_each_inc_dec): Declare.
17180         * rtlanal.c (struct for_each_inc_dec_ops): New type.
17181         (for_each_inc_dec_find_inc_dec): New fn.
17182         (for_each_inc_dec_find_mem): New fn.
17183         (for_each_inc_dec): New fn.
17184         * dse.c (struct insn_size): Remove.
17185         (replace_inc_dec, replace_inc_dec_mem): Remove.
17186         (emit_inc_dec_insn_before): New fn.
17187         (check_for_inc_dec): Use it, along with for_each_inc_dec.
17188         (canon_address): Pass mem modes to cselib_lookup.
17189         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
17190         (cselib_lookup_from_insn): Likewise.
17191         (cselib_subst_to_values): Likewise.
17192         * cselib.c (find_slot_memmode): New var.
17193         (cselib_find_slot): New fn.  Use it instead of
17194         htab_find_slot_with_hash everywhere.
17195         (entry_and_rtx_equal_p): Use find_slot_memmode.
17196         (autoinc_split): New fn.
17197         (rtx_equal_for_cselib_p): Rename and implement in terms of...
17198         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
17199         Deal with autoinc.  Special-case recursion into MEMs.
17200         (cselib_hash_rtx): Likewise.
17201         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
17202         address and MEM modes.
17203         (cselib_subst_to_values): Add memmode, pass it on.
17204         Deal with autoinc.
17205         (cselib_lookup): Add memmode argument, pass it on.
17206         (cselib_lookup_from_insn): Add memmode.
17207         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17208         (struct cselib_record_autoinc_data): New.
17209         (cselib_record_autoinc_cb): New fn.
17210         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
17211         mode to cselib_lookup.  Reset autoinced REGs here instead of...
17212         (cselib_process_insn): ... here.
17213         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17214         to cselib_lookup.
17215         (add_uses): Likewise, also to cselib_subst_to_values.
17216         (add_stores): Likewise.
17217         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
17218         cselib_subst_to_values.
17219         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
17220         * gcse.c (do_local_cprop): Adjusted.
17221         * postreload.c (reload_cse_simplify_set): Adjusted.
17222         (reload_cse_simplify_operands): Adjusted.
17223         * sel-sched-dump (debug_mem_addr_value): Pass mode.
17224
17225 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
17226
17227         PR tree-optimization/45122
17228         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17229         unsafe assumptions when there's more than one loop exit.
17230
17231 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
17232
17233         PR target/47272
17234         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17235         Document using vector double with the load/store builtins, and
17236         that the load/store builtins always use Altivec instructions.
17237
17238         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17239         to use altivec memory instructions, even on VSX.
17240         (vector_altivec_store_<mode>): Ditto.
17241
17242         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17243         function.
17244
17245         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17246         V2DF, V2DI support to load/store overloaded builtins.
17247
17248         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17249         altivec load/store builtins for V2DF/V2DI types.
17250
17251         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17252         set avoid indexed addresses on power6 if -maltivec.
17253         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17254         vector_altivec_load/vector_altivec_store builtins.
17255         (altivec_expand_st_builtin): Ditto.
17256         (altivec_expand_builtin): Add VSX memory builtins.
17257         (rs6000_init_builtins): Add V2DI types to internal types.
17258         (altivec_init_builtins): Add support for V2DF/V2DI altivec
17259         load/store builtins.
17260         (rs6000_address_for_altivec): Insure memory address is appropriate
17261         for Altivec.
17262
17263         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17264         vec_vsx_ld and vec_vsx_st.
17265         (vsx_store_<mode>): Ditto.
17266
17267         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17268         variables to hold long long types for VSX vector memory builtins.
17269         (RS6000_BTI_unsigned_long_long): Ditto.
17270         (long_long_integer_type_internal_node): Ditti.
17271         (long_long_unsigned_type_internal_node): Ditti.
17272
17273         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17274         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17275         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17276
17277         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17278         short cuts.
17279         (vec_vsx_st): Ditto.
17280
17281 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17282
17283         * config/pa/pa-hpux10.opt: New.
17284         * config/hpux11.opt (pthread): New Driver option.
17285         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17286         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17287
17288 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17289
17290         * config/ia64/vms.opt: New.
17291         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17292
17293 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
17294
17295         PR target/47580
17296         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17297         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17298         generator functions.
17299         (vsx_floatuns<VSi><mode>2): Ditto.
17300         (vsx_fix_trunc<mode><VSi>2): Ditto.
17301         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17302
17303 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17304
17305         * config/i386/djgpp.opt (posix): New Driver option.
17306
17307 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
17308
17309         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17310         Move to the unsupported targets list.
17311
17312 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
17313
17314         PR rtl-optimization/47525
17315         * df-scan.c: Update copyright years.
17316         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17317         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17318
17319 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17320
17321         * config/i386/sysv4.h (TARGET_VERSION): Remove.
17322         (SUBTARGET_RETURN_IN_MEMORY): Remove.
17323         (ASM_OUTPUT_ASCII): Remove.
17324         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17325
17326 2011-02-02  Jeff Law  <law@redhat.com>
17327
17328         PR middle-end/47543
17329         * reload.c (find_reloads_address): Handle reg+d address where both
17330         components are invalid by reloading the entire address.
17331
17332 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
17333             Richard Guenther  <rguenther@suse.de>
17334
17335         PR tree-optimization/40979
17336         PR bootstrap/47044
17337         * passes.c (init_optimization_passes): After LIM call copy_prop
17338         and DCE to clean up.
17339         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17340
17341 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
17342
17343         PR tree-optimization/47576
17344         PR tree-optimization/47555
17345         * doc/invoke.texi (scev-max-expr-complexity): Documented.
17346         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17347         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17348         * tree-scalar-evolution.c (follow_ssa_edge): Use
17349         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17350
17351 2011-02-02  Richard Guenther  <rguenther@suse.de>
17352
17353         PR tree-optimization/47566
17354         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17355
17356 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17357
17358         PR debug/47106
17359         PR debug/47402
17360         * tree-inline.c (declare_return_variable): Remove unused caller
17361         variable.
17362
17363         PR debug/47106
17364         PR debug/47402
17365         * tree-flow-inline.h (clear_is_used, is_used_p): New.
17366         * cfgexpand.c (account_used_vars_for_block): Use them.
17367         * tree-nrv.c (tree_nrv): Likewise.
17368         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17369         (dump_scope_block): Likewise.
17370         (remove_unused_locals): Likewise.
17371
17372         PR debug/47106
17373         PR debug/47402
17374         * tree-inline.c (declare_return_variable): Add result decl to
17375         local decls only once.
17376         * gimple-low.c (record_vars_into): Mark newly-created variables
17377         as referenced.
17378
17379 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17380
17381         PR debug/47498
17382         PR debug/47501
17383         PR debug/45136
17384         PR debug/45130
17385         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17386         debug insns.
17387         (no_real_insns_p, schedule_block, set_priorities): Drop special
17388         treatment of boundary debug insns.
17389         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17390         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17391         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17392         (BOUNDARY_DEBUG_INSN_P): Likewise.
17393         (SCHEDULE_DEBUG_INSN_P): Likewise.
17394         * sched-rgn.c (init_ready_list): Drop special treatment of
17395         boundary debug insns.
17396         * final.c (rest_of_clean_state): Clear notes' BB.
17397
17398 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17399
17400         * config/openbsd.opt (assert=): New Driver option.
17401
17402 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17403
17404         * config/i386/nto.opt: New.
17405         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17406
17407 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17408
17409         * config/i386/netware.opt: New.
17410         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17411
17412 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17413
17414         * config/interix.opt (posix): New Driver option.
17415
17416 2011-02-01  DJ Delorie  <dj@redhat.com>
17417
17418         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17419
17420         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17421         class for A0/A1.
17422
17423 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
17424
17425         PR tree-optimization/47561
17426         * toplev.c (process_options): Print the Graphite flags.  Add
17427         flag_loop_flatten to the list of options requiring Graphite.
17428
17429 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17430
17431         * config/i386/cygming.opt (posix): New Driver option.
17432
17433 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17434
17435         * config/arm/vxworks.opt: New.
17436         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17437
17438 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17439
17440         * config/alpha/elf.opt: New.
17441         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17442         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17443
17444 2011-02-01  Richard Guenther  <rguenther@suse.de>
17445
17446         PR tree-optimization/47559
17447         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17448         store-motion on references that can throw.
17449
17450 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
17451
17452         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17453         * tree-pass.h (TDF_CSELIB): New macro.
17454         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17455         cselib_lookup): Check for it rather than for TDF_DETAILS.
17456
17457 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
17458
17459         PR driver/47547
17460         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17461         is HOST_BIT_BUCKET.
17462
17463         * opts.c (finish_options): Don't add x_aux_base_name if it is
17464         HOST_BIT_BUCKET.
17465
17466 2011-02-01  Richard Guenther  <rguenther@suse.de>
17467
17468         PR tree-optimization/47555
17469         Revert
17470         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
17471
17472         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17473
17474 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
17475
17476         PR gcc/46692
17477         * config/lm32/t-lm32: Add multilib for all CPU options.
17478
17479 2011-02-01  Richard Guenther  <rguenther@suse.de>
17480
17481         PR tree-optimization/47541
17482         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17483         sure to have a field at offset zero.
17484
17485 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17486
17487         * config/arc/arc.opt (EB, EL): New Driver options.
17488
17489 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17490
17491         * config/alpha/osf5.opt: New.
17492         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17493
17494 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17495
17496         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17497
17498 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
17499
17500         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17501         -floop-interchange.
17502         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17503         is an alias of -floop-interchange and that it requires the
17504         Graphite infrastructure.
17505         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17506         flag_loop_interchange based on the value of flag_tree_loop_linear.
17507
17508 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
17509             Richard Guenther  <rguenther@suse.de>
17510
17511         PR tree-optimization/47538
17512         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17513         type instead of r1type, except for comparisons.  For right
17514         shifts and comparisons punt if there are mismatches in
17515         sizetype vs. non-sizetype types.
17516
17517 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17518
17519         * doc/sourcebuild.texi (Effective-Target Keywords): Document
17520         avx_runtime.
17521
17522 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17523
17524         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17525         version number.
17526         * configure: Regenerate.
17527
17528 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17529
17530         * configure.ac (gcc_cv_ld_static_option): Define.
17531         (gcc_cv_ld_dynamic_option): Define.
17532         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17533         instead.
17534         (HAVE_LD_STATIC_DYNAMIC): Update message.
17535         (LD_STATIC_OPTION): Define.
17536         (LD_DYNAMIC_OPTION): Define.
17537         * configure: Regenerate.
17538         * config.in: Regenerate.
17539         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17540         HAVE_LD_STATIC_DYNAMIC]: Use them.
17541
17542 2011-01-31  Nick Clifton  <nickc@redhat.com>
17543
17544         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17545         registers inside interrupt handlers if the handler is not a leaf
17546         function.
17547
17548 2011-01-31  Nick Clifton  <nickc@redhat.com>
17549
17550         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17551         reg_renumber returning an INVALID_REGNUM.
17552
17553 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17554
17555         PR libgcj/44341
17556         * doc/install.texi: Document host options discarded when cross
17557         configuring target libraries.
17558
17559 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17560
17561         Reverted:
17562         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17563         PR debug/45136
17564         PR debug/45130
17565         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17566         debug insns.
17567         (no_real_insns_p, schedule_block, set_priorities): Drop special
17568         treatment of boundary debug insns.
17569         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17570         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17571         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17572         (BOUNDARY_DEBUG_INSN_P): Likewise.
17573         (SCHEDULE_DEBUG_INSN_P): Likewise.
17574         * sched-rgn.c (init_ready_list): Drop special treatment of
17575         boundary debug insns.
17576         * final.c (rest_of_clean-state): Clear notes' BB.
17577
17578 2011-01-31  Alan Modra  <amodra@gmail.com>
17579
17580         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17581         toc relative expressions as we do in print_operand_address.
17582
17583 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
17584
17585         * doc/extend.texi: Follow spelling conventions.
17586         * doc/invoke.texi: Fix a typo.
17587
17588 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
17589
17590         * config/hpux11.opt: New.
17591         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17592         ia64*-*-hpux*): Use hpux11.opt.
17593
17594 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
17595
17596         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17597         to tmake_file.
17598
17599 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17600
17601         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17602         support sites.
17603
17604 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17605
17606         * doc/install.texi (Binaries): Remove outdated reference for
17607         Motorola 68HC11/68HC12 downloads.
17608
17609 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17610
17611         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17612         Drepper's paper.
17613
17614 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
17615
17616         PR bootstrap/47147
17617         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17618         used by NetBSD.
17619
17620 2011-01-28  Ahmad Sharif  <asharif@google.com>
17621
17622         * value-prof.c (check_counter): Corrected error message.
17623
17624 2011-01-29  Jie Zhang  <jie@codesourcery.com>
17625
17626         * config/arm/arm.c (arm_legitimize_reload_address): New.
17627         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17628         arm_legitimize_reload_address.
17629         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17630
17631 2011-01-28  Ian Lance Taylor  <iant@google.com>
17632
17633         * godump.c (go_define): Ignore macros whose definitions include
17634         two adjacent operands.
17635
17636 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
17637
17638         PR target/42894
17639         * varasm.c (force_const_mem): Store copy of x in desc->constant
17640         instead of x itself.
17641         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17642         itself into REG_EQUAL note.
17643
17644 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
17645
17646         * config/freebsd.opt (posix, rdynamic): New Driver options.
17647
17648 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17649
17650         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17651         -Bstatic/-Bdynamic.
17652         * configure: Regenerate.
17653
17654 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
17655
17656         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17657         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17658
17659 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
17660
17661         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17662         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17663         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17664         (s390_preferred_reload_class): Make static. Change return and
17665         'rclass' argument type to reg_class_t.
17666
17667 2011-01-27  Jan Hubicka  <jh@suse.cz>
17668
17669         PR middle-end/46949
17670         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17671         (process_function_and_variable_attributes): Check defined weakrefs.
17672
17673 2011-01-27  Martin Jambor  <mjambor@suse.cz>
17674
17675         PR tree-optimization/47228
17676         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17677         build_ref_for_offset.
17678
17679 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17680
17681         * config/spu/spu-elf.h (ASM_SPEC): Remove.
17682
17683 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
17684
17685         PR rtl-optimization/46856
17686         * postreload.c (reload_combine_recognize_const_pattern): Do not
17687         separate cc0 setter and user on cc0 targets.
17688
17689 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
17690
17691         PR c/43082
17692         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17693         passed a VOID_TYPE expression, immediately emit an error and
17694         return error_mark_node.
17695
17696 2011-01-26  Jeff Law  <law@redhat.com>
17697
17698         PR rtl-optimization/47464
17699         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17700         rather than may_trap_p as needed.
17701
17702 2011-01-26  DJ Delorie  <dj@redhat.com>
17703
17704         PR rtl-optimization/46878
17705         * combine.c (insn_a_feeds_b): Check for the implicit cc0
17706         setter/user dependency as well.
17707
17708 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
17709
17710         PR rtl-optimization/44469
17711         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17712         after removing trivially dead basic blocks.
17713
17714 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17715
17716         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17717         * config/frv/frv.h (LINK_SPEC): Likewise.
17718         * config/i386/netware.h (LINK_SPEC): Likewise.
17719         * config/m68k/linux.h (ASM_SPEC): Likewise.
17720         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17721         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17722         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17723         * config/sparc/linux.h (ASM_SPEC): Likewise.
17724         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17725         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17726
17727 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17728
17729         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17730         * config/frv/frv.h (ASM_SPEC): Likewise.
17731         * config/m68k/linux.h (ASM_SPEC): Likewise.
17732         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17733         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17734         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17735         * config/sparc/linux.h (ASM_SPEC): Likewise.
17736         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17737         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17738
17739 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17740
17741         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17742         * config/frv/frv.h (LINK_SPEC): Likewise.
17743         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17744
17745 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17746
17747         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17748         * config/frv/frv.h (ASM_SPEC): Likewise.
17749         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17750         * config/m68k/linux.h (ASM_SPEC): Likewise.
17751         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17752         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17753         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17754         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17755         * config/sparc/linux.h (ASM_SPEC): Likewise.
17756         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17757         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17758         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17759
17760 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
17761
17762         PR target/46997
17763         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17764         (*mux2): Ditto.
17765         (vec_extract_evenodd_help): Ditto.
17766         (vec_extract_evenv4hi): Ditto.
17767         (vec_extract_oddv4hi): Ditto.
17768         (vec_interleave_lowv2si): Ditto.
17769         (vec_interleave_highv2si): Ditto.
17770         (vec_extract_evenv2si): Ditto.
17771         (vec_extract_oddv2si: Ditto.
17772         (vec_pack_trunc_v2si): Ditto.
17773
17774 2011-01-22  Jan Hubicka  <jh@suse.cz>
17775
17776         PR target/47237
17777         * cgraph.h (cgraph_local_info): New field can_change_signature.
17778         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17779         signature can change.
17780         (ipcp_estimate_growth): Call sequence simplify only if calle signature
17781         can change.
17782         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17783         (cgraph_function_versioning): We can not change signature of functions
17784         that don't allow that.
17785         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17786         (lto_input_node): Likewise.
17787         * ipa-inline.c (compute_inline_parameters): Compute
17788         local.can_change_signature.
17789         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17790         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17791         functions that can not change signature.
17792         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17793         init_cumulative_args): Do not use local calling conventions
17794         for functions that can not change signature.
17795
17796 2011-01-22  Jan Hubicka  <jh@suse.cz>
17797
17798         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17799
17800 2011-01-26  Richard Guenther  <rguenther@suse.de>
17801
17802         PR tree-optimization/47190
17803         * cgraphunit.c (process_common_attributes): New function.
17804         (process_function_and_variable_attributes): Use it.
17805
17806 2011-01-26  Richard Guenther  <rguenther@suse.de>
17807
17808         PR lto/47423
17809         * cgraphbuild.c (record_eh_tables): Record reference to personality
17810         function.
17811
17812 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
17813
17814         PR debug/45454
17815         * sel-sched.c (moveup_expr): Don't let debug insns prevent
17816         non-debug insns from moving up.
17817
17818 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17819
17820         PR target/40125
17821         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17822         t-dlldir{,-x} fragment for build and add it to tmake_file.
17823         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17824         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17825         * config/i386/t-dlldir: New file.
17826         (SHLIB_DLLDIR): Define.
17827         * config/i386/t-dlldir-x: New file.
17828         (SHLIB_DLLDIR): Define.
17829         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17830         (SHLIB_INSTALL): Use it.
17831
17832 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
17833
17834         PR target/47246
17835         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17836         lower bound of the allowed Thumb-2 coprocessor load/store
17837         index range to -256. Add explaining comment.
17838
17839 2011-01-25  Ian Lance Taylor  <iant@google.com>
17840
17841         * godump.c (go_define): Improve lexing of macro expansion to only
17842         accept expressions which match Go spec.
17843
17844 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17845
17846         PR c++/43601
17847         * tree.c (handle_dll_attribute): Handle it.
17848         * doc/extend.texi (@item dllexport): Mention it.
17849         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17850
17851 2011-01-25  Ian Lance Taylor  <iant@google.com>
17852
17853         PR tree-optimization/26854
17854         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17855         (decl_jump_unsafe): Move higher in file, with no other change.
17856         (bind): Set has_jump_unsafe_decl if appropriate.
17857         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17858         (check_earlier_gotos): Likewise.
17859         (c_check_switch_jump_warnings): Likewise.
17860
17861 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
17862
17863         * doc/invoke.texi (Warning Options): Add missing hyphen.
17864         (-fprofile-dir): Minor grammatical fixes.
17865         (-fbranch-probabilities): Likewise.
17866
17867 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17868
17869         PR debug/45136
17870         PR debug/45130
17871         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17872         debug insns.
17873         (no_real_insns_p, schedule_block, set_priorities): Drop special
17874         treatment of boundary debug insns.
17875         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17876         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17877         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17878         (BOUNDARY_DEBUG_INSN_P): Likewise.
17879         (SCHEDULE_DEBUG_INSN_P): Likewise.
17880         * sched-rgn.c (init_ready_list): Drop special treatment of
17881         boundary debug insns.
17882         * final.c (rest_of_clean-state): Clear notes' BB.
17883
17884 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17885
17886         * Makefile.in (LAMBDA_H): Removed.
17887         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17888         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17889         lambda-trans.o, and tree-loop-linear.o.
17890         (lto-symtab.o): Remove dependence on LAMBDA_H.
17891         (tree-loop-linear.o): Remove rule.
17892         (lambda-mat.o): Same.
17893         (lambda-trans.o): Same.
17894         (lambda-code.o): Same.
17895         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17896         (tree-vect-slp.o): Same.
17897         * hwint.h (gcd): Moved here.
17898         (least_common_multiple): Same.
17899         * lambda-code.c: Removed.
17900         * lambda-mat.c: Removed.
17901         * lambda-trans.c: Removed.
17902         * lambda.h: Removed.
17903         * tree-loop-linear.c: Removed.
17904         * lto-symtab.c: Do not include lambda.h.
17905         * omega.c (gcd): Removed.
17906         * passes.c (init_optimization_passes): Remove pass_linear_transform.
17907         * tree-data-ref.c (print_lambda_vector): Moved here.
17908         (lambda_vector_copy): Same.
17909         (lambda_matrix_copy): Same.
17910         (lambda_matrix_id): Same.
17911         (lambda_vector_first_nz): Same.
17912         (lambda_matrix_row_add): Same.
17913         (lambda_matrix_row_exchange): Same.
17914         (lambda_vector_mult_const): Same.
17915         (lambda_vector_negate): Same.
17916         (lambda_matrix_row_negate): Same.
17917         (lambda_vector_equal): Same.
17918         (lambda_matrix_right_hermite): Same.
17919         * tree-data-ref.h: Do not include lambda.h.
17920         (lambda_vector): Moved here.
17921         (lambda_matrix): Same.
17922         (dependence_level): Same.
17923         (lambda_transform_legal_p): Removed declaration.
17924         (lambda_collect_parameters): Same.
17925         (lambda_compute_access_matrices): Same.
17926         (lambda_vector_gcd): Same.
17927         (lambda_vector_new): Same.
17928         (lambda_vector_clear): Same.
17929         (lambda_vector_lexico_pos): Same.
17930         (lambda_vector_zerop): Same.
17931         (lambda_matrix_new): Same.
17932         * tree-flow.h (least_common_multiple): Removed declaration.
17933         * tree-parloops.c (lambda_trans_matrix): Moved here.
17934         (LTM_MATRIX): Same.
17935         (LTM_ROWSIZE): Same.
17936         (LTM_COLSIZE): Same.
17937         (LTM_DENOMINATOR): Same.
17938         (lambda_trans_matrix_new): Same.
17939         (lambda_matrix_vector_mult): Same.
17940         (lambda_transform_legal_p): Same.
17941         * tree-pass.h (pass_linear_transform): Removed declaration.
17942         * tree-ssa-loop.c (tree_linear_transform): Removed.
17943         (gate_tree_linear_transform): Removed.
17944         (pass_linear_transform): Removed.
17945         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17946         flag_loop_interchange.
17947
17948 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17949
17950         PR tree-optimization/47265
17951         PR tree-optimization/47443
17952         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17953         if name still has some uses.
17954
17955 2011-01-25  Martin Jambor  <mjambor@suse.cz>
17956
17957         PR tree-optimization/47382
17958         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17959         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17960
17961 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
17962
17963         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17964         sjlj_except_unwind_info.
17965
17966 2011-01-25  Richard Guenther  <rguenther@suse.de>
17967
17968         PR tree-optimization/47426
17969         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17970         visible functions results escape.
17971
17972 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17973
17974         PR target/45701
17975         * config/arm/arm.c (any_sibcall_uses_r3): New function.
17976         (arm_get_frame_offsets): Use it.
17977
17978 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17979             Jakub Jelinek  <jakub@redhat.com>
17980
17981         PR tree-optimization/47271
17982         * tree-if-conv.c (bb_postdominates_preds): New.
17983         (if_convertible_bb_p): Call bb_postdominates_preds.
17984         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17985         (predicate_scalar_phi): Call bb_postdominates_preds.
17986
17987 2011-01-25  Nick Clifton  <nickc@redhat.com>
17988
17989         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17990         * config/rx/rx.c (rx_function_value): Likewise.
17991         (rx_promote_function_mode): Likewise.
17992         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17993         in order to make it legitimate.
17994         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17995         make sure that the first operand is the same as the result register.
17996         (addsi3_unspec): Delete.
17997         (subdi3): Do not accept immediate operands.
17998         (subdi3_internal): Likewise.
17999
18000 2011-01-25  Jeff Law  <law@redhat.com>
18001
18002         PR rtl-optimization/37273
18003         * ira-costs.c (scan_one_insn): Detect constants living in memory and
18004         handle them like argument loads from stack slots.  Do not double
18005         count memory for memory constants and argument loads from stack slots.
18006
18007 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
18008
18009         PR tree-optimization/47427
18010         PR tree-optimization/47428
18011         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18012         coalesce if the new root var would be TREE_READONLY.
18013
18014 2011-01-25  Richard Guenther  <rguenther@suse.de>
18015
18016         PR middle-end/47414
18017         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18018         correct type for TBAA.
18019
18020 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18021
18022         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18023         (close_phi_written_to_memory): Call for_each_index with
18024         dr_indices_valid_in_loop.
18025
18026 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18027
18028         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18029         when it is initialized.
18030
18031 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18032
18033         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18034         call to graphite_find_data_references_in_stmt.
18035         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18036         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
18037         call to graphite_find_data_references_in_stmt.
18038         (analyze_drs_in_stmts): Same.
18039         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18040         in which the scalar analysis of indices is performed.
18041         (create_data_ref): Same.  Update call to dr_analyze_indices.
18042         (find_data_references_in_stmt): Update call to create_data_ref.
18043         (graphite_find_data_references_in_stmt): Same.
18044         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18045         declaration.
18046         (create_data_ref): Same.
18047         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18048         call to create_data_ref.
18049
18050 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18051
18052         * graphite-sese-to-poly.c (build_poly_scop): Move
18053         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18054
18055 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18056
18057         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18058         VAR_DECL, PARM_DECL, and RESULT_DECL.
18059
18060 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18061
18062         * graphite-dependences.c (reduction_dr_1): Allow several reductions
18063         in a reduction PBB.
18064         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18065         that have already been marked as PBB_IS_REDUCTION.
18066
18067 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18068
18069         * graphite-scop-detection.c (same_close_phi_node): New.
18070         (remove_duplicate_close_phi): New.
18071         (make_close_phi_nodes_unique): New.
18072         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18073
18074 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18075
18076         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18077         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18078         of both data references to be the same.
18079
18080 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18081
18082         * graphite-dependences.c (build_lexicographical_constraint): Remove
18083         the gdim parameter.
18084         (build_lexicographical_constraint): Adjust call to
18085         ppl_powerset_is_empty.
18086         (dependence_polyhedron): Same.
18087         (graphite_legal_transform_dr): Same.
18088         (graphite_carried_dependence_level_k): Same.
18089         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18090         parameter.
18091         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18092
18093 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18094
18095         * graphite-sese-to-poly.c
18096         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18097         (close_phi_written_to_memory): New.
18098         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18099         and unshare_expr.
18100
18101 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18102
18103         * doc/install.texi: Update the expected version number of PPL to 0.11.
18104         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18105         #if PPL_VERSION_MINOR < 11.
18106
18107 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18108
18109         * graphite-dependences.c: Include graphite-cloog-util.h.
18110         (new_poly_ddr): Inlined into dependence_polyhedron.
18111         (free_poly_ddr): Moved close by new_poly_ddr.
18112         (dependence_polyhedron_1): Renamed dependence_polyhedron.
18113         Early return NULL when ppl_powerset_is_empty returns true.
18114         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
18115         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
18116         (graphite_legal_transform_dr): Call new_poly_ddr.
18117         (graphite_carried_dependence_level_k): Same.
18118         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
18119         (dot_transformed_deps_stmt_1): Removed.
18120         (dot_deps_stmt_1): Call dot_deps_stmt_2.
18121         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
18122         (dot_deps_1): Call dot_deps_2.
18123         * Makefile.in (graphite-dependences.o): Add missing dependence on
18124         graphite-cloog-util.h.
18125
18126 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18127
18128         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18129         (build_lexicographical_constraint): Same.
18130         (dependence_polyhedron_1): Same.
18131         (graphite_legal_transform_dr): Same.
18132         (graphite_carried_dependence_level_k): Same.
18133         * graphite-ppl.c (ppl_powerset_is_empty): New.
18134         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18135         * tree-data-ref.c (dump_data_reference): Print the basic block index.
18136
18137 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18138
18139         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18140         the "a followed by b" relation and document it.
18141
18142 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18143
18144         * graphite-dependences.c (build_lexicographical_constraint): Stop the
18145         iteration when the bag of constraints is empty.
18146
18147 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18148
18149         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18150
18151 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18152
18153         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18154         nest and two loop depths as parameters.
18155         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18156         lst_perfect_nestify.
18157
18158 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18159
18160         * graphite-dependences.c (print_pddr): Call
18161         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18162
18163 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18164
18165         * graphite-ppl.c (debug_gmp_value): New.
18166         * graphite-ppl.h (debug_gmp_value): Declared.
18167
18168 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
18169
18170         * doc/install.texi: Document availability of cloog-0.16.
18171
18172 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
18173
18174         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18175         invalid postdominance info.
18176
18177 2011-01-24  Jan Hubicka  <jh@suse.cz>
18178
18179         PR c/21659
18180         * doc/extend.texi (weak pragma): Drop claim that it must
18181         appear before definition.
18182         * varasm.c (merge_weak, declare_weak): Only sanity check
18183         that DECL is not output at a time it is declared weak.
18184
18185 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
18186
18187         * machmode.def: Fixed comments.
18188
18189 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
18190
18191         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18192
18193 2011-01-24  Paul Koning  <ni1d@arrl.net>
18194
18195         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
18196         WORDS_BIG_ENDIAN.
18197
18198 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
18199
18200         PR target/46519
18201         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18202         (block_info): Add scanned and prev.
18203         (move_or_delete_vzeroupper_2): Return if the basic block
18204         has been scanned and the upper 128bit state is unchanged
18205         from the last scan.
18206         (move_or_delete_vzeroupper_1): Return true if the exit
18207         state is changed.
18208         (move_or_delete_vzeroupper): Visit basic blocks using the
18209         work-list based algorithm based on vt_find_locations in
18210         var-tracking.c.
18211
18212         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18213
18214 2011-01-24  Nick Clifton  <nickc@redhat.com>
18215
18216         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18217         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18218         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
18219         then define __v850e1__.
18220         * doc/invoke.texi: Document -mv850es.
18221
18222 2011-01-24  Richard Henderson  <rth@redhat.com>
18223
18224         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18225         compound unordered comparisons.
18226         * config/rx/rx.c (rx_split_fp_compare): Remove.
18227         * config/rx/rx-protos.h: Update.
18228         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18229         (cbranchsf4): Don't call rx_split_fp_compare.
18230         (*cbranchsf4): Use rx_split_cbranch.
18231         (*cmpsf): Don't accept "i" constraint.
18232         (*conditional_branch): Only valid after reload.
18233         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
18234
18235 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
18236
18237         PR target/47385
18238         * config/rs6000/altivec.md (vector constant splitters): Add
18239         support for creating vector single precision constants if -mvsx is
18240         used and we would create the constant using Altivec primitives.
18241
18242 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
18243             Richard Sandiford  <rdsandiford@googlemail.com>
18244
18245         PR rtl-optimization/47166
18246         * reload1.c (emit_reload_insns): Disable the spill_reg_store
18247         mechanism for PRE_MODIFY and POST_MODIFY.
18248         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18249         reloadreg.
18250
18251 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
18252
18253         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18254
18255 2011-01-22  Jan Hubicka  <jh@suse.cz>
18256
18257         PR lto/47333
18258         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18259
18260 2011-01-22  Jan Hubicka  <jh@suse.cz>
18261
18262         PR tree-optimization/43884
18263         PR lto/44334
18264         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18265         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18266
18267 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
18268
18269         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18270         * config/s390/s390.c (s390_register_move_cost,
18271         s390_memory_move_cost): New.
18272         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18273
18274 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18275
18276         PR middle-end/47401
18277         * except.c (sjlj_assign_call_site_values): Move setting the
18278         crtl->uses_eh_lsda flag to ...
18279         (sjlj_mark_call_sites): ... here.
18280         (sjlj_emit_function_enter): Support NULL dispatch label.
18281         (sjlj_build_landing_pads): In a function with no landing pads
18282         that still has must-not-throw regions, generate code to register
18283         a personality function with empty LSDA.
18284
18285 2011-01-21  Richard Henderson  <rth@redhat.com>
18286
18287         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18288
18289         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18290
18291         * compare-elim.c: New file.
18292         * Makefile.in (OBJS-common): Add it.
18293         (compare-elim.o): New.
18294         * common.opt (fcompare-elim): New.
18295         * opts.c (default_options_table): Add OPT_fcompare_elim.
18296         * tree-pass.h (pass_compare_elim_after_reload): New.
18297         * passes.c (init_optimization_passes): Add it.
18298         * recog.h: Protect against re-inclusion.
18299         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18300         * doc/invoke.texi (-fcompare-elim): Document it.
18301         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18302         * doc/tm.texi: Rebuild.
18303
18304 2011-01-22  Nick Clifton  <nickc@redhat.com>
18305
18306         * config/rx/rx.md (cstoresf4): Pass comparison operator to
18307         rx_split_fp_compare.
18308
18309 2011-01-22  Nick Clifton  <nickc@redhat.com>
18310
18311         * config/rx/rx.md (UNSPEC_CONST): New.
18312         (deallocate_and_return): Wrap the amount popped off the stack in
18313         an UNSPEC_CONST in order to stop it being rejected by
18314         -mmax-constant-size.
18315         (pop_and_return): Add a "(return)" rtx.
18316         (call): Drop the immediate operand.
18317         (call_internal): Likewise.
18318         (call_value): Likewise.
18319         (call_value_internal): Likewise.
18320         (sibcall_internal): Likewise.
18321         (sibcall_value_internal): Likewise.
18322         (sibcall): Likewise.  Generate an explicit call using
18323         sibcall_internal.
18324         (sibcall_value): Likewise.
18325         (mov<>): FAIL if a constant operand is not legitimate.
18326         (addsi3_unpsec): New pattern.
18327
18328         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18329         (ok_for_max_constant): New function.
18330         (gen_safe_add): New function.
18331         (rx_expand_prologue): Use gen_safe_add.
18332         (rx_expand_epilogue): Likewise.
18333         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
18334         UNSPEC CONSTs.
18335
18336 2011-01-21  Jeff Law  <law@redhat.com>
18337
18338         PR tree-optimization/47053
18339         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18340         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18341         statements are deleted.
18342         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
18343         is nonempty, then purge dead edges and cleanup the CFG.
18344
18345 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18346
18347         PR debug/47402
18348         Temporarily revert:
18349         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18350         PR debug/47106
18351         * tree-dfa.c (create_var_ann): Mark variable as used.
18352
18353 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18354
18355         PR middle-end/45566
18356         * except.c (convert_to_eh_region_ranges): Emit queued no-region
18357         notes from other section in hot/cold partitioning even if
18358         last_action is -3.  Increment call_site_base.
18359
18360         PR rtl-optimization/47366
18361         * fwprop.c (forward_propagate_into): Return bool.  If
18362         any changes are made, -fnon-call-exceptions is used and
18363         REG_EH_REGION note is present, call purge_dead_edges
18364         and return true if it purged anything.
18365         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18366         any EH edges were purged.
18367
18368 2011-01-21  Jeff Law  <law@redhat.com>
18369
18370         PR rtl-optimization/41619
18371         * caller-save.c (setup_save_areas): Break out code to determine
18372         which hard regs are live across calls by examining the reload chains
18373         so that it is always used.
18374         Eliminate code which checked REG_N_CALLS_CROSSED.
18375
18376 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18377
18378         PR tree-optimization/47355
18379         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18380         NOP has non-debug uses beyond PHIs in new_bb.
18381
18382 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18383
18384         PR debug/47106
18385         * cfgexpand.c (account_used_vars_for_block): Only account vars
18386         that are annotated as used.
18387         (estimated_stack_frame_size): Don't set TREE_USED.
18388         * tree-dfa.c (create_var_ann): Mark variable as used.
18389
18390 2011-01-21  Richard Guenther  <rguenther@suse.de>
18391
18392         PR middle-end/47395
18393         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18394
18395 2011-01-21  Richard Guenther  <rguenther@suse.de>
18396
18397         PR tree-optimization/47365
18398         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18399         (vn_reference_lookup_pieces): Adjust.
18400         (vn_reference_lookup): Likewise.
18401         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18402         (vn_reference_lookup_3): Only look through kills if in
18403         VN_WALKREWRITE mode.
18404         (vn_reference_lookup_pieces): Adjust.
18405         (vn_reference_lookup): Likewise.
18406         (visit_reference_op_load): Likewise.
18407         (visit_reference_op_store): Likewise.
18408         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18409         (compute_avail): Likewise.
18410         (eliminate): Likewise.
18411
18412 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18413
18414         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18415         DECL_IGNORED_P non-reg vars if they are used.
18416
18417         PR tree-optimization/47391
18418         * varpool.c (const_value_known_p): Return false if
18419         decl is volatile.
18420
18421 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
18422
18423         PR bootstrap/47215
18424         * config/i386/i386.c (ix86_local_alignment): Handle
18425         case for va_list_type_node is nil.
18426         (ix86_canonical_va_list_type): Likewise.
18427
18428 2011-01-21  Alan Modra  <amodra@gmail.com>
18429
18430         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18431         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18432
18433 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18434
18435         * config/arm/arm.md (define_attr type): Rename f_load
18436         and f_store to f_fpa_load and f_fpa_store. Update.
18437         (write_conflict): Deal with rename fallout.
18438         (*push_fp_multi): Likewise.
18439         * config/arm/fpa.md (f_load): Use f_fpa_load.
18440         (f_store): Use f_fpa_store.
18441         (*movsf_fpa): Likewise.
18442         (*movdf_fpa): Likewise.
18443         (*movxf_fpa): Likewise.
18444         (*thumb2_movsf_fpa): Likewise.
18445         (*thumb2_movdf_fpa): Likewise.
18446         (*thumb2_movxf_fpa): Likewise.
18447         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18448         f_loadd and f_stored.
18449         (*thumb2_movdi_vfp): Likewise.
18450         (*thumb2_movsf_vfp): Fix attribute to f_loads.
18451         (*thumb2_movsi_vfp): Likewise.
18452         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18453         Use f_loads instead of f_load.
18454         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18455
18456 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
18457
18458         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18459         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18460         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18461         (xtensa_mode_dependent_address_p): New function.
18462         (constantpool_address_p): Make static. Change return type to bool.
18463         Change argument type to const_rtx. Use CONST_INT_P predicate.
18464
18465 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
18466
18467         PR debug/46583
18468         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18469
18470 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18471
18472         PR debug/47283
18473         * cfgexpand.c (expand_debug_expr): Instead of generating
18474         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18475         etc. handling.
18476
18477 2011-01-20  Richard Guenther  <rguenther@suse.de>
18478
18479         PR middle-end/47370
18480         * tree-inline.c (remap_gimple_op_r): Recurse manually for
18481         the pointer operand of MEM_REFs.
18482
18483 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18484
18485         PR tree-optimization/46130
18486         * ipa-split.c (consider_split): If return_bb contains non-virtual
18487         PHIs other than for retval or if split_function would not adjust it,
18488         refuse to split.
18489
18490 2011-01-20  Richard Guenther  <rguenther@suse.de>
18491
18492         PR tree-optimization/47167
18493         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18494         Revert previous change, only avoid enumeral type changes.
18495
18496 2011-01-19  Mike Stump  <mikestump@comcast.net>
18497
18498         * doc/tm.texi.in (BRANCH_COST): Englishify.
18499         * doc/tm.texi (BRANCH_COST): Likewise.
18500
18501 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
18502
18503         PR c++/47291
18504         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18505         (gen_scheduled_generic_parms_dies): New functions.
18506         (gen_struct_or_union_type_die): Schedule template parameters DIEs
18507         generation for the end of CU compilation.
18508         (dwarf2out_finish): Generate template parameters DIEs here.
18509
18510 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18511
18512         PR debug/46240
18513         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18514         debug bind stmt on merge edges.
18515
18516 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18517
18518         PR debug/47079
18519         PR debug/46724
18520         * function.c (instantiate_expr): Instantiate incoming rtl of
18521         implicit arguments, and recurse on VALUE_EXPRs.
18522         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18523         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18524
18525 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18526
18527         * c-parser.c (c_parser_for_statement): Initialize
18528         collection_expression.
18529
18530 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18531
18532         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18533
18534 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18535
18536         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18537         (LINK_SHLIB_SPEC): Don't use %(link_path).
18538         (SUBTARGET_EXTRA_SPECS): Remove link_path.
18539
18540 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18541
18542         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18543         (NO_SHARED_LIB_SUPPORT): Remove.
18544         (LINK_SHLIB_SPEC): Remove one conditional definition.
18545
18546 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18547
18548         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18549         %{call_shared}.
18550         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18551         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18552         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18553         %{call_shared} and conditionals on these options not being passed.
18554         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18555         %{call_shared}.
18556
18557 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18558
18559         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18560         simplify.
18561
18562         * ipa-split.c: Spelling fixes.
18563
18564 2011-01-19  Richard Henderson  <rth@redhat.com>
18565
18566         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18567         (*mulsi3): Likewise.
18568
18569         * longlong.h [__mn10300__] (count_leading_zeros): New.
18570         [__mn10300__] (umul_ppmm, smul_ppmm): New.
18571         [__mn10300__] (add_ssaaaa, subddmmss): New.
18572         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18573         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18574
18575 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18576
18577         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18578
18579 2011-01-19  Richard Henderson  <rth@redhat.com>
18580
18581         * config/mn10300/mn10300.md (addsi3_flags): New.
18582         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18583         (subsi3_flags, subc_internal, subdi3): New.
18584         (subdi3_internal, *subdi3_degenerate): New.
18585         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18586
18587         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18588         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18589         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
18590         * config/mn10300/mn10300-protos.h: Update.
18591         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18592         (return_ret): Likewise.  Rename from return_internal_regs.
18593         (return_internal): Remove.
18594
18595         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18596         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18597         (mn10300_legitimate_constant_p): Likewise.
18598         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18599         (mn10300_frame_size): New.
18600         (mn10300_expand_prologue): Use it.
18601         (mn10300_expand_epilogue): Likewise.
18602         (mn10300_initial_offset): Likewise.
18603         * config/mn10300/mn10300-protos.h: Update.
18604         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18605         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18606         (prologue, epilogue, return_internal): Tidy output code.
18607         (mn10300_store_multiple_operation, return): Likewise.
18608         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18609         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18610         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18611         (load_pic, am33_load_pic): New.
18612         (mn10300_load_pic0, mn10300_load_pic1): New.
18613
18614         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18615         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18616         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18617         (cc_flags_for_mode, cc_flags_for_code): New.
18618         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18619         overflow flag is not valid.  Validate that the flags we need
18620         for the comparison are valid.
18621         (mn10300_output_cmp): Remove.
18622         (mn10300_output_add): New.
18623         (mn10300_select_cc_mode): Use cc_flags_for_code.
18624         (mn10300_split_cbranch): New.
18625         (mn10300_match_ccmode): New.
18626         (mn10300_split_and_operand_count): New.
18627         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18628         to the function.
18629         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18630         (addsi3): ... here.  Use mn10300_output_add.
18631         (*addsi3_flags): New.
18632         (*am33_subsi3, *mn10300_subsi3): Merge...
18633         (subsi3): ... here.  Use attribute isa.
18634         (*subsi3_flags): New.
18635         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
18636         when possible.
18637         (*am33_andsi3, *mn10300_andsi3): Merge...
18638         (andsi3): ... here.
18639         (*andsi3_flags): New.
18640         (andsi3 splitters): New.
18641         (*am33_iorsi3, *mn10300_iorsi3): Merge...
18642         (iorsi3): ... here.
18643         (*iorsi3_flags): New.
18644         (*am33_xorsi3, *mn10300_xorsi3): Merge...
18645         (xorsi3): ... here.
18646         (*xorsi3_flags): New.
18647         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18648         (one_cmplsi2): ... here.
18649         (*one_cmplsi2_flags): New.
18650         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
18651         instead of "dax" in constraints.  Use mn10300_split_cbranch.
18652         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
18653         use matching constraints to eliminate a self-comparison.
18654         (*integer_conditional_branch): Rename from integer_conditional_branch.
18655         Use int_mode_flags to match CC_REG.
18656         (*cbranchsi4_btst, *btstsi): New.
18657         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
18658         mn10300_split_cbranch.
18659         (*am33_cmpsf): Rename from am33_cmpsf.
18660         (*float_conditional_branch): Rename from float_conditional_branch.
18661         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18662         (zero_extendqisi2): ... here.
18663         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18664         (zero_extendhisi2): ... here.
18665         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18666         (extendqisi2): ... here.
18667         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18668         (extendhisi2): ... here.
18669         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18670         (ashlsi3): ... here.
18671         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18672         (lshrsi3): ... here.
18673         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18674         (ashrsi3): ... here.
18675         (consecutive add peephole): Remove.
18676         * config/mn10300/predicates.md (label_ref_operand): New.
18677         (int_mode_flags): New.
18678         (CCZN_comparison_operator): New.
18679
18680         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18681         (throughput_42_latency_43): New reservation.
18682         (mulsidi3, umulsidi3): New expanders.
18683         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
18684         the MDR register to allocation; separately allocate the low and
18685         high parts of the DImode result.
18686         (umulsidi3_internal): Similarly.
18687         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18688         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
18689         (udivsi3, umodsi3): Remove.
18690         (udivmodsi4, divmodsi4): New expanders.
18691         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
18692         (*divmodsi4): Simiarly.
18693         (ext_internal): New.
18694
18695         * config/mn10300/constraints.md ("z"): New constraint.
18696         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18697         (FIXED_REGISTERS): Don't fix MDR.
18698         (CALL_USED_REGSITERS): Reformat nicely.
18699         (REG_ALLOC_ORDER): Add MDR.
18700         (enum regclass): Add MDR_REGS.
18701         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18702         (IRA_COVER_CLASSES): Add MDR_REGS.
18703         (REGNO_REG_CLASS): Handle MDR_REG.
18704         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18705         (mn10300_register_move_cost): Likewise.
18706         * config/mn10300/mn10300.md (MDR_REG): New.
18707         (*movsi_internal): Handle moves to/from MDR_REGS.
18708
18709         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18710         POST_MODIFY.
18711         (mn10300_secondary_reload): Tidy combination reload classes.
18712         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18713         addresses for AM33.  Allow symbolic offsets for reg+imm.
18714         (mn10300_regno_in_class_p): New.
18715         (mn10300_legitimize_reload_address): New.
18716         * config/mn10300/mn10300.h (enum reg_class): Remove
18717         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18718         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
18719         SP_OR_GENERAL_REGS.
18720         (REG_CLASS_NAMES): Update to match.
18721         (REG_CLASS_CONTENTS): Likewise.
18722         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18723         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18724         (REGNO_IN_RANGE_P): Remove.
18725         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18726         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18727         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18728         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18729         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18730         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18731         (REGNO_GENERAL_P): New.
18732         (HAVE_POST_MODIFY_DISP): New.
18733         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18734         (LEGITIMIZE_RELOAD_ADDRESS): New.
18735         * config/mn10300/mn10300-protos.h: Update.
18736
18737         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18738         DATA_REGS for AM33 stack-pointer destination.
18739         (mn10300_preferred_output_reload_class): Likewise.
18740         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18741         into a form appropriate for ...
18742         (TARGET_SECONDARY_RELOAD): New.
18743         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18744         * config/mn10300/mn10300-protos.h: Update.
18745         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18746         reload_insi; use the "A" constraint for the scratch; handle AM33
18747         moves of sp to non-address registers.
18748
18749         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18750         (*movqi_internal): ... here.
18751         (*am33_movhi, *mn10300_movhi): Merge into...
18752         (*movhi_internal): ... here.
18753         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
18754         as the source/destination of moves from/to SP.
18755         (movsf): Only allow for AM33-2.
18756         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18757         any integer constant constraint.  Only allow for AM33-2.  Tidy
18758         all of the alternative outputs.
18759         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18760         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
18761         for MN103.
18762         (udivsi3, umodsi3): New patterns for MN103 only.
18763
18764 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
18765
18766         * doc/tm.texi.in: Spell out that a lack of register class unions
18767         can lead to ICEs.
18768         * doc/tm.texi: Regenerate.
18769
18770 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18771
18772         PR rtl-optimization/47337
18773         * dce.c (check_argument_store): New function.
18774         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
18775
18776         PR tree-optimization/47290
18777         * tree-eh.c (infinite_empty_loop_p): New function.
18778         (cleanup_empty_eh): Use it.
18779
18780 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
18781
18782         PR target/46997
18783         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18784         (a64_expand_widen_sum): Ditto.
18785         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18786         (vec_extract_evenodd_help): Ditto.
18787         (vec_extract_evenv4hi): Ditto.
18788         (vec_extract_oddv4hi): Ditto.
18789         (vec_extract_evenv2si): Ditto.
18790         (vec_extract_oddv2si): Ditto.
18791         (vec_extract_evenv2sf): Ditto.
18792         (vec_extract_oddv2sf): Ditto.
18793         (vec_pack_trunc_v4hi: Ditto.
18794         (vec_pack_trunc_v2si): Ditto.
18795         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18796         (vec_interleave_highv8qi): Ditto.
18797         (mix1_r): Ditto.
18798         (vec_extract_oddv8qi): Ditto.
18799         (vec_interleave_lowv4hi): Ditto.
18800         (vec_interleave_highv4hi): Ditto.
18801         (vec_interleave_lowv2si): Ditto.
18802         (vec_interleave_highv2si): Ditto.
18803
18804 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18805
18806         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18807         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18808         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
18809         (pa_c_mode_for_suffix): New.
18810         (TARGET_EXPAND_BUILTIN): Define.
18811         (TARGET_C_MODE_FOR_SUFFIX): Define.
18812         (pa_builtins): Define.
18813         (pa_init_builtins): Register __float128 type and init new support
18814         builtins.
18815         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18816         * config/pa/quadlib.c (_U_Qfcopysign): New.
18817
18818 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
18819
18820         PR middle-end/46894
18821         * explow.c (allocate_dynamic_stack_space): Do not assume more than
18822         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18823         are defined.
18824
18825 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18826
18827         PR tree-optimization/47179
18828         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18829         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18830
18831 2011-01-18  Richard Guenther  <rguenther@suse.de>
18832
18833         PR rtl-optimization/47216
18834         * emit-rtl.c: Include tree-flow.h.
18835         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18836         of replicating it with different semantics.
18837         * Makefile.in (emit-rtl.o): Adjust.
18838
18839 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18840
18841         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18842         (cortex_a9_dp): Handle neon types correctly.
18843
18844 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
18845
18846         PR rtl-optimization/47299
18847         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18848         subtarget.  Use normal multiplication if both operands are constants.
18849         * expmed.c (expand_widening_mult): Don't try to optimize constant
18850         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
18851         before using it.
18852
18853 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18854
18855         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
18856         spacing after 'e.g.', typos, comma, hyphenation.
18857
18858 2011-01-17  Richard Henderson  <rth@redhat.com>
18859
18860         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18861         (rx_restricted_mem_operand): New.
18862         (rx_shift_operand): Use register_operand.
18863         (rx_source_operand, rx_compare_operand): Likewise.
18864         * config/rx/rx.md (addsi3_flags): New expander.
18865         (adddi3): Rewrite as expander.
18866         (adc_internal, *adc_flags, adddi3_internal): New patterns.
18867         (subsi3_flags): New expander.
18868         (subdi3): Rewrite as expander.
18869         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18870
18871         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18872         (rx_init_builtins): Remove sat builtin.
18873         (rx_expand_builtin): Likewise.
18874         * config/rx/rx.md (ssaddsi3): New.
18875         (*sat): Rename from sat.  Represent the CC_REG input.
18876
18877         * config/rx/predicates.md (rshift_operator): New.
18878         * config/rx/rx.c (rx_expand_insv): Remove.
18879         * config/rx/rx-protos.h: Update.
18880         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
18881         operand to the canonical position.
18882         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18883         (*bitclr, *bitclr_in_memory): Similarly.
18884         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18885         (insv): Retain the zero_extract in the expansion.
18886
18887         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18888         (bswaphi2, bitinvert, revw): Likewise.
18889
18890         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18891         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18892         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18893         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18894         (bitset, bitset_in_memory): Likewise.
18895         (bitinvert, bitinvert_in_memory): Likewise.
18896         (bitclr, bitclr_in_memory): Likewise.
18897         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18898         (rx_strend, rx_cmpstrn): Likewise.
18899         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
18900         (bitop peep2 patterns): Remove.
18901
18902         * config/rx/rx.c (rx_match_ccmode): New.
18903         * config/rx/rx-protos.h: Update.
18904         * config/rx/rx.md (abssi2): Clobber, don't set flags.
18905         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18906         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18907         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18908         (fix_truncsfsi2, floatsisf2): Likewise.
18909         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18910         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18911         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18912         (*subsi3_flags, *xorsi3_flags): New.
18913
18914         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18915
18916         * config/rx/rx.c (rx_print_operand): Remove workaround for
18917         unsplit comparison operations.
18918
18919         * config/rx/rx.md (movsicc): Split after reload.
18920         (*movsicc): Merge *movsieq and *movsine via match_operator.
18921         (*stcc): New pattern.
18922
18923         * config/rx/rx.c (rx_float_compare_mode): Remove.
18924         * config/rx/rx.h (rx_float_compare_mode): Remove.
18925         * config/rx/rx.md (cstoresi4): Split after reload.
18926         (*sccc): New pattern.
18927
18928         * config/rx/predicates.md (label_ref_operand): New.
18929         (rx_z_comparison_operator): New.
18930         (rx_zs_comparison_operator): New.
18931         (rx_fp_comparison_operator): New.
18932         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18933         Validate that the flags are set properly for the comparison.
18934         (rx_gen_cond_branch_template): Remove.
18935         (rx_cc_modes_compatible): Remove.
18936         (mode_from_flags): New.
18937         (flags_from_code): Rename from flags_needed_for_conditional.
18938         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18939         (rx_select_cc_mode): Likewise.
18940         (rx_split_fp_compare): New.
18941         (rx_split_cbranch): New.
18942         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18943         (*cbranchsi4): Use match_operator and rx_split_cbranch.
18944         (*cbranchsf4): Similarly.
18945         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
18946         match_operator and rx_split_cbranch.
18947         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18948         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
18949         (*cmpsi): Rename from cmpsi.
18950         (*tstsi): Rename from tstsi.
18951         (*cmpsf): Rename from cmpsf; use CC_Fmode.
18952         (*conditional_branch): Rename from conditional_branch.
18953         (*reveresed_conditional_branch): Remove.
18954         (b<code>): Remove expander.
18955         * config/rx/rx-protos.h: Update.
18956
18957         * config/rx/rx.c (rx_compare_redundant): Remove.
18958         * config/rx/rx.md (cmpsi): Don't use it.
18959         * config/rx/rx-protos.h: Update.
18960
18961         * config/rx/rx-modes.def (CC_F): New mode.
18962         * config/rx/rx.c (rx_select_cc_mode): New.
18963         * config/rx/rx.h (SELECT_CC_MODE): Use it.
18964         * config/rx/rx-protos.h: Update.
18965
18966 2011-01-17  Richard Henderson  <rth@redhat.com>
18967
18968         * except.c (dump_eh_tree): Fix stray ; after for statement.
18969
18970 2011-01-17  Richard Guenther  <rguenther@suse.de>
18971
18972         PR tree-optimization/47313
18973         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18974         handling before copying the body.  Properly deal with
18975         by-reference result in SSA form.
18976
18977 2011-01-17  Ian Lance Taylor  <iant@google.com>
18978
18979         PR target/47219
18980         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18981         (struct_value_alias_set): Don't define.
18982         (sparc_option_override): Don't set sparc_sr_alias_set and
18983         struct_value_alias_set.
18984         (save_or_restore_regs): Use gen_frame_mem rather than calling
18985         set_mem_alias_set.
18986         (sparc_struct_value_rtx): Likewise.
18987
18988 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18989
18990         PR target/47318
18991         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18992         (_mm_maskstore_pd): Likewise.
18993         (_mm_maskload_ps): Likewise.
18994         (_mm_maskstore_ps): Likewise.
18995         (_mm256_maskload_pd): Change mask to __m256i.
18996         (_mm256_maskstore_pd): Likewise.
18997         (_mm256_maskload_ps): Likewise.
18998         (_mm256_maskstore_ps): Likewise.
18999
19000         * config/i386/i386-builtin-types.def: Updated.
19001         (ix86_expand_special_args_builtin): Likewise.
19002
19003         * config/i386/i386.c (bdesc_special_args): Update
19004         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19005         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19006         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19007         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19008
19009         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19010         Use <avxpermvecmode> on mask register.
19011         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19012
19013 2011-01-17  Olivier Hainque  <hainque@adacore.com>
19014             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
19015             Eric Botcazou  <ebotcazou@adacore.com>
19016
19017         PR target/46655
19018         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19019         if <= USHRT_MAX in 32-bit mode.
19020
19021 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19022
19023         * doc/install.texi (Configuration, Specific): Wrap long
19024         lines in examples.  Allow line wrapping in long options
19025         and URLs where beneficial for PDF output.
19026
19027 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
19028
19029         * config/mips/mips.c (mips_classify_symbol): Don't return
19030         SYMBOL_PC_RELATIVE for nonlocal labels.
19031
19032 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
19033
19034         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19035
19036 2011-01-15  Jan Hubicka  <jh@suse.cz>
19037
19038         PR tree-optimization/47276
19039         * ipa.c (function_and_variable_visibility): Do not try to mark alias
19040         declarations as needed.
19041
19042 2011-01-15  Martin Jambor  <mjambor@suse.cz>
19043
19044         * common.opt (fdevirtualize): New flag.
19045         * doc/invoke.texi (Option Summary): Document it.
19046         * opts.c (default_options_table): Add devirtualize flag.
19047         * ipa-prop.c (detect_type_change): Return immediately if
19048         devirtualize flag is not set.
19049         (detect_type_change_ssa): Likewise.
19050         (compute_known_type_jump_func): Likewise.
19051         (ipa_analyze_virtual_call_uses): Likewise.
19052
19053 2011-01-14  Martin Jambor  <mjambor@suse.cz>
19054
19055         PR tree-optimization/45934
19056         PR tree-optimization/46302
19057         * ipa-prop.c (type_change_info): New type.
19058         (stmt_may_be_vtbl_ptr_store): New function.
19059         (check_stmt_for_type_change): Likewise.
19060         (detect_type_change): Likewise.
19061         (detect_type_change_ssa): Likewise.
19062         (compute_complex_assign_jump_func): Check for dynamic type change.
19063         (compute_complex_ancestor_jump_func): Likewise.
19064         (compute_known_type_jump_func): Likewise.
19065         (compute_scalar_jump_functions): Likewise.
19066         (ipa_analyze_virtual_call_uses): Likewise.
19067         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19068
19069 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19070
19071         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19072         * config/i386/i386.opt (msse5): New Alias.
19073
19074 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19075
19076         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19077         * config/sparc/linux64.h (CC1_SPEC): Likewise.
19078         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19079         * config/sparc/sparc.h (CC1_SPEC): Likewise.
19080
19081 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19082
19083         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19084         -mcpu options.
19085         * config/sparc/linux64.h (CC1_SPEC): Likewise.
19086         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19087         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19088         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19089         Likewise.
19090         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19091
19092 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19093
19094         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
19095
19096 2011-01-14  Mike Stump  <mikestump@comcast.net>
19097
19098         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19099         * config/fr30/fr30.md: Likweise
19100         (movsi_push): Likewise.
19101         (movsi_pop): Likewise.
19102         (enter_func): Likewise.
19103         * config/moxie/moxie.md (movsi_push): Likewise.
19104         (movsi_pop): Likewise.
19105
19106 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19107
19108         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19109         %{no_archive} %{exact_version}.
19110         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19111         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19112         %{no_archive} %{exact_version}.
19113         * config/mips/openbsd.h (LINK_SPEC): Likewise.
19114         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19115         * config/mips/vxworks.h: Likewise.
19116
19117 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19118
19119         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19120
19121 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19122
19123         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19124         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19125
19126 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19127
19128         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19129         -nodefaultlib.
19130
19131 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19132
19133         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19134         for mcpu not cpu.
19135         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19136         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19137         not cpu.
19138         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19139         Don't handle -shlib.
19140
19141 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19142
19143         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19144         (CC1_SPEC): Don't handle -profile.
19145
19146 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19147
19148         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19149         * config/mips/mips.h (CC1_SPEC): Likewise.
19150
19151 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19152
19153         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19154         * config/mips/mips.h (CC1_SPEC): Likewise.
19155
19156 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19157
19158         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19159         * config/m32r/linux.h (LINK_SPEC): Likewise.
19160         * config/mips/linux.h (LINK_SPEC): Likewise.
19161         * config/mips/linux64.h (LINK_SPEC): Likewise.
19162         * config/sparc/linux.h (LINK_SPEC): Likewise.
19163         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19164         LINK_SPEC): Likewise.
19165         * config/xtensa/linux.h (LINK_SPEC): Likewise.
19166
19167 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19168
19169         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19170         %{version:-v}.
19171         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19172
19173 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19174
19175         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19176         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19177
19178 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19179
19180         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19181
19182 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19183
19184         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19185         supports -Bstatic/-Bdynamic.
19186         * configure: Regenerate.
19187
19188 2011-01-14  Jan Hubicka  <jh@suse.cz>
19189             Jack Howarth  <howarth@bromo.med.uc.edu>
19190
19191         PR target/46037
19192         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19193         when checking debug_info_level. Test write_symbols instead of
19194         debug_hooks->var_location when setting flag_var_tracking_uninit.
19195
19196 2011-01-14  Richard Guenther  <rguenther@suse.de>
19197
19198         PR tree-optimization/47179
19199         * target.def (ref_may_alias_errno): New target hook.
19200         * targhooks.h (default_ref_may_alias_errno): Declare.
19201         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19202         (default_ref_may_alias_errno): New function.
19203         * target.h (struct ao_ref_s): Declare.
19204         * tree-ssa-alias.c: Include target.h.
19205         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19206         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19207         (targhooks.o): Likewise.
19208         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19209         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19210
19211 2011-01-14  Richard Guenther  <rguenther@suse.de>
19212
19213         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
19214
19215 2011-01-14  Richard Guenther  <rguenther@suse.de>
19216
19217         PR tree-optimization/47280
19218         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19219         return CFG changes.
19220         (tree_ssa_forward_propagate_single_use_vars): Deal with
19221         CFG changes from associate_plusminus.
19222
19223 2011-01-14  Richard Guenther  <rguenther@suse.de>
19224
19225         PR middle-end/47281
19226         Revert
19227         2011-01-11  Richard Guenther  <rguenther@suse.de>
19228
19229         PR tree-optimization/46076
19230         * tree-ssa.c (useless_type_conversion_p): Conversions from
19231         unprototyped to empty argument list function types are useless.
19232
19233 2011-01-14  Richard Guenther  <rguenther@suse.de>
19234
19235         PR tree-optimization/47286
19236         * tree-ssa-structalias.c (new_var_info): Register variables are global.
19237
19238 2011-01-14  Martin Jambor  <mjambor@suse.cz>
19239
19240         PR middle-end/46823
19241         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19242
19243 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
19244
19245         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19246         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19247         * config/xtensa/xtensa.c (xtensa_libcall_value,
19248         xtensa_function_value_regno_p): New functions.
19249         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19250
19251 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
19252
19253         PR c++/47213
19254         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19255         PE specific hook.
19256         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19257         New function prototype.
19258         * config/i386/winnt.c (i386_pe_assemble_visibility):
19259         Warn only if attribute was specified by user.
19260
19261 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
19262
19263         PR target/47251
19264         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19265         floating point.
19266         (floatunsdidf2_fcfidu): Ditto.
19267
19268 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19269
19270         * config/s390/s390.c (print_operand_address): Replace 'error' with
19271         'output_operand_lossage'.
19272         (print_operand): Likewise.
19273
19274 2011-01-13  Jeff Law  <law@redhat.com>
19275
19276         PR rtl-optimization/39077
19277         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19278         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19279         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19280         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19281         * gcse.c (prune_insertions_deletions): New function.
19282         (compute_pre_data): Use it.
19283
19284 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
19285
19286         PR debug/PR46973
19287         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19288         static function.
19289         (prune_unused_types_mark): Use it.
19290
19291 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
19292
19293         PR rtl-optimization/45352
19294         * sel-sched.c: Update copyright years.
19295         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19296         in the advancing loop when we have issued issue_rate insns.
19297
19298 2011-01-12  Richard Henderson  <rth@redhat.com>
19299
19300         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19301         (TARGET_MD_ASM_CLOBBERS): New.
19302
19303         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19304         (TARGET_DELEGITIMIZE_ADDRESS): New.
19305
19306         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19307         (clzsi2, *bsch): New patterns.
19308
19309         * config/mn10300/mn10300.md (INT): New mode iterator.
19310         (*mov<INT>_clr): New pattern, and peep2 to generate it.
19311
19312         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19313         flag_split_wide_types.
19314
19315         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19316         (mn10300_trampoline_init): Rewrite without a template, an immediate
19317         load and a direct branch.
19318         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19319
19320 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
19321
19322         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19323         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19324         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19325         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19326
19327 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
19328
19329         PR debug/47209
19330         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19331         of type.
19332
19333 2011-01-12  Jan Hubicka  <jh@suse.cz>
19334
19335         PR driver/47244
19336         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19337         (PLUGIN_COND_CLOSE): New macro.
19338         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19339
19340 2011-01-12  Richard Guenther  <rguenther@suse.de>
19341
19342         PR lto/47259
19343         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19344         register variables in a MEM_REF.
19345
19346 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
19347
19348         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19349         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19350         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19351         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19352         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19353         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19354         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19355         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19356         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19357         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19358         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19359         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19360         * config/gnu-user.h: New.  Copied from linux.h.
19361         (LINUX_TARGET_STARTFILE_SPEC): Rename to
19362         GNU_USER_TARGET_STARTFILE_SPEC.
19363         (LINUX_TARGET_ENDFILE_SPEC): Rename to
19364         GNU_USER_TARGET_ENDFILE_SPEC.
19365         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19366         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19367         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19368         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19369         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19370         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19371         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19372         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19373         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19374         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19375         * config/arm/linux-eabi.h (CC1_SPEC): Use
19376         GNU_USER_TARGET_CC1_SPEC.
19377         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19378         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19379         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19380         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19381         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19382         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19383         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19384         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19385
19386 2011-01-12  Richard Guenther  <rguenther@suse.de>
19387
19388         PR other/46946
19389         * doc/invoke.texi (ffast-math): Document it is turned on
19390         with -Ofast.
19391
19392 2011-01-12  Jan Hubicka  <jh@suse.cz>
19393
19394         PR tree-optimization/47233
19395         * opts.c (common_handle_option): Disable ipa-reference with profile
19396         feedback.
19397
19398 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19399
19400         * c-parser.c (c_parser_objc_at_property_declaration): Improved
19401         error message.
19402
19403 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19404
19405         * c-parser.c (c_lex_one_token): Updated and reindented some
19406         comments.  No changes in code.
19407
19408 2011-01-11  Ian Lance Taylor  <iant@google.com>
19409
19410         * godump.c (go_output_var): Don't output the variable if there is
19411         already a type with the same name.
19412
19413 2011-01-11  Ian Lance Taylor  <iant@google.com>
19414
19415         * godump.c (go_format_type): Don't generate float80.
19416
19417 2011-01-11  Richard Henderson  <rth@redhat.com>
19418
19419         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19420         declaration.  Rewrite for both speed and size.
19421         (mn10300_address_cost_1): Remove.
19422         (mn10300_register_move_cost): New.
19423         (mn10300_memory_move_cost): New.
19424         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
19425         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
19426         extensions, shifts, BSWAP, CLZ.
19427         (mn10300_wide_const_load_uses_clr): Remove.
19428         (TARGET_REGISTER_MOVE_COST): New.
19429         (TARGET_MEMORY_MOVE_COST): New.
19430         * config/mn10300/mn10300-protos.h: Update.
19431         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19432
19433         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19434         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19435         * config/mn10300/mn10300-protos.h: Update.
19436         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19437         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19438         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19439         (*test_int_bitfield, *test_byte_bitfield): Remove.
19440         (*bit_test, *subreg_bit_test): Remove.
19441         * config/mn10300/predicates.md (const_8bit_operand): Remove.
19442
19443         * config/mn10300/constraints.md ("c"): Rename from "A".
19444         ("A", "D"): New constraint letters.
19445         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19446         (fmssf4, fnmasf4, fnmssf4): Likewise.
19447
19448         * config/mn10300/mn10300.md (isa): New attribute.
19449         (enabled): New attribute.
19450
19451         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19452         (abssf2, negsf2): Define only for hardware fp.
19453         (sqrtsf2): Reformat.
19454         (addsf3, subsf3, mulsf3): Merge expander and insn.
19455
19456         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19457         (DEBUGGER_AUTO_OFFSET): Remove.
19458         (DEBUGGER_ARG_OFFSET): Remove.
19459
19460         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19461         Emit register stores with the same offsets as the hardware.
19462         (mn10300_store_multiple_operation): Don't check that the register
19463         save offsets are monotonic.
19464         * config/mn10300/mn10300-protos.h: Update.
19465
19466         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19467
19468         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19469         in terms of the value on the stack, not the MDR register.
19470
19471 2011-01-11  Jan Hubicka  <jh@suse.cz>
19472
19473         PR lto/45721
19474         PR lto/45375
19475         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19476         (symbol_alias_set_destroy, symbol_alias_set_contains,
19477         propagate_aliases_backward): Declare.
19478         * lto-streamer-out.c (struct sets): New sturcture.
19479         (trivally_defined_alias): New function.
19480         (output_alias_pair_p): Rewrite.
19481         (output_unreferenced_globals): Fix output of alias pairs.
19482         (produce_symtab): Likewise.
19483         * ipa.c (function_and_variable_visibility): Set weak alias destination
19484         as needed in lto.
19485         * varasm.c (symbol_alias_set_t): Remove.
19486         (symbol_alias_set_destroy): Export.
19487         (propagate_aliases_forward, propagate_aliases_backward): New functions
19488         based on ...
19489         (compute_visible_aliases): ... this one; remove.
19490         (trivially_visible_alias): New
19491         (trivially_defined_alias): New.
19492         (remove_unreachable_alias_pairs): Rewrite.
19493         (finish_aliases_1): Reorganize code checking if alias is defined.
19494         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19495         in LTO mode.
19496
19497 2011-01-11  Richard Guenther  <rguenther@suse.de>
19498
19499         PR tree-optimization/46076
19500         * tree-ssa.c (useless_type_conversion_p): Conversions from
19501         unprototyped to empty argument list function types are useless.
19502
19503 2011-01-11  Richard Guenther  <rguenther@suse.de>
19504
19505         PR middle-end/45235
19506         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19507         volatile MEMs as MEM_READONLY_P.
19508
19509 2011-01-11  Richard Guenther  <rguenther@suse.de>
19510
19511         PR tree-optimization/47239
19512         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19513
19514 2011-01-11  Jeff Law  <law@redhat.com>
19515
19516         PR tree-optimization/47086
19517         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19518         IVs from statements that might throw.
19519
19520 2011-01-10  Jan Hubicka  <jh@suse.cz>
19521
19522         PR lto/45375
19523         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19524
19525 2011-01-10  Jan Hubicka  <jh@suse.cz>
19526
19527         PR lto/45375
19528         * profile.c (read_profile_edge_counts): Ignore profile inconistency
19529         when correcting profile.
19530
19531 2011-01-10  Jan Hubicka  <jh@suse.cz>
19532
19533         PR lto/46083
19534         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19535         DECL_FINI_PRIORITY.
19536         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19537         Restore DECL_FINI_PRIORITY.
19538
19539 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19540
19541         * doc/gimple.texi: Fix quoting of multi-word return values in
19542         @deftypefn statements.  Ensure presence of return value.  Wrap
19543         overlong @deftypefn lines.
19544         (is_gimple_operand, is_gimple_min_invariant_address): Remove
19545         descriptions of removed functions.
19546         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19547         of multi-word return value in @deftypefn statement.
19548
19549 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19550
19551         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19552         (Conditional Expressions, Logical Operators)
19553         (Statement and operand traversals): Do not indent smallexample
19554         code.  Fix duplicate function argument in example.
19555
19556 2011-01-10  Jeff Law  <law@redhat.com>
19557
19558         PR tree-optimization/47141
19559         * ipa-split.c (split_function): Handle case where we are
19560         returning a value and the return block has a virtual operand phi.
19561
19562 2011-01-10  Jan Hubicka  <jh@suse.cz>
19563
19564         PR tree-optimization/47234
19565         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19566         (pass_feedback_split_functions): Declare.
19567         * passes.c (init_optimization_passes): Add ipa-split as subpass of
19568         tree-profile.
19569         * ipa-split.c (gate_split_functions): Update comments; disable
19570         split-functions for profile_arc_flag and branch_probabilities.
19571         (gate_feedback_split_functions): New function.
19572         (execute_feedback_split_functions): New function.
19573         (pass_feedback_split_functions): New global var.
19574
19575 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
19576
19577         PR lto/46760
19578         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19579         calling gimple_call_set_cannot_inline.
19580
19581 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
19582
19583         * config/darwin-sections.def: Remove unused section.
19584
19585 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
19586
19587         PR c++/47218
19588         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19589
19590 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
19591
19592         PR objc/47232
19593         * c-parser.c (c_parser_declaration_or_fndef): Improved
19594         error message.
19595
19596 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
19597
19598         * config/i386/winnt.c (i386_pe_start_function): Make sure
19599         to switch back to function's section.
19600
19601 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
19602
19603         PR gcc/46902
19604         PR testsuite/46912
19605         * plugin.c: Move include of dlfcn.h from here...
19606         * system.h: ... to here.
19607
19608 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19609
19610         * doc/cpp.texi (C++ Named Operators): Fix markup for header
19611         file name.
19612         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19613         two extra empty pages in PDF output.
19614
19615 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
19616
19617         PR objc/47078
19618         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19619         for error recovery purposes behave as if it was not specified so
19620         that the default type is usd.
19621
19622 2011-01-07  Jan Hubicka  <jh@suse.cz>
19623
19624         PR tree-optmization/46469
19625         * ipa.c (function_and_variable_visibility): Clear needed flags on
19626         nodes with external decls; handle weakrefs merging correctly.
19627
19628 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
19629
19630         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19631         not false.
19632
19633 2011-01-07  Jan Hubicka  <jh@suse.cz>
19634
19635         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19636         and no longer claim that gold is required for linker plugin.
19637         * configure: Regenerate.
19638         * gcc.c (PLUGIN_COND): New macro.
19639         (LINK_COMMAND_SPEC): Use it.
19640         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19641         * config.in (HAVE_LTO_PLUGIN): New.
19642         * configure.ac (--with-lto-plugin): New parameter; autodetect
19643         HAVE_LTO_PLUGIN.
19644
19645 2011-01-07  Jan Hubicka  <jh@suse.cz>
19646
19647         PR tree-optimization/46367
19648         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19649         when we can update original.
19650         (cgraph_mark_inline_edge): Sanity check.
19651         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19652
19653 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19654
19655         * config/spu/spu.h (ASM_COMMENT_START): Define.
19656
19657 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19658
19659         PR driver/42445
19660         * gcc.c (%>S): New.
19661         (SWITCH_KEEP_FOR_GCC): Likewise.
19662         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19663         (do_spec_1): Handle "%>".
19664
19665         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19666
19667 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
19668
19669         PR target/47201
19670         * config/i386/i386.c (ix86_delegitimize_address): If
19671         simplify_gen_subreg fails, return orig_x.
19672
19673         PR bootstrap/47187
19674         * value-prof.c (gimple_stringop_fixed_value): Handle
19675         lhs of the call properly.
19676
19677 2011-01-07  Jan Hubicka  <jh@suse.cz>
19678
19679         PR lto/45375
19680         * lto-opt.c (lto_reissue_options): Set flag_shlib.
19681
19682 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19683
19684         * target.def (function_switched_text_sections): New hook.
19685         * doc/tm.texi: Regenerated.
19686         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19687         * final.c (default_function_switched_text_sections): New.
19688         (final_scan_insn): Call function_switched_text_sections when a
19689         mid-function section change occurs.
19690         * output.h (default_function_switched_text_sections): Declare.
19691         * config/darwin-protos.h (darwin_function_switched_text_sections):
19692         Likewise.
19693         * config/darwin.c (darwin_function_switched_text_sections): New.
19694         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19695
19696 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19697
19698         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
19699         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
19700         the secondary code fragment when outputting for DWARF == 2.
19701
19702 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
19703
19704         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19705         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19706         Remove.
19707         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19708         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19709
19710 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
19711
19712         PR debug/46704
19713         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19714         when it is not empty.
19715
19716 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
19717
19718         Bobcat Enablement
19719         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19720         (case ${target}): Add btver1.
19721         * config/i386/driver-i386.c (host_detect_local_cpu): Let
19722         -march=native recognize btver1 processors.
19723         * config/i386/i386-c.c (ix86_target_macros_internal): Add
19724         btver1 def_and_undef
19725         * config/i386/i386.c (struct processor_costs btver1_cost): New
19726         btver1 cost table.
19727         (m_BTVER1): New definition.
19728         (m_AMD_MULTIPLE): Includes m_BTVER1.
19729         (initial_ix86_tune_features): Add btver1 tune.
19730         (processor_target_table): Add btver1 entry.
19731         (static const char *const cpu_names): Add btver1 entry.
19732         (software_prefetching_beneficial_p): Add btver1.
19733         (ix86_option_override_internal): Add btver1 instruction sets.
19734         (ix86_issue_rate): Add btver1.
19735         (ix86_adjust_cost): Add btver1.
19736         * config/i386/i386.h (TARGET_BTVER1): New definition.
19737         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19738         (enum processor_type): Add PROCESSOR_BTVER1.
19739         * config/i386/i386.md (define_attr "cpu"): Add btver1.
19740
19741 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19742
19743         PR target/43309
19744         * config/i386/i386.c (legitimize_tls_address)
19745         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19746         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19747         (tls_initial_exec_64_sun): New pattern.
19748
19749 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
19750
19751         * doc/invoke.texi (Overall Options): Improve wording and markup
19752         of the description of -wrapper.
19753
19754 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19755
19756         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19757         rdynamic, threads): New Driver options.
19758
19759 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19760
19761         PR target/38118
19762         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19763         if coming from .tdata.
19764         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19765
19766 2011-01-06  Jan Hubicka  <jh@suse.cz>
19767
19768         PR lto/47188
19769         * collect2.c (main): Do not enable LTOmode when plugin is active.
19770
19771 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19772
19773         PR other/45915
19774         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19775         --version output if supported.
19776         * configure: Regenerate.
19777
19778 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19779
19780         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19781         Driver options.
19782
19783 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
19784
19785         PR c/47150
19786         * c-convert.c (convert): When converting a complex expression
19787         other than COMPLEX_EXPR to a different complex type, ensure
19788         c_save_expr is called instead of save_expr, unless in_late_binary_op.
19789         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19790         when converting COMPLEX_TYPE.
19791
19792 2011-01-06  Ira Rosen  <irar@il.ibm.com>
19793
19794         PR tree-optimization/47139
19795         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19796         only the last reduction value is used outside the loop.  Update
19797         documentation.
19798
19799 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
19800
19801         * config/rtems.opt: New.
19802         * config.gcc (*-*-rtems*): Use rtems.opt.
19803
19804 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
19805
19806         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19807         processors do not support 3DNow instructions.
19808
19809 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19810
19811         * config/spu/spu.c (spu_option_override): Set parameter
19812         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19813
19814 2011-01-05  Jan Hubicka  <jh@suse.cz>
19815
19816         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19817         at the command line.
19818
19819 2011-01-05  Martin Jambor  <mjambor@suse.cz>
19820
19821         PR lto/47162
19822         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19823         deltas on streamed outgoing edges.
19824         (output_node_opt_summary): Output info for outgoing edges only when
19825         the node is in new parameter set.
19826         (output_cgraph_opt_summary): New parameter set, passed to the two
19827         aforementioned functions.  Update its forward declaration and its
19828         callee too.
19829
19830 2011-01-05  Tom Tromey  <tromey@redhat.com>
19831
19832         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19833         operator to c_finish_omp_atomic.
19834         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19835         (build_unary_op): Update.
19836         (build_modify_expr): Update.
19837         (build_asm_expr): Update.
19838
19839 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19840
19841         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19842         newly inserted insns.
19843         (pad_bb): Likewise.
19844         (spu_emit_branch_hint): Likewise.
19845         (insert_hbrp_for_ilb_runout): Likewise.
19846         (spu_machine_dependent_reorg): Call df_finish_pass after
19847         schedule_insns returns.
19848
19849 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19850
19851         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19852
19853 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
19854
19855         PR tree-optimization/47005
19856         * tree-sra.c (struct access): Add 'non_addressable' bit.
19857         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19858         (decide_one_param_reduction): Return 0 if the parameter is passed by
19859         reference and one of the accesses in the group is non_addressable.
19860
19861 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19862
19863         PR tree-optimization/47056
19864         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19865         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
19866         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
19867
19868 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19869
19870         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19871         initializer.  Skip view conversions from aggregate types.
19872
19873 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
19874
19875         PR bootstrap/47055
19876         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19877
19878 2011-01-04  Philipp Thomas  <pth@suse.de>
19879
19880         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19881         obvious typo.
19882
19883 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19884
19885         * function.c (thread_prologue_and_epilogue_insns): Do not crash
19886         on empty epilogue sequences.
19887
19888 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
19889
19890         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19891         non-static): New Driver options.
19892
19893 2011-01-04  Jie Zhang  <jie@codesourcery.com>
19894
19895         PR driver/47137
19896         * gcc.c (default_compilers[]): Set combinable field to 0
19897         for all assembly languages.
19898
19899 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
19900
19901         * config/mips/loongson3a.md: New file.
19902         * config/mips/mips.md: Include loongson3a.md.
19903         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19904         TUNE_LOONGSON_3A.
19905
19906 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
19907
19908         PR middle-end/47017
19909         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19910         instead of convert_memory_address_addr_space on the base expression.
19911
19912 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19913
19914         * config/spu/spu.c (spu_option_override): Update error text
19915         for bad -march= / -mtune= values.
19916
19917 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19918
19919         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19920         if branch-hint optimization will be performed.
19921
19922 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19923
19924         PR tree-optimization/47148
19925         * ipa-split.c (split_function): Convert arguments to
19926         DECL_ARG_TYPE if possible.
19927
19928         PR tree-optimization/47155
19929         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19930         when computing uns.
19931
19932         PR rtl-optimization/47157
19933         * combine.c (try_combine): If undobuf.other_insn becomes
19934         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19935         and set *new_direct_jump_p too.
19936
19937 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
19938
19939         PR tree-optimization/47021
19940         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19941
19942 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19943
19944         * gcc.c (process_command): Update copyright notice dates.
19945         * gcov.c (print_version): Likewise.
19946         * gcov-dump.c (print_version): Likewise.
19947         * mips-tfile.c (main): Likewise.
19948         * mips-tdump.c (main): Likewise.
19949
19950 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19951
19952         PR tree-optimization/46801
19953         * tree-sra.c (type_internals_preclude_sra_p): Check whether
19954         aggregate fields start at byte boundary instead of the bit-field flag.
19955
19956 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19957
19958         PR driver/47137
19959         * gcc.c (main): Revert revision 168407.
19960
19961 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19962
19963         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19964
19965 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19966
19967         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19968         vector optab to expand vector/scalar shift, update gimple to vector.
19969
19970 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19971
19972         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19973         a thunk.
19974
19975 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19976
19977         PR tree-optimization/46984
19978         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19979         HOST_WIDE_INT.
19980         (cgraph_create_indirect_edge): Fixed line length.
19981         (cgraph_indirect_call_info): Declare.
19982         (cgraph_make_edge_direct) Update declaration.
19983         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19984         (cgraph_create_indirect_edge): Use it.
19985         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
19986         callees.
19987         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19988         the new thunk_delta representation.
19989         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19990         HOST_WIDE_INT.
19991         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19992         (ipa_read_indirect_edge_info): Likewise.
19993         * lto-cgraph.c (output_edge_opt_summary): New function.
19994         (output_node_opt_summary): Call it on all outgoing edges.
19995         (input_edge_opt_summary): New function.
19996         (input_node_opt_summary): Call it on all outgoing edges.
19997
19998 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
19999
20000         PR driver/47137
20001         * gcc.c (main): Don't check have_o when settting combine_inputs.
20002
20003 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
20004
20005         * regrename.c: Add general comment describing the pass.
20006         (struct du_head): Remove 'length' field.
20007         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20008         (regrename_optimize): Do not sort chains.  Rework comments, add others.
20009         Force renaming to the preferred class (if any) in the first pass and do
20010         not consider registers that belong to it in the second pass.
20011         (create_new_chain): Do not set 'length' field.
20012         (scan_rtx_reg): Likewise.
20013
20014 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
20015
20016         PR tree-optimization/47140
20017         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20018         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20019         to bit_value_binop.
20020
20021         PR rtl-optimization/47028
20022         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20023         parm_birth_insn instead of at the beginning of first bb.
20024
20025 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
20026
20027         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20028         Remove the word "see" before "@pxref".
20029         * doc/rtl.texi: Remove the word "see" before "@pxref".
20030
20031 2011-01-01  Jan Hubicka  <jh@suse.cz>
20032
20033         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20034         memory.
20035
20036 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
20037
20038         PR target/38662
20039         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20040
20041 \f
20042 Copyright (C) 2011 Free Software Foundation, Inc.
20043
20044 Copying and distribution of this file, with or without modification,
20045 are permitted in any medium without royalty provided the copyright
20046 notice and this notice are preserved.