OSDN Git Service

PR tree-optimization/49572
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2
3         PR tree-optimization/49572
4         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
5         type of the RHS instead of that of the LHS for the expression type.
6
7 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8
9         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
10         unconditionally.
11
12 2011-06-30  Richard Guenther  <rguenther@suse.de>
13
14         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
15         * tree-ssa-structalias.c (create_variable_info_for): Do not
16         add initial constraints for non-var-decls.  Properly handle
17         globals in other ltrans partitions.
18         (intra_create_variable_infos): Manually create constraints for
19         the fake no-alias parameter.
20         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
21         and assert there are no clones.
22
23 2011-06-30  Richard Guenther  <rguenther@suse.de>
24
25         PR tree-optimization/46787
26         * tree-data-ref.c (dr_address_invariant_p): Remove.
27         (find_data_references_in_stmt): Invariant accesses are ok now.
28         * tree-vect-stmts.c (vectorizable_load): Handle invariant
29         loads.
30         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
31         invariant loads.
32
33 2011-06-30  Martin Jambor  <mjambor@suse.cz>
34
35         PR tree-optimization/49094
36         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
37         (build_accesses_from_assign): Use it.
38
39 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
40
41         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
42         handling of BUILT_IN_ASSUME_ALIGNED.
43
44         PR debug/49364
45         * dwarf2out.c (output_abbrev_section): Don't return early
46         if abbrev_die_table_in_use is 1.
47         (dwarf2out_finish): Instead don't call output_abbrev_section
48         nor emit abbrev_section_label in that case.
49
50 2011-06-30  Nick Clifton  <nickc@redhat.com>
51
52         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
53         for the V850E.
54
55 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
56
57         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
58         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
59
60 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
61
62         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
63         both pattern and original statements if necessary.
64         (vect_transform_loop): Likewise.
65         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
66         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
67         Mark the pattern statement only if the original statement doesn't
68         have its own uses.
69         (process_use): Call vect_mark_relevant with additional parameter.
70         (vect_mark_stmts_to_be_vectorized): Likewise.
71         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
72         (vect_analyze_stmt): Handle both pattern and original statements
73         if necessary.
74         (vect_transform_stmt): Don't store vectorized pattern statement
75         in the original statement.
76         (vect_is_simple_use_1): Use related pattern statement only if the
77         original statement is irrelevant.
78         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
79
80 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
81
82         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
83         option.
84         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
85         entry.
86         (TARGET_AVX128_OPTIMAL): New definition.
87         * config/i386/i386.c (initial_ix86_tune_features): Initialize
88         X86_TUNE_AVX128_OPTIMAL entry.
89         (ix86_option_override_internal): Enable the generation
90         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
91         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
92         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
93
94 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
95
96         PR tree-optimization/49539
97         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
98         names by means of stmt_references_abnormal_ssa_name.
99         (associate_plusminus): Call can_propagate_from before propagating
100         from definition statements.
101         (ssa_forward_propagate_and_combine): Remove superfluous newline.
102
103 2011-06-29  Richard Guenther  <rguenther@suse.de>
104
105         * doc/invoke.texi: Document -scev dump modifier.
106         * tree-pass.h (TDF_SCEV): New dump flag.
107         * tree-dump.c (dump_option_value_in): Add scev.
108         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
109         * tree-scalar-evolution.c: Likewise.
110
111 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
112
113         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
114         (cxa_type_match): Correct declaration.
115         (__gnu_unwind_pr_common): Reconstruct
116         additional indirection when __cxa_type_match returns
117         succeeded_with_ptr_to_base.
118
119 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
120
121         PR rtl-optimization/49114
122         * reload.c (struct replacement): Remove SUBREG_LOC member.
123         (push_reload): Do not set it.
124         (push_replacement): Likewise.
125         (subst_reload): Remove dead code.
126         (copy_replacements): Remove assertion.
127         (copy_replacements_1): Do not handle SUBREG_LOC.
128         (move_replacements): Likewise.
129         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
130         Detect subregs via recursive descent instead of via SUBREG_LOC.
131
132 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
133         
134         * config/avr/avr.c (avr_encode_section_info): Dispatch to
135         default_encode_section_info.
136
137 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
138
139         PR tree-optimization/49545
140         * builtins.c (get_object_alignment_1): Update function comment.
141         Do not use DECL_ALIGN for functions, but test
142         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
143         * fold-const.c (get_pointer_modulus_and_residue): Don't check
144         for functions here.
145         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
146
147 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
148
149         PR debug/49567
150         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up
151         for non-MODE_INT modes instead of asserting the mode has MODE_INT
152         class.
153
154 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
155         
156         PR target/34734
157         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning 
158         about uninitialized data attributed 'progmem' from here...
159         (avr_encode_section_info): ...to this new function.
160         (TARGET_ENCODE_SECTION_INFO): New define.
161         (avr_section_type_flags): For data in ".progmem.data", remove
162         section flag SECTION_WRITE.
163
164 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
165         
166         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
167         _xmulhisi3_exit.
168         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
169         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
170         (__umulhisi3): Ditto.
171         * config/avr/avr.md (mulhisi3): New insn expender.
172         (umulhisi3): New insn expender.
173         (*mulhisi3_call): New insn.
174         (*umulhisi3_call): New insn.
175
176 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
177
178         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
179
180 2011-06-28  Richard Henderson  <rth@redhat.com>
181
182         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
183         all code and arguments that handled pushes.  Update all callers.
184
185 2011-06-28  Richard Henderson  <rth@redhat.com>
186
187         * config/arm/arm.c (arm_output_function_prologue): Don't call
188         thumb1_output_function_prologue.
189         (arm_expand_prologue): Avoid dead store.
190         (number_of_first_bit_set): Use ctz_hwi.
191         (thumb1_emit_multi_reg_push): New.
192         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
193         to emit the entire prologue as rtl.
194         (thumb1_output_interwork): Split out from
195         thumb1_output_function_prologue.
196         (thumb1_output_function_prologue): Remove.
197         (arm_attr_length_push_multi): Handle thumb1.
198         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
199         (prologue_thumb1_interwork): New.
200         (*push_multi): Allow thumb1; use push_mult_memory_operand.
201         * config/arm/predicates.md (push_mult_memory_operand): New.
202
203 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
204
205         * config/sparc/sync.md (*stbar): Delete.
206         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
207
208 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
209
210         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
211
212 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
213
214         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
215         (TARGET_64BIT_DEFAULT): Define.
216         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
217         of tm_file.
218         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
219
220 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
221
222         * common.opt (in_lto_p): New Variable entry.
223         * flags.h (in_lto_p): Move to common.opt.
224         * gcc.c: Include params.h.
225         (set_option_handlers): Also use common_handle_option and
226         target_handle_option.
227         (main): Call global_init_params, finish_params and
228         init_options_struct.
229         * opts.c (debug_type_names): Move from toplev.c.
230         (print_filtered_help): Access quiet_flag through opts pointer.
231         (common_handle_option): Return early in the driver for some
232         options.  Access in_lto_p, dwarf_version and
233         warn_maybe_uninitialized through opts pointer.
234         * toplev.c (in_lto_p): Move to common.opt.
235         (debug_type_names): Move to opts.c.
236         * Makefile.in (OBJS): Remove opts.o.
237         (OBJS-libcommon-target): Add opts.o.
238         (gcc.o): Update dependencies.
239
240 2011-06-28  Kai Tietz  <ktietz@redhat.com>
241
242         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve
243         type sinking.
244
245 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
246
247         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
248         with '=' constraint modifier.
249         (*divdf3_vfp): Likewise.
250         ("*mulsf3_vfp"): Likewise.
251         ("*muldf3_vfp"): Likewise.
252         ("*mulsf3negsf_vfp"): Likewise.
253         ("*muldf3negdf_vfp"): Likewise.
254
255 2011-06-28  Nick Clifton  <nickc@redhat.com>
256
257         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
258         relaxation when performing an incremental link.
259
260 2011-06-28  Kai Tietz  <ktietz@redhat.com>
261
262         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
263         within BB from last to first.
264
265 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
266
267         * genattr-common.c: New.  Based on genattr.c.
268         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
269         (MOSTLYCLEANFILES): Add insn-attr-common.h.
270         (opts.o): Update dependencies.
271         (.PRECIOUS): Add insn-attr-common.h.
272         (simple_rtl_generated_h): Add insn-attr-common.h.
273         (build/genattr-common.o): New.
274         (genprogrtl): Add attr-common.
275         * genattr.c (main): Include insn-attr-common.h.  Don't generate
276         definitions of DELAY_SLOTS or INSN_SCHEDULING.
277         * opts.c: Include insn-attr-common.h instead of rtl.h and
278         insn-attr.h.
279
280 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
281
282         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
283         avr-*-* and avr-*-rtems* targets.
284
285         * config/avr/elf.h: New file.
286         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
287         (TARGET_ASM_SELECT_SECTION): Define.
288         (INIT_SECTION_ASM_OP): Undefine.
289         (FINI_SECTION_ASM_OP): Undefine.
290         (READONLY_DATA_SECTION_ASM_OP): Undefine.
291         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
292         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
293         * config/avr/avr.h:
294         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
295         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
296         (MAX_OFILE_ALIGNMENT): Move to elf.h.
297         (STRING_LIMIT): Move to elf.h.
298         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
299         (ASM_DECLARE_OBJECT_NAME): Remove.
300         (ESCAPES): Remove.
301         (ASM_OUTPUT_SKIP): Remove.
302         (DWARF2_DEBUGGING_INFO): Remove.
303         (OBJECT_FORMAT_ELF): Remove.
304         (USER_LABEL_PREFIX): Remove.
305         (ASM_OUTPUT_EXTERNAL): Remove.
306         (ASM_OUTPUT_ASCII): Remove.
307         (TYPE_ASM_OP): Remove.
308         (SIZE_ASM_OP): Remove.
309         (WEAK_ASM_OP): Remove.
310         (STRING_ASM_OP): Remove.
311         (SET_ASM_OP): Remove.
312         (ASM_WEAKEN_LABEL): Remove.
313         (TYPE_OPERAND_FMT): Remove.
314         (ASM_DECLARE_FUNCTION_SIZE): Remove.
315         (ASM_FINISH_DECLARE_OBJECT): Remove.
316         (NO_DOLLAR_IN_LABEL): Remove.
317         (ASM_GENERATE_INTERNAL_LABEL): Remove.
318         (ASM_OUTPUT_CASE_LABEL): Remove.
319         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
320         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
321         (gas_output_ascii): Remove.
322         (gas_output_limited_string): Remove.
323         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
324         * config/avr/avr-protos.h
325         (gas_output_ascii): Remove prototye.
326         (gas_output_limited_string): Remove prototype.
327
328 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
329
330         PR target/48637
331         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
332         asm operands.
333
334 2011-06-27  Jan Hubicka  <jh@suse.cz>
335
336         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
337         node instead of references in node.
338
339 2011-06-27  Richard Henderson  <rth@redhat.com>
340
341         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
342         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
343         inside ifdef.
344
345 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
346
347         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
348
349         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
350         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
351         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
352         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
353         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
354         (evaluate_stmt, execute_fold_all_builtins): Handle
355         BUILT_IN_ASSUME_ALIGNED.
356         * tree-ssa-dce.c (propagate_necessity): Likewise.
357         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
358         call_may_clobber_ref_p_1): Likewise.
359         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
360         (expand_builtin_assume_aligned): New function.
361         * doc/extend.texi (__builtin_assume_aligned): Document.
362
363         PR debug/49544
364         * cselib.c (promote_debug_loc): If cselib_preserve_constants
365         and l has two DEBUG_INSN owned locs instead of just one, adjust
366         the second location's setting_insn too.
367
368 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
369
370         PR libmudflap/38738
371         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
372
373 2011-06-27  Nick Clifton  <nickc@redhat.com>
374
375         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
376         convert bit position of highest bit set into a count of the high
377         zero bits.
378
379 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
380
381         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
382
383 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
384
385         PR lto/48492
386         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
387         to a NULL parent.
388
389 2011-06-27  Richard Guenther  <rguenther@suse.de>
390
391         PR tree-optimization/49394
392         * passes.c (execute_one_pass): Restore current_pass after
393         applying IPA transforms.
394
395 2011-06-27  Kai Tietz  <ktietz@redhat.com>
396
397         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
398         out of type precision after operation.
399         (find_bswap): Take for limit value the integer auto-
400         promotion into account.
401
402 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
403
404         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
405         forward scan as well.
406
407 2011-06-27  Tristan Gingold  <gingold@adacore.com>
408
409         PR target/44241
410         * config/vms/vms-protos.h: New file.
411         * config/vms/vms-crtlmap.map: New file.
412         * config/vms/vms.c: New file.
413         * config/vms/make-crtlmap.awk: New file.
414         * config/vms/vms-crtl.h: File removed.
415         * config/vms/vms-crtl-64.h: File removed.
416         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
417         * config/alpha/vms64.h: Do not include vms-crtl-64.h
418         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
419         clear some builtins on VMS.  Calls vms_patch_builtins.
420         (avms_asm_output_external): Remove.
421         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
422         (struct crtl_name_spec): Remove
423         (DO_CTRL_NAMES): Remove.
424         * config/ia64/vms.h (struct crtl_name_spec): Remove
425         (DO_CTRL_NAMES): Remove.
426         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
427         clear some builtins on VMS.  Calls vms_patch_builtins.
428         (ia64_asm_output_external): Remove DO_CRTL_NAME.
429         * config/ia64/vms64.h: Do not include vms-crtl-64.h
430         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
431         tm_p_file.
432
433 2011-06-27  Tristan Gingold  <gingold@adacore.com>
434
435         * config/alpha/alpha.c (alpha_end_function): Always generate .end
436         directive on VMS.
437
438 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
439
440         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
441         the function receives nonlocal gotos.
442
443 2011-06-27  Richard Guenther  <rguenther@suse.de>
444
445         PR tree-optimization/49536
446         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
447         For non-scalar inner types use a scalar type according to
448         the scalar inner mode.
449
450 2011-06-27  Richard Guenther  <rguenther@suse.de>
451
452         PR tree-optimization/49365
453         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
454
455 2011-06-27  Richard Guenther  <rguenther@suse.de>
456
457         PR tree-optimization/49169
458         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
459         the alignment of function decls.
460
461 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
462
463         PR target/47997
464         * config/darwin.c (darwin_mergeable_string_section): Place string
465         constants in '.cstring' rather than '.const' when CF/NSStrings are
466         active.
467
468 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
469
470         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
471         (emit_save_register_window): Likewise.
472         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
473         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
474         Swap back %o7/%i7 in register naming.
475
476 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
477
478         PR driver/49371
479         * config/darwin.c (darwin_override_options): Improve warning when
480         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
481         is given with fpie/fPIE.
482         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
483         * config/darwin9.h (PIE_SPEC): New.
484
485 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
486
487         * timevar.c (timevar_print): Increase width for display of timevar
488         name.
489
490 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
491
492         PR c++/46400
493         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
494         instead of TYPE_CHAIN for chain_next for types.
495
496 2011-06-24  Richard Henderson  <rth@redhat.com>
497
498         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
499         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
500         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
501         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
502         (sparc_flat_expand_prologue): Emit individual instructions
503         instead of one of the above.
504
505 2011-06-24  Easwaran Raman  <eraman@google.com>
506
507         PR rtl-optimization/49429
508         PR target/49454
509         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
510         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
511         used to copy y into x.
512         * calls.c (initialize_argument_information): Mark
513         an argument addressable if it is passed by invisible reference.
514         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
515         if it is passed by reference.
516
517 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
518
519         PR rtl-optimization/49504
520         * rtlanal.c (nonzero_bits1): Properly handle addition or
521         subtraction of a pointer in Pmode if pointers extend unsigned.
522         (num_sign_bit_copies1): Likewise.
523
524 2011-06-24  Martin Jambor  <mjambor@suse.cz>
525
526         PR tree-optimizations/49516
527         * tree-sra.c (sra_modify_assign): Choose the safe path for
528         aggregate copies if we also did scalar replacements.
529
530 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
531
532         PR target/49335
533         * config/arm/predicates.md (add_operator): New.
534         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
535         in Thumb2.
536
537 2011-06-24  Andi Kleen  <ak@linux.intel.com>
538
539         * tree-sra.c (type_internals_preclude_sra_p): Add msg
540         parameter. Split up ifs and report reason in *msg.
541         (reject): Add.
542         (find_var_candiate): Add msg variable.
543         Split up ifs and report reason to reject.
544         (find_param_candidates): Add msg variable.
545         Pass msg to type_internals_preclude_sra_p.
546
547 2011-06-23  Jeff Law  <law@redhat.com>
548
549         PR middle-end/48770
550         * reload.h (reload): Change to return a bool.
551         * ira.c (ira): If requested by reload, run a fast DCE pass after
552         reload has completed.  Fix comment typo.
553         * reload1.c (need_dce): New file scoped static.
554         (reload): Set reload_completed here.  Return whether or not a DCE
555         pass after reload is needed.
556         (delete_dead_insn): Set need_dce as needed.
557
558         PR middle-end/49465
559         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
560         to detect threading through joiner block.  If there was already
561         an edge to the new target, then do not change the PHI nodes.
562
563 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
564
565         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
566         get_pointer_alignment to see if base isn't sufficiently aligned.
567
568 2011-06-23  Jan Hubicka  <jh@suse.cz>
569
570         PR tree-optimize/49373
571         * tree-pass.h (all_late_ipa_passes): Declare.
572         * cgraphunit.c (init_lowered_empty_function): Fix properties.
573         (cgraph_optimize): Execute late passes; remove unreachable funcions
574         after materialization.
575         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
576         LTOing.
577         * passes.c (all_late_ipa_passes): Declare.
578         (dump_passes, register_pass): Handle late ipa passes.
579         (init_optimization_passes): Move ipa_pta to late passes; schedule
580         fixup_cfg at beggining of all_passes.
581         (apply_ipa_transforms): New function.
582         (execute_one_pass): When doing simple ipa pass, apply all transforms.
583
584 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
585
586         * params.c: Include common/common-target.h.  Don't include tm.h.
587         (lang_independent_params): Move from toplev.c.
588         (global_init_params): New.
589         * params.h (global_init_params): Declare.
590         * target.def (default_params): Move to common-target.def.
591         * toplev.c (lang_independent_options): Remove.
592         (lang_independent_params): Move to params.c.
593         (general_init): Use global_init_params.
594         * common/common-target.def (option_default_params): Move from
595         target.def.
596         * common/config/ia64/ia64-common.c: Include params.h.
597         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
598         from ia64.c.
599         * common/config/rs6000/rs6000-common.c: Include params.h.
600         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
601         from rs6000.c.
602         * common/config/sh/sh-common.c: Include params.h.
603         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
604         from sh.c.
605         * common/config/spu/spu-common.c: Include params.h.
606         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
607         from spu.c.
608         * config/ia64/ia64.c (ia64_option_default_params,
609         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
610         * config/rs6000/rs6000.c (rs6000_option_default_params,
611         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
612         * config/sh/sh.c (sh_option_default_params,
613         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
614         * config/spu/spu.c (spu_option_default_params,
615         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
616         * Makefile.in (OBJS): Remove params.o.
617         (OBJS-libcommon-target): Add params.o.
618         (params.o, $(common_out_object_file)): Update dependencies.
619         * doc/tm.texi: Regenerate.
620
621 2011-06-23  Alan Modra  <amodra@gmail.com>
622
623         PR bootstrap/49383
624         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
625         invocation for 2011-06-09 changes.
626
627 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
628
629         PR libgomp/49490
630         * omp-low.c (expand_omp_for_static_nochunk): Only
631         use n ceil/ nthreads size for the first
632         n % nthreads threads in the team instead of
633         all threads except for the last few ones which
634         get less work or none at all.
635
636         PR debug/49496
637         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
638         uses.
639
640 2011-06-22  Richard Guenther  <rguenther@suse.de>
641
642         PR tree-optimization/49493
643         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
644         Refer to the alias target of variables.
645         (associate_varinfo_to_alias_1): Remove.
646         (ipa_pta_execute): Do not associate aliases with anything.
647         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
648         (cgraph_function_node): Likewise.
649         (cgraph_function_or_thunk_node): Likewise.
650         (varpool_variable_node): Likewise.
651
652 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
653
654         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
655         typo.
656         * config.gcc (arm*-*-linux*): Default to gnu tls.
657         (arm*-*-*): Add --with-tls option.
658         (all_defaults): Add 'tls'.
659
660 2011-06-22  Richard Henderson  <rth@redhat.com>
661
662         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
663         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
664         (dwarf2out_frame_debug_cfa_window_save): Rename from
665         dwarf2out_window_save; make static.
666         * tree.h (dwarf2out_window_save): Don't declare.
667
668         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
669         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
670         (emit_save_register_window): Rename from gen_save_register_window;
671         emit the insn and add REG_CFA_* notes.
672         (sparc_expand_prologue): Update to match.
673         * config/sparc/sparc.md (save_register_window_1): Simplify from
674         save_register_window<P:mode>.
675
676 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
677
678         PR target/49497
679         * config/i386/i386.md (*lea_general_2): Always allow SImode.
680         (*lea_general_2_zext): Likewise.
681         (imul to lea peepholes): Use const359_operand and check
682         TARGET_PARTIAL_REG_STALL.
683
684         * config/i386/predicates.md (const359_operand): New.
685
686 2011-06-22  Michael Matz  <matz@suse.de>
687
688         * cgraphunit.c (assemble_thunk): Use correct return type.
689
690 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
691         Dmitry Melnik  <dm@ispras.ru>
692
693         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
694         (neon_output_shift_immediate): Ditto.
695         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
696         prototype.
697         (neon_output_shift_immediate): Ditto.
698         * config/arm/neon.md (vashl<mode>3): Modified constraint.
699         (vashr<mode>3_imm): New insn pattern.
700         (vlshr<mode>3_imm): Ditto.
701         (vashr<mode>3): Modified constraint.
702         (vlshr<mode>3): Ditto.
703         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
704         predicate.
705         (imm_for_neon_rshift_operand): Ditto.
706         (imm_lshift_or_reg_neon): Ditto.
707         (imm_rshift_or_reg_neon): Ditto.
708
709         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
710
711 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
712
713         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
714         builtin calls even if likelyvalue is not CONSTANT.
715         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
716         Return get_value_for_expr of first operand
717         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
718         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
719         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
720         their non-checking counterparts.
721         (call_may_clobber_ref_p_1): Likewise.
722         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
723         like their non-checking counterparts.
724         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
725         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
726         like their non-checking counterparts.
727         (find_func_clobbers): Likewise.
728         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
729         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
730
731         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
732         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
733         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
734         of base type reference as argument.
735         (resolve_addr_in_expr): Likewise.  Fix keep computation.
736         (convert_descriptor_to_signed): Renamed to...
737         (convert_descriptor_to_mode): ... this.  For wider types convert
738         to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
739         untyped.
740         (typed_binop): New function.
741         (scompare_loc_descriptor, ucompare_loc_descriptor,
742         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
743         default to unsigned type instead of signed.
744
745         PR debug/47858
746         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
747         (gimple_build_debug_source_bind_stat): New prototype.
748         (gimple_build_debug_source_bind): Define.
749         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
750         gimple_debug_source_bind_get_value,
751         gimple_debug_source_bind_get_value_ptr,
752         gimple_debug_source_bind_set_var,
753         gimple_debug_source_bind_set_value): New inlines.
754         * gimple.c (gimple_build_debug_source_bind_stat): New function.
755         * gimple-pretty-print.c (dump_gimple_debug): Handle
756         GIMPLE_DEBUG_SOURCE_BIND.
757         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
758         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
759         * tree-parloops.c (eliminate_local_variables,
760         separate_decls_in_region): Likewise.
761         (separate_decls_in_region_debug): Renamed from
762         separate_decls_in_region_debug_bind.  Handle
763         gimple_debug_source_bind_p.
764         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
765         prototypes.
766         (DECL_HAS_DEBUG_ARGS_P): Define.
767         (struct tree_function_decl): Add has_debug_args_flag field.
768         * tree.c (debug_args_for_decl): New variable.
769         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
770         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
771         (rewrite_debug_stmt_uses): New function.
772         (rewrite_stmt): Use it to rewrite debug stmt uses.
773         * rtl.def (DEBUG_PARAMETER_REF): New.
774         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
775         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
776         DEBUG_PARAMETER_REF.
777         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
778         * print-rtl.c (print_rtx): Likewise.
779         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
780         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
781         debug stmts in the first bb.
782         * tree-inline.c (remap_ssa_name): If remapping default def
783         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
784         a source bind debug stmt.
785         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
786         (maybe_move_debug_stmts_to_successors): Likewise.
787         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
788         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
789         debug args vector from old_decl to new_decl.
790         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
791         or modified parameters, add debug bind stmts before call
792         setting DEBUG_EXPR_DECL which is remembered in debug args
793         vector.
794         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
795         on DECL_DEBUG_EXPRs from debug args vector.
796         (expand_debug_source_expr): New function.
797         (expand_debug_locations): Use it for source bind insns.
798         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
799         * var-tracking.c (prepare_call_arguments): Add debug args
800         to call_arguments if any.
801         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
802         output_loc_operands, output_loc_operands_raw,
803         resolve_addr_in_expr, compare_loc_operands): Handle
804         DW_OP_GNU_parameter_ref.
805         (get_ref_die_offset, parameter_ref_descriptor): New functions.
806         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
807         (gen_subprogram_die): Handle parameters identified by
808         DEBUG_PARAMETER_REF.
809
810 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
811
812         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
813         * doc/install.texi (Configuration): Document --with-tls.
814         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
815         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
816         (arm_tls_descseq_addr): New.
817         (legitimize_tls_address): Add tlsdesc support.
818         (arm_cannot_copy_insn_p): Check for tlscall.
819         (arm_emit_tls_decoration): Likewise.
820         * config/arm/arm.h (TARGET_GNU2_TLS): New.
821         (OPTION_DEFAULT_SPECS): Add with-tls support.
822         * config/arm/arm.md (R1_REGNUM): Define.
823         (tlscall): New.
824         * config/arm/arm.opt (tls_type): New enumeration type and values.
825         (mtls-dialect): New switch.
826         * config/arm/arm-opts.h (enum tls_type): New.
827
828 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
829
830         * attribs.c (register_attribute): Added assert to check that all
831         attribute specs are registered with a name that is not empty and
832         does not start with '_'.
833         (decl_attributes): Avoid the lookup of the "naked" attribute spec
834         if the function has no attributes.
835         * tree.c (is_attribute_with_length_p): Removed.
836         (is_attribute_p): Removed.
837         (private_is_attribute_p): New.  
838         (private_lookup_attribute): New.
839         (lookup_attribute): Removed.
840         (lookup_ident_attribute): New.
841         (remove_attribute): Require the first argument to be in the form
842         'text', not '__text__'.  Updated asserts.
843         (merge_attributes): Use lookup_ident_attributes instead of
844         lookup_attribute.
845         (merge_dllimport_decl_attributes): Use remove_attribute.
846         (attribute_list_contained): Likewise.
847         (attribute_list_equal): Immediately return 1 if the arguments are
848         identical pointers.
849         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
850         'int'.  Require the first argument to be in the form 'text', not
851         '__text__'.  Require the second argument to be an identifier.
852         (lookup_attribute): Made inline.  Require the first argument to be
853         in the form 'text', not '__text__'.
854         (private_is_attribute_p, private_lookup_attribute): New.
855         Updated comments.
856         
857 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
858
859         * builtins.c: Add sync_ or SYNC__ to builtin names.
860         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
861         * omp-low.c: Add sync_ or SYNC__ to builtin names.
862
863 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
864
865         PR target/33049
866         * config/avr/avr.md (extzv): New expander.
867         (*extzv): New insn.
868         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
869         * config/avr/constraints.md (C04): New constraint.
870         * doc/md.texi (Machine Constraints): Document it.
871
872 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
873
874         PR middle-end/49489
875         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
876         unsignedp argument instead of 1 for clrsb_optab.
877         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
878         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
879         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
880         * optabs.c (widen_leading): Call widen_operand and expand_unop
881         with 0 as unsignedp argument instead of 1 for clrsb_optab.
882         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
883
884 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
885
886         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
887
888 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
889
890         * gensupport.c (add_define_attr): New static function.
891         (is_predicable): Allow multi-alternative lists for the "predicable"
892         attribute.
893         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
894         (process_one_cond_exec): Call alter_attrs_for_insn.
895         * doc/md.texi (Defining Attributes): Mention some standard names.
896         (Conditional Execution): Update documentation for "predicable".
897
898         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
899         __builtin_clrsbll): Document.
900         * doc/rtl.texi (clrsb): New entry.
901         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
902         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
903         (expand_unop): Handle clrsb_optab.
904         (init_optabs): Initialize it.
905         * optabs.h (enum optab_index): New entry OTI_clrsb.
906         (clrsb_optab): Define.
907         * genopinit.c (optabs): Add an entry for it.
908         * builtins.c (expand_builtin): Handle clrsb builtin functions.
909         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
910         BUILT_IN_CLRSBLL): New.
911         * rtl.def (CLRSB): New code.
912         * dwarf2out.c (mem_loc_descriptor): Handle it.
913         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
914         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
915         and popcount.
916         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
917         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
918         (__ctzDI2): Move declaration.
919         * config/bfin/bfin.md (clrsbsi2): New expander.
920         (signbitssi2): Use the CLRSB rtx.
921         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
922         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
923
924 2011-06-21  Richard Guenther  <rguenther@suse.de>
925
926         * ipa-inline-transform.c (inline_transform): Fix previous change.
927
928 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
929
930         PR tree-optimization/49478
931         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
932         with constant operand.
933
934 2011-06-21  Richard Guenther  <rguenther@suse.de>
935
936         * ipa-inline-transform.c (inline_transform): Fix typo.
937
938 2011-06-21  Richard Guenther  <rguenther@suse.de>
939
940         PR tree-optimization/49483
941         * tree-vect-stmts.c (vectorizable_assignment): Also handle
942         VIEW_CONVERT_EXPR conversions.
943
944 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
945
946         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
947         * config/avr/avr-tables.opt: New file (generated).
948         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
949         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
950         avr-mcus.def.
951         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
952         (avr_option_override): Don't process -mmcu= argument here.  Set
953         avr_current_device using avr_mcu_index.
954         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
955         * config/avr/avr.opt (mmcu=): Use Enum.
956         * config/avr/t-avr (avr-devices.o): Update dependencies.
957         ($(srcdir)/config/avr/avr-tables.opt): New.
958         * target.def (help): Remove.
959         * doc/tm.texi.in (TARGET_HELP): Remove.
960         * doc/tm.texi: Regenerate.
961         * opts.c: Don't include target.h.
962         (common_handle_option): Don't call targetm.help.
963         * system.h (TARGET_HELP): Poison.
964         * Makefile.in (opts.o): Update dependencies.
965
966 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
967
968         * config/usegld.h: New file.
969         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
970         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
971         (LIB_SPEC): Likewise.  Search /lib.
972         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
973         (RDYNAMIC_SPEC): Handle GNU ld.
974         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
975         Define.
976         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
977         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
978         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
979         (STACK_CHECK_STATIC_BUILTIN): Define.
980         * config/sol2.opt (compat-bsd): Remove.
981         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
982         * config/sol2-bi.h: New file.
983         * config/sol2-gld.h: Remove.
984         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
985         (NO_DBX_BNSYM_ENSYM): Remove.
986         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
987         (STACK_CHECK_STATIC_BUILTIN): Remove.
988         Test USE_GLD instead of TARGET_GNU_LD.
989         * config/i386/sol2-10.h: Rename to ...
990         * config/i386/sol2-bi.h .. this.
991         (SUBTARGET_EXTRA_SPECS): Redefine.
992         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
993         (MULTILIB_DEFAULTS): Remove.
994         (DEFAULT_ARCH32_P): Define.
995         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
996         (ARCH64_SUBDIR): Define.
997         Test USE_GLD instead of TARGET_GNU_LD.
998         (I386_EMULATION): Rename to ...
999         (ARCH32_EMULATION): ... this.
1000         (X86_64_EMULATION): Rename to ...
1001         (ARCH64_EMULATION): ... this.
1002         (TARGET_LD_EMULATION): Remove.
1003         (LINK_ARCH_SPEC): Remove.
1004         * config/i386/sol2-gas.h: Remove.
1005         * config/i386/t-sol2-10: Rename to ...
1006         * config/i386/t-sol2-64: ... this.
1007         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1008         (AS_SPARC64_FLAG): Define.
1009         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1010         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1011         depending on TARGET_CPU_DEFAULT.
1012         (CPP_CPU_SPEC): Redefine.
1013         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1014         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1015         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1016         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1017         ASM_ARCH_DEFAULT_SPEC): Redefine.
1018         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1019         LINK_ARCH_DEFAULT_SPEC.
1020         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1021         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1022         (ARCH64_SUBDIR): Define.
1023         (LINK_ARCH64_SPEC): Redefine.
1024         (CC1_SPEC): Redefine.
1025         (OPTION_DEFAULT_SPECS): Redefine.
1026         (MULTILIB_DEFAULTS): Define.
1027         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1028         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1029         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1030         (NO_DBX_BNSYM_ENSYM): Remove.
1031         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1032         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1033         (TARGET_ASM_NAMED_SECTION): Likewise.
1034         (STACK_CHECK_STATIC_BUILTIN): Remove.
1035         * config/sparc/sol2-bi.h: Remove.
1036         * config/sparc/sol2-gas-bi.h: Remove.
1037         * config/sparc/sol2-gas.h: Remove.
1038         * config/sparc/sol2-gld-bi.h: Remove.
1039         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1040         common parts ...
1041         (*-*-solaris2*): ... here.
1042
1043 2011-06-21  Christian Bruel  <christian.bruel@st.com>
1044
1045         PR other/43564
1046         * ipa-inline.c (can_inline_edge_p): Check
1047         !DECL_DISREGARD_INLINE_LIMITS.
1048
1049 2011-06-21  Christian Bruel  <christian.bruel@st.com>
1050
1051         PR middle-end/49139
1052         * cgraphunit.c (process_function_and_variable_attributes): warn when
1053         always_inline functions that are not inline.
1054         * ipa-inline-transform.c (inline_transform): Always call
1055         optimize_inline.
1056         * tree-inline.c (tree_inlinable_function_p): Use error instead
1057         of sorry.
1058         (expand_call_inline): Likewise.
1059
1060 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
1061
1062         * Makefile.in (dg_target_exps): Set.
1063         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1064         instead of 7, try to divide it more evenly.
1065
1066 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
1067
1068         PR target/49089
1069         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1070         (avx256_split_unaligned_store): New definition.
1071         (ix86_option_override_internal): Enable avx256 unaligned load/store
1072         splitting only when avx256_split_unaligned_load/store is set.
1073
1074 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
1075
1076         * regrename.c (scan_rtx_reg): Handle the case where we write to an
1077         open chain in a smaller mode without failing the entire block.
1078
1079 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1080
1081         PR middle-end/47725
1082         * combine.c (cant_combine_insn_p): Don't check zero/sign
1083         extended hard registers.
1084
1085 2011-06-21  Alan Modra  <amodra@gmail.com>
1086
1087         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1088         CONST high part large-toc address.
1089         (rs6000_tls_referenced_p): Make static.
1090         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1091
1092 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1093
1094         PR middle-end/47725
1095         * combine.c (cant_combine_insn_p): Check zero/sign extended
1096         hard registers.
1097
1098 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1099
1100         PR target/49385
1101         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1102         one of the operands is a register.
1103
1104 2011-06-20  Kai Tietz  <ktietz@redhat.com>
1105
1106         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1107         operations in combination with binary and.
1108
1109 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
1110
1111         * regrename.c (do_replace): Don't update notes.
1112
1113 2011-06-20  Alan Modra  <amodra@gmail.com>
1114
1115         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1116         of toc-relative address in CONST.
1117         (rs6000_delegitimize_address): Recognize changed address.
1118         (rs6000_legitimize_reload_address): Likewise.
1119         (rs6000_emit_move): Don't force these constants to memory.
1120         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1121         toc-relative address in CONST.
1122         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1123         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1124
1125 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1126
1127         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
1128         (count_trailing_zeros): Likewise.
1129
1130 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
1131
1132         PR other/49325
1133         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1134         .init_array can be used with .ctors on targets.
1135         * configure: Regenerated.
1136
1137 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
1138
1139         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1140         if the element type is volatile.
1141
1142 2011-06-18  Jan Hubicka  <jh@suse.cz>
1143
1144         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1145         extra name aliases.
1146         (lto_symtab_resolve_can_prevail_p): Likewise.
1147         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1148         * cgraphbuild.c (record_reference): Remove extra body alias code.
1149         (mark_load): Likewise.
1150         (mark_store): Likewise.
1151         * cgraph.h (varpool_node): Remove extra_name filed;
1152         add alias_of and extraname_alias.
1153         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1154         (varpool_alias_aliased_node): New inline function.
1155         (varpool_variable_node): New function.
1156         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1157         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1158         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1159         (input_varpool_node): Likewise.
1160         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1161         (varpool_externally_visible_p): Remove extra body alias code.
1162         (function_and_variable_visibility): Likewise.
1163         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1164         (ipa_pta_execute): Use it.
1165         * varpool.c (varpool_remove_node): Remove extra name alias code.
1166         (varpool_mark_needed_node): Likewise.
1167         (varpool_analyze_pending_decls): Analyze aliases.
1168         (assemble_aliases): New functoin.
1169         (varpool_assemble_decl): Use it.
1170         (varpool_create_variable_alias): New function.
1171         (varpool_extra_name_alias): Rewrite.
1172         (varpool_for_node_and_aliases): New function.
1173
1174 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
1175
1176         PR target/49411
1177         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1178         last_arg_constant and last argument doesn't match its predicate,
1179         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1180         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1181         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1182         spelling of error message.
1183         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1184         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1185         const_0_to_255_operand instead of const_int_operand.
1186
1187         Revert:
1188         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1189
1190         * config/i386/sse.md (blendbits): Remove mode attribute.
1191         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1192         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1193         Check integer value of operand 3 in insn constraint.
1194
1195 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
1196
1197         PR rtl-optimization/48542
1198         * reload.c (find_equiv_reg): Stop looking when finding a
1199         setjmp-type call.
1200         * reload1.c (reload_as_needed): Invalidate all reload
1201         registers when crossing a setjmp-type call.
1202
1203 2011-06-16  Jeff Law  <law@redhat.com>
1204
1205         * tree-ssa-threadupdate.c (struct redirection_data): New field
1206         intermediate_edge.
1207         (THREAD_TARGET2): Define.
1208         (redirection_data_eq): Also check that the intermediate edge is equal.
1209         (lookup_redirection_data): Drop useless argument.  Extract the
1210         outgoing_edge and intermediate edge from E.  Callers updated.
1211         (copy_phi_args, update_destination_phis): New functions.
1212         (fix_duplicate_block_edges): Likewise.
1213         (create_edge_and_update_destination_phis): Duplicate all the edges
1214         hung off e->aux.  Use copy_phi_args.
1215         (create_duplicates): Use fix_duplicate_block_edges.
1216         (fixup_template_block): Likewise.
1217         (redirect_edges): If necessary, redirect the joiner block's incoming
1218         edge to the duplicate of the joiner block.
1219         (thread_block): Don't muck up loops when threading through a joiner
1220         block.
1221         (thread_through_loop_header): Handle threading through a joiner block.
1222         (mark_threaded_blocks, register_jump_thread): Likewise.
1223         * tree-flow.h (register_jump_thread): Add new argument.  Callers
1224         updated.
1225         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1226         (thread_across_edge): Handle threading through a joiner block.
1227
1228 2011-06-16  Martin Jambor  <mjambor@suse.cz>
1229
1230         PR tree-optimization/49343
1231         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1232         calculate offset, provide 2nd operand for the new COMPONENT_REF.
1233
1234 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
1235
1236         * config/darwin-protos.h (machopic_select_rtx_section): Move to
1237         inside RTX_CODE ifdef.
1238
1239 2011-06-16  Tom de Vries  <tom@codesourcery.com>
1240
1241         PR target/45098
1242         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1243         Disallow NULL pointer for pointer arithmetic.
1244
1245 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1246
1247         PR target/49398
1248         Revert.
1249         2011-06-10  Wei Guozhi  <carrot@google.com>
1250
1251         PR target/45335
1252         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1253         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1254         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1255         related peephole2.
1256         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1257         related peephole2.
1258         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1259         (arm_legitimate_ldrd_p): New prototype.
1260         (arm_output_ldrd): New prototype.
1261         * config/arm/arm.c (arm_check_ldrd_operands): New function.
1262         (arm_legitimate_ldrd_p): New function.
1263         (arm_output_ldrd): New function.
1264
1265 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
1266
1267         PR middle-end/46500
1268         * doc/tm.texi.in: Update Copyright date.
1269         * doc/tm.texi: Regenerate.
1270         * targhooks.c (default_setup_incoming_varargs): Replace
1271         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1272         (default_pretend_outgoing_varargs_named): Likewise.
1273         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1274         (hook_callee_copies_named): Likewise.
1275         (default_function_arg_advance): Likewise.
1276         (default_function_arg): Likewise.
1277         (default_function_incoming_arg): Likewise.
1278         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1279         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1280         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1281         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1282         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1283         * targhooks.h (default_setup_incoming_varargs): Likewise.
1284         (default_pretend_outgoing_varargs_named): Likewise.
1285         (hook_pass_by_reference_must_pass_in_stack): Likewise.
1286         (hook_callee_copies_named): Likewise.
1287         (default_function_arg_advance): Likewise.
1288         (default_function_arg): Likewise.
1289         (default_function_incoming_arg): Likewise.
1290         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1291         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1292         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1293         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1294         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1295         * target.def (pass_by_reference): Likewise.
1296         (setup_incoming_varargs, strict_argument_naming): Likewise.
1297         (pretend_outgoing_varargs_named, callee_copies): Likewise.
1298         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1299         (function_incoming_arg): Likewise.
1300         * target.h: Don't include "tm.h" .
1301         (cumulative_args_t): New typedef.
1302         [GCC_TM_H] (get_cumulative_args): New static inline function.
1303         [GCC_TM_H] (pack_cumulative_args): Likewise.
1304         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1305         argument type with cumulative_args_t.
1306         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1307         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1308         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1309         (frv_arg_partial_bytes, frv_function_arg): Likewise.
1310         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1311         (frv_function_arg_1): Likewise.
1312         * config/s390/s390.c (s390_pass_by_reference): Likewise.
1313         (s390_function_arg_advance, s390_function_arg): Likewise.
1314         * config/m32c/m32c.c (m32c_function_arg): Likewise.
1315         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1316         (m32c_strict_argument_naming): Likewise.
1317         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1318         (spu_function_arg_advance): Likewise.
1319         (spu_setup_incoming_varargs): Likewise.  Make static.
1320         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1321         Remove prototype.
1322         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1323         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1324         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1325         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1326         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1327         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1328         (mep_pass_by_reference, mep_function_arg): Likewise.
1329         (mep_function_arg_advance): Likewise.
1330         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1331         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1332         (m32r_function_arg, m32r_function_arg_advance): Likewise.
1333         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1334         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1335         (ix86_function_arg, ix86_pass_by_reference): Likewise.
1336         (ix86_setup_incoming_varargs): Likewise.
1337         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1338         (sh_strict_argument_naming): Likewise.
1339         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1340         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1341         (sh_function_arg_advance, sh_function_arg): Likewise.
1342         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1343         (pdp11_function_arg_advance): Likewise.
1344         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1345         Likewise.
1346         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1347         * config/avr/avr.c (avr_function_arg): Likewise.
1348         (avr_function_arg_advance): Likewise.
1349         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1350         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1351         (xtensa_function_arg_1): Likewise.
1352         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1353         Likewise.
1354         (xstormy16_function_arg): Likewise.
1355         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1356         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1357         (fr30_function_arg_advance): Likewise.
1358         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1359         (lm32_function_arg, lm32_function_arg_advance): Likewise.
1360         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1361         (moxie_function_arg, moxie_function_arg_advance): Likewise.
1362         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1363         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1364         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1365         (cris_function_arg, cris_function_incoming_arg): Likewise.
1366         (cris_function_arg_advance, cris_function_arg_1): Likewise.
1367         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1368         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1369         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1370         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1371         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1372         (mn10300_arg_partial_bytes): Likewise.
1373         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1374         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1375         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1376         (ia64_function_arg_1): Likewise.
1377         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1378         (m68k_function_arg): Likewise.
1379         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1380         (rs6000_function_arg, setup_incoming_varargs): Likewise.
1381         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1382         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1383         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1384         (picochip_arg_advance): Likewise.
1385         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1386         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1387         (mcore_function_arg_advance): Likewise.
1388         * config/score/score.c (score_pass_by_reference): Likewise.
1389         (score_function_arg_advance): Likewise.
1390         (score_arg_partial_bytes): Likewise.  Make static.
1391         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1392         * config/arm/arm.c (arm_arg_partial_bytes): Replace
1393         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1394         (arm_function_arg, arm_function_arg_advance): Likewise.
1395         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1396         * config/pa/pa.c (pa_pass_by_reference): Likewise.
1397         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1398         (pa_function_arg): Likewise.
1399         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1400         (mips_function_arg, mips_function_arg_advance): Likewise.
1401         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1402         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1403         * config/vax/vax.c (vax_function_arg): Likewise.
1404         (vax_function_arg_advance): Likewise.
1405         * config/h8300/h8300.c (h8300_function_arg): Likewise.
1406         (h8300_function_arg_advance): Likewise.
1407         * config/v850/v850.c (v850_pass_by_reference): Likewise.
1408         (v850_strict_argument_naming, v850_function_arg): Likewise.
1409         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1410         (v850_setup_incoming_varargs): Likewise.
1411         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1412         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1413         (mmix_function_arg, mmix_pass_by_reference): Likewise.
1414         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1415         with const void *.
1416         * config/bfin/bfin.c (setup_incoming_varargs): Replace
1417         CUMULATIVE_ARGS* argument type with cumulative_args_t.
1418         (bfin_function_arg_advance, bfin_function_arg): Likewise.
1419         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1420         * calls.c (emit_call_1): Change type of args_so_far to
1421         cumulative_args_t.  Changed all callers.
1422         (initialize_argument_information): Likewise.
1423         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1424         * dse.c (get_call_args): Likewise.
1425         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1426         * function.c (pass_by_reference, reference_callee_copied): Likewise.
1427         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1428         New member args_so_far_v.  Changed all users.
1429         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1430         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1431         * config/mips/mips.c (mips_output_args_xfer): Likewise.
1432         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1433         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1434         * config/microblaze/microblaze.c (microblaze_expand_prologue):
1435         Likewise.
1436         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1437         m32r_pass_by_reference.
1438
1439 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
1440
1441         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1442         argument to be a VEC of statements.
1443         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1444         assert that pattern statements have to have their vector type set.
1445         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1446         Change the first argument to be a VEC of statements.  Update
1447         documentation.
1448         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1449         (vect_handle_widen_mult_by_const): New function.
1450         (vect_recog_widen_mult_pattern):  Change the first argument to be a
1451         VEC of statements.  Update documentation.  Check that the constant is
1452         INTEGER_CST.  Support multiplication by a constant that fits an
1453         intermediate type - call vect_handle_widen_mult_by_const.
1454         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1455         call.  Handle additional pattern statements if necessary.
1456
1457 2011-06-16  Nick Clifton  <nickc@redhat.com>
1458
1459         PR target/49427
1460         * config.gcc: Set cpu_type to v850 for any V850 architecture.
1461         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1462         md_file, extra_modes, out_file and extra_options are these are all
1463         deduced from cpu_type.
1464
1465 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1466
1467         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1468         truncation mask to 63.
1469
1470 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
1471
1472         PR target/49313
1473         PR target/29524
1474         * longlong.h: Add AVR support:
1475         (count_leading_zeros): New macro.
1476         (count_trailing_zeros): New macro.
1477         (COUNT_LEADING_ZEROS_0): New macro.
1478         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1479         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1480         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1481         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1482         (LIB2FUNCS_EXCLUDE): Add _clz.
1483         * config/avr/libgcc.S (XCALL): Move up in file.
1484         (XJMP): New C Macro.
1485         (DEFUN): New asm macro.
1486         (ENDF): New asm macro.
1487         (__ffssi2): New function.
1488         (__ffshi2): New function.
1489         (__loop_ffsqi2): New function.
1490         (__ctzsi2): New function.
1491         (__ctzhi2): New function.
1492         (__clzdi2): New function.
1493         (__clzsi2): New function.
1494         (__clzhi2): New function.
1495         (__paritydi2): New function.
1496         (__paritysi2): New function.
1497         (__parityhi2): New function.
1498         (__parityqi2): New function.
1499         (__popcounthi2): New function.
1500         (__popcountsi2): New function.
1501         (__popcountdi2): New function.
1502         (__popcountqi2): New function.
1503         (__bswapsi2): New function.
1504         (__bswapdi2): New function.
1505         (__ashldi3): New function.
1506         (__ashrdi3): New function.
1507         (__lshrdi3): New function.
1508         Fix suspicous lines.
1509
1510 2011-06-16  Richard Guenther  <rguenther@suse.de>
1511
1512         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1513         the same as x != 0.
1514         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1515         to (bool) X & 1.
1516         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1517         equality compares against zero for the lower bit.
1518
1519 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
1520
1521         PR tree-optimization/49419
1522         * tree-vrp.c (execute_vrp): Call init_range_assertions
1523         before estimate_numbers_of_iterations, call
1524         free_number_of_iterations_estimates before calling
1525         remove_range_assertions.
1526
1527 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1528
1529         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1530         (struct partial_schedule): Add rows_length field.
1531         (verify_partial_schedule): Check rows_length.
1532         (ps_insert_empty_row): Handle rows_length.
1533         (create_partial_schedule): Likewise.
1534         (free_partial_schedule): Likewise.
1535         (reset_partial_schedule): Likewise.
1536         (create_ps_insn): Remove rest_count argument.
1537         (remove_node_from_ps): Update rows_length.
1538         (add_node_to_ps): Update rows_length and call create_ps_insn
1539         without passing row_rest_count.
1540         (rotate_partial_schedule): Update rows_length.
1541
1542 2011-06-16  Revital Eres  <revital.eres@linaro.org>
1543
1544         * ddg.c (add_intra_loop_mem_dep): New function.
1545         (build_intra_loop_deps): Call it.
1546
1547 2011-06-13  Jeff Law  <law@redhat.com>
1548
1549         * df-problems.c (df_lr_local_compute): Manually CSE
1550         PIC_OFFSET_TABLE_REGNUM.
1551         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1552         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1553
1554 2011-06-13  Jan Hubicka  <jh@suse.cz>
1555
1556         * cgraphunit.c (handle_alias_pairs): New function.
1557         (cgraph_finalize_compilation_unit): Use it.
1558         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1559         as externally visible.
1560
1561 2011-06-15  Richard Guenther  <rguenther@suse.de>
1562
1563         * expr.c (expand_expr_real_2): Reduce all integral types to
1564         bitfield precision.
1565         (expand_expr_real_1): Likewise.
1566
1567 2011-06-15  Martin Jambor  <mjambor@suse.cz>
1568
1569         PR tree-optimization/48613
1570         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1571         ipa_node_params_vector is NULL.
1572
1573 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
1574
1575         PR debug/49382
1576         * dwarf2out.c (dw_loc_list_node): Add force field.
1577         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1578         location in the list, even if it is modified before first real insn.
1579         (output_loc_list): Emit empty ranges with force flag set.
1580         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1581
1582 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
1583
1584         PR target/49349
1585         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1586         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
1587         above a fence.  Update comments.
1588         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1589         placed just above it.  Do not allow NULL place_to_insert.
1590
1591 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
1592
1593         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1594         (slpeel_tree_peel_loop_to_edge): Don't call
1595         remove_dead_stmts_from_loop.
1596         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1597         remove irrelevant pattern statements.  For irrelevant statements
1598         check if it is the last statement of a detected pattern, use
1599         corresponding pattern statement instead.
1600         (destroy_loop_vec_info): No need to remove pattern statements,
1601         only free stmt_vec_info.
1602         (vect_transform_loop): For irrelevant statements check if it is
1603         the last statement of a detected pattern, use corresponding
1604         pattern statement instead.
1605         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1606         pattern statements.  Set basic block for the new statement.
1607         (vect_pattern_recog): Update documentation.
1608         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1609         operands of pattern statements.
1610         (vectorizable_call): Fix printing.  In case of a pattern statement
1611         use the lhs of the original statement when creating a dummy
1612         statement to replace the original call.
1613         (vect_analyze_stmt): For irrelevant statements check if it is
1614         the last statement of a detected pattern, use corresponding
1615         pattern statement instead.
1616         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1617         statements use gsi of the original statement.
1618
1619 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1620
1621         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1622         common/common-target-def.h.
1623         * target.def (default_target_flags, handle_option,
1624         supports_split_stack, optimization_table, init_struct,
1625         except_unwind_info, unwind_tables_default, have_named_sections):
1626         Move to common/common-target.def.
1627         * target.h (enum opt_levels, struct default_options): Move to
1628         common/common-target.h.
1629         * targhooks.c (default_except_unwind_info,
1630         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1631         default_target_handle_option, empty_optimization_table): Move to
1632         common/common-targhooks.c.
1633         * targhooks.h (default_except_unwind_info,
1634         dwarf2_except_unwind_info, sjlj_except_unwind_info,
1635         default_target_handle_option, empty_optimization_table): Move to
1636         common/common-targhooks.h.
1637         * common/common-target-def.h: Include common/common-targhooks.h.
1638         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1639         defined.
1640         * common/common-target.def (handle_option, option_init_struct,
1641         option_optimization_table, default_target_flags,
1642         except_unwind_info, supports_split_stack, unwind_tables_default,
1643         have_named_sections): Move from target.def.
1644         (HOOK_PREFIX): Undefine at end of file.
1645         * common/common-target.h: Include input.h.
1646         (enum opt_levels, struct default_options): Move from target.h.
1647         * common/common-targhooks.c, common/common-targhooks.h: New.
1648         * config.gcc (target_has_targetm_common): Default to yes.
1649         (moxie*): Set target_has_targetm_common=no.
1650         (hppa*-*-*): Don't set target_has_targetm_common=yes.
1651         * doc/tm.texi: Regenerate.
1652         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1653         (C_TARGET_DEF_H): Add common/common-targhooks.h.
1654         (GCC_OBJS): Remove vec.o.
1655         (OBJS): Remove hooks.o and vec.o.
1656         (OBJS-libcommon-target): Add vec.o, hooks.o and
1657         common/common-targhooks.o.
1658         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1659         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1660         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1661         cfglayout.o, $(out_object_file), $(common_out_object_file)):
1662         Update dependencies.
1663         (common/common-targhooks.o): New.
1664         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
1665         * common/config/pa/pa-common.c: Include more headers.  Take
1666         copyright dates from pa.c.
1667         (pa_option_optimization_table, pa_handle_option,
1668         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1669         TARGET_HANDLE_OPTION): Move from pa.c.
1670         * common/config/alpha/alpha-common.c,
1671         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1672         common/config/bfin/bfin-common.c,
1673         common/config/cris/cris-common.c,
1674         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1675         common/config/h8300/h8300-common.c,
1676         common/config/i386/i386-common.c,
1677         common/config/ia64/ia64-common.c,
1678         common/config/iq2000/iq2000-common.c,
1679         common/config/lm32/lm32-common.c,
1680         common/config/m32c/m32c-common.c,
1681         common/config/m32r/m32r-common.c,
1682         common/config/m68k/m68k-common.c,
1683         common/config/mcore/mcore-common.c,
1684         common/config/mep/mep-common.c,
1685         common/config/microblaze/microblaze-common.c,
1686         common/config/mips/mips-common.c,
1687         common/config/mmix/mmix-common.c,
1688         common/config/mn10300/mn10300-common.c,
1689         common/config/pdp11/pdp11-common.c,
1690         common/config/picochip/picochip-common.c,
1691         common/config/rs6000/rs6000-common.c,
1692         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1693         common/config/score/score-common.c, common/config/sh/sh-common.c,
1694         common/config/sparc/sparc-common.c,
1695         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1696         common/config/vax/vax-common.c,
1697         common/config/xstormy16/xstormy16-common.c,
1698         common/config/xtensa/xtensa-common.c: New.
1699         * config/alpha/alpha.c: Include common/common-target.h.
1700         (alpha_option_optimization_table, alpha_handle_option,
1701         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1702         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1703         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1704         * config/arm/arm.c (arm_option_optimization_table,
1705         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1706         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1707         arm-common.c.
1708         * config/avr/avr.c (avr_option_optimization_table,
1709         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1710         to avr-common.c.
1711         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1712         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1713         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1714         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1715         * config/cris/cris.c (cris_option_optimization_table,
1716         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1717         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1718         cris-common.c.
1719         * config/fr30/fr30.c (fr30_option_optimization_table,
1720         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1721         to fr30-common.c.
1722         * config/frv/frv.c (frv_option_optimization_table,
1723         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1724         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1725         * config/h8300/h8300.c (h8300_option_optimization_table,
1726         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1727         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1728         * config/i386/i386-protos.h (ix86_handle_option): Declare.
1729         * config/i386/i386.c: Include common/common-target.h.
1730         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1731         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1732         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1733         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1734         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1735         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1736         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1737         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1738         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1739         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1740         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1741         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1742         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1743         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1744         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1745         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1746         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1747         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1748         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1749         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1750         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1751         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1752         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1753         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1754         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1755         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1756         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1757         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1758         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1759         ix86_option_optimization_table, ix86_option_init_struct,
1760         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1761         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1762         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1763         i386-common.c.
1764         * config/i386/t-i386 (i386.o): Update dependencies.
1765         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1766         * config/ia64/ia64.c (ia64_option_optimization_table,
1767         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1768         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1769         ia64_handle_option): Move to ia64-common.c.
1770         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1771         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1772         * config/lm32/lm32.c (lm32_option_optimization_table,
1773         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1774         to lm32-common.c.
1775         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1776         m32c-common.c.
1777         * config/m32r/m32r.c (m32r_option_optimization_table,
1778         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1779         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1780         m32r_handle_option): Move to m32r-common.c.
1781         (m32r_memory_move_cost): Remove comment referring to
1782         TARGET_HANDLE_OPTION.
1783         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1784         Move to m68k-common.c.
1785         * config/mcore/mcore.c (mcore_option_optimization_table,
1786         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1787         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1788         * config/mep/mep.c (mep_option_optimization_table,
1789         mep_handle_option, TARGET_HANDLE_OPTION,
1790         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1791         Move to mep-common.c.
1792         * config/microblaze/microblaze.c
1793         (microblaze_option_optimization_table,
1794         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1795         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1796         * config/mips/mips.c (mips_handle_option,
1797         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1798         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1799         mips-common.c.
1800         * config/mmix/mmix.c (mmix_option_optimization_table,
1801         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1802         Move to mmix-common.c.
1803         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1804         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1805         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1806         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1807         * config/pa/pa.c: Include common/common-target.h.
1808         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1809         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1810         pa_handle_option): Move to pa-common.c.
1811         (pa_option_override): Use targetm_common.except_unwind_info.
1812         (pa_asm_output_mi_thunk, pa_function_section): Use
1813         targetm_common.have_named_sections.
1814         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1815         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1816         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1817         pdp11_handle_option, pdp11_option_init_struct): Move to
1818         pdp11-common.c.
1819         * config/picochip/picochip.c (picochip_option_optimization_table,
1820         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1821         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1822         * config/rs6000/rs6000.c: Include common/common-target.h.
1823         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1824         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1825         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1826         rs6000_handle_option): Move to rs6000-common.c.
1827         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1828         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1829         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1830         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1831         * config/s390/s390.c (processor_flags_table,
1832         s390_option_optimization_table, s390_option_init_struct,
1833         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1834         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1835         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1836         * config/s390/s390.h (processor_flags_table): Declare.
1837         * config/score/score.c (score_option_optimization_table,
1838         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1839         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1840         score_handle_option): Move to score-common.c.
1841         * config/sh/sh.c (sh_option_optimization_table,
1842         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1843         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1844         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1845         * config/sparc/sparc.c: Include common/common-target.h.
1846         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1847         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1848         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1849         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1850         spu_option_init_struct): Move to spu-common.c.
1851         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1852         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1853         * config/v850/v850.c (small_memory_physical_max,
1854         v850_handle_memory_optionn v850_handle_option,
1855         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1856         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1857         v850-common.c.
1858         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1859         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1860         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1861         Move to xtensa-common.c.
1862         * cfglayout.c: Include common/common-target.h.
1863         (fixup_reorder_chain): Use targetm_common.have_named_sections.
1864         * cfgrtl.c: Include common/common-target.h.
1865         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1866         targetm_common.have_named_sections.
1867         * dbxout.c: Include common/common-target.h.
1868         (dbxout_function_end): Use targetm_common.have_named_sections.
1869         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1870         targetm_common.except_unwind_info.
1871         * dwarf2out.c: Include common/common-target.h.
1872         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1873         dwarf2out_begin_prologue, dwarf2out_frame_init,
1874         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1875         targetm_common.except_unwind_info.
1876         * except.c: Include common/common-target.h.
1877         (init_eh, finish_eh_generation,
1878         output_one_function_exception_table): Use
1879         targetm_common.except_unwind_info.
1880         (switch_to_exception_section): Use targetm_common.have_named_sections.
1881         * explow.c: Include common/common-target.h.
1882         * expr.c: Include common/common-target.h.
1883         (build_personality_function): Use targetm_common.except_unwind_info.
1884         * function.c: Include common/common-target.h.
1885         (expand_function_end): Use targetm_common.except_unwind_info.
1886         * haifa-sched.c: Include common/common-target.h.
1887         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1888         * lto-opts.c: Include common/common-target.h instead of target.h.
1889         (lto_reissue_options): Use targetm_common.handle_option.
1890         * opts.c: Include common/common-target.h.
1891         (target_handle_option): Use targetm_common.handle_option.
1892         (init_options_struct): Update comment referring to
1893         targetm.target_option.optimization.  Use
1894         targetm_common.default_target_flags,
1895         targetm_common.unwind_tables_default and
1896         targetm_common.option_init_struct.
1897         (default_options_optimization): Use
1898         targetm_common.option_optimization_table.
1899         (finish_options): Use targetm_common.except_unwind_info,
1900         targetm_common.unwind_tables_default,
1901         targetm_common.have_named_sections and
1902         targetm_common.supports_split_stack.
1903         * toplev.c: Include common/common-target.h.
1904         (process_options): Use targetm_common.have_named_sections.
1905         * tree-tailcall.c: Include common/common-target.h.
1906         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
1907         * tree.c: Include common/common-target.h.
1908         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
1909         * varasm.c: Include common/common-target.h.
1910         (resolve_unique_section, hot_function_section,
1911         default_function_section): Use targetm_common.have_named_sections.
1912
1913 2011-06-14  Easwaran Raman  <eraman@google.com>
1914
1915         PR rtl-optimization/44194
1916         * dse.c: Include tree-flow.h
1917         (insn_info): Add new field non_frame_wild_read.
1918         (group_info): Add new fields escaped_n and escaped_p.
1919         (kill_on_calls): New variable.
1920         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1921         (dse_step0): Initialize kill_on_calls.
1922         (can_escape): New function.
1923         (set_usage_bits): Add additional parameter; record information
1924         about escaped locations.
1925         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
1926         (dse_step2_nospill): Set kill_on_calls based on
1927         group->escaped_n and group->escaped_n.
1928         (add_wild_read): Refactor into...
1929         (reset_active_stores): ... New function, and
1930         (free_read_records): ... New function.
1931         (add_non_frame_wild_read): New function.
1932         (scan_insn): Call add_non_frame_wild_read on non-const calls.
1933         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
1934         (dse_step5_nospill): Call scan_reads_nospill for instructions
1935         marked as non_frame_wild_read.
1936         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
1937
1938 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
1939
1940         * common/common-target-def.h, common/common-target.def,
1941         common/common-target.h, common/config/default-common.c,
1942         common/config/pa/pa-common.c: New files.
1943         * Makefile.in (common_out_file, common_out_object_file,
1944         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1945         (OBJS-libcommon-target): Include $(common_out_object_file).
1946         (prefix.o): Update dependencies.
1947         ($(common_out_object_file), common/common-target-hooks-def.h,
1948         s-common-target-hooks-def-h): New.
1949         (s-tm-texi): Also check timestamp on common-target.def.
1950         (build/genhooks.o): Update dependencies.
1951         * config.gcc (common_out_file, target_has_targetm_common): Define.
1952         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1953         TARGET_ALWAYS_STRIP_DOTDOT.
1954         * configure.ac (common_out_object_file): Define.
1955         (common_out_file, common_out_object_file): Substitute.
1956         (common): Create directory.
1957         * configure: Regenerate.
1958         * doc/tm.texi.in (targetm_common): Document.
1959         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1960         * doc/tm.texi: Regenerate.
1961         * genhooks.c (hook_array): Also include common/common-target.def.
1962         * prefix.c (tm.h): Don't include.
1963         (common/common-target.h): Include.
1964         (ALWAYS_STRIP_DOTDOT): Don't define.
1965         (update_path): Use targetm_common.always_strip_dotdot instead of
1966         ALWAYS_STRIP_DOTDOT.
1967         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1968
1969 2011-06-14  David Li  <davidxl@google.com>
1970
1971         * passes.c (execute_function_todo): Remove TODO_dump_func.
1972         (execute_one_pass): Remove TODO_dump_func.
1973         (execute_function_dump): New function.
1974         * tree-vrp.c: Remove TODO_dump_func.
1975         * regrename.c: Remove TODO_dump_func.
1976         * fwprop.c: Remove TODO_dump_func.
1977         * tree-into-ssa.c: Remove TODO_dump_func.
1978         * tree-complex.c: Remove TODO_dump_func.
1979         * tracer.c: Remove TODO_dump_func.
1980         * tree-loop-distribution.c: Remove TODO_dump_func.
1981         * postreload-gcse.c: Remove TODO_dump_func.
1982         * postreload.c: Remove TODO_dump_func.
1983         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1984         * tree-tailcall.c: Remove TODO_dump_func.
1985         * ipa-cp.c: Remove TODO_dump_func.
1986         * final.c: Remove TODO_dump_func.
1987         * tree-emutls.c: Remove TODO_dump_func.
1988         * omp-low.c: Remove TODO_dump_func.
1989         * tree-ssa-dse.c: Remove TODO_dump_func.
1990         * tree-ssa-uncprop.c: Remove TODO_dump_func.
1991         * auto-inc-dec.c: Remove TODO_dump_func.
1992         * reorg.c: Remove TODO_dump_func.
1993         * tree-ssa-copyrename.c: Remove TODO_dump_func.
1994         * tree-ssa-ccp.c: Remove TODO_dump_func.
1995         * compare-elim.c: Remove TODO_dump_func.
1996         * mode-switching.c: Remove TODO_dump_func.
1997         * modulo-sched.c: Remove TODO_dump_func.
1998         * tree-call-cdce.c: Remove TODO_dump_func.
1999         * cse.c: Remove TODO_dump_func.
2000         * web.c: Remove TODO_dump_func.
2001         * tree-stdarg.c: Remove TODO_dump_func.
2002         * lto-streamer-out.c: Remove TODO_dump_func.
2003         * tree-ssa-math-opts.c: Remove TODO_dump_func.
2004         * tree-ssa-dom.c: Remove TODO_dump_func.
2005         * tree-nrv.c: Remove TODO_dump_func.
2006         * loop-init.c: Remove TODO_dump_func.
2007         * gimple-low.c: Remove TODO_dump_func.
2008         * ipa-inline.c: Remove TODO_dump_func.
2009         * tree-ssa-sink.c: Remove TODO_dump_func.
2010         * jump.c: Remove TODO_dump_func.
2011         * ifcvt.c: Remove TODO_dump_func.
2012         * tree-ssa-loop.c: Remove TODO_dump_func.
2013         * recog.c: Remove TODO_dump_func.
2014         * dse.c: Remove TODO_dump_func.
2015         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2016         * matrix-reorg.c: Remove TODO_dump_func.
2017         * tree-eh.c: Remove TODO_dump_func.
2018         * regmove.c: Remove TODO_dump_func.
2019         * function.c: Remove TODO_dump_func.
2020         * tree-vectorizer.c: Remove TODO_dump_func.
2021         * ipa-split.c: Remove TODO_dump_func.
2022         * gcse.c: Remove TODO_dump_func.
2023         * tree-if-conv.c: Remove TODO_dump_func.
2024         * init-regs.c: Remove TODO_dump_func.
2025         * tree-ssa-phiopt.c: Remove TODO_dump_func.
2026         * implicit-zee.c: Remove TODO_dump_func.
2027         * lower-subreg.c: Remove TODO_dump_func.
2028         * bt-load.c: Remove TODO_dump_func.
2029         * tree-dfa.c: Remove TODO_dump_func.
2030         * except.c: Remove TODO_dump_func.
2031         * emit-rtl.c: Remove TODO_dump_func.
2032         * store-motion.c: Remove TODO_dump_func.
2033         * cfgexpand.c: Remove TODO_dump_func.
2034         * tree-cfgcleanup.c: Remove TODO_dump_func.
2035         * cfgcleanup.c: Remove TODO_dump_func.
2036         * tree-ssa-pre.c: Remove TODO_dump_func.
2037         * tree-sra.c: Remove TODO_dump_func.
2038         * tree-mudflap.c: Remove TODO_dump_func.
2039         * tree-ssa-copy.c: Remove TODO_dump_func.
2040         * cfglayout.c: Remove TODO_dump_func.
2041         * tree-ssa-forwprop.c: Remove TODO_dump_func.
2042         * tree-ssa-dce.c: Remove TODO_dump_func.
2043         * ira.c: Remove TODO_dump_func.
2044         * tree-ssa.c: Remove TODO_dump_func.
2045         * integrate.c: Remove TODO_dump_func.
2046         * tree-optimize.c: Remove TODO_dump_func.
2047         * tree-ssa-phiprop.c: Remove TODO_dump_func.
2048         * tree-object-size.c: Remove TODO_dump_func.
2049         * combine.c: Remove TODO_dump_func.
2050         * bb-reorder.c: Remove TODO_dump_func.
2051         * cprop.c: Remove TODO_dump_func.
2052         * var-tracking.c: Remove TODO_dump_func.
2053         * tree-profile.c: Remove TODO_dump_func.
2054         * tree-vect-generic.c: Remove TODO_dump_func.
2055         * reg-stack.c: Remove TODO_dump_func.
2056         * sched-rgn.c: Remove TODO_dump_func.
2057         * tree-ssa-structalias.c: Remove TODO_dump_func.
2058         * tree-switch-conversion.c: Remove TODO_dump_func.
2059         * tree-cfg.c: Remove TODO_dump_func.
2060         * tree-ssa-reassoc.c: Remove TODO_dump_func.
2061         * combine-stack-adj.c: Remove TODO_dump_func.
2062         * dce.c: Remove TODO_dump_func.
2063         * tree-ssanames.c: Remove TODO_dump_func.
2064         * regcprop.c: Remove TODO_dump_func.
2065
2066 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2067
2068         PR middle-end/47364
2069         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2070         and properly handle result not in Pmode.
2071
2072 2011-06-14  Robert Millan  <rmh@gnu.org>
2073
2074         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2075         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2076         `config/linux.h'.
2077
2078         * config/i386/kfreebsd-gnu64.h: New file.
2079         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2080         with `i386/kfreebsd-gnu64.h'.
2081
2082         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2083         (GNU_USER_LINK_EMULATION64): New macros.
2084         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2085         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2086         of hardcoding `elf_i386' and `elf_x86_64'.
2087
2088 2011-06-14  Nick Clifton  <nickc@redhat.com>
2089
2090         PR target/49403
2091         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2092
2093         PR target/49402
2094         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2095
2096 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
2097
2098         PR fortran/49103
2099         * tree.h (DECL_NONSHAREABLE): Define.
2100         (struct tree_decl_common): Change decl_common_unused to
2101         decl_nonshareable_flag.
2102         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2103         Ignore vars with DECL_NONSHAREABLE bit set.
2104         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2105         on stores to automatic aggregate vars.
2106
2107         PR rtl-optimization/49390
2108         Revert:
2109         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
2110
2111         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2112         MEM_ALIAS_SET.
2113
2114 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
2115             Tom de Vries  <tom@codesourcery.com>
2116
2117         PR target/45098
2118         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2119         Document changed semantics.
2120         (max_stmt_executions, max_stmt_executions_int): Declare.
2121         * tree-data-ref.c (estimated_loop_iterations)
2122         (estimated_loop_iterations_int): Move functions...
2123         * tree-ssa-loop-niter.c (estimated_loop_iterations)
2124         (estimated_loop_iterations_int): here.
2125         (record_estimate): Change nb_iterations_upper_bound and
2126         nb_iterations_estimate semantics.
2127         (max_stmt_executions, max_stmt_executions_int): New function.
2128         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2129         (max_stmt_executions_tree): this.
2130         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2131         estimated_loop_iterations_tree.
2132         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2133         max_stmt_executions_int instead of estimated_loop_iterations_int.
2134         * predict.c (predict_loops): Idem.
2135         * tree-parloops.c (parallelize_loops): Idem.
2136         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2137         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2138         (init_omega_for_ddr_1): Idem.
2139         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2140         (loop_prefetch_arrays): Idem
2141         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2142         max_stmt_executions instead of estimated_loop_iterations.
2143         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2144         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2145         instead of nb_iterations_upper_bound.
2146
2147 2011-06-13  Jan Hubicka  <jh@suse.cz>
2148
2149         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2150
2151 2011-06-14  Richard Henderson  <rth@redhat.com>
2152
2153         PR debug/48459
2154         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2155         (based_loc_descr): Assert it's true.
2156         (compute_frame_pointer_to_fb_displacement): Set it, rather than
2157         aborting immediately.
2158
2159 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
2160             Mingfeng Wu  <mingfeng@faraday-tech.com>
2161
2162         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2163
2164 2011-06-13  Jan Hubicka  <jh@suse.cz>
2165
2166         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2167
2168 2011-06-13  Jan Hubicka  <jh@suse.cz>
2169
2170         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2171         similarly to DECL_COMDAT.
2172         * cgraphunit.c (cgraph_analyze_function): Likewise.
2173         * ipa.c (function_and_variable_visibility): Likewise.
2174
2175 2011-06-13  Jan Hubicka  <jh@suse.cz>
2176
2177         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2178         BINFO_VIRTUALS when streaming for ltrans unit.
2179
2180 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
2181
2182         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2183         (movdi_internal64): Same.
2184
2185 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
2186
2187         PR target/44618
2188         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2189         a set of similar patterns, where the MATCH_OPERAND for the function
2190         argument is replaced with individual references to hardware registers.
2191         (save_fpregs_<mode>): Ditto
2192         (restore_gpregs_<mode>): Ditto
2193         (return_and_restore_gpregs_<mode>): Ditto
2194         (return_and_restore_fpregs_<mode>): Ditto
2195         (return_and_restore_fpregs_aix_<mode>): Ditto
2196
2197 2011-06-13  Jan Hubicka  <jh@suse.cz>
2198
2199         * ipa-utils.c (postorder_stack): New structure.
2200         (ipa_reverse_postorder): Handle aliases.
2201
2202 2011-06-13  Jan Hubicka  <jh@suse.cz>
2203
2204         * ipa-inline.c (reset_edge_caches): Walk aliases.
2205         (update_caller_keys): Do not test inlinability of aliases.
2206         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2207         (do_estimate_growth): Fix typo.
2208
2209 2011-06-13  Jan Hubicka  <jh@suse.cz>
2210
2211         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2212         (can_remove_node_now_p): ... here; handle same comdat groups.
2213         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2214         (inline_call): Update use of can_remove_node_now_p.
2215
2216 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2217
2218         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2219         condition to disallow non-identical memory locations.
2220         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2221         preference to bit manipulation instructions.
2222
2223 2011-06-13  Jan Hubicka  <jh@suse.cz>
2224
2225         * cgraph.c (cgraph_for_node_thunks_and_aliases,
2226         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2227         (nonremovable_p): New function.
2228         (cgraph_can_remove_if_no_direct_calls_p): New function.
2229         (used_from_object_file_p): New functoin.
2230         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2231         references from aliases.
2232         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2233         * ipa-inline.c (check_caller_edge): New function.
2234         (want_inline_function_called_once_p): Use it; accept aliases called
2235         once, too.
2236         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2237
2238 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2239
2240         PR target/48454
2241         * config/arm/neon.md (vec_pack_trunc): Set the lengths
2242         correctly for the case with Quad vectors.
2243
2244 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
2245            Ira Rosen  <ira.rosen@linaro.org>
2246
2247         PR tree-optimization/49352
2248         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2249         all, make sure loop_use_stmt after the loop is a def stmt of a used
2250         SSA_NAME that is the only one defined inside of the loop.  Don't
2251         check for COND_EXPR and GIMPLE_BINARY_RHS.
2252         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2253         check_reduction is true.
2254
2255 2011-06-11  Jan Hubicka  <jh@suse.cz>
2256
2257         PR middle-end/49373
2258         * ipa.c (cgraph_externally_visible_p): Check resolution info.
2259
2260 2011-06-11  Jan Hubicka  <jh@suse.cz>
2261
2262         PR middle-end/48836
2263         * ipa-inline-transform.c: Include tree-pass.h
2264         (inline_transform): Set TODO_update_ssa_only_virtuals.
2265         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2266
2267 2011-06-11  Jan Hubicka  <jh@suse.cz>
2268
2269         PR middle-end/49378
2270         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2271         aliases and thunks.
2272
2273 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
2274
2275         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2276         Take number of iterations to peel into account for equally frequent
2277         misalignment values.
2278
2279 2011-06-11  Jan Hubicka  <jh@suse.cz>
2280
2281         * lto-streamer-out.c (produce_symtab): Stream out the newly
2282         represented aliases.
2283
2284 2011-06-11  Jan Hubicka  <jh@suse.cz>
2285
2286         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2287         varying args.
2288         (ipa_update_after_lto_read): Likewise.
2289         (ipa_write_node_info): Do not sream call_with_var_arguments.
2290         (ipa_read_node_info): Likewise.
2291
2292 2011-06-11  Jan Hubicka  <jh@suse.cz>
2293
2294         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2295
2296 2011-06-11  Jan Hubicka  <jh@suse.cz>
2297
2298         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2299         (lto_symtab_resolve_can_prevail_p): Likewise.
2300         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2301         * cgraph.c (same_body_aliases_done): New global var.
2302         (cgraph_same_body_alias_1): Rename to ...
2303         (cgraph_create_function_alias): ... this one; reorg to new
2304         representation.
2305         (cgraph_same_body_alias): Use cgraph_create_function_alias;
2306         record references when asked to.
2307         (cgraph_add_thunk): Fix formating.
2308         (cgraph_get_node): Kill same body alias code.
2309         (cgraph_node_for_asm): Likewise.
2310         (cgraph_remove_same_body_alias): Remove.
2311         (cgraph_remove_node): Kill same body alias code.
2312         (cgraph_mark_address_taken_node): Mark also the aliased function
2313         as having address taken.
2314         (dump_cgraph_node): Dump same body aliases.
2315         (cgraph_for_node_thunks_and_aliases): Update for new alias
2316         representation.
2317         (cgraph_for_node_and_aliases): Likewise.
2318         * cgraph.h (same_body): Kll pointer.
2319         (same_body_alias): Update comment.
2320         (same_body_aliases_done): Declare.
2321         (cgraph_remove_same_body_alias): Remove declaration.
2322         (cgraph_create_function_alias): Declare.
2323         (cgraph_process_same_body_aliases): Declare.
2324         (cgraph_function_with_gimple_body_p): Check for alias.
2325         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2326         (cgraph_alias_aliased_node): New function.
2327         (cgraph_function_node): Update for new aliases.
2328         (cgraph_function_or_thunk_node): Likewise.
2329         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2330         (inline_call): Remove dead aliases.
2331         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2332         name hack for same body aliases.
2333         (clone_of_p): Look through aliases.
2334         (verify_cgraph_node): Verify aliases.
2335         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2336         (cgraph_process_same_body_aliases): New function.
2337         (process_function_and_variable_attributes): Disable weakref warning on
2338         alias.
2339         (cgraph_analyze_functions): Handle aliases.
2340         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2341         (assemble_thunks): Rename to ...
2342         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2343         (cgraph_expand_function): Remove alias output code.
2344         (cgraph_output_in_order): Skip aliases.
2345         (cgraph_preserve_function_body_p): Aliases don't need preserving.
2346         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2347         (ipa_record_reference): Do not assert on alias references.
2348         (ipa_ref_has_aliases_p): New function.
2349         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2350         (ipa_ref_has_aliases_p): Declare.
2351         * lto-cgraph.c (lto_output_node): Handle aliases.
2352         (input_node): Likewise.
2353         * lto-streamer-out.c (lto_output): Skip aliases.
2354         (produce_symtab): Kill same_body_alias code.
2355         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2356         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2357         * ipa-inline.c (update_caller_keys): Walk aliases.
2358         (inline_small_functions): Fix thinko in previous patch.
2359         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2360         (function_and_variable_visibility): Do not walk same body aliases.
2361         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2362         (ipa_pta_execute): Use it.
2363
2364 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2365
2366         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2367         (*vec_dupv2df): Rename from vec_dupv2df.
2368         (vec_dupv2df): New expander.
2369
2370 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2371
2372         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2373
2374 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
2375
2376         * config/i386/i386.md: Use default value in "isa" attribute.
2377         * config/i386/sse.md: Ditto.
2378         * config/i386/mmx.md: Ditto.
2379
2380 2011-06-10  Wei Guozhi  <carrot@google.com>
2381
2382         PR target/45335
2383         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2384         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2385         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2386         related peephole2.
2387         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2388         related peephole2.
2389         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2390         (arm_legitimate_ldrd_p): New prototype.
2391         (arm_output_ldrd): New prototype.
2392         * config/arm/arm.c (arm_check_ldrd_operands): New function.
2393         (arm_legitimate_ldrd_p): New function.
2394         (arm_output_ldrd): New function.
2395
2396 2011-06-10  David Li  <davidxl@google.com>
2397
2398         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2399         * passes.c (passr_eq): New function.
2400         (create_pass_tab): New function.
2401         (pass_traverse): New function.
2402         (dump_one_pass): New function.
2403         (dump_pass_list): New function.
2404         (dump_passes): New function.
2405
2406 2011-06-10  Jan Hubicka  <jh@suse.cz>
2407
2408         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2409         setting the nothrow flag.
2410         * ipa-reference.c (propagate): Skip aliases.
2411         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2412         (propagate_nothrow): Skip aliases; do not update cgraph.
2413         (local_pure_const): Do not update cgraph.
2414         * tree-profile.c (tree_profiling): Do fixup_cfg.
2415
2416 2011-06-10  Jan Hubicka  <jh@suse.cz>
2417
2418         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2419         (cgraph_local_node_p): ... here; handle aliases.
2420         (has_addr_references_p): Break out from ...;
2421         (cgraph_remove_unreachable_nodes) ... here.
2422
2423 2011-06-10  Jan Hubicka  <jh@suse.cz>
2424
2425         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2426         * common.opt (flag_inline_functions_called_once): Do not
2427         initialize to 1.
2428
2429 2011-06-10  Jan Hubicka  <jh@suse.cz>
2430
2431         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2432         (ipcp_initialize_node_lattices): Do not deal with aliases;
2433         Do not try to propagate through thunks.
2434         (ipcp_change_tops_to_bottom): Do not deal with aliases.
2435
2436 2011-06-10  Jan Hubicka  <jh@suse.cz>
2437
2438         * ipa-prop.c (ipa_write_node_info): Stream jump functions
2439         for indirect calls.
2440         (ipa_read_node_info): Likewise.
2441
2442 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2443
2444         PR lto/49302
2445         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2446         (build_and_insert_call): Likewise.
2447         (build_and_insert_ref): New.
2448         (gimple_expand_builtin_pow): Minor cleanup.
2449         (gimple_expand_builtin_cabs): New.
2450         (execute_cse_sincos): Add case for BUILT_IN_CABS.
2451
2452 2011-06-10  Jan Hubicka  <jh@suse.cz>
2453
2454         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2455         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2456         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2457         (ipcp_propagate_stage): Skip aliases when propagating.
2458         (ipcp_need_redirect_p): Skip aliases.
2459         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2460         collect_callers_of_node.
2461         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2462         for aliases.
2463         (ipa_compute_jump_functions): Look through aliases.
2464
2465 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2466
2467         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2468
2469 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2470
2471         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2472         Adjust comments.
2473         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2474
2475 2011-06-10  Jan Hubicka  <jh@suse.cz>
2476
2477         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2478         Update call of gimple_get_virt_method_for_binfo.
2479         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2480         refuse_thunks parameter.
2481         (gimple_fold_call): Update.
2482         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2483
2484 2011-06-10  Jan Hubicka  <jh@suse.cz>
2485
2486         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2487         (not_all_callers_have_enough_arguments_p): ... this one; turn into
2488         worker for cgraph_for_node_and_aliases.
2489         (convert_callers_for_node): Break out from ...
2490         (convert_callers): ... here.
2491         (modify_function): Use collect_callers_of_node.
2492         (ipa_early_sra): Use cgraph_for_node_and_aliases.
2493
2494 2011-06-10  Richard Guenther  <rguenther@suse.de>
2495
2496         PR tree-optimization/49361
2497         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2498         when not already in gimple form.
2499
2500 2011-06-10  Richard Guenther  <rguenther@suse.de>
2501
2502         PR bootstrap/49344
2503         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2504         FOR_EACH_PHI_OR_STMT_USE.
2505
2506 2011-06-10  Jan Hubicka  <jh@suse.cz>
2507
2508         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2509         (clone_inlined_nodes): ... here.
2510         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2511         to real destination prior inlining.
2512         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2513         can_early_inline_edge_p, want_early_inline_function_p,
2514         want_early_inline_function_p, want_inline_small_function_p,
2515         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2516         edge_badness, update_all_callee_keys, lookup_recursive_calls,
2517         add_new_edges_to_heap, inline_small_functions, flatten_function,
2518         inline_always_inline_functions, early_inline_small_functions): Use
2519         cgraph_function_or_thunk_node.
2520         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2521         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2522         (do_estimate_edge_growth_1): Break out from ...
2523         (do_estimate_growth) ... here; walk aliases.
2524         (inline_generate_summary): Skip aliases.
2525
2526 2011-06-10  Richard Guenther  <rguenther@suse.de>
2527
2528         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2529         forward when combining, visit inserted stmts when a stmt was changed.
2530
2531 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
2532
2533         * tree.h (error_operand_p): Add.
2534         * dbxout.c (dbxout_type_fields): Use the latter.
2535         * c-decl.c (add_stmt): Likewise.
2536         * gimplify.c (omp_add_variable, omp_notice_variable,
2537         gimplify_scan_omp_clauses): Likewise.
2538
2539 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
2540
2541         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2542         when a value is actually passed in regs.
2543
2544 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
2545             Laurent Rougé  <laurent.rouge@menta.fr>
2546
2547         * doc/invoke.texi (SPARC options): Add -mflat.
2548         * config/sparc/sparc.opt: Likewise.
2549         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2550         (sparc_flat_expand_prologue): Declare.
2551         (sparc_flat_expand_epilogue): Likewise.
2552         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2553         (CPP_ENDIAN_SPEC): Replace with...
2554         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
2555         (CPP_SPEC): Adjust to above change.
2556         (EXTRA_SPECS): Likewise.
2557         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2558         (INCOMING_REGNO): Likewise.
2559         (OUTGOING_REGNO): Likewise.
2560         (LOCAL_REGNO): Likewise.
2561         (SETUP_FRAME_ADDRESSES): Likewise.
2562         (FIXED_REGISTERS): Set 0 for %fp.
2563         (CALL_USED_REGISTERS): Likewise.
2564         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2565         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2566         (RETURN_ADDR_REGNUM): Define.
2567         (RETURN_ADDR_RTX): Use it.
2568         (INCOMING_RETURN_ADDR_REGNUM): Define.
2569         (INCOMING_RETURN_ADDR_RTX): Use it.
2570         (DWARF_FRAME_RETURN_COLUMN): Likewise.
2571         (EH_RETURN_REGNUM): Define.
2572         (EH_RETURN_STACKADJ_RTX): Use it.
2573         (EH_RETURN_HANDLER_RTX): Delete.
2574         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2575         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2576         Delete.
2577         (struct machine_function): Add frame_size, apparent_frame_size,
2578         frame_base_reg, frame_base_offset, n_global_fp_regs and
2579         save_local_in_regs_p fields.
2580         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2581         sparc_frame_base_offset, sparc_n_global_fp_regs,
2582         sparc_save_local_in_regs_p): New macros.
2583         (sparc_option_override): Error out if -fcall-saved-REG is specified
2584         for Out registers.
2585         (eligible_for_restore_insn): Fix formatting.
2586         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
2587         (eligible_for_sibcall_delay): Likewise.
2588         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2589         (sparc_legitimate_address_p): Adjust to above change.
2590         (save_global_or_fp_reg_p): New predicate.
2591         (return_addr_reg_needed_p): Likewise.
2592         (save_local_or_in_reg_p): Likewise.
2593         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
2594         (SORR_SAVE, SORR_RESTORE): Delete.
2595         (sorr_pred_t): New typedef.
2596         (sorr_act_t): New enum.
2597         (save_or_restore_regs): Rename to...
2598         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
2599         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2600         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
2601         mechanism.  Add CFI information for double-word saves in 32-bit mode.
2602         (emit_adjust_base_to_offset): New function extracted from...
2603         (emit_save_or_restore_regs): ...this.  Rename the rest to...
2604         (emit_save_or_restore_regs_global_fp_regs): ...this.
2605         (emit_save_or_restore_regs_local_in_regs): New function.
2606         (gen_create_flat_frame_[123]): New functions.
2607         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
2608         (sparc_flat_expand_prologue): New function.
2609         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2610         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
2611         (sparc_flat_expand_epilogue): New function.
2612         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2613         (output_return): Likewise.
2614         (output_sibcall): Likewise.
2615         (sparc_output_mi_thunk): Likewise.
2616         (sparc_frame_pointer_required): Likewise.
2617         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2618         function optimization.
2619         * config/sparc/sparc.md (flat): New attribute.
2620         (prologue): Add TARGET_FLAT handling.
2621         (save_register_window): Disable if TARGET_FLAT.
2622         (create_flat_frame_[123]): New patterns.
2623         (epilogue): Add TARGET_FLAT handling.
2624         (sibcall_epilogue): Likewise.
2625         (eh_return): New expander.
2626         (eh_return_internal): New insn and splitter.
2627         (return_internal): Add TARGET_FLAT handling.
2628         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2629         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2630         (nonlocal_goto): Add TARGET_FLAT handling.
2631         * config/sparc/t-elf: Add -mflat multilib.
2632         * config/sparc/t-leon: Likewise.
2633
2634 2011-06-10  Jan Hubicka  <jh@suse.cz>
2635
2636         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2637         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2638         (self_recursive_p): Use cgraph_function_node.
2639         (propagate_pure_const): Likewise.
2640         (propagate_nothrow): Likewise.
2641         * ipa-reference.c (ipa_reference_get_not_read_global): Use
2642         cgraph_function_node.
2643         (propagate_bits): Likewise.
2644         (propagate): Likewise.
2645
2646 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2647             Richard Earnshaw  <rearnsha@arm.com>
2648
2649         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2650         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2651         (*thumb2_movdi_vfp): Delete.
2652         (*arm_movdi_vfp_cortexa8): Delete.
2653         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2654         (*movdi_vfp_cortexa8): Likewise.
2655
2656 2011-06-10  Richard Guenther  <rguenther@suse.de>
2657
2658         * stor-layout.c (initialize_sizetypes): Give names to all
2659         sizetype kinds.
2660
2661 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
2662
2663         PR tree-optimization/49318
2664         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2665         irrelevant pattern statements.
2666
2667 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2668
2669         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2670
2671         PR bootstrap/49354
2672         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2673         to last assignment.
2674
2675 2011-06-09  Jan Hubicka  <jh@suse.cz>
2676
2677         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2678         do not recompute reachable flag.
2679         (cgraph_finalize_function, cgraph_analyze_functions): Set
2680         redefined_extern_inline here.
2681
2682 2011-06-09  Jan Hubicka  <jh@suse.cz>
2683
2684         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2685         (cgraph_only_called_directly_p): ... this one; bring offline.
2686         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2687         varpool_used_from_object_file_p): Drop names from the declaratoin.
2688         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2689         collect_callers_of_node): New.
2690         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2691         (cgraph_edge_recursive_p): Use cgraph_function_node.
2692         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2693         (cgraph_node_cannot_be_local_p_1): Break out from ...
2694         (cgraph_node_can_be_local_p): ... here; walk aliases.
2695         (cgraph_for_node_thunks_and_aliases): New function.
2696         (cgraph_for_node_and_aliases): New function.
2697         (cgraph_make_node_local_1): Break out from ...
2698         (cgraph_make_node_local) ... here; use
2699         cgraph_for_node_thunks_and_aliases.
2700         (cgraph_set_nothrow_flag_1): Break out from ...
2701         (cgraph_set_nothrow_flag) ... here;
2702         use cgraph_for_node_thunks_and_aliases.
2703         (cgraph_set_const_flag_1): Break out from ...
2704         (cgraph_set_const_flag) ... here;
2705         use cgraph_for_node_thunks_and_aliases.
2706         (cgraph_set_pure_flag_1): Break out from ...
2707         (cgraph_set_pure_flag) ... here;
2708         use cgraph_for_node_thunks_and_aliases.
2709         (cgraph_propagate_frequency_1): Break out from ...
2710         (cgraph_propagate_frequency) ... here; use
2711         cgraph_for_node_thunks_and_aliases.
2712         (cgraph_used_from_object_file_p): Do not care about aliases.
2713         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2714         New functions.
2715         (collect_callers_of_node_1, collect_callers_of_node): New functions.
2716
2717 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2718
2719         PR rtl-optimization/49154
2720         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2721         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2722         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2723         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2724         * config/cris/cris.h (cris_register_move_cost): Remove
2725         !TARGET_V32 code.  Tweak comments.
2726
2727 2011-06-09  Jan Hubicka  <jh@suse.cz>
2728
2729         * cgraphbuild.c (record_eh_tables): Mark personality function as having
2730         address taken.
2731
2732 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
2733
2734         PR rtl-optimization/49154
2735         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2736         is a matching slot in the hashtable, assign it to classes_ptr.
2737
2738         PR rtl-optimization/49154
2739         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2740         register classes.
2741         * doc/tm.texi: Regenerate.
2742
2743 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2744
2745         PR target/49307
2746         * config/sh/sh.md (UNSPEC_CHKADD): New.
2747         (chk_guard_add): New define_insn_and_split.
2748         (symGOT_load): Use chk_guard_add instead of blockage.
2749
2750 2011-06-09  Kai Tietz  <ktietz@redhat.com>
2751
2752         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2753
2754 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
2755
2756         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2757
2758 2011-06-09  Wei Guozhi  <carrot@google.com>
2759
2760         PR target/46975
2761         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2762         (peephole2 for conditional move): Generate 16 bit instructions.
2763
2764 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
2765
2766         * config/i386/i386.md (*movdi_internal_rex64): Merge
2767         alternatives 6 and 8.
2768
2769 2011-06-09  David Li  <davidxl@google.com>
2770
2771         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2772         * passes.c (passr_eq): New function.
2773         (create_pass_tab): New function.
2774         (pass_traverse): New function.
2775         (dump_one_pass): New function.
2776         (dump_pass_list): New function.
2777         (dump_passes): New function.
2778
2779 2011-06-09  David Li  <davidxl@google.com>
2780
2781         * tree-complex.c (tree_lower_complex): Gate cleanup.
2782         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2783         (execute_optimize_stdarg): Ditto.
2784         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2785         (execute_cleanup_eh_1): Ditto.
2786         (execute_cleanup_eh): Ditto.
2787         * gcse.c (gate_rtl_pre): Ditto.
2788         (execute_rtl_pre): Ditto.
2789         * except.c (finish_eh_generation): Ditto.
2790         (convert_to_eh_region_ranges): Ditto.
2791         * cprop.c (one_cprop_pass): Ditto.
2792
2793 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
2794
2795         PR target/48673
2796         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2797         in all basic blocks.
2798
2799 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2800
2801         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2802         (HAVE_ENABLE_EXECUTE_STACK): Define.
2803         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2804         (HAVE_ENABLE_EXECUTE_STACK): Define.
2805         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2806         (HAVE_ENABLE_EXECUTE_STACK): Define.
2807         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2808         (ENABLE_EXECUTE_STACK): Remove.
2809         (HAVE_ENABLE_EXECUTE_STACK): Define.
2810         [IN_LIBGCC2]: Don't include <windows.h>.
2811         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2812         (HAVE_ENABLE_EXECUTE_STACK): Define.
2813         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2814         (HAVE_ENABLE_EXECUTE_STACK): Define.
2815         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2816         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2817         (HAVE_ENABLE_EXECUTE_STACK): Define.
2818         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2819         (HAVE_ENABLE_EXECUTE_STACK): Define.
2820         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2821         (HAVE_ENABLE_EXECUTE_STACK): Define.
2822         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2823         (HAVE_ENABLE_EXECUTE_STACK): Define.
2824         * config/alpha/alpha.c (alpha_trampoline_init): Test
2825         HAVE_ENABLE_EXECUTE_STACK.
2826         * config/i386/i386.c (ix86_trampoline_init): Likewise.
2827         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2828         (sparc64_initialize_trampoline): Likewise.
2829         * libgcc2.c [L_enable_execute_stack]: Remove.
2830         * system.h (ENABLE_EXECUTE_STACK): Poison.
2831         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2832         * doc/tm.texi: Regenerate.
2833         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2834
2835 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
2836
2837         PR middle-end/49308
2838         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2839         variable.  After resetting and rescanning insn continue with previous
2840         statement.
2841
2842 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2843
2844         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2845         (gcc_cv_ld_hidden): Likewise.
2846         * configure: Regenerate.
2847         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2848         (ix86_stack_protect_fail): Mark unused.
2849         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2850         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2851         [TARGET_MACHO]: Don't define.
2852         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2853         (TARGET_STACK_PROTECT_FAIL): Likewise.
2854         (rs6000_stack_protect_fail): Mark unused.
2855         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2856         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
2857
2858 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2859
2860         * varasm.c (get_section): Print location of other conflict
2861         for section conflicts.
2862
2863 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2864
2865         * config/i386/driver-i386.c (host_detect_local_cpu):
2866         Add model 0x2d Intel CPU.
2867
2868 2011-06-08  Andi Kleen  <ak@linux.intel.com>
2869
2870         * reginfo.c (global_regs_decl): Add.
2871         (globalize_reg): Add decl parameter. Compute location.  Pass location
2872         to warnings and add inform. Store decl in global_regs_decl.
2873         * rtl.h (globalize_reg): Update prototype.
2874         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2875
2876 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
2877
2878         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2879
2880 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2881
2882         PR target/49305
2883         * config/sh/predicates.md (general_movsrc_operand): Check
2884         mode for memory with indexed address for QI and HImode.
2885         (general_movdst_operand): Likewise.
2886
2887 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
2888
2889         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2890
2891 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
2892
2893         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2894         (num_ssa_operands): Likewise.
2895         (op_iter_init_phiuse): Forward-declare.
2896         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2897
2898 2011-06-08  Nick Clifton  <nickc@redhat.com>
2899
2900         * doc/invoke.texi (ARM Options): Update description of
2901         -mthumb-interwork.
2902
2903 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
2904
2905         * config/i386/driver-i386.c (host_detect_local_cpu): Support
2906         unknown Intel family 0x6 CPUs.
2907
2908 2011-06-08  Martin Jambor  <mjambor@suse.cz>
2909
2910         * tree-sra.c (mark_rw_status): Removed.
2911         (analyze_access_subtree): New parameter parent instead of
2912         mark_read and mark_write, propagate from that.
2913
2914 2011-06-08  Julian Brown  <julian@codesourcery.com>
2915
2916         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2917         for double-precision helper functions in hard-float mode if only
2918         single-precision arithmetic is supported in hardware.
2919
2920 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
2921
2922         PR rtl-optimization/49303
2923         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
2924         code_motion_path_driver returned 0 or 1.
2925         (sel_region_finish): Clear h_d_i_d.
2926
2927 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2928
2929         * config/sh/sh.c (prepare_move_operands): Set pic register
2930         appropriately for global and local dynamic tls models even
2931         if flag_pic is unset.
2932
2933 2011-06-07  Jason Merrill  <jason@redhat.com>
2934
2935         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2936
2937 2011-06-07  Xinliang David Li  <davidxl@google.com>
2938         * passes.c (enable_disable_pass): Handle assembler name.
2939         (is_pass_explicitly_enabled_or_disabled): Ditto.
2940
2941 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2942
2943         PR tree-optimization/48497
2944         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2945
2946 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2947
2948         PR tree-optimization/46728
2949         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2950         to use gimple_val_nonnegative_real_p.
2951         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2952         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2953
2954 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
2955
2956         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2957
2958 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
2959
2960         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2961         constant vectors.
2962
2963 2011-06-07  Richard Guenther  <rguenther@suse.de>
2964
2965         * stor-layout.c (initialize_sizetypes): Initialize all
2966         sizetypes based on target definitions.
2967         (set_sizetype): Remove.
2968         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2969         * tree.h (set_sizetype): Remove.
2970
2971 2011-06-07  Nick Clifton  <nickc@redhat.com>
2972
2973         * config.gcc: Unify V850 architecture options and add support for
2974         newer V850 architectures.
2975         * config/v850/t-v850e: Delete.
2976
2977 2011-06-07  Richard Guenther  <rguenther@suse.de>
2978
2979         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2980         Call set_sizetype from here.
2981
2982 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
2983
2984         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2985         (*maddhisi4tb, *maddhisi4tt): New define_insns.
2986
2987 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
2988             Andrew Stubbs  <ams@codesourcery.com>
2989
2990         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2991         multiplies.
2992         * doc/md.texi (Canonicalization of Instructions): Document widening
2993         multiply canonicalization.
2994
2995 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
2996
2997         PR gcov-profile/49299
2998         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2999
3000 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
3001
3002         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3003         a pointer.
3004         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3005         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3006         vect_recog_pow_pattern): Likewise.
3007         (vect_pattern_recog_1): Remove declaration.
3008         (widened_name_p): Remove declaration.  Add new argument to specify
3009         whether to check that both types are either signed or unsigned.
3010         (vect_recog_widen_mult_pattern): Update documentation.  Handle
3011         unsigned patterns and multiplication by constants.
3012         (vect_pattern_recog_1): Update vect_recog_func references.  Use
3013         statement information from the statement returned from pattern
3014         detection functions.
3015         (vect_pattern_recog): Update vect_recog_func reference.
3016         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3017         multiplication by a constant use the type of the other operand.
3018
3019 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
3020
3021         PR rtl-optimization/49145
3022         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3023
3024 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
3025
3026         PR debug/49262
3027         * dwarf2out.c (native_encode_initializer): Decrement count in each
3028         iteration.
3029
3030         PR debug/49294
3031         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3032         non-MODE_INT modes.
3033
3034         PR c++/49264
3035         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3036         if stmt folded into nothing.
3037         * tree-inline.c (fold_marked_statements): If a builtin at the end of
3038         a bb folded into nothing, just update cgraph edges and move to next bb.
3039         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3040         to be NULL.  Don't compute count and frequency if new_call is NULL.
3041
3042 2011-06-04  Diego Novillo  <dnovillo@google.com>
3043
3044         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3045         (cgraph.o): Likewise.
3046         (cgraphunit.o): Likewise.
3047         * cgraphunit.c: Include lto-streamer.h
3048         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3049         if LTO is enabled.
3050         * lto-streamer-in.c (unpack_value_fields): Call
3051         streamer_hooks.unpack_value_fields if set.
3052         (lto_materialize_tree): For unhandled nodes, first try to
3053         call lto_streamer_hooks.alloc_tree, if it exists.
3054         (lto_input_ts_decl_common_tree_pointers): Move reading of
3055         DECL_INITIAL to lto_streamer_read_tree.
3056         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3057         (lto_streamer_read_tree): New.
3058         (lto_reader_init): Rename from lto_init_reader.
3059         Move initialization code to lto/lto.c.
3060         * lto-streamer-out.c (pack_value_fields): Call
3061         streamer_hooks.pack_value_fields if set.
3062         (lto_output_tree_ref): For tree nodes that are not normally indexable,
3063         call streamer_hooks.indexable_with_decls_p before giving up.
3064         (lto_output_ts_decl_common_tree_pointers): Move handling
3065         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3066         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3067         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
3068         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
3069         (lto_streamer_write_tree): New.
3070         (lto_output): Call lto_streamer_init directly.
3071         (lto_writer_init): Remove.
3072         * lto-streamer.c (streamer_hooks): New.
3073         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3074         instead of lto_preload_common_nodes.
3075         (lto_is_streamable): Move from lto-streamer.h
3076         (lto_streamer_hooks_init): New.
3077         (streamer_hooks): New.
3078         (streamer_hooks_init): New.
3079         * lto-streamer.h (struct output_block): Forward declare.
3080         (struct lto_input_block): Likewise.
3081         (struct data_in): Likewise.
3082         (struct bitpack_d): Likewise.
3083         (struct streamer_hooks): Declare.
3084         (streamer_hooks): Declare.
3085         (lto_streamer_hooks_init): Declare.
3086         (lto_streamer_write_tree): Declare.
3087         (lto_streamer_read_tree): Declare.
3088         (streamer_hooks_init): Declare.
3089         (lto_is_streamable): Move to lto-streamer.c
3090
3091 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3092
3093         * longlong.h (smul_ppmm): The resulting register pair contains the
3094         higher order word first.
3095
3096 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3097
3098         PR tree-optimization/46728
3099         * builtins.c (powi_table): Remove.
3100         (powi_lookup_cost): Remove.
3101         (powi_cost): Remove.
3102         (expand_powi_1): Remove.
3103         (expand_powi): Remove.
3104         (expand_builtin_pow_root): Remove.
3105         (expand_builtin_pow): Remove.
3106         (expand_builtin_powi): Eliminate handling of constant exponent.
3107         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
3108
3109 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3110
3111         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3112
3113 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3114
3115         * dce.c (reset_unmarked_insns_debug_uses): New.
3116         (delete_unmarked_insns): Skip debug insns.
3117         (prescan_insns_for_dce): Likewise.
3118         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3119         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3120         active reg can be found.
3121         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
3122         (convert_regs_1): Use it.
3123
3124 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3125
3126         * tree-pretty-print.c (dump_function_header): Add flags.
3127         Don't dump decl_uid with nouid.
3128         * tree-pretty-print.h (dump_function_header): Adjust.
3129         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3130         * passes.c (pass_init_dump_file): Pass dump_flags on.
3131         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3132
3133 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
3134
3135         PR bootstrap/49270
3136         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3137
3138 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
3139
3140         PR tree-optimization/49243
3141         * calls.c (setjmp_call_p): Also check if fndecl has the
3142         returns_twice attribute.
3143
3144 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3145
3146         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3147         -ffast-math etc.
3148
3149 2011-06-06  Richard Henderson  <rth@redhat.com>
3150             Georg-Johann Lay  <avr@gjlay.de>
3151
3152         PR target/42210
3153         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3154         New predicates.
3155         * config/avr/avr.md ("insv"): New insn expander.
3156         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3157         "*insv.not.io", "*insv.reg"): New insns.
3158
3159 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
3160
3161         PR target/49285
3162         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3163         to nonimmediate_operand from memory_operand for the operand that is to
3164         be forced to memory by the expander.  Lose the constraints.
3165
3166 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
3167
3168         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3169         EH return when delayed branches are disabled.
3170
3171 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
3172
3173         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3174         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
3175         calculation.
3176         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3177         Simplify MODE_V1DF and MODE_V2SF handling.
3178         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3179         Simplify MODE_SF handling.
3180
3181 2011-06-04  Jan Hubicka  <jh@suse.cz>
3182
3183         PR tree-optimization/48893
3184         PR tree-optimization/49091
3185         PR tree-optimization/49179
3186         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3187         Bounds check.
3188
3189 2011-06-04  Jan Hubicka  <jh@suse.cz>
3190
3191         PR lto/48954
3192         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3193         bitmaps.
3194
3195 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
3196
3197         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3198
3199 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
3200
3201         PR target/49281
3202         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3203         to be strictly smaller than 1 << shiftcount.
3204
3205 2011-06-04  Jan Hubicka  <jh@suse.cz>
3206
3207         PR tree-optimize/48929
3208         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3209         of empty predicate.
3210
3211 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
3212
3213         PR debug/48333
3214         * calls.c (emit_call_1): Prefer the __builtin declaration of
3215         builtin functions.
3216
3217 2011-06-03   Diego Novillo  <dnovillo@google.com>
3218
3219         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3220         (lto_input_tree_pointers): Likewise.
3221         * lto-streamer-out.c (pack_value_fields): Likewise.
3222         (lto_output_tree_pointers): Likewise.
3223         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3224         and OPTIMIZATION_NODE.
3225
3226 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3227
3228         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3229         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3230         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3231         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3232         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3233         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3234         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3235         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3236         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3237         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3238         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3239         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3240         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3241         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3242         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3243         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3244         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3245         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3246         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3247         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3248         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3249         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3250         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3251         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3252         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3253         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3254         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3255         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3256         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3257         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3258         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3259         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3260         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3261         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3262         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3263         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3264         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3265         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3266         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3267         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3268         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3269         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3270         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3271         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3272         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3273         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3274         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3275         * system.h (MD_UNWIND_SUPPORT): Poison.
3276         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3277         * doc/tm.texi: Regenerate.
3278         * unwind-dw2.c: Include md-unwind-support.h instead of
3279         MD_UNWIND_SUPPORT.
3280         * config/ia64/unwind-ia64.c: Likewise.
3281         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3282
3283 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
3284
3285         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3286
3287 2011-06-03  Richard Henderson  <rth@redhat.com>
3288             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3289
3290         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3291         (sigill_hdlr): Correct insn, insn size.
3292         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3293
3294 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3295
3296         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3297         t-slibgcc-dummy.
3298         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3299         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3300         * config/mips/t-iris: Remove.
3301         * config/mips/t-irix6: New file.
3302         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3303
3304 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3305
3306         * Makefile.in (LIB2ADDEHDEP): Remove.
3307         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3308         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3309         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3310         * config/t-darwin (LIB2ADDEHDEP): Remove.
3311         * config/t-freebsd (LIB2ADDEHDEP): Remove.
3312         * config/t-linux (LIB2ADDEHDEP): Remove.
3313
3314 2011-06-03  Diego Novillo  <dnovillo@google.com>
3315
3316         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3317         (lto_register_var_decl_in_symtab): Likewise.
3318         (lto_register_function_decl_in_symtab): Likewise.
3319         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3320         logic to uniquify_nodes.
3321
3322 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3323
3324         * config/alpha/t-osf5: Remove.
3325         * config/alpha/t-osf-pthread: Remove.
3326         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3327         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3328
3329 2011-06-03  Julian Brown  <julian@codesourcery.com>
3330
3331         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3332         (strongarm1110): Use strongarm tuning.
3333         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3334         * config/arm/arm.c (arm_strongarm_tune): New.
3335         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3336         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3337         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3338         setting, using previous defaults or 1 for Cortex-A5.
3339         (arm_option_override): Set max_insns_skipped from current tuning.
3340
3341 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
3342
3343         * doc/install.texi (Options specification): Document --with-specs.
3344
3345 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3346
3347         * config/arm/neon.md (orndi3_neon): Actually split it.
3348
3349 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3350
3351         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3352         * var-tracking.c (reverse_op): Limite recurse depth to 5.
3353
3354 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
3355
3356         PR debug/47590
3357         * target.def (delay_sched2, delay_vartrack): New.
3358         * doc/tm.texi.in: Update.
3359         * doc/tm.texi: Rebuild.
3360         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3361         * var-tracking.c (gate_handle_var_tracking): Likewise.
3362         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3363         (bfin_flag_var_tracking): Drop.
3364         (output_file_start): Don't save and override flag_var_tracking.
3365         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3366         (bfin_reorg): Test original variables.
3367         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3368         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3369         (ia64_flag_var_tracking): Drop.
3370         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3371         (ia64_file_start): Don't save and override flag_var_tracking.
3372         (ia64_override_options_after_change): Ditto
3373         flag_schedule_insns_after_reload.
3374         (ia64_reorg): Test original variables.
3375         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3376         (picochip_flag_var_tracking): Drop.
3377         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3378         (picochip_option_override): Don't save and override
3379         flag_schedule_insns_after_reload.
3380         (picochip_asm_file_start): Ditto flag_var_tracking.
3381         (picochip_reorg): Test original variables.
3382         * config/spu/spu.c (spu_flag_var_tracking): Drop.
3383         (TARGET_DELAY_VARTRACK): Define.
3384         (spu_var_tracking): New.
3385         (spu_machine_dependent_reorg): Call it.
3386         (asm_file_start): Don't save and override flag_var_tracking.
3387
3388 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
3389
3390         PR target/49163
3391         * config/sh/predicates.md (general_movsrc_operand): Return 0
3392         for memory and memory subreg of which address is an invalid
3393         indexed address for QI and HImode.
3394         (general_movdst_operand): Likewise.
3395
3396 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3397
3398         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3399         edges only, when there is a non-local label in the function.
3400         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3401
3402 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3403
3404         * config/i386/constraints.md (Y3): New register constraint.
3405         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3406         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3407         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3408         *sse2_interleave_lowv2df.
3409
3410 2011-06-02  Julian Brown  <julian@codesourcery.com>
3411
3412         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3413         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3414         (arm_cortex_a5_tune): New.
3415
3416 2011-06-02  Julian Brown  <julian@codesourcery.com>
3417
3418         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3419         * config/arm/arm.c (arm_default_branch_cost): New.
3420         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3421         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3422         (arm_fa726_tune): Set branch_cost field using
3423         arm_default_branch_cost.
3424         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3425         current_tune structure.
3426         * dojump.c (tm_p.h): Include file.
3427
3428 2011-06-02  Julian Brown  <julian@codesourcery.com>
3429
3430         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3431         tuning.
3432         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3433         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3434         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3435         field.
3436         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3437         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3438         (arm_fa726te_tune): Add prefer_constant_pool setting.
3439         (arm_v6t2_tune, arm_cortex_tune): New.
3440         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3441         prefer_constant_pool setting.
3442
3443 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
3444
3445         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3446         switch statement.
3447         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3448         (*movdf_internal) <case 6,7,8>: Ditto.
3449
3450         * config/i386/constraints.md (Y4): New register constraint.
3451         * config/i386/sse.md (vec_set<mode>_0): Merge with
3452         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3453         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3454         *vec_extractv2di_1_sse.
3455         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3456         and *vec_concatv2di_rex64_sse.
3457
3458 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
3459
3460         PR target/48807
3461         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3462         of cgraph_local_info for null before attempting to use it.
3463
3464 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3465
3466         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3467         (current_function_dynamic_alloc_count): Delete.
3468         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3469         (expand_builtin_nonlocal_goto): Remove obsolete comment.
3470         (expand_builtin_update_setjmp_buf): Remove dead code.
3471         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3472         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3473         support.
3474         * function.c (instantiate_virtual_regs): Likewise.
3475         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3476         for a block with a single abnormal incoming edge.
3477         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3478         (SETJMP_VIA_SAVE_AREA): Delete.
3479         * config/sparc/sparc-protos.h (load_got_register): Declare.
3480         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3481         (load_got_register): Make global.
3482         (sparc_frame_pointer_required): Add 'static'.
3483         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
3484         (sparc_builtin_setjmp_frame_value): New function.
3485         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3486         (save_stack_nonlocal): New expander.
3487         (restore_stack_nonlocal): Likewise.
3488         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3489         (nonlocal_goto_internal): New insn.
3490         (goto_handler_and_restore): Delete.
3491         (builtin_setjmp_setup): Likewise.
3492         (do_builtin_setjmp_setup): Likewise.
3493         (setjmp): Likewise.
3494         (builtin_setjmp_receiver): New expander.
3495
3496 2011-06-01  David Li  <davidxl@google.com>
3497
3498         PR middle-end/49261
3499         * tree-pretty-print.c (dump_function_header): Format cleanup.
3500
3501 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
3502
3503         PR target/49238
3504         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3505         needed when original operands are used for msw_skip comparison.
3506
3507 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3508
3509         PR debug/49250
3510         * var-tracking.c (add_uses, add_stores): Don't call
3511         cselib_subst_to_values on ENTRY_VALUE.
3512
3513 2011-06-01  Diego Novillo  <dnovillo@google.com>
3514
3515         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3516         output_record_start with LTO_null instead of output_zero.
3517         (lto_output_ts_binfo_tree_pointers): Likewise.
3518         (lto_output_tree): Likewise.
3519         (output_eh_try_list): Likewise.
3520         (output_eh_region): Likewise.
3521         (output_eh_lp): Likewise.
3522         (output_eh_regions): Likewise.
3523         (output_bb): Likewise.
3524         (output_function): Likewise.
3525         (output_unreferenced_globals): Likewise.
3526         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3527         instead of NUM_TREE_CODES.
3528         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3529         (lto_output_int_in_range): Change << to >> when shifting VAL.
3530
3531 2011-06-01  Diego Novillo  <dnovillo@google.com>
3532
3533         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3534         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3535
3536 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3537
3538         PR target/45074
3539         * optabs.h (valid_multiword_target_p): Declare.
3540         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3541         doing multi-word operations.
3542         * optabs.c (expand_binop): Likewise.
3543         (expand_doubleword_bswap): Likewise.
3544         (expand_absneg_bit): Likewise.
3545         (expand_unop): Likewise.
3546         (expand_copysign_bit): Likewise.
3547         (multiword_target_p): New function.
3548
3549 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3550
3551         PR rtl-optimization/48830
3552         PR rtl-optimization/48808
3553         PR rtl-optimization/48792
3554         * reload.c (push_reload): Check contains_reg_of_mode.
3555         * reload1.c (strip_paradoxical_subreg): New function.
3556         (gen_reload_chain_without_interm_reg_p): Use it to handle
3557         paradoxical subregs.
3558         (emit_output_reload_insns, gen_reload): Likewise.
3559
3560 2011-06-01  David Li  <davidxl@google.com>
3561
3562         * predict.c : Change pass name
3563         * ipa.c: Ditto.
3564         * dce.c: Ditto.
3565         * tree-profile.c: Ditto.
3566         * except.c: Ditto.
3567
3568 2011-06-01  David Li  <davidxl@google.com>
3569
3570         * tree-pretty-print.c (dump_function_header): New function.
3571         * final.c (rest_of_clean_state): Use header dumper.
3572         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3573         * passes.c (pass_init_dump_file): Use header dumper.
3574
3575 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3576
3577         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3578         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3579         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3580         New functions.
3581         (mem_loc_descriptor): Use them.
3582
3583         * var-tracking.c (create_entry_value): New function.
3584         (vt_add_function_parameter): Use it.
3585
3586 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3587
3588         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3589         Include <signal.h>, <ucontext.h>.
3590         (sigill_caught): Define.
3591         (sigill_hdlr): New function.
3592         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3593         insns can be executed.
3594         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3595         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3596
3597 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3598
3599         * config/t-slibgcc-darwin: Move to ...
3600         * config/t-slibgcc-dummy: ... this.  Clarify comments.
3601         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3602         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3603         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3604         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
3605         Remove i386/t-crtstuff from tmake_file.
3606         (i[34567]86-*-solaris2*): Remove t-svr4,
3607         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3608         t-slibgcc-dummy.
3609         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3610         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3611         sparc/t-crtfm from tmake_file.
3612         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3613         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3614         Remove extra_parts.
3615         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3616         * config/i386/t-nwld (SHLIB_LINK): Remove.
3617         * config/i386/t-rtems-i386: Rename to ...
3618         * config/i386/t-rtems: ... this.
3619         ($(T)crti.o, $(T)crtn.o): Remove.
3620         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3621         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3622         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3623         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3624         EXTRA_MULTILIB_PARTS): Remove.
3625         * config/sparc/t-sol2-64: Likewise.
3626         * config/sparc/t-sol2: Remove.
3627         * config/sparc/t-crtin: Remove.
3628         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3629         * config/i386/gmon-sol2.c: Remove.
3630         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3631         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3632         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3633         * config/i386/sol2-gc1.asm: Remove.
3634         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3635         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3636         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3637         * config/t-slibgcc-sld: Remove.
3638
3639 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
3640
3641         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3642         base_type_for_mode with op_mode instead of mode.
3643
3644 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
3645
3646         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
3647         Cortex-A15.
3648         * config/arm/arm-tune.md: Regenerate.
3649         * config/arm/arm-tables.opt: Regenerate.
3650         * config/arm/arm.c (FL_DIV): Rename...
3651         (FL_THUMB_DIV): ... to this.
3652         (FL_ARM_DIV): Define.
3653         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3654         (arm_arch_hwdiv): Remove.
3655         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3656         (arm_issue_rate): Add cortexr5.
3657         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3658         __ARM_ARCH_EXT_IDIV__.
3659         (TARGET_IDIV): Define.
3660         (arm_arch_hwdiv): Remove.
3661         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3662         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3663         (divsi3, udivsi3): New patterns.
3664         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3665         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3666
3667 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3668
3669         * ipa-utils.c (ipa_dfs_info): New field scc_no.
3670         * ipa-utils.c (searchc): Set scc_no.
3671
3672 2011-06-01  Martin Jambor  <mjambor@suse.cz>
3673
3674         * ipa-utils.c (searchc_env): New field allow_overwritable.
3675         (searchc): do not ignore edges to overwritable nodes if indicated
3676         by env->allow_overwritable.
3677         (ipa_reduced_postorder): Set env.allow_overwritable.
3678
3679 2011-06-01  Richard Guenther  <rguenther@suse.de>
3680
3681         * tree.c (free_lang_data): Do not reset boolean_type_node nor
3682         char_type_node.
3683         * lto-streamer.c (lto_record_common_node): Take node pointer,
3684         do not register types.
3685         (lto_preload_common_nodes): Explicitly skip preloading nodes
3686         that differ between frontends.
3687
3688 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3689
3690         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3691         NON_FLOAT_REGS.
3692
3693 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3694
3695         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3696         parameter value for dump. Dump cost on outermost call only.
3697         (rs6000_memory_move_cost): Dump cost on outermost call only.
3698
3699 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3700
3701         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3702         DW_OP_GNU_convert ops.
3703
3704         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3705         cselib_preserve_constants.
3706         (cselib_lookup_1): If cselib_preserve_constants,
3707         a new VALUE is being created for REG and there is a VALUE for the
3708         same register in wider mode, add another loc with lowpart SUBREG of
3709         the wider VALUE.
3710         (cselib_subst_to_values): Handle ENTRY_VALUE.
3711         * var-tracking.c  (replace_expr_with_values): Return NULL for
3712         ENTRY_VALUE too.
3713         * dwarf2out.c (convert_descriptor_to_signed): New function.
3714         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3715         instead of two shifts.
3716         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3717         the right mode if needed.
3718         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3719         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3720         convert_descriptor_to_signed.
3721         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3722         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3723
3724         PR target/48688
3725         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3726
3727 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3728
3729         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3730         of X87MODEI12 and SWI48x instead of SSEMODEI24.
3731         (SWI248x): New mode iterator, rename from X87MODEI.
3732         (X87MODEI): Remove mode iterator.
3733         (X87MODEI12): Ditto.
3734         (SSEMODEI24): Ditto.
3735
3736 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3737
3738         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3739         * doc/invoke.texi: Document max-vartrack-expr-depth.
3740         * var-tracking.c (EXPR_DEPTH): New.
3741         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3742
3743 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3744
3745         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3746         * config/i386/sse.md: Add n to negated FMA pattern names.
3747
3748 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3749
3750         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3751
3752 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
3753
3754         * gengtype-state.c (read_state_params_structs): Initialize previous.
3755
3756 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3757
3758         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3759         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3760
3761 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
3762
3763         * config/i386/i386.md (*movtf_internal): Avoid allocating general
3764         registers.  Penalize F*r->o alternative to prevent partial memory
3765         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
3766         CONST_DOUBLE immediates when optimizing function for size.  Do not move
3767         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3768         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3769         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3770         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3771         alternatives.
3772         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3773
3774         (fp_register_operand splitters): Use fp_register_operand
3775         constraint.  Do not use FP_REG_P in insn condition.
3776         (any_fp_register_operand splitters): Use any_fp_register_operand
3777         constraint.  Do not use ANY_FP_REG_P in insn condition.
3778
3779 2011-05-31  Jan Hubicka  <jh@suse.cz>
3780
3781         * cgraph.h (cgraph_inline_failed_t): Give enum a name
3782         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3783         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3784         (lto_output_edge): Use output_enum and var_len_unsigned.
3785         (lto_output_varpool_node): Likewise.
3786         (input_overwrite_node): Do not take resolution parameter;
3787         extract it from a bitpack.
3788         (input_node): Do not read resolution; use input_enum and
3789         var_len_unsigned.
3790         (input_varpool_node): Likewise.
3791         (input_edge): Likewise.
3792         (input_cgraph_1): Likewise.
3793
3794 2011-05-31  Richard Guenther  <rguenther@suse.de>
3795
3796         * gimple.c (gimple_register_canonical_type): Do not register
3797         any types via gimple_register_type.
3798
3799 2011-05-31  Jan Hubicka  <jh@suse.cz>
3800
3801         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3802         of thunks.
3803
3804 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
3805
3806         PR rtl-optimization/49235
3807         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3808         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3809
3810 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
3811
3812         PR tree-optimization/49093
3813         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3814         data references.
3815
3816 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
3817
3818         PR debug/49047
3819         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3820         for concrete functions containing the code of cloned functions.
3821
3822 2011-05-31  Richard Guenther  <rguenther@suse.de>
3823
3824         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3825         to ...
3826         (forward_propagate_into_comparison_1): ... this.
3827         (forward_propagate_comparison): Rename to ...
3828         (forward_propagate_into_comparison): ... this.  Split out
3829         real forward propagation code to ...
3830         (forward_propagate_comparison): ... this.
3831         (forward_propagate_into_gimple_cond): Remove looping.
3832         (forward_propagate_into_cond): Likewise.
3833         (simplify_not_neg_expr): Return whether we have done something.
3834         (simplify_gimple_switch): Likewise.
3835         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3836         (ssa_forward_propagate_and_combine): ... this.  Re-structure
3837         to do a forward forward-propagation walk on BBs and a backward
3838         stmt combining walk on BBs.  Consistently re-scan changed statements.
3839         (pass_forwprop): Adjust.
3840
3841 2011-05-30  Ian Lance Taylor  <iant@google.com>
3842
3843         * godump.c (go_format_type): Correct length of name added to
3844         obstack for anonymous field.
3845
3846 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
3847
3848         PR target/49186
3849         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3850         part of the second operand is 0.
3851
3852 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
3853
3854         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3855         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
3856         to memory for !TARGET_MEMORY_MISMATCH_STALL.
3857         (*movdf_internal_rex64): Do not penalize F->r alternative.
3858         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3859         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
3860         when optimizing function for size.  Do not move CONST_DOUBLEs
3861         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3862         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
3863         SUBREGs.  Do not check for MEM_P operands in the insn condition,
3864         check for ANY_FP_REGNO_P instead.
3865         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3866         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3867         function for speed.
3868         * config/i386/i386.c (ix86_option_override_internal): Do not
3869         set TARGET_INTEGER_DFMODE_MOVES here.
3870
3871 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3872
3873         PR target/49168
3874         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3875
3876 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
3877
3878         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3879         DW_TAG_rvalue_reference_type even for
3880         -gdwarf-4 -fno-debug-types-section.
3881
3882 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3883
3884         PR tree-optimization/46728
3885         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3886         (build_and_insert_binop): New.
3887         (gimple_expand_builtin_pow): Reorder args for
3888         build_and_insert_call; use build_and_insert_binop; add more
3889         optimizations for fractional exponents.
3890
3891 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
3892
3893         PR bootstrap/49190
3894
3895         Revert:
3896         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
3897
3898         * tree.h (struct tree_identifier): Inherit from tree_typed, not
3899         tree_common.
3900         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3901         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3902         TS_BASE instead of TS_COMMON.
3903         * varasm.c (assemble_name): Remove assert.
3904
3905 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
3906
3907         * config.gcc: Keep obselete list sorted.
3908
3909 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
3910             Eric Botcazou  <ebotcazou@adacore.com>
3911
3912         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3913         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3914         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3915         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3916         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3917
3918 2011-05-30  Richard Guenther  <rguenther@suse.de>
3919
3920         * gimple.c (gimple_types_compatible_p_1): Compare record
3921         and union type members properly.
3922
3923 2011-05-30  Richard Guenther  <rguenther@suse.de>
3924
3925         PR tree-optimization/49210
3926         * ipa-split.c (split_function): Care for the case where the call
3927         result is not trivially convertible to the result holding variable.
3928
3929 2011-05-30  Richard Guenther  <rguenther@suse.de>
3930
3931         PR tree-optimization/49218
3932         * tree-vrp.c (adjust_range_with_scev): Properly check whether
3933         overflow occured.
3934
3935 2011-05-30  Richard Guenther  <rguenther@suse.de>
3936
3937         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3938         New function split out from ...
3939         (forward_propagate_into_gimple_cond): ... here.  Adjust.
3940         (forward_propagate_into_cond): Likewise.
3941         (forward_propagate_comparison): Also propagate into
3942         comparisons on assignment RHS.  Change return value to
3943         behave similar to forward_propagate_into_cond.
3944         (tree_ssa_forward_propagate_single_use_vars): Handle
3945         strict-overflow warnings properly for forward_propagate_comparison.
3946
3947 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3948
3949         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3950         from plugin linker.
3951         * configure: Regenerate.
3952
3953 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
3954
3955         PR tree-optimization/49199
3956         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3957         non-reduction operands are either defined in the loop or by induction.
3958
3959 2011-05-29  Xinliang David Li  <davidxl@google.com>
3960
3961         * opts-global.c (handle_common_deferred_options): Handle new options.
3962         * passes.c (register_one_dump_file): Call register_pass_name.
3963         (execute_one_pass): Check explicit enable/disable flag.
3964         (passr_hash): New function.
3965         (passr_eq): Ditto.
3966         (register_pass_name): Ditto.
3967         (get_pass_by_name): Ditto.
3968         (pass_hash): Ditto.
3969         (pass_eq): Ditto.
3970         (enable_pass): Ditto.
3971         (disable_pass): Ditto.
3972         (is_pass_explicitly_enabled_or_disabled): Ditto.
3973
3974 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
3975
3976         * config/i386/i386.md (*movoi_internal_avx): Use
3977         standard_sse_constant_opcode for alternative 0.
3978         (*movti_internal_sse): Ditto.
3979         (*movti_internal_rex64): Use standard_sse_constant_opcode for
3980         alternative 2.
3981         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3982         sselog1 type moves.
3983         (*movsi_internal): Ditto.
3984         (*movdi_internal): Ditto.  Add ssecvt type moves.
3985
3986 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
3987
3988         PR target/48830
3989         * rtlanal.c (simplify_subreg_regno): Adjust comment.
3990
3991 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
3992
3993         PR rtl-optimization/49095
3994         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3995         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3996
3997 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
3998
3999         PR target/43995
4000         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4001         recurse_p argument.  Only follow register copies if it is set,
4002         and prevent mips_find_pic_call_symbol from recursing.
4003         (mips_find_pic_call_symbol): Add a recurse_p argument.
4004         Pass it to mips_pic_call_symbol_from_set.
4005         (mips_annotate_pic_calls): Update accordingly.
4006
4007 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
4008
4009         * emit-rtl.c (try_split): Use a loop to search for
4010         NOTE_INSN_CALL_ARG_LOCATIONs.
4011
4012 2011-05-29  Richard Guenther  <rguenther@suse.de>
4013
4014         PR tree-optimization/49217
4015         * ipa-pure-const.c (propagate_pure_const): Fix typos.
4016
4017 2011-05-28  Jan Hubicka  <jh@suse.cz>
4018
4019         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4020         length.
4021         (string_slot_free): Remove
4022         (create_output_block): Initialize obstack.
4023         (destroy_output_block): Free obstack.
4024         (lto_string_index): Add PERSISTENT parameter; do not duplicate
4025         the string unless it needs to be added into the hash.
4026         (lto_output_string_with_length): Add persistent attribute;
4027         handle NULL strings.
4028         (lto_output_string): Add PERSISTENT parameter.
4029         (output_string_cst, output_identifier): Simplify.
4030         (lto_output_location_bitpack): Update.
4031         (lto_output_builtin_tree): Update.
4032         * lto-streamer.h (struct output_block): Add obstack.
4033         (lto_output_string, lto_output_string_with_length): Remove
4034         declarations; functions are static now.
4035
4036 2011-05-28  Jan Hubicka  <jh@suse.cz>
4037
4038         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4039         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4040         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4041         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4042         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4043         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4044         unpack_ts_decl_with_vis_value_fields,
4045         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4046         lto_get_builtin_tree): Use enum and variable length i/o.
4047         * basic-block.h (profile_status_d): Add PROFILE_LAST.
4048         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4049         New functions.
4050         (bp_pack_enum, bp_unpack_enum): New macros.
4051
4052 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4053
4054         * genrecog.c: Remove redundant forward declarations.
4055
4056 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4057
4058         * config.gcc: Deprecate mips*-*-openbsd*.
4059
4060 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
4061
4062         PR bootstrap/49195
4063         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4064         for match_op_dup.
4065
4066 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
4067
4068         PR middle-end/48981
4069         * gengtype.c (vec_prefix_type): New function.
4070         (note_def_vec): Use vec_prefix_type and change the length
4071         attribute to be based on the prefix.
4072         * vec.c: Include coretypes.h before vec.h.
4073         (struct vec_prefix): Remove.
4074         (vec_gc_p_reserve): Change the offsetof to sizeof.
4075         (vec_gc_p_reserve_exact): Likewise.
4076         (vec_heap_p_reserve): Likewise.
4077         (vec_heap_p_reserve_exact): Likewise.
4078         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4079         (vec_stack_p_reserve): Change the offsetof to sizeof.
4080         (vec_stack_p_reserve_exact): Likewise.
4081         * vec.h (struct vec_prefix): New struct definition.
4082         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4083         (VEC_T_GTY(T,B)): Likewise.
4084         (DEF_VEC_FUNC_P(T)): Use prefix field.
4085         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4086         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4087
4088 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4089
4090         PR tree-optimization/46728
4091         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4092         (powi_as_mults): Add gimple_set_location.
4093         (build_and_insert_call): New.
4094         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4095         0.5, 0.25, 0.75, 1./3., or 1./6.
4096
4097 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
4098
4099         * doc/contrib.texi: Update copyright years.
4100         (Contributors): Add Zdenek Sojka.
4101
4102 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
4103
4104         * c-decl.c (c_push_function_context): Copy the current statement
4105         list stack.
4106         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4107         (finish_struct): Call building_stmt_list_p instead of checking
4108         cur_stmt_list.
4109         * c-parser.c (c_parser_postfix_expression): Likewise.
4110         * c-typeck.c (c_end_compound_stmt): Likewise.
4111         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4112         * tree-iterator.c (stmt_list_cache): Change to a VEC.
4113         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4114         (free_stmt_list): Likewise.
4115         * tree.h (struct tree_statement_list): Include typed_tree instead
4116         of tree_common.
4117         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4118         as TS_TYPED instead of TS_COMMON.
4119
4120 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4121             Uros Bizjak  <ubizjak@gmail.com>
4122
4123         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4124         (HAVE_AS_IX86_TLSGDPTL): Define.
4125         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4126         (HAVE_AS_IX86_TLSLDMPLT): Define.
4127         * configure: Regenerate.
4128         * config.in: Regenerate.
4129         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4130         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4131         TARGET_SUN_TLS, use @tlsgdplt or @plt.
4132         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4133         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4134         @tlsldmplt or @plt.
4135         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4136
4137 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
4138
4139         * sched-int.h (struct _haifa_deps_insn_data): New members cond
4140         and reverse_cond.
4141         (INSN_COND, INSN_REVERSE_COND): New macros.
4142         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4143         once.
4144         (sched_get_condition_with_rev): Cache the results, and look them up
4145         if possible.
4146         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4147         are clobbered by the current insn.
4148         * target.def (exposed_pipline): New sched data hook.
4149         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4150         * doc/tm.texi: Regenerate.
4151
4152 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4153
4154         PR tree-optimization/49170
4155         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
4156         sincos or cexp.
4157
4158 2011-05-27  Richard Guenther  <rguenther@suse.de>
4159
4160         PR middle-end/49189
4161         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4162         of comparisons.
4163
4164 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
4165
4166         * haifa-sched.c (sched_scan_info): Remove.
4167         (schedule_block): Call sched_extend_luids rather than sched_init_luids
4168         with NULL args.
4169         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4170         Remove functions.
4171         (sched_scan): Remove.
4172         (sched_extend_luids): Renamed from luids_extend_insn and no longer
4173         static.  All callers changed.
4174         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4175         static.  All callers changed.
4176         (sched_init_luids): Remove all arguments except the first.  All
4177         callers changed.  Don't use sched_scan.
4178         (haifa_init_h_i_d): Likewise.
4179         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4180         manually rather than using sched_init_luids.  Likewise with
4181         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4182         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4183         rather than sched_init_luids with NULL args.
4184         * sel-sched-ir.c (new_insns): Remove variable.
4185         (sched_scan): New static function, previously in haifa-sched.c.  Remove
4186         all arguments but the first two; all callers changed.
4187         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4188         rather than sched_init_luids.
4189         (sel_init_bbs): Remove second argument.  All callers changed.
4190         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4191         with NULL arguments.
4192         (create_insn_rtx_from_pattern): Likewise.
4193         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4194         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4195         (sched_init_insn_luid, sched_extend_luids): Declare.
4196         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4197         declarations.
4198
4199 2011-05-27  Richard Guenther  <rguenther@suse.de>
4200
4201         PR middle-end/49177
4202         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4203         A CMP B ? (T) true : (T) false for non-integral types T again.
4204
4205 2011-05-27  Jan Hubicka  <jh@suse.cz>
4206
4207         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4208         so 0 means NULL string.
4209         (lto_output_string_with_length): ... here.
4210         (lto_output_string, output_string_cst, output_identifier): Update
4211         handling of NULL strings.
4212         (lto_output_location_bitpack): New function.
4213         (lto_output_location): Use it.
4214         (lto_output_tree_ref): Use output_record_start.
4215         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4216         len values.
4217         * lto-streamer-in.c (string_for_index): Break out from ...; offset
4218         values by 1.
4219         (input_string_internal): ... here;
4220         (input_string_cst, input_identifier, lto_input_string): Update handling
4221         of NULL strings.
4222         (lto_input_location_bitpack): New function
4223         (lto_input_location): Use it.
4224         (unpack_ts_type_common_value_fields): Pack align & alias in var len
4225         values.
4226         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4227         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4228         (bp_pack_value): Sanity check the value range.
4229         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4230         New functions.
4231         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4232         New functions.
4233
4234 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
4235
4236         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4237         call_arg_location instructions down the floor.
4238
4239 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
4240
4241         PR rtl-optimization/49154
4242         * ira.c (setup_pressure_classes): Process class without sublcasses
4243         as a candidate for pressure classes.
4244
4245 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
4246
4247         PR rtl-optimization/48575
4248         * genrecog.c (position_type): New enum.
4249         (position): New structure.
4250         (decision): Use position structure instead of a string.
4251         (root_pos, peep2_insn_pos_list): New variables.
4252         (next_position, compare_positions): New functions.
4253         (new_decision): Use position structures instead of strings.
4254         (maybe_both_true): Likewise.
4255         (change_state): Likewise.
4256         (write_tree): Likewise.
4257         (make_insn_sequence): Likewise.
4258
4259 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4260
4261         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4262         TS_BASE instead of TS_COMMON.
4263         (find_decls_types_r): Check for TS_TYPED structure before looking at
4264         TREE_TYPE.
4265         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4266         Add chain field.
4267         (BLOCK_CHAIN): Use new chain field.
4268
4269 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
4270
4271         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4272         moves expensive on Power7 also.
4273
4274 2011-05-26  Richard Guenther  <rguenther@suse.de>
4275
4276         * fold-const.c (fold_unary_loc): Remove bogus code.
4277
4278 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
4279
4280         * tree.h (struct tree_identifier): Inherit from tree_typed, not
4281         tree_common.
4282         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4283         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4284         TS_BASE instead of TS_COMMON.
4285         * varasm.c (assemble_name): Remove assert.
4286
4287 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4288
4289         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4290         substituted first.
4291         * libgcc-std.ver: Delete file.
4292
4293 2011-05-26  Richard Guenther  <rguenther@suse.de>
4294
4295         PR tree-optimization/48702
4296         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4297         only when we know the base address is within bounds.
4298         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4299         assume the base address of TARGET_MEM_REFs is in bounds.
4300
4301 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4302
4303         PR target/49099
4304         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4305         declaration in TARGET_SOLARIS.
4306
4307 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
4308
4309         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4310         The instruction is then expanded explicitly.
4311         (supported_compare): Callable instruction.
4312         (compare): Likewise.
4313
4314 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4315
4316         PR c++/49165
4317         * gimplify.c (shortcut_cond_r): Don't special case
4318         COND_EXPRs if they have void type on one of their arms.
4319
4320 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
4321
4322         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4323         to reduce duplication, and to achieve a slightly more logical order
4324         of operations.
4325
4326 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
4327
4328         PR tree-optimization/49161
4329         * tree-vrp.c (struct case_info): New type.
4330         (compare_case_labels): Sort case_info structs instead of
4331         trees, and not primarily by CASE_LABEL uids but by
4332         label_for_block indexes.
4333         (find_switch_asserts): Put case labels into struct case_info
4334         array instead of TREE_VEC, adjust sorting, compare label_for_block
4335         values instead of CASE_LABELs.
4336
4337 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4338
4339         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4340         ("orndi3_neon"): Likewise.
4341         ("bic<mode>3_neon"): Likewise.
4342
4343 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
4344
4345         PR tree-optimization/49038
4346         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4347         Ensure at least one epilogue iteration if required by data
4348         accesses with gaps.
4349         * tree-vectorizer.h (struct _loop_vec_info): Add new field
4350         to mark loops that require peeling for gaps.
4351         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4352         (vect_get_known_peeling_cost): Take peeling for gaps into
4353         account.
4354         (vect_transform_loop): Generate epilogue if required by data
4355         access with gaps.
4356         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4357         loop as requiring an epilogue if there are gaps in the end of
4358         the strided group.
4359
4360 2011-05-25  Ian Lance Taylor  <iant@google.com>
4361
4362         * godump.c (go_format_type): Output the first field with a usable
4363         Go type, if any.
4364
4365 2011-05-25  Ian Lance Taylor  <iant@google.com>
4366
4367         * godump.c (go_format_type): Check for invalid type names, pointer
4368         target types, and struct field types.
4369
4370 2011-05-25  Jason Merrill  <jason@redhat.com>
4371
4372         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4373
4374 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
4375
4376         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4377
4378 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4379
4380         * config/i386/i386.md (*movqi_extv_1)): Put back
4381         "register_operand" check in "type" calculation.
4382         (*movqi_extzv_2): Likewise.
4383
4384 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4385
4386         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4387
4388 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4389
4390         PR bootstrap/49160
4391         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4392         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4393         __divxc3, __divtc3): Wrap definitions in #ifndef.
4394
4395 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4396
4397         PR target/49142
4398         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4399         "register_operand" check and replace q_regs_operand with
4400         QIreg_operand in "type" calculation.
4401         (*movqi_extv_1): Likewise.
4402         (*movqi_extzv_2_rex64): Likewise.
4403         (*movqi_extzv_2): Likewise.
4404
4405         * config/i386/predicates.md (QIreg_operand): New.
4406
4407 2011-05-25  Richard Guenther  <rguenther@suse.de>
4408
4409         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4410         type-based offset disambiguation, streamline MEM_REF and
4411         TARGET_MEM_REF handling.
4412
4413 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4414
4415         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4416         (bdesc_special_args): Add pause intrinsic.
4417
4418         * config/i386/i386.md (UNSPEC_PAUSE): New.
4419         (pause): Likewise.
4420         (*pause): Likewise.
4421         * config/i386/ia32intrin.h (__pause): Likewise.
4422
4423         * doc/extend.texi (X86 Built-in Functions): Add documentation for
4424         pause intrinsic.
4425
4426 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4427
4428         PR tree-optimization/46728
4429         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4430         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4431
4432 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
4433
4434         * tree.h (struct tree_exp): Inherit from struct tree_typed.
4435         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4436         instead of TS_COMMON.
4437
4438 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
4439
4440         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4441         LIBGCC2_GNU_PREFIX is defined.
4442         (__N): New macro.
4443         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4444         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4445         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4446         __clz_tab): Define using __N.
4447         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4448         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4449         * target.def (libfunc_gnu_prefix): New hook.
4450         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4451         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4452         * doc/tm.texi: Regenerate.
4453         * system.h (LIBGCC2_GNU_PREFIX): Poison.
4454         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4455         account.
4456         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4457         (init_optabs): Likewise for the bswap libfuncs.
4458         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4459         and divide.
4460         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4461         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4462         * libgcc-std.ver: Remove.
4463         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4464         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4465         libgcc-std.ver.
4466         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4467         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4468         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4469         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4470         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4471         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4472         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4473         * config/fixed-bit.h (FIXED_OP): Define differently depending on
4474         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4475         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4476
4477 2011-05-25  Jan Hubicka  <jh@suse.cz>
4478
4479         * lto-streamer-out.c (output_record_start): Use lto_output_enum
4480         (lto_output_tree): Use output_record_start.
4481         * lto-streamer-in.c (input_record_start): Use lto_input_enum
4482         (lto_get_pickled_tree): Use input_record_start.
4483         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4484         (lto_value_range_error): New function.
4485         * lto-streamer.h (lto_value_range_error): Declare.
4486         (lto_output_int_in_range, lto_input_int_in_range): New functions.
4487         (lto_output_enum, lto_input_enum): New macros.
4488
4489 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4490
4491         * common.opt (flag_stack_usage_info): New variable.
4492         (-Wstack-usage): New option.
4493         * doc/invoke.texi (Warning options): Document -Wstack-usage.
4494         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4495         <OPT_fstack_usage>: Likewise.
4496         * toplev.c (output_stack_usage): Handle -Wstack-usage.
4497         * calls.c (expand_call): Test flag_stack_usage_info variable instead
4498         of flag_stack_usage.
4499         (emit_library_call_value_1): Likewise.
4500         * explow.c (allocate_dynamic_stack_space): Likewise.
4501         * function.c (instantiate_virtual_regs ): Likewise.
4502         (prepare_function_start): Likewise.
4503         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4504         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4505         * config/arm/arm.c (arm_expand_prologue): Likewise.
4506         (thumb1_expand_prologue): Likewise.
4507         * config/avr/avr.c (expand_prologue): Likewise.
4508         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4509         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4510         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4511         * config/mips/mips.c (mips_expand_prologue): Likewise.
4512         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4513         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4514         * config/s390/s390.c (s390_emit_prologue): Likewise.
4515         * config/sh/sh.c (sh_expand_prologue): Likewise.
4516         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4517         * config/spu/spu.c (spu_expand_prologue): Likewise.
4518
4519 2011-05-25  Richard Guenther  <rguenther@suse.de>
4520
4521         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4522         (gimple_canonical_types_compatible_p): Likewise.
4523
4524 2011-05-25  Jan Hubicka  <jh@suse.cz>
4525
4526         PR middle-end/49062
4527         * ipa.c (function_and_variable_visibility): Only add to same
4528         comdat group list if DECL_ONE_ONLY.
4529
4530 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
4531
4532         PR rtl-optimization/49014
4533         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4534
4535 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
4536
4537         PR target/49128
4538         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4539
4540 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4541
4542         PR rtl-optimization/48757
4543         * ira-build.c (loop_with_eh_edge_p): Rename to
4544         loop_with_complex_edge_p, check edges on complexity, make function
4545         conditional.
4546         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4547         conditional.
4548
4549 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4550
4551         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4552         force flag_ira_share_save_slots to 0.
4553
4554 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4555
4556         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4557         (vt_initialize): Set PROLOGUE_BB unconditionally.
4558         Add block comment about CFA_BASE_RTX machinery.
4559         Reset FP_CFA_OFFSET to -1 on all invalid paths.
4560         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4561
4562 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
4563
4564         PR objc/48187
4565         * c-parser.c (c_parser_objc_class_instance_variables): More robust
4566         parsing of syntax error in ObjC instance variable lists.  In
4567         particular, avoid an infinite loop if there is a stray ']'.
4568         Updated error message.
4569
4570 2011-05-24  Ian Lance Taylor  <iant@google.com>
4571
4572         * godump.c (go_define): Don't accept a string immediately after
4573         another operand.
4574
4575 2011-05-24  Ian Lance Taylor  <iant@google.com>
4576
4577         * godump.c (struct godump_container): Add invalid_hash field.
4578         (go_format_type): Return false if type is found in invalid_hash.
4579         (go_output_typedef): Add invalid type to invalid_hash.
4580         (go_finish): Create and delete invalid_hash.
4581
4582 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4583
4584         PR tree-optimization/46728
4585         * tree-ssa-math-opts.c (powi_table): New.
4586         (powi_lookup_cost): New.
4587         (powi_cost): New.
4588         (powi_as_mults_1): New.
4589         (powi_as_mults): New.
4590         (gimple_expand_builtin_powi): New.
4591         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4592         (gate_cse_sincos): Remove sincos/cexp restriction.
4593
4594 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4595
4596         PR target/3746
4597         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4598         mips-tdump native.
4599         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4600         * mips-tdump.c: Likewise.
4601
4602 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4603
4604         PR target/49128
4605         * config/i386/driver-i386.c (host_detect_local_cpu): Always
4606         add -mno-XXX.  Handle FMA.
4607
4608 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4609
4610         PR rtl-optimization/48633
4611         * ira-build.c (loop_with_eh_edge_p): New function.
4612         (mark_loops_for_removal): Use it.
4613
4614 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
4615
4616         PR rtl-optimization/48971
4617         * ira.c (setup_pressure_classes): Don't check register move cost
4618         for classes with one registers.  Don't add pressure class if there
4619         is a pressure class with the same available hard registers.
4620         Check contains_reg_of_mode.  Fix a typo in collecting
4621         temp_hard_regset.  Ignore hard registers not belonging to a class.
4622
4623 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
4624
4625         PR target/49133
4626         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4627
4628 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
4629             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4630
4631         PR gcov-profile/48845
4632         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4633
4634 2011-05-24  Richard Guenther  <rguenther@suse.de>
4635
4636         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4637         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4638         (gimple_types_compatible_p_1): Adjust.
4639         (iterative_hash_canonical_type): Do not bother about complete vs.
4640         incomplete types.
4641         (gimple_canonical_types_compatible_p): Likewise.
4642
4643 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4644
4645         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4646
4647 2011-05-24  Richard Guenther  <rguenther@suse.de>
4648
4649         PR bootstrap/49078
4650         * gimple.c (gimple_register_canonical_type): Revert
4651         previous change.
4652         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4653         does not for a tree for the case where it matters.  Cache
4654         pointer-type alias-sets.
4655
4656 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
4657
4658         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4659         (OBJS): Remove options.o, opts-common.o and prefix.o.
4660         (OBJS-libcommon-target): New.
4661         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4662         (BACKEND): Include libcommon-target.a.
4663         (MOSTLYCLEANFILES): Include libcommon-target.a.
4664         (libcommon-target.a): New.
4665         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4666         prefix.o.
4667
4668 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
4669
4670         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
4671         parts of output shared with the driver.
4672         * optc-gen.awk: Don't generate parts of output not shared with the
4673         driver.
4674         * opth-gen.awk: Remove GCC_DRIVER conditionals.
4675         * doc/options.texi (SourcerInclude): Mention options-save.c.
4676         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4677         (OBJS): Add options-save.o.
4678         (options-save.c, options-save.o): New.
4679         (options.o): Update dependencies.
4680         (gcc-options.o): Remove.
4681         (mostlyclean): Remove options-save.c.
4682
4683 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4684
4685         PR debug/49032
4686         * dbxout.c: Include cgraph.h.
4687         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4688         and without value expr, return NULL if no varpool node exists for
4689         it or if it is not needed.
4690         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4691
4692         PR c/49120
4693         * c-decl.c (start_decl): Convert expr to void_type_node.
4694
4695 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
4696
4697         PR rtl-optimization/48826
4698         * emit-rtl.c (try_split): When splitting a call that is followed
4699         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4700
4701 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4702
4703         * cfgexpand.c (expand_debug_expr): For unused non-addressable
4704         parameters passed in memory prefer using DECL_INCOMING_RTL over
4705         the pseudos it will be copied into.
4706
4707 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4708
4709         PR target/47315
4710         * config/i386/i386.c (ix86_option_override_internal): Save the
4711         initial options after checking vzeroupper.
4712
4713 2011-05-23  David Li  <davidxl@google.com>
4714
4715         PR tree-optimization/48988
4716         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4717         Initialize has_valid_pred for each pred chain.
4718
4719 2011-05-23  Richard Guenther  <rguenther@suse.de>
4720
4721         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4722         (iterative_hash_gimple_type): Always hash type names.
4723
4724 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
4725
4726         * c-typeck.c (build_function_call_vec): Tweak call to
4727         check_function_arguments.
4728
4729 2011-05-23  Richard Guenther  <rguenther@suse.de>
4730
4731         PR tree-optimization/49115
4732         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4733         is not necessarily carried out, do not claim it kills the ref.
4734         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4735
4736 2011-05-23  Richard Guenther  <rguenther@suse.de>
4737
4738         PR middle-end/15419
4739         * builtins.c (fold_builtin_memory_op): Be less restrictive about
4740         what pointer types we accept for folding.
4741
4742 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4743
4744         * gthr-gnat.c: Remove.
4745         * gthr-gnat.h: Remove.
4746         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4747         * config/t-freebsd (LIB2ADDEH): Likewise.
4748         * config/t-linux (LIB2ADDEH): Likewise.
4749         * config/t-sol2 (LIB2ADDEH): Likewise.
4750         * config/ia64/t-vms (LIB2ADDEH): Likewise.
4751         * configure.ac (target_thread_file): Remove gnat handling.
4752         * configure: Regenerate.
4753         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4754
4755 2011-05-23  Tristan Gingold  <gingold@adacore.com>
4756             Eric Botcazou  <ebotcazou@adacore.com>
4757
4758         * gcov.c (create_file_names): If no object directory is specified,
4759         keep the directory of the file.
4760
4761 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4762
4763         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4764         * configure: Regenerate.
4765
4766 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
4767
4768         PR middle-end/48973
4769         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4770         failed and the comparison has a single bit signed type, use
4771         constm1_rtx instead of const1_rtx for true value.
4772         (do_store_flag): If ops->type is single bit signed type, disable
4773         signel bit test optimization and pass -1 instead of 1 as last
4774         parameter to emit_store_flag_force.
4775
4776 2011-05-23  Tom de Vries  <tom@codesourcery.com>
4777
4778         PR target/45098
4779         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4780         function.
4781         (infer_loop_bounds_from_undefined): Use new function.
4782
4783 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4784
4785         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4786         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
4787         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4788         and -O0 otherwise.
4789         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4790
4791 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4792
4793         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4794         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4795         returns true.
4796
4797 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
4798
4799         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4800
4801 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4802
4803         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4804         UNSPEC_MOVE_PIC pattern.
4805
4806 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
4807
4808         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4809         (sparc-*-rtems*): Likewise.
4810         (sparc64-*-elf*): Likewise.
4811         (sparc64-*-rtems*): Likewise.
4812         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
4813         * config/sparc/t-crtin: New file.
4814         * config/sparc/t-sol2 (crti.o): Delete rule.
4815         (crtn.o): Likewise.
4816         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4817         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4818         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4819         (ENDFILE_SPEC): Add crtn.o.
4820
4821 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4822
4823         PR middle-end/48689
4824         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4825         CODE_CONTAINS_STRUCT (TS_COMMON).
4826
4827 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
4828
4829         PR middle-end/49029
4830         * expmed.c (extract_fixed_bit_field): Test whether target can be used
4831         only after deciding which mode to use.
4832
4833 2011-05-22  Tom de Vries  <tom@codesourcery.com>
4834
4835         PR target/45098
4836         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4837         for call to get_shiftadd_cost.
4838
4839 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
4840
4841         PR target/49104
4842         * config/i386/cpuid.h (bit_MMXEXT): New define.
4843
4844 2011-05-22  Nick Clifton  <nickc@redhat.com>
4845
4846         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4847         initialisation of non-existant args[2] element.  Use args[] array
4848         not arg[] array to pass arguments to build_function_type_list.
4849
4850 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
4851
4852         PR tree-optimization/49087
4853         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4854
4855 2011-05-21  Jason Merrill  <jason@redhat.com>
4856
4857         PR c++/49092
4858         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4859         static storage duration.
4860
4861 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4862
4863         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4864         frame pointer.
4865
4866 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4867
4868         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4869         false if there are call-saved registers here...
4870         (sparc_can_use_return_insn_p): ...but here instead.
4871         (save_or_restore_regs): Fix thinko.
4872         (sparc_expand_prologue): Use current_function_is_leaf.
4873         (sparc_frame_pointer_required): Likewise.
4874
4875 2011-05-21  Nick Clifton  <nickc@redhat.com>
4876
4877         PR target/49098
4878         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4879
4880 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4881
4882         * gengtype.c (walk_type): Implemented "atomic" GTY option.
4883         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4884
4885 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
4886
4887         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
4888         * optc-gen.awk: Move common code to opt-read.awk.
4889         * opth-gen.awk: Likewise.
4890         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4891
4892 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
4893
4894         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4895
4896 2011-05-20  Tom de Vries  <tom@codesourcery.com>
4897
4898         PR target/45098
4899         * tree-ssa-loop-ivopts.c: Include expmed.h.
4900         (get_shiftadd_cost): New function.
4901         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
4902
4903 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
4904
4905         PR bootstrap/49086
4906         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4907         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4908
4909 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
4910
4911         * Makefile.in: Update comment referring to $(OBJS-common).
4912
4913 2011-05-20  Ian Lance Taylor  <iant@google.com>
4914
4915         * godump.c (go_output_typedef): Put enum constants in the macro
4916         hash table to avoid duplicate Go const definitions.
4917
4918 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
4919
4920         * Makefile.in (LIBDEPS): Add libcommon.a.
4921         (LIBS): Likewise.
4922         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4923         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4924         pretty-print.o and version.o.
4925         (OBJS-libcommon): New.
4926         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4927         (BACKEND): Add libcommon.a.
4928         (MOSTLYCLEANFILES): Likewise.
4929         (libcommon.a): New.
4930         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4931         (cpp$(exeext)): Likewise.
4932         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4933         pretty-print.o and input.o.
4934         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4935         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4936         (errors.o): Remove.
4937         (mips-tfile): Don't explicitly use version.o.
4938         (mips-tdump): Likewise.
4939         (gcov.o): Depend on $(DIAGNOSTIC_H).
4940         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4941         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4942         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4943         * gcov-dump.c: Include intl.h and diagnostic.h.
4944         (main): Initialize diagnostics.
4945         * gcov.c: Include diagnostic.h.
4946         (fnotice): Remove.
4947         (main): Initialize diagnostics.
4948         * lto-wrapper.c: Include diagnostic.h.
4949         (main): Initialize diagnostics.
4950
4951 2011-05-20  Michael Matz  <matz@suse.de>
4952
4953         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4954
4955 2011-05-20  Michael Matz  <matz@suse.de>
4956             Richard Guenther  <rguenther@suse.de>
4957
4958         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4959         use lto_streamer_cache_append directly instead of returning a VEC.
4960         (preload_common_node): Remove.
4961         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4962         track seen nodes.
4963         (lto_streamer_cache_create): Call lto_preload_common_nodes.
4964
4965 2011-05-20  Richard Guenther  <rguenther@suse.de>
4966
4967         PR tree-optimization/49079
4968         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4969         MEM_REFs correctly for the trailing array access detection.
4970         Special case constants the same way as decls for overall size
4971         constraining.
4972
4973 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
4974
4975         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4976         argument expansion.
4977
4978 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
4979
4980         PR tree-optimization/49073
4981         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4982         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4983         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4984
4985 2011-05-20  Richard Guenther  <rguenther@suse.de>
4986
4987         PR middle-end/48849
4988         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4989         of pointer types the same way the middle-end does.
4990
4991 2011-05-20  Richard Guenther  <rguenther@suse.de>
4992
4993         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4994         or pointer-to chains.  Delay all fixup to uniquify_nodes.
4995
4996 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
4997
4998         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4999         (fma4_fmaddsub): Likewise
5000
5001 2011-05-19  Jan Hubicka  <jh@suse.cz>
5002
5003         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5004         (GIMPLE_TYPE_PAIR_SIZE): New macro.
5005         (type_pair_cache): New static var.
5006         (lookup_type_pair): Use fixed sized custom hash; make inline.
5007         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5008         calls of lookup_type_pair.
5009         (print_gimple_types_stats): Remove cache stats.
5010         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5011         and gtc_ob.
5012
5013 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
5014
5015         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5016         when TARGET_RDRND is active.
5017         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5018         Generate dummy SImode target register when target is NULL.
5019
5020 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
5021
5022         * config/arm/arm-fpus.def: New.
5023         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5024         arm-fpus.def.
5025         * config/arm/arm-tables.opt: Regenerate.
5026         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5027         (arm_option_override): Don't decode FPU name to string here.
5028         * config/arm/arm.opt (mfpu=): Use Enum.
5029         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5030         Update dependencies.
5031
5032 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
5033
5034         * collect2.c: Include diagnostic.h.
5035         (fatal_perror, fatal, error, fancy_abort): Remove.
5036         (main): Set progname.  Call xmalloc_set_program_name and
5037         diagnostic_initialize.
5038         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5039         scan_libraries, resolve_lib_name): Call fatal_error instead of
5040         fatal and fatal_perror.
5041         * collect2.h (error, fatal, fatal_perror): Don't declare.
5042         * tlink.c: Include diagnostic-core.h.
5043         (recompile_files): Call fatal_error instead of fatal_perror.
5044         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5045         pretty-print.o and input.o.
5046         (collect2.o, tlink.o): Update dependencies.
5047
5048 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5049
5050         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5051
5052 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5053
5054         PR target/40483
5055         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5056         COMDAT group syntax, both SPARC and x86 variants.
5057         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5058         * configure: Regenerate.
5059         * config/sol2.h (TARGET_SOLARIS): Define.
5060         (PUSHSECTION_FORMAT): Remove.
5061         (SECTION_NAME_FORMAT): Define.
5062         * config/sol2.c: Include hashtab.h.
5063         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5064         expansion, using SECTION_NAME_FORMAT.
5065         (solaris_comdat_htab): New variable.
5066         (struct comdat_entry): Define.
5067         (comdat_hash): New function.
5068         (comdat_eq): New function.
5069         (solaris_elf_asm_comdat_section): New function.
5070         (solaris_define_comdat_signature): New function.
5071         (solaris_code_end): New function.
5072         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5073         (solaris_code_end): Declare.
5074         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5075         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5076         solaris_code_end.
5077         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5078         Remove ATTRIBUTE_UNUSED.
5079         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5080         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
5081         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
5082         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5083         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5084         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5085         (PUSHSECTION_FORMAT): Remove.
5086         (SECTION_NAME_FORMAT): Redefine.
5087
5088 2011-05-19  Kai Tietz  <ktietz@redhat.com>
5089
5090         * tree-cfg.c (verify_gimple_assign_binary): Barf on
5091         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5092         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5093
5094 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
5095             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5096
5097         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5098
5099 2011-05-19  Richard Guenther  <rguenther@suse.de>
5100
5101         PR middle-end/48985
5102         * tree-object-size.c (addr_object_size): If the pointed-to
5103         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5104
5105 2011-05-19  Richard Guenther  <rguenther@suse.de>
5106
5107         * gimple.c (gimple_types_compatible_p_1): Compare names of
5108         the types themselves.
5109         (iterative_hash_gimple_type): And hash them that way.
5110         (gimple_register_type_1): If we register a main variant properly
5111         initialize the leader to ourselves.
5112
5113 2011-05-19  Tom de Vries  <tom@codesourcery.com>
5114
5115         PR target/45098
5116         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5117         get_loop_invariant_expr_id.
5118         (get_loop_invariant_expr_id): Use get_expr_id.
5119         (parm_decl_cost): New function.
5120         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5121         Improve bound cost estimation.  Use different inv_expr_id for elim and
5122         express cases.
5123
5124 2011-05-19  Tom de Vries  <tom@codesourcery.com>
5125
5126         PR target/45098
5127         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5128         cost_base.cost == 0.
5129
5130 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5131
5132         PR target/49002
5133         * config/i386/sse.md
5134         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5135         load cast.
5136
5137 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
5138
5139         PR tree-optimization/49039
5140         * tree-vrp.c (extract_range_from_binary_expr): For
5141         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5142         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5143
5144 2011-05-18  Tom de Vries  <tom@codesourcery.com>
5145
5146         PR target/45098
5147         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5148
5149 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
5150
5151         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5152         (*tls_global_dynamic_64): Ditto.
5153         (*tls_local_dynamic_base_32_gnu): Ditto.
5154         (*tls_local_dynamic_base_64): Ditto.
5155         (tls_initial_exec_64_sun): Ditto.
5156
5157 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
5158
5159         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5160         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5161         bf592-none.
5162         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5163         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5164         * config/bfin/bfin.c (bfin_cpus): Add bf592.
5165         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5166         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5167         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5168         * config/bfin/elf.h (LIB_SPEC): Add bf592.
5169
5170 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
5171
5172         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5173         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5174         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5175         target_thread_pointer, arm_structure_size_boundary, struct
5176         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5177         struct abi_name, arm_all_abis): Remove.
5178         (arm_option_override) Don't process most enumerated option values here.
5179         Don't process target_fpe_name here.  Work with integer not string for
5180         structure size boundary; use separate diagnostics for each case.
5181         * config/arm/arm.h (enum float_abi_type, enum
5182         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5183         to arm-opts.h.
5184         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5185         arm_structure_size_boundary): Remove.
5186         * config/arm/arm.opt (mabi=): Use Enum and Init.
5187         (arm_abi_type): New Enum and EnumValue entries.
5188         (mfloat-abi=): Use Enum and Init.
5189         (float_abi_type): New Enum and EnumValue entries.
5190         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5191         (mfp16-format=): Use Enum and Init.
5192         (arm_fp16_format_type): New Enum and EnumValue entries.
5193         (mstructure-size-boundary=): Use UInteger and Init.
5194         (mtp=): Use Enum and Init.
5195         (arm_tp_type): New Enum and EnumValue entries.
5196
5197 2011-05-18  Richard Guenther  <rguenther@suse.de>
5198
5199         PR tree-optimization/49018
5200         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5201         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5202         gimple_has_side_effects.
5203
5204 2011-05-18  Richard Guenther  <rguenther@suse.de>
5205
5206         * gimple.c (gimple_register_type_1): New function, split out from ...
5207         (gimple_register_type): ... here.  Avoid infinite recursion.
5208
5209 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
5210
5211         PR tree-optimization/41881
5212         * tree-vectorizer.h (struct _loop_vec_info): Add new field
5213         reduction_chains along with a macro for its access.
5214         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5215         (destroy_loop_vec_info): Free reduction chains.
5216         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5217         (vect_is_slp_reduction): New function.
5218         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5219         (vect_create_epilog_for_reduction): Support SLP reduction chains.
5220         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5221         definition types for reduction chains.
5222         (vect_supported_load_permutation_p): Don't allow permutations for
5223         reduction chains.
5224         (vect_analyze_slp_instance): Support reduction chains.
5225         (vect_analyze_slp): Try to build SLP instance from reduction chains.
5226         (vect_get_constant_vectors):  Handle reduction chains.
5227         (vect_schedule_slp_instance): Mark the first statement of the
5228         reduction chain as reduction.
5229
5230 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
5231
5232         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5233         names for group elements access.
5234         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5235         reduction chains as well.  Remove data reference and interleaving
5236         related words from the fields names.
5237         * tree-vect-loop.c (vect_transform_loop): Use new names for group
5238         elements access.
5239         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5240         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5241         vect_update_interleaving_chain, vect_same_range_drs,
5242         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5243         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5244         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5245         vect_analyze_group_access, vect_analyze_data_ref_access,
5246         vect_create_data_ref_ptr, vect_transform_strided_load,
5247         vect_record_strided_load_vectors): Likewise.
5248         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5249         vect_model_load_cost, vectorizable_store, vectorizable_load,
5250         vect_remove_stores, new_stmt_vec_info): Likewise.
5251         * tree-vect-slp.c (vect_build_slp_tree,
5252         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5253
5254 2011-05-18  Richard Guenther  <rguenther@suse.de>
5255
5256         PR middle-end/48989
5257         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5258         operand verification.
5259         (verify_gimple_assign_binary): Likewise.
5260         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5261         to non-1-precision BOOLEAN_TYPEs.
5262
5263 2011-05-18  Tom de Vries  <tom@codesourcery.com>
5264
5265         PR target/45098
5266         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5267
5268 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
5269
5270         PR tree-optimization/49000
5271         * tree-ssa.c (execute_update_addresses_taken): Call
5272         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
5273         be rewritten and decl has been marked for renaming, reset
5274         the debug stmt.
5275
5276 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
5277
5278         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5279         enum_opts_set when testing if attributes have set -mfpmath=.
5280
5281 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
5282
5283         * config/mips/mips.c (mips_handle_option): Remove unused variable.
5284
5285 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5286
5287         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5288         info->entry with 0
5289         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
5290         id.transform_lang_insert_block with NULL.
5291
5292 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
5293
5294         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5295         (output_fp_compare): Change args 3 and 4 to bool.
5296         (ix86_expand_call): Change arg 6 to bool.
5297         (ix86_attr_length_immediate_default): Change arg 2 to bool.
5298         (ix86_attr_length_vex_default): Change arg 3 to bool.
5299         * config/i386/i386.md: Update all uses.
5300         * config/i386/i386.c: Ditto.
5301         (ix86_flags_dependent): Change return type to bool.
5302
5303 2011-05-17  Richard Guenther  <rguenther@suse.de>
5304
5305         * gimple.c (type_hash_pair_compare): Fix comparison.
5306
5307 2011-05-17  Richard Guenther  <rguenther@suse.de>
5308
5309         * gimple.c (iterative_hash_gimple_type): Simplify singleton
5310         case some more, fix final hash value of the non-singleton case.
5311
5312 2011-05-17  Richard Guenther  <rguenther@suse.de>
5313
5314         PR bootstrap/49013
5315         Revert
5316         2011-05-16  Richard Guenther  <rguenther@suse.de>
5317
5318         * gimple.c (gimple_types_compatible_p_1): Use names of the
5319         type itself, not its main variant.
5320         (iterative_hash_gimple_type): Likewise.
5321
5322 2011-05-17  Richard Guenther  <rguenther@suse.de>
5323
5324         * gimple.c (gimple_register_canonical_type): Use the main-variant
5325         leader for computing the canonical type.
5326
5327 2011-05-17  Nick Clifton  <nickc@redhat.com>
5328
5329         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5330         moves.
5331
5332         * config/rx/rx.md: Add peephole to remove redundant extensions
5333         after loads.
5334         (bitset_in_memory): Use rx_restricted_mem_operand.
5335         (bitinvert_in_memory): Likewise.
5336         (bitclr_in_memory): Likewise.
5337
5338 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
5339             Nick Clifton  <nickc@redhat.com>
5340
5341         * config/rx/rx.md: Add peepholes to match a register move followed
5342         by a comparison of the moved register.  Replace these with an
5343         addition of zero that does both actions in one instruction.
5344
5345 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
5346
5347         PR target/48986
5348         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5349         predicate to allow CONST_INT.
5350         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5351
5352 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5353
5354         * opts-common.c (opt_enum_arg_to_value): New.
5355         * opts.h (opt_enum_arg_to_value): Declare.
5356         * config/i386/i386.opt (fpmath): Remove.
5357         (mfpmath=): Use Enum, Init and Save.
5358         (fpmath_unit): New Enum and EnumValue entries.
5359         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5360         name for function fpmath state.
5361         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5362         * config/i386/i386.c: Include diagnostic.h.
5363         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5364         (ix86_target_string): Take enum fpmath_unit value instead of string.
5365         (ix86_debug_options): Update call to ix86_target_string.
5366         (ix86_option_override_internal): Don't process fpmath strings here.
5367         (x86_function_specific_save, ix86_function_specific_restore):
5368         Don't handle fpmath state specially.
5369         (ix86_function_specific_print): Pass fpmath state to
5370         ix86_target_string instead of printing in this function.
5371         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5372         Handle enum attributes.
5373         (IX86_ATTR_ENUM, ix86_opt_enum): New.
5374         (ix86_valid_target_attribute_tree): Update option_strings
5375         handling.  Handle fpmath as enum option.
5376         (ix86_can_inline_p): Update field names for function fpmath state.
5377         (ix86_expand_builtin): Update call to ix86_target_string.
5378         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5379         (ix86_fpmath): Remove.
5380         * config/i386/t-i386 (i386.o): Update dependencies.
5381
5382 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
5383
5384         PR preprocessor/48677
5385         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5386         from decoded_options[0], not from itself.
5387
5388 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
5389
5390         * config/i386/constraints.md (z): New constraint.
5391         * config/i386/i386.c (c): New mode attribute.
5392         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5393         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5394         constraint for operand 0.
5395         (*call_vzeroupper): Ditto.
5396         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
5397         (*call_rex64_ms_sysv_vzeroupper): Ditto.
5398         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5399         Use "lzm" constraint for operand 0.
5400         (*call_pop_vzeroupper): Ditto.
5401         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5402         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
5403         constraint for operand 0.
5404         (*sibcall_vzeroupper): Ditto.
5405         (*sibcall_rex64_ms_sysv): Ditto.
5406         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5407         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5408         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
5409         (*sibcall_pop_vzeroupper): Ditto.
5410         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5411         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5412         mode iterator.  Use "<c>zm" constraint for operand 1.
5413         (*call_value_vzeroupper): Ditto.
5414         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
5415         for operand 1.
5416         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5417         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5418         *call_value_pop_1.  Use "lzm" constraint for operand 1.
5419         (*call_value_pop_vzeroupper): Ditto.
5420         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5421         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5422         mode iterator.  Use "Uz" constraint for operand 1.
5423         (*sibcall_value_vzeroupper): Ditto.
5424         (*sibcall_value_rex64_ms_sysv): Ditto.
5425         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5426         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
5427         constraint for operand 1.
5428         (*sibcall_value_pop_vzeroupper): Ditto.
5429         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5430         and "z" constraint for operand 2.
5431         (*tls_global_dynamic_32_gnu): Ditto.
5432         (*tls_local_dynamic_base_32_gnu): Ditto.
5433         (*tls_local_dynamic_base_64): Ditto.
5434         (*tls_local_dynamic_32_once): Ditto.
5435         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5436         Update all callers.
5437         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5438
5439 2011-05-16  Richard Guenther  <rguenther@suse.de>
5440
5441         * gimple.c (gimple_types_compatible_p_1): Use names of the
5442         type itself, not its main variant.
5443         (iterative_hash_gimple_type): Likewise.
5444
5445 2011-05-16  Richard Guenther  <rguenther@suse.de>
5446
5447         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5448         always visit pointer target and function result and argument types.
5449
5450 2011-05-16  Jason Merrill  <jason@redhat.com>
5451
5452         PR c++/48999
5453         * tree-inline.c (copy_statement_list): Put back recursion.
5454
5455 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5456
5457         PR target/27663
5458         PR target/41076
5459         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5460         * config/avr/avr.md ("*ior<mode>qi.byte0",
5461         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5462
5463 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
5464
5465         PR target/45099
5466         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5467         register is needed for a function argument.
5468
5469 2011-05-16  Richard Guenther  <rguenther@suse.de>
5470
5471         * gimple.c (struct type_hash_pair): New type.
5472         (type_hash_pair_compare): New function.
5473         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5474
5475 2011-05-16  Revital Eres  <revital.eres@linaro.org>
5476
5477         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5478
5479 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5480
5481         * config/i386/i386.md (floating point move splitters): Fix
5482         usage of standard_80387_constant_p.
5483         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5484
5485 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
5486
5487         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5488
5489 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
5490
5491         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5492         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5493         (tree_ssa_lim_finalize): Likewise.
5494
5495 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
5496
5497         * config/i386/constraint.md (Yd, Yx): New register constraints.
5498         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
5499         Yd conditional register constraint.
5500         (*movtf_internal): Use standard_sse_constant_opcode.
5501         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
5502         Yx conditional register constraint.
5503         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
5504         Yd conditional register constraint.  Use standard_sse_constant_p to
5505         check for valid SSE constants and call standard_sse_constant_opcode to
5506         output SSE insn.
5507         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5508         constants and call standard_sse_constant_opcode to output SSE insn.
5509         * config/i386/i386.c (ix86_option_ovverride_internal): Set
5510         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
5511         optimize_size is set.
5512         (standard_sse_constant_opcode): Output conditional AVX insn templates.
5513
5514 2011-05-14  Tobias Burnus  <burnus@net-b.de>
5515
5516         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5517
5518 2011-05-13  Martin Jambor  <mjambor@suse.cz>
5519
5520         * ipa-prop.c (ipa_cst_from_jfunc): New function.
5521         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5522         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5523         (evaluate_conditions_for_ipcp_clone): Removed.
5524         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5525         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5526         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5527
5528 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
5529
5530         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5531         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5532         lieu of MAY_HAVE_DEBUG_STMTS.
5533         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5534         debug statements if !MAY_HAVE_DEBUG_STMTS.
5535
5536 2011-05-13  Martin Thuresson  <martint@google.com>
5537
5538         PR gcov-profile/47793
5539         * libgcov.c (gcov_exit): Support relative profile paths.
5540         * doc/invoke.texi (-fprofile-dir): Update for above change.
5541
5542 2011-05-13  Richard Guenther  <rguenther@suse.de>
5543
5544         * gimple.c (gimple_canonical_types_compatible_p): Do not use
5545         type-pair caching, do not compare hashes.
5546
5547 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
5548
5549         PR middle-end/48965
5550         * tree-cfg.c (edge_to_cases_cleanup): Return true.
5551         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5552
5553 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5554
5555         * gimplify.c (gimplify_expr): Make sure operand is boolified.
5556         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5557         compatible type for TRUTH_NOT_EXPR.
5558
5559 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5560
5561         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5562         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
5563         can_create_pseudo_p ().
5564
5565 2011-05-13  Richard Guenther  <rguenther@suse.de>
5566
5567         PR lto/48978
5568         * gimple.c (iterative_hash_gimple_type): Revert change in
5569         pointer target and function result and argument hashing.
5570
5571 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
5572
5573         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5574         (*movxf_internal_nointeger): Ditto.
5575         (*movdf_internal_rex64): Ditto.
5576         (*movdf_internal): Ditto.
5577         (*movdf_internal_nointeger): Ditto.
5578         (*movsf_internal): Ditto.
5579         (sincos splitters): Use can_create_pseudo ().
5580
5581 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
5582
5583         * config/i386/i386-opts.h: New.
5584         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5585         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5586         ix86_section_threshold): Remove.
5587         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
5588         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5589         OPT_mbranch_cost_.
5590         (ix86_option_override_internal): Don't decode strings for options
5591         other than -march=, -mtune= and -mfpmath=.  Don't allow for
5592         __attribute__ uses in remaining diagnostics for options with
5593         string arguments.  Don't check for integer arguments being negative.
5594         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5595         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5596         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5597         ix86_branch_cost, ix86_section_threshold): Remove.
5598         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5599         HeaderInclude.
5600         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5601         but not Var.
5602         (masm=): Use Enum and Init.
5603         (asm_dialect): New Enum and EnumValue entries.
5604         (mbranch-cost=): Use UInteger.
5605         (mlarge-data-threshold=): Use UInteger and Init.
5606         (mcmodel=): Use Enum and Init.
5607         (cmodel): New Enum and EnumValue entries.
5608         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5609         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5610         mregparm=): Use UInteger.
5611         (mstringop-strategy=): Use Enum and Init.
5612         (stringop_alg): New Enum and EnumValue entries.
5613         (mtls-dialect=): Use Enum and Init.
5614         (tls_dialect): New Enum and EnumValue entries.
5615         (mabi=): Use Enum and Init.
5616         (calling_abi): New Enum and EnumValue entries.
5617         (mveclibabi=): Use Enum and Init.
5618         (ix86_veclibabi): New Enum and EnumValue entries.
5619
5620 2011-05-13  Nick Clifton  <nickc@redhat.com>
5621
5622         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5623         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5624
5625 2011-05-13  Kai Tietz  <ktietz@redhat.com>
5626
5627         PR middle-end/48984
5628         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5629         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5630         (gimple_boolify): Check for cast for boolean_type_node instead for
5631         BOOLEAN_TYPE.
5632
5633 2011-05-13  Richard Guenther  <rguenther@suse.de>
5634
5635         PR tree-optimization/48172
5636         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5637         multiplying by number of iterations for equal step.
5638         (vect_create_cond_for_alias_checks): Likewise.
5639
5640 2011-05-13  Andreas Schwab  <schwab@redhat.com>
5641
5642         * configure.ac: Use AS_HELP_STRING throughout.
5643         * configure: Regenerate.
5644
5645 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5646
5647         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5648         (ix86_emit_restore_regs_using_mov): Likewise.
5649         (ix86_emit_restore_sse_regs_using_mov): Likewise.
5650
5651 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
5652
5653         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5654         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5655         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5656         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5657         RTX_OK_FOR_OLO10_P): ...here.
5658         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5659         SYMBOLIC_CONST.
5660
5661 2011-05-12  Kai Tietz  <ktietz@redhat.com>
5662
5663         * gimplify.c (gimple_boolify): Re-boolify expression
5664         arguments even if expression type is of kind BOOLEAN_TYPE.
5665         (gimplify_boolean_expr): Removed.
5666         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5667         and XOR. Additional take care that we keep expression's type.
5668         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5669         of TRUTH_AND|OR|XOR_EXPR.
5670
5671 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5672
5673         PR tree-optimization/48975
5674         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5675         on all bbs here and free and clear ifc_bbs at the end.
5676
5677 2011-05-12  Richard Guenther  <rguenther@suse.de>
5678
5679         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5680         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
5681         until after simple checks.
5682         (gimple_types_compatible_p): Likewise.
5683         (iterative_hash_gimple_type): Always hash pointer targets
5684         and function return and argument types.
5685         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5686         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
5687         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5688         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
5689         completely in the simple compare section.
5690         (gimple_register_canonical_type): Query the cache again after
5691         registering.
5692
5693 2011-05-12  Richard Guenther  <rguenther@suse.de>
5694
5695         PR tree-optimization/48172
5696         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5697         the number of iterations from the segment size calculation.
5698         (vect_create_cond_for_alias_checks): Adjust.
5699
5700 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
5701
5702         PR debug/48967
5703         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5704         if validate_subreg fails.
5705
5706 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
5707
5708         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5709         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5710         early.
5711
5712 2011-05-12  DJ Delorie  <dj@redhat.com>
5713
5714         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5715         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5716         created builtin into rx_builtins array.
5717         (rx_builtin_decl): New function.
5718         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
5719
5720 2011-05-12  DJ Delorie  <dj@redhat.com>
5721             Nick Clifton  <nickc@redhat.com>
5722
5723         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5724         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5725         (rx_is_legitimate_address): Add pre-decrement and post-increment
5726         addressing in HImode and QImode.  Fix test for out of range
5727         REG+INT addressing.
5728         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5729         (rx_align_for_label): Test label before extracting its usage count.
5730         (rx_adjust_insn_lengths): Fix selection of insn codes.
5731         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5732
5733 2011-05-11  Jason Merrill  <jason@redhat.com>
5734
5735         * tree.c (type_hash_canon): Use struct tree_type_non_common.
5736
5737 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5738
5739         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5740         reindent the subsequent block.
5741
5742 2011-05-11  Satoru Takabayashi  <satorux@google.com>
5743             Paul Pluzhnikov  <ppluzhnikov@google.com>
5744
5745         * doc/install.texi (Configuration): Document --with-linker-hash-style.
5746         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5747         * config.in: Add LINKER_HASH_STYLE.
5748         * configure.ac: Add --with-linker-hash-style.
5749         * configure: Regenerate.
5750
5751 2011-05-11  Richard Guenther  <rguenther@suse.de>
5752
5753         PR middle-end/48964
5754         * gimple.c (iterative_hash_canonical_type): Fix typo.
5755
5756 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
5757
5758         * config/i386/i386.c (legitimize_tls_address)
5759         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5760         expanders directly for TARGET_GNU2_TLS.  Determine pic and
5761         __tls_get_addr symbol reference here.  Update call to
5762         gen_tls_global_dynamic_{32,64} for added arguments.
5763         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5764         expanders directly for TARGET_GNU2_TLS.  Determine
5765         __tls_get_addr symbol reference here.  Update call to
5766         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
5767         unique UNSPEC REG_EQUIV to libcall block.
5768         (ix86_tls_get_addr): Declare static.
5769         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5770         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5771         Do not determine pic and __tls_get_addr symbol reference here. Do not
5772         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5773         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5774         (tls_global_dynamic_64): Add operand 2.  Do not determine
5775         __tls_get_addr symbol reference here.  Do not call
5776         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5777         (tls_local_dynamic_base64): Ditto for operand 1.
5778
5779 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
5780
5781         * function.c (expand_function_start): Initialize stack_check_probe_note
5782         only if the generic stack checking mechanism is used.
5783
5784 2011-05-11  Richard Guenther  <rguenther@suse.de>
5785
5786         PR tree-optimization/15256
5787         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5788         (A & B) | C, combine (A op CST1) op CST2.
5789         (tree_ssa_forward_propagate_single_use_vars): Only bother to
5790         visit assigns that have uses.
5791
5792 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
5793
5794         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5795         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5796         (unpack_ts_type_common_value_fields): ...this.  Update comment.
5797         (unpack_value_fields): Adjust for renaming.
5798         (lto_input_ts_type_tree_pointers): Split into...
5799         (lto_input_ts_type_common_tree_pointer): ...this and...
5800         (lto_input_ts_type_non_common_tree_pointers): ...this.
5801         (lto_input_tree_pointers): Adjust for above split.
5802         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5803         (pack_ts_type_common_value_fields): ...this.  Update comment.
5804         (lto_output_ts_type_tree_pointers): Split into...
5805         (lto_output_ts_type_common_tree_pointers): ...this and...
5806         (lto_output_ts_type_non_common_tree_pointers): ...this.
5807         (lto_output_tree_pointers): Adjust for above split.
5808         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5809         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5810         * stor-layout.c (vector_type_mode): Adjust location of mode field.
5811         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5812         Define.
5813         (struct tree_type): Split into...
5814         (struct tree_type_common: ...this and...
5815         (struct tree_type_with_lang_specific): ...this and...
5816         (struct tree_type_non_common): ...this.  Adjust accessor macros
5817         accordingly.
5818         (TYPE_VALUES_RAW): Define.
5819         (union tree_node): Update for above changes.
5820         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5821         TS_TYPE_NON_COMMON.
5822         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5823         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5824         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5825         * treestructu.def (TS_TYPE): Remove.
5826         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5827         Define.
5828
5829 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
5830
5831         PR debug/48159
5832         * tree-ssa.c (reset_debug_uses): New function.
5833         * tree-flow.h (reset_debug_uses): New prototype.
5834         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5835         * tree-loop-distribution.c (generate_loops_for_partition): Call
5836         reset_debug_uses on the stmts that will be removed.  Keep around
5837         all debug stmts, don't count them as bits in partition bitmap.
5838         (generate_builtin): Don't count debug stmts or labels as bits in
5839         partition bitmap.
5840
5841 2011-05-11  Richard Guenther  <rguenther@suse.de>
5842
5843         * gimple.c (gimple_type_hash_1): Merge with ...
5844         (gimple_type_hash): ... this.
5845         (gtc_visit): Remove mode parameter and simplify accordingly.
5846         (gimple_types_compatible_p_1): Likewise.
5847         (gimple_types_compatible_p): Likewise.
5848         (iterative_hash_gimple_type): Likewise.
5849         (visit): Likewise.
5850         (gimple_type_eq): Adjust.
5851
5852 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5853
5854         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5855         enters the branch create an anti edge in the opposite direction
5856         to prevent the creation of reg-moves.
5857         * modulo-sched.c: Adjust comment to reflect the fact we are
5858         scheduling closing branch.
5859         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5860         (stage_count): New field in struct partial_schedule.
5861         (calculate_stage_count): New function.
5862         (normalize_sched_times): Rename to reset_sched_times and handle
5863         incrementing the sched time of the nodes by a constant value
5864         passed as parameter.
5865         (duplicate_insns_of_cycles): Skip closing branch.
5866         (sms_schedule_by_order): Schedule closing branch.
5867         (ps_insn_find_column): Handle closing branch.
5868         (sms_schedule): Call reset_sched_times and adjust the code to
5869         support scheduling of the closing branch.
5870         (ps_insert_empty_row): Update calls to normalize_sched_times
5871         and rotate_partial_schedule functions.
5872
5873 2011-05-11  Richard Guenther  <rguenther@suse.de>
5874
5875         PR middle-end/48953
5876         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5877
5878 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
5879
5880         * opts.c (finish_options): Move warning settings from process_options.
5881         * toplev.c (process_options): Move warning settings to finish_options.
5882
5883 2011-05-11  Richard Guenther  <rguenther@suse.de>
5884
5885         PR tree-optimization/18041
5886         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5887         (simplify_bitwise_binary): ... this.  Handle operand conversions
5888         by applying them to the result instead.
5889         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
5890
5891 2011-05-11  Richard Guenther  <rguenther@suse.de>
5892
5893         * gimple.c (gimple_canonical_types_compatible_p): Split out
5894         from gimple_types_compatible_p and friends.  Do not recurse
5895         to pointed-to types.
5896         (gimple_canonical_type_eq): Use it.
5897         (iterative_hash_canonical_type): Split out from
5898         iterative_hash_gimple_type and friends.  Do not recurse
5899         to pointed-to types.
5900         (gimple_canonical_type_hash): Use it, allocate the hash here.
5901
5902 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5903
5904         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5905         recognizing doloop.
5906
5907 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5908
5909         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5910         instead of PREV_INSN.
5911
5912 2011-05-11  Revital Eres  <revital.eres@linaro.org>
5913
5914         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5915         * loop-doloop.c (doloop_condition_get): Likewise.
5916         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5917         (doloop_end): New.
5918         * config/arm/arm.md (*addsi3_compare0): Remove "*".
5919
5920 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
5921
5922         * tree.def (CASE_LABEL_EXPR): Add an operand.
5923         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5924
5925 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5926
5927         * c-decl.c (c_override_global_bindings_to_false): Remove.
5928         (global_bindings_p): Don't check
5929         c_override_global_bindings_to_false.
5930         * c-tree.h (c_override_global_bindings_to_false): Remove.
5931         * c-typeck.c (composite_type): Don't set
5932         c_override_global_bindings_to_false.
5933
5934 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5935
5936         PR target/48857, 48495
5937         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5938         (VSX_MODE): Ditto.
5939         (VSX_MOVE_MODE): Ditto.
5940         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5941         VSX vector types.  Add V2DImode.
5942         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5943         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5944         (MODES_TIEABLE_P): Ditto.
5945
5946         * config/rs6000/rs6000.c (rs6000_emit_move): Use
5947         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5948         VSX_VECTOR_MODE.
5949         (init_cumulative_args): Ditto.
5950         (rs6000_function_arg_boundary): Ditto.
5951         (rs6000_function_arg_advance_1): Ditto.
5952         (rs6000_function_arg): Ditto.
5953         (rs6000_function_ok_for_sibcall): Ditto.
5954         (emit_frame_save): Ditto.
5955         (rs6000_function_value): Ditto.
5956         (rs6000_libcall_value): Ditto.
5957
5958 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5959
5960         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5961         i386/darwin-lib.h to $libgcc_tm_file.
5962         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5963
5964 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5965
5966         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5967
5968 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
5969
5970         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5971         * config/rs6000/rs6000-tables.opt: New file (generated).
5972         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5973         rs6000/rs6000-tables.opt to extra_options.
5974         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5975         * config/rs6000/rs6000.c (rs6000_select): Remove.
5976         (processor_target_table): Move contents to rs6000-cpus.def.
5977         (darwin_rs6000_override_options): Check
5978         global_options_set.x_rs6000_cpu_index instead of
5979         rs6000_select[1].string.
5980         (rs6000_option_override_internal): Likewise.
5981         (rs6000_handle_option): Don't assert that global structures are in
5982         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
5983         (rs6000_default_cpu): New variable.
5984         (rs6000_file_start): Set it instead of local default_cpu.  Check
5985         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5986         global_options_set.x_rs6000_tune_index instead of rs6000_select.
5987         (rs6000_darwin_file_start): Check rs6000_default_cpu and
5988         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5989         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5990         rs6000_select): Remove.
5991         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5992         Remove.
5993         (mcpu=, mtune=): Use Var, Init, Enum and Save.
5994         * config/rs6000/t-rs6000
5995         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5996         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5997         global_options_set.x_rs6000_cpu_index instead of
5998         rs6000_select[1].string.
5999         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6000         global_options_set.x_rs6000_cpu_index instead of
6001         rs6000_select[1].string.
6002
6003 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
6004
6005         * config.gcc (libgcc_tm_file): Define instead of including files
6006         from ../../libgcc/config/ in tm_file.
6007         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6008         * configure: Regenerate.
6009         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6010         libgcc_tm.h, cs-libgcc_tm.h): New.
6011         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6012         (clean): Remove libgcc_tm.h.
6013         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6014         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6015         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6016
6017 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
6018
6019         PR target/48896
6020         * config/avr/avr.c (avr_ret_register): Return unsigned int
6021         instead of int.
6022         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6023         it to avr_libcall_value.
6024         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6025         expand_expr.
6026         (avr_expand_binop_builtin): Ditto.
6027         (avr_expand_unop_builtin): Ditto.
6028
6029 2011-05-10  DJ Delorie  <dj@redhat.com>
6030
6031         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6032         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6033         * config/rx/rx.c (rx_align_for_label): Add label and
6034         uses_threshold parameters.  Do not align when the label is not
6035         used enough.
6036         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6037
6038 2011-05-10  Richard Guenther  <rguenther@suse.de>
6039
6040         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6041         a series of conversions and apply foldings similar to what
6042         fold-const does.
6043         (tree_ssa_forward_propagate_single_use_vars): Call it.
6044
6045 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
6046
6047         PR tree-optimization/48611
6048         PR tree-optimization/48794
6049         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6050         referenced from RESX or EH_DISPATCH arguments.
6051
6052         PR debug/48928
6053         * dfp.c (decimal_to_decnumber): Handle conversion from
6054         dconst{1,2,m1,half}.
6055
6056 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6057
6058         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6059         for !flag_prefer_avx128.
6060         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6061
6062 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
6063
6064         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6065         (fold_ternary_loc): Use expr_location_or.
6066
6067 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6068
6069         PR debug/48853
6070         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6071         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6072         Pmode and mem_mode is not VOIDmode.
6073
6074 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
6075
6076         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6077         TYPE_QUAL_RESTRICT): Convert to enum.
6078
6079 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6080
6081         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6082         (const_pow2_1_to_8_operand): Ditto.
6083         (const_pow2_1_to_128_operand): Ditto.
6084         (const_pow2_1_to_32768_operand): Ditto.
6085         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6086         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
6087         in insn constraint to check integer value of operand 3.
6088         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6089
6090         (PINSR_MODE): New mode iterator.
6091         (sse2p4_1): New mode attribute.
6092         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6093         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6094         iterator.  Use const_int_operand instead of
6095         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
6096         exact_log2 in insn constraint to check integer value of operand 3.
6097
6098 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6099
6100         * config/i386/sse.md (blendbits): Remove mode attribute.
6101         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6102         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6103         Check integer value of operand 3 in insn constraint.
6104
6105 2011-05-09  Richard Guenther  <rguenther@suse.de>
6106
6107         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6108         for diagnostics.
6109         (lto_symtab_merge): Likewise.  Do not register types here.
6110         (lto_symtab_merge_decls_2): Likewise.
6111         (lto_symtab_merge_decls_1): Likewise.
6112         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6113         * gimple.c (enum gtc_mode): Declare.
6114         (gimple_types_compatible_p): Make static.
6115
6116 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6117
6118         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6119         temporary register to match Pmode.
6120
6121 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6122
6123         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6124         and *vec_concatv4si_1_avx.
6125
6126 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6127
6128         PR rtl-optimization/48927
6129         * ira-conflicts.c (commutative_constraint_p): Use
6130         recog_data.alternative_enabled_p to disable alternatives where
6131         "enabled" attribute is false.
6132         (get_dup_num): Ditto.
6133         * ira-lives.c (single_reg_class): Ditto.
6134         (ira_implicitly_set_insn_hard_regs): Ditto.
6135
6136 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
6137
6138         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6139         (dataflow_set_preserve_mem_locs): Likewise.
6140
6141 2011-05-09  Philipp Thomas  <pth@suse.de>
6142
6143         * config/mep/mep.c (mep_validate_vliw): Syntax description
6144         should not be translated.
6145
6146 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
6147
6148         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6149         * config/mips/mips-tables.opt: New file (generated).
6150         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6151         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6152         MIPS_ARCH_OPTION_NATIVE): Define.
6153         * config/mips/mips.c (mips_cpu_info_table): Move contents to
6154         mips-cpus.def.
6155         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6156         mips_parse_cpu): Remove.
6157         (mips_cpu_info_from_opt, mips_default_arch): New.
6158         (mips_handle_option): Don't assert that global structures are in
6159         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6160         (mips_option_override): Use new variables and functions to set
6161         state of these options.  Use strcmp to check for individual CPU names.
6162         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6163         definition.
6164         * config/mips/mips.opt (march=): Use ToLower and Enum.
6165         (mips): Use ToLower, Enum and Var.
6166         (mtune=): Use ToLower and Enum.
6167         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6168
6169 2011-05-08  Jan Hubicka  <jh@suse.cz>
6170
6171         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6172         Arrange type pairs to be UID ordered.
6173         (gimple_lookup_type_leader): Make inline.
6174
6175 2011-05-09  Nick Clifton  <nickc@redhat.com>
6176
6177         PR target/48899
6178         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6179         PROCESSOR_DEFAULT.
6180
6181         PR target/48897
6182         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6183         variable 's'.
6184
6185 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
6186
6187         * combine.c (simplify_comparison): Abstract out parts into...
6188         (simplify_compare_const): ... new function.
6189         (try_combine): Generalize parallel arithmetic/compare combining
6190         to call simplify_compare_const() and CANONICALIZE_COMPARE().
6191
6192 2011-05-08  Jan Hubicka  <jh@suse.cz>
6193
6194         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6195         (cgraph_create_virtual_clone): Call hooks once virtual clone
6196         is finished.
6197         * cgraph.h (cgraph_clone_node): Update prototype.
6198         * ipa-cp.c (ipcp_estimate_growth): Use
6199         estimate_ipcp_clone_size_and_time.
6200         * ipa-inline-transform.c (clone_inlined_nodes): Update.
6201         * lto-cgraph.c (input_node): Update.
6202         * ipa-inline.c (recursive_inlining): Update.
6203         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6204         (evaluate_conditions_for_known_args): Break out from ...
6205         (evaluate_conditions_for_edge): ... here.
6206         (evaluate_conditions_for_ipcp_clone): New function.
6207         (inline_node_duplication_hook): Update clone summary based
6208         on parameter map.
6209         (estimate_callee_size_and_time): Rename to ...
6210         (estimate_node_size_and_time): take NODE instead of EDGE;
6211         take POSSIBLE_TRUTHS as argument.
6212         (estimate_callee_size_and_time): Update.
6213         (estimate_ipcp_clone_size_and_time): New function.
6214         (do_estimate_edge_time): Update.
6215
6216 2011-05-08  Richard Guenther  <rguenther@suse.de>
6217
6218         PR middle-end/48908
6219         PR middle-end/48905
6220         * expmed.c (expand_shift_1): Compute adjusted constant shift
6221         amount manually.
6222
6223 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
6224
6225         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6226
6227 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
6228
6229         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6230
6231 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
6232
6233         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6234
6235 2011-05-07  Jan Hubicka  <jh@suse.cz>
6236
6237         * ipa-inline-transform.c (inline_call): Account when program size
6238         decreases.
6239         * ipa-inline.c (relative_time_benefit): New function.
6240         (edge_badness): Reorganize to be power 2 based; fix thinko when
6241         computing badness for negative growth; update comments to match
6242         reality; better dumps.
6243
6244 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
6245
6246         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6247         type to bool and adjust comment.
6248         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6249         (fold_mathfn_compare): Remove calls to global_bindings_p.
6250         (fold_inf_compare): Likewise.
6251         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6252         * c-tree.h (global_bindings_p): Adjust prototype.
6253         * c-decl.c (global_bindings_p): Return bool and simplify.
6254
6255 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
6256
6257         PR tree-optimization/48837
6258         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6259         when accumulator transformation is performed.
6260
6261 2011-05-06  Jan Hubicka  <jh@suse.cz>
6262
6263         * i386.h (ix86_tune_indices): Add
6264         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6265         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6266         * i386.c (initial_ix86_tune_features): Add
6267         X86_SOFTARE_PREFETCHING_BENEFICIAL.
6268         (software_prefetching_beneficial_p): Remove predicate.
6269         (ix86_option_override_internal): Use new macro.
6270
6271 2011-05-06  Jan Hubicka  <jh@suse.cz>
6272
6273         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6274
6275 2011-05-06  Jan Hubicka  <jh@suse.cz>
6276
6277         * cgraph.c (cgraph_add_thunk): Create real function node instead
6278         of alias node; finalize it and mark needed/reachale; arrange visibility
6279         to be right and add it into the corresponding same comdat group list.
6280         (dump_cgraph_node): Dump thunks.
6281         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6282         cgraph_function_with_gimple_body_p,
6283         cgraph_first_function_with_gimple_body,
6284         cgraph_next_function_with_gimple_body): New functions.
6285         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6286         New macros.
6287         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6288         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6289         * cgraphunit.c (cgraph_finalize_function): Only look into possible
6290         devirtualization when optimizing.
6291         (verify_cgraph_node): Verify thunks.
6292         (cgraph_analyze_function): Analyze thunks.
6293         (cgraph_mark_functions_to_output): Output thunks only in combination
6294         with function they are assigned to.
6295         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6296         alias into normal node.
6297         (assemble_thunks): New functoin.
6298         (cgraph_expand_function): Use it.
6299         * lto-cgraph.c (lto_output_node): Stream thunks.
6300         (input_overwrite_node): Stream in thunks.
6301         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6302         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6303         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6304         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6305         (inline_analyze_function): Do not care about thunk jump functions.
6306         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6307         * ipa-prop.c (ipa_prop_write_jump_functions): Use
6308         cgraph_function_with_gimple_body_p.
6309         * passes.c (do_per_function_toporder): Use
6310         cgraph_function_with_gimple_body_p.
6311         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6312         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6313         (function_called_by_processed_nodes_p): Likewise.
6314
6315 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6316
6317         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6318         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6319         entries.
6320         (mabi=): Replace with separate entries for mabi=altivec,
6321         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6322         mabi=ieeelongdouble and mabi=ibmlongdouble.
6323         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6324         check for -mabi=spe without SPE ABI support here.
6325         (rs6000_handle_option): Replace OPT_mabi_ handling with
6326         OPT_mabi_altivec and OPT_mabi_spe handling.
6327
6328 2011-05-06  Cary Coutant  <ccoutant@google.com>
6329
6330         * dwarf2out.c (contains_subprogram_definition): New function.
6331         (should_move_die_to_comdat): Call it.
6332
6333 2011-05-06  Jeff Law  <law@redhat.com>
6334
6335         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6336         remove_ctrl_stmt_and_useless_edges.
6337         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6338         (fixup_template_block, thread_single_edge): Likewise.
6339         (mark_threaded_blocks): Use THREAD_TARGET.
6340
6341 2011-05-06  Alan Modra  <amodra@gmail.com>
6342
6343         PR target/48900
6344         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6345         const0_rtx as the arg to the dummy __tls_get_addr libcall.
6346
6347 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6348
6349         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6350         constraint modifier to "r".
6351
6352 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
6353
6354         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6355         fall through for OPT_mcmodel_.
6356
6357 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6358
6359         * config/s390/s390.c (s390_asm_trampoline_template): Comment
6360         instruction sizes.
6361         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6362
6363 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6364
6365         PR target/47930
6366         * config/arm/arm.opt (marm): Document it.
6367         (mthumb): Reject negative variant.
6368
6369 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
6370
6371         PR target/48898
6372         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6373         Fix typo in "ccvt" variable name.
6374
6375 2011-05-06  Tristan Gingold  <gingold@adacore.com>
6376
6377         PR target/48895
6378         * config/vms/vms-ar.c (main): Remove cwd variable.
6379
6380 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
6381
6382         PR debug/48902
6383         * var-tracking.c (prepare_call_arguments): Move else before #endif.
6384
6385 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
6386
6387         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6388         * gimplify.c (gimplify_switch_expr): Likewise.
6389         * omp-low.c (expand_omp_sections): Likewise.
6390         * tree-eh.c (lower_try_finally_switch): Likewise.
6391         (lower_eh_dispatch): Likewise.
6392         * tree.h (build_case_label): Declare.
6393         * tree.c (build_case_label): Define.
6394
6395 2011-05-05  Jason Merrill  <jason@redhat.com>
6396
6397         PR c++/40975
6398         * tree-inline.c (copy_tree_r): Use copy_statement_list.
6399         (copy_statement_list): Don't recurse.
6400         * stor-layout.c (copy_self_referential_tree_r): Don't allow
6401         STATEMENT_LIST.
6402
6403 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6404
6405         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6406         through from -mfpu= handling.
6407         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6408
6409 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
6410
6411         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6412         POST_MODIFY.
6413
6414 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
6415
6416         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6417         for 11.31.
6418         (hppa[12]*-*-hpux11*): Ditto.
6419         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6420         * config/ia64/hpux-unix2003.h: New.
6421         * config/pa/pa-hpux1131.opt: New.
6422         * config/pa/pa-hpux1131.h: New.
6423         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6424         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6425         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6426
6427 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6428
6429         PR debug/48853
6430         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6431         instead of mode as 3rd argument to recursive call.
6432         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6433         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6434         VOIDmode.
6435         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6436         don't give up if mode is Pmode and mem_mode is not VOIDmode.
6437         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6438         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6439
6440 2011-05-05  Julian Brown  <julian@codesourcery.com>
6441
6442         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6443         parenthesis in D-register case.
6444
6445 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6446
6447         * opt-functions.awk (var_type_struct): Handle Enum options.
6448         * optc-gen.awk: Don't check range of variables of character type.
6449         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6450         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6451         rs6000_sdata_name, rs6000_explicit_options): Remove.
6452         (rs6000_option_override_internal): Check for -malign-power here.
6453         Use global_options_set instead of rs6000_explicit_options.
6454         (rs6000_parse_fpu_option): Remove.
6455         (rs6000_handle_option): Access variables via opts and opts_set
6456         pointers.  Use error_at and warning_at.  Add fall-through
6457         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6458         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6459         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6460         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6461         here.  Don't use rs6000_parse_fpu_option.
6462         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6463         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6464         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6465         (mrecip=): Use Var.
6466         (mspe): Use Var and Save.
6467         (mtraceback=): Use Enum and Var.
6468         (rs6000_traceback_type): New Enum and EnumValue entries.
6469         (mfloat-gprs=): Use Enum, Var and Save.
6470         (rs6000_float_gprs): New Enum and EnumValue entries.
6471         (mlong-double-): use Var and Save.
6472         (msched-costly-dep=, minsert-sched-nops=): Use Var.
6473         (malign-): Use Enum and Var.
6474         (rs6000_alignment_flags): New Enum and EnumValue entries.
6475         (mfpu=): Use Enum.
6476         (fpu_type_t): New Enum and EnumValue entries.
6477         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6478         global_options_set instead of rs6000_explicit_options.
6479         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6480         global_options_set instead of rs6000_explicit_options.
6481         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6482         global_options_set instead of rs6000_explicit_options.
6483         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6484         global_options_set instead of rs6000_explicit_options.
6485         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6486         global_options_set instead of rs6000_explicit_options.
6487         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6488         global_options_set instead of rs6000_explicit_options.
6489         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6490         definition.
6491         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6492         global_options_set instead of rs6000_explicit_options.
6493         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6494         (rs6000_cmodel): New Enum and EnumValue entries.
6495         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6496         global_options_set instead of rs6000_explicit_options.
6497         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6498         (mtls-size=): Use Enum and Var.
6499         (rs6000_tls_size): New Enum and EnumValue entries.
6500
6501 2011-05-05  Michael Matz  <matz@suse.de>
6502
6503         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6504         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6505         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6506         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6507         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6508         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6509         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6510         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6511         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6512         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6513         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6514         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6515         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6516         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6517         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6518         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6519
6520 2011-05-05  Richard Guenther  <rguenther@suse.de>
6521
6522         * expmed.c (expand_variable_shift): Rename to ...
6523         (expand_shift_1): ... this.  Take an expanded shift amount.
6524         For rotates recurse directly not building trees for the shift amount.
6525         (expand_variable_shift): Wrap around expand_shift_1.
6526         (expand_shift): Adjust.
6527
6528 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
6529
6530         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6531
6532 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
6533
6534         * tree.h (get_pending_sizes): Remove prototype.
6535         (put_pending_size): Likewise.
6536         (put_pending_sizes): Likewise.
6537         * stor-layout.c (pending_sizes): Delete.
6538         (get_pending_sizes): Likewise.
6539         (put_pending_size): Likewise.
6540         (put_pending_sizes): Likewise.
6541         (variable_size): Do not call put_pending_size and tidy up.
6542         * function.h (struct function): Remove dont_save_pending_sizes_p.
6543         * lto-streamer-in.c (input_function): Do not stream it.
6544         * lto-streamer-out.c (output_function): Likewise.
6545         * tree-inline.c (initialize_cfun): Do not copy it.
6546         * c-decl.c (store_parm_decls): Do not set it.
6547         * omp-low.c (create_task_copyfn): Likewise.
6548         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6549
6550 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
6551
6552         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6553         conditions.
6554         (*movdf_internal): Ditto.
6555         (*movdf_internal_nointeger): Ditto.
6556         (*movsf_internal): Ditto.
6557
6558 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
6559
6560         * c-decl.c (finish_decl): Don't call get_pending_sizes.
6561         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
6562         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
6563         (c_variable_size): Remove.
6564         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
6565         call put_pending_sizes.
6566         (get_parm_info): Add parameter expr.  Use it to set
6567         arg_info->pending_sizes.
6568         (store_parm_decls): Use arg_info->pending_sizes instead or calling
6569         get_pending_sizes.
6570         * c-parser.c (c_parser_parms_declarator): Update call to
6571         c_parser_parms_list_declarator.
6572         (c_parser_parms_list_declarator): Take parameter expr.  Update
6573         call to push_parm_decl.  Update recursive call.  Don't call
6574         get_pending_sizes.  Update calls to get_parm_info.
6575         (c_parser_objc_method_definition): Update calls to
6576         c_parser_objc_method_decl and objc_start_method_definition.
6577         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6578         (c_parser_objc_method_decl): Add parameter expr.  Update call to
6579         grokparm.
6580         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6581         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6582         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6583
6584 2011-05-05  Michael Hope  <michael.hope@linaro.org>
6585
6586         PR pch/45979
6587         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6588         __ARM_EABI__ hosts.
6589
6590 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6591
6592         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6593         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6594         (spu_output_mi_thunk): New function.
6595
6596 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6597
6598         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6599         targetm.asm_out.print_operand.
6600         * config/sol2.c: Include target.h.
6601
6602 2011-05-04  Jan Hubicka  <jh@suse.cz>
6603
6604         * ipa-inline.c (reset_edge_caches): New function.
6605         (update_caller_keys): Add check_inlinablity_for; do not
6606         reset edge caches; remove now unnecesary loop.
6607         (update_callee_keys): Add comments; reset node_growth_cache of callee.
6608         (update_all_callee_keys): Likewise.
6609         (inline_small_functions): Sanity check cache; update code
6610         recomputing it.
6611
6612 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
6613
6614         PR rtl-optimization/47612
6615         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6616         as the last insn of the sequence to be moved.
6617
6618 2011-05-04  Tobias Burnus  <burnus@net-b.de>
6619
6620         PR fortran/48864
6621         * doc/invoke.texi (Ofast): Document that it
6622         enables Fortran's -fno-protect-parens.
6623
6624 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6625
6626         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6627
6628 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
6629
6630         * stor-layout.c (variable_size): Do not issue errors.
6631
6632 2011-05-04  Richard Guenther  <rguenther@suse.de>
6633
6634         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6635         for array-ref indices.
6636         (tree_coverage_counter_addr): Likewise.
6637         (build_fn_info_type): Use size_int for index types.
6638         (build_gcov_info): Likewise.
6639
6640 2011-05-04  Richard Guenther  <rguenther@suse.de>
6641
6642         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6643         to build_int_cst.
6644         * c-typeck.c (really_start_incremental_init): Use bitsize_int
6645         for constructor indices.
6646         (push_init_level): Likewise.
6647
6648 2011-05-04  Richard Guenther  <rguenther@suse.de>
6649
6650         * explow.c (promote_mode): Move variable declarations before code.
6651
6652 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
6653
6654         * tree.h (build_function_type_array): Declare.
6655         (build_varargs_function_type_array): Declare.
6656         (build_function_type_vec, build_varargs_function_type_vec): Define.
6657         * tree.c (build_function_type_array_1): New function.
6658         (build_function_type_array): New function.
6659         (build_varargs_function_type_array): New function.
6660
6661 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
6662
6663         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6664         before setting STMT_VINFO_TYPE.
6665
6666 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6667
6668         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6669         instead of spu_pass_by_reference.
6670
6671 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6672
6673         * calls.c (emit_library_call_value_1): Invoke
6674         promote_function_mode hook on libcall arguments.
6675         * explow.c (promote_function_mode, promote_mode): Handle TYPE
6676         argument being NULL.
6677         * targhooks.c (default_promote_function_mode): Lisewise.
6678         * config/s390/s390.c (s390_promote_function_mode): Likewise.
6679         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6680
6681         * doc/tm.texi: Document that TYPE argument might be NULL.
6682
6683 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6684
6685         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6686
6687 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6688
6689         From Bernd Schmidt
6690         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6691
6692 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6693
6694         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6695         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6696         Move ...
6697         * mips-tfile.c: ... here.
6698         Don't include coretypes.h, tm.h, filenames.h.
6699         (saber_stop): Remove definition and all calls.
6700         [__SABER__]: Remove.
6701         (__LINE__): Remove default.
6702         (Size_t, Ptrdiff_t): Remove definitions.
6703         Replace by size_t, ptrdiff_t.
6704         [!MIPS_DEBUGGING_INFO]: Remove.
6705         (SHASH_SIZE, THASH_SIZE): Remove defaults.
6706         (progname): Add const.
6707         (STATIC): Remove.
6708         Replace all uses by static.
6709         (ALIGN_SYMTABLE_OFFSET): Remove default.
6710         * mips-tdump.c: Don't include coretypes.h, tm.h.
6711         Remove !MIPS_IS_STAB guard.
6712         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6713         $(TM_H), filenames.h dependencies.
6714         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6715
6716 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6717
6718         From Jie Zhang
6719         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6720         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6721
6722 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6723
6724         From Bernd Schmidt
6725         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6726         account and save/restore RETS.
6727         (PROFILE_BEFORE_PROLOGUE): Define.
6728         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
6729         the push insn to use predecrement.
6730
6731 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
6732
6733         From Jie Zhang
6734         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6735
6736 2011-05-04  Nick Clifton  <nickc@redhat.com>
6737
6738         * config/mn10300/mn10300.c: Include cfgloop.h.
6739         (DUMP): New macro.
6740         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
6741         Lcc or a FLcc insn into the instruction stream.
6742         (mn10300_block_contains_call): New function.  Returns true if the
6743         given basic block contains a CALL insn.
6744         (mn10300_loop_contains_call_insn): New function.  Returns true if
6745         the given loop contains a CALL insn.
6746         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
6747         to use the SETLB and Lcc or FLcc insns.
6748         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6749         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6750         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
6751         disable the SETLB optimization.
6752         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6753         __SETLB__ or __NO_SETLB__.
6754         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6755         (movsf_internal): Handle MDR register.
6756         (cmpsi): Make visible.
6757         (setlb): New pattern.
6758         (Lcc): New pattern.
6759         (FLcc): New pattern.
6760
6761 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
6762
6763         PR target/48860
6764         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6765         for reg<->xmm moves.
6766         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6767         (vec_concatv2di_rex64_sse): Ditto.
6768         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6769         (*vec_extractv2di_1_rex64): Ditto.
6770
6771         Revert:
6772         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
6773
6774         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6775         reg<->xmm moves.
6776         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6777
6778 2011-05-04  Richard Guenther  <rguenther@suse.de>
6779
6780         * tree.h (int_const_binop): Remove notrunc argument.
6781         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
6782         create integer constants that are properly truncated.
6783         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6784         (const_binop): Remove zero notrunc argument to int_const_binop.
6785         (size_binop_loc): Likewise.
6786         (fold_div_compare): Likewise.
6787         (maybe_canonicalize_comparison_1): Likewise.
6788         (fold_comparison): Likewise.
6789         (fold_binary_loc): Likewise.
6790         (multiple_of_p): Likewise.
6791         * expr.c (store_constructor): Likewise.
6792         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6793         (maybe_fold_stmt_addition): Likewise.
6794         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6795         * stor-layout.c (layout_type): Likewise.
6796         * tree-data-ref.c (tree_fold_divides_p): Likewise.
6797         * tree-sra.c (build_ref_for_offset): Likewise.
6798         (build_user_friendly_ref_for_offset): Likewise.
6799         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6800         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6801         * tree-ssa-loop-niter.c (inverse): Likewise.
6802         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6803         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6804         * tree-switch-conversion.c (check_range): Likewise.
6805         (build_constructors): Likewise.
6806         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6807         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6808         (extract_range_from_assert): Likewise.
6809         (vrp_int_const_binop): Likewise.
6810         (extract_range_from_binary_expr): Likewise.
6811         (extract_range_from_unary_expr): Likewise.
6812         (check_array_ref): Likewise.
6813         (find_case_label_range): Likewise.
6814         (simplify_div_or_mod_using_ranges): Likewise.
6815         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6816         comparing case labels for merging.
6817
6818 2011-05-03  Mark Wielaard  <mjw@redhat.com>
6819
6820         * dwarf2out.c (debug_str_hash_forced): Removed.
6821         (gen_label_for_indirect_string): Removed.
6822         (get_debug_string_label): Removed.
6823         (AT_string_form): Generate label directly.
6824         (output_indirect_string): Test indirect_string_node for
6825         DW_FORM_strp instead of checking label and refcount.
6826         (prune_indirect_string): Removed.
6827         (prune_unused_types): Don't check debug_str_hash_forced or
6828         call prune_indirect_string.
6829
6830 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6831
6832         PR other/48093
6833         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6834
6835 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
6836
6837         PR debug/47994
6838         PR debug/47919
6839         * combine.c (try_combine): Skip debug insns at m_split tests.
6840
6841 2011-04-26  Mark Wielaard  <mjw@redhat.com>
6842
6843         PR42288
6844         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6845         when info_section_emitted.
6846
6847 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
6848
6849         * config/mips/mips-opts.h: New.
6850         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6851         to mips-opts.h.
6852         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6853         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6854         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
6855         via opts pointer.
6856         * config/mips/mips.h (enum mips_code_readable_setting): Move to
6857         mips-opts.h.
6858         (mips_abi, mips_code_readable): Don't declare.
6859         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6860         (mabi=): Use Enum and Var.
6861         (mips_abi): New Enum and EnumValue entries.
6862         (mcode-readable=): Use Enum and Var.
6863         (mips_code_readable_setting): New Enum and EnumValue entries.
6864         (mr10k-cache-barrier=): Use Enum and Var.
6865         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6866
6867 2011-05-03  Jan Hubicka  <jh@suse.cz>
6868
6869         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6870         replace hash by pointer map.
6871         (cgraph_node_set_element_def, cgraph_node_set_element,
6872         const_cgraph_node_set_element, varpool_node_set_element_def,
6873         varpool_node_set_element, const_varpool_node_set_element): Remove.
6874         (free_cgraph_node_set, free_varpool_node_set): New function.
6875         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6876         * tree-emutls.c: Free varpool node set.
6877         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6878         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6879         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6880         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6881         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6882         Move here from ipa.c; implement using pointer_map
6883         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6884         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6885         debug_cgraph_node_set, varpool_node_set_new,
6886         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6887         dump_varpool_node_set, debug_varpool_node_set):
6888         Move to ipa-uitls.c.
6889         * passes.c (ipa_write_summaries): Update.
6890
6891 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6892
6893         From Mike Frysinger:
6894         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6895         bf542/bf544/bf547/bf548/bf549.
6896
6897 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
6898
6899         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6900
6901 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6902
6903         From Bernd Schmidt:
6904         * config/bfin/bfin.md (MOVCC): New mode_macro.
6905         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6906         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
6907         comments from generated assembly.
6908
6909 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6910
6911         From Bernd Schmidt
6912         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6913         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6914         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6915         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6916         * config/bfin/lib1funcs.asm (___muldi3): New function.
6917
6918 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6919
6920         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6921         build_function_type_list instead of build_function_type.
6922         Rearrange initialization of `args' to do so.
6923
6924 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6925
6926         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6927         instead of build_function_type.
6928
6929 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6930
6931         * config/rs6000/rs6000.c (spe_init_builtins): Call
6932         build_function_type_list instead of build_function_type.
6933         (paired_init_builtins, altivec_init_builtins): Likewise.
6934         (builtin_function_type): Likewise.
6935
6936 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6937
6938         * config/sh/sh.c (sh_media_init_builtins): Call
6939         build_function_type_list instead of build_function_type.
6940
6941 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6942
6943         * config/sparc/sparc.c (sparc_file_end): Call
6944         build_function_type_list instead of build_function_type.
6945
6946 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6947
6948         * config/alpha/alpha.c (alpha_init_builtins): Call
6949         build_function_type_list instead of build_function_type.
6950
6951 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6952
6953         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6954         build_function_type_list instead of build_function_type.
6955
6956 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6957
6958         * config/iq2000/i2000.c (iq2000_init_builtins): Call
6959         build_function_type_list instead of build_function_type.
6960         Delete `endlink' variable.
6961
6962 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6963
6964         * config/avr/avr.c (avr_init_builtins): Call
6965         build_function_type_list instead of build_function_type.
6966
6967 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6968
6969         * config/picochip/picochip.c (picochip_init_builtins): Call
6970         build_function_type_list instead of build_function_type.
6971         Delete `endlink' variable.
6972
6973 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
6974
6975         * config/bfin/bfin.c (bfin_init_builtins): Call
6976         build_function_type_list instead of build_function_type.
6977
6978 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6979
6980         From Bernd Schmidt
6981         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6982         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
6983
6984 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6985
6986         From Jie Zhang:
6987         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6988         libbffastfp overrides libgcc when -mfast-fp.
6989
6990 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6991
6992         Originally from Bernd Schmidt
6993         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6994         * config/bfin/bfin.c (override_options): Test it and error if
6995         TARGET_FDPIC.
6996
6997 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
6998
6999         Originally From Bernd Schmidt
7000         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7001         FD-PIC.
7002
7003 2011-05-03  Jeff Law  <law@redhat.com>
7004
7005         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7006         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7007         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7008         than accessing AUX field directly.  Free the AUX field before
7009         clearing it.
7010         (thread_block, thread_through_loop_header): Likewise.
7011         (thread_single_edge, mark_threaded_blocks): Likewise.
7012         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
7013         (register_jump_thread): Do not attempt to thread to a NULL edge.
7014
7015 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
7016
7017         * function.c (init_function_start): Call decide_function_section.
7018         * varasm.c (decide_function_section): New function.
7019         (assemble_start_function): When not using
7020         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7021         or first_function_block_is_cold.
7022         * rtl.h (decide_function_section): Declare.
7023
7024 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
7025             Jakub Jelinek  <jakub@redhat.com>
7026
7027         PR target/48774
7028         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7029         only succeed if req_mode is the same as set_mode.
7030
7031 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
7032
7033         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7034         * genemit.c (gen_exp): Handle RETURN.
7035         * emit-rtl.c (verify_rtx_sharing): Likewise.
7036         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7037         * rtl.c (copy_rtx): RETURN is shared.
7038         * rtl.h (enum global_rtl_index): Add GR_RETURN.
7039         (ret_rtx): New.
7040         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7041         * config/s390/s390.c (s390_emit_epilogue): Likewise.
7042         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7043         * config/cris/cris.c (cris_expand_return): Likewise.
7044         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7045         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7046         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7047         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7048         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7049         Likewise.
7050         * config/v850/v850.c (expand_epilogue): Likewise.
7051         * config/bfin/bfin.c (bfin_expand_call): Likewise.
7052         * config/arm/arm.md (epilogue): Likewise.
7053         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7054         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7055         variable to ret_reg.
7056
7057 2011-05-03  Richard Guenther  <rguenther@suse.de>
7058
7059         PR lto/48846
7060         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7061         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7062         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7063
7064 2011-05-03  Richard Guenther  <rguenther@suse.de>
7065
7066         * c-decl.c (grokdeclarator): Instead of looking at
7067         TREE_OVERFLOW check if the constant fits in the index type.
7068
7069 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7070
7071         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7072         (vec_store_lanes<mode><mode>): Likewise.
7073
7074 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7075
7076         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7077         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7078         convert_optab_index values.
7079         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7080         * genopinit.c (optabs): Initialize the new optabs.
7081         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7082         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7083         (expand_STORE_LANES): New functions.
7084         * tree.h (build_array_type_nelts): Declare.
7085         * tree.c (build_array_type_nelts): New function.
7086         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7087         (vect_model_load_cost): Likewise.
7088         (vect_store_lanes_supported, vect_load_lanes_supported)
7089         (vect_record_strided_load_vectors): Declare.
7090         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7091         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7092         (vect_transform_strided_load): Split out statement recording into...
7093         (vect_record_strided_load_vectors): ...this new function.
7094         * tree-vect-stmts.c (create_vector_array, read_vector_array)
7095         (write_vector_array, create_array_ref): New functions.
7096         (vect_model_store_cost): Add store_lanes_p argument.
7097         (vect_model_load_cost): Add load_lanes_p argument.
7098         (vectorizable_store): Try to use store-lanes functions for
7099         interleaved stores.
7100         (vectorizable_load): Likewise load-lanes and loads.
7101         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7102         to vect_model_store_cost.
7103         (vect_build_slp_tree): Likewise vect_model_load_cost.
7104
7105 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
7106
7107         * hooks.h (hook_bool_mode_uhwi_false): Declare.
7108         * hooks.c (hook_bool_mode_uhwi_false): New function.
7109         * target.def (array_mode_supported_p): New hook.
7110         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7111         * doc/tm.texi: Regenerate.
7112         * stor-layout.c (mode_for_array): New function.
7113         (layout_type): Use it.
7114         * config/arm/arm.c (arm_array_mode_supported_p): New function.
7115         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7116
7117 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
7118
7119         PR target/48723
7120         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7121         for -fstack-check if the size to allocate is negative.
7122
7123 2011-05-02  Lawrence Crowl  <crowl@google.com>
7124
7125         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7126         (timevar_cond_start): New for starting a timer only when it is not
7127         already running.
7128         (timevar_cond_stop): New for stopping a timer when it was not already
7129         running.
7130
7131         * timevar.c (timevar_stop): Enable start/stop timers to start again.
7132         (timevar_cond_start): New as above.
7133         (timevar_cond_stop): New as above.
7134
7135         * timevar.def: Add start/stop timers for compiler phases,
7136         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7137         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7138         and TV_PHASE_FINALIZE.
7139         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7140         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7141         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7142         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7143         Make unused TV_OVERLOAD into a start/stop timer.
7144
7145         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7146         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7147         to indicate that they are start/stop timers.
7148
7149         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7150         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7151         Move initialization to do_compile.
7152         (do_compile): Add initialization from above.
7153         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7154
7155         * c-decl.c (c_write_global_declarations): Add start/stop of
7156         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7157
7158         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7159         or TV_PARSE_INLINE, as appropriate.
7160         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7161         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7162
7163 2011-05-02  Jason Merrill  <jason@redhat.com>
7164
7165         PR c++/40975
7166         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7167
7168 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
7169
7170         PR c/35445
7171         * c-decl.c (finish_decl): Only create a composite if the types are
7172         compatible.
7173
7174 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
7175
7176         * config/fr30/fr30-protos.h (Mmode): Don't define.
7177         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
7178         definition where used.
7179         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7180         define.  Expand definitions where used.
7181         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7182         Expand definitions where used.
7183         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7184         rx_function_arg, rx_function_arg_advance,
7185         rx_function_arg_boundary): Expand definitions of those macros.
7186         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
7187         definition where used.
7188
7189 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7190
7191         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7192         reg<->xmm moves.
7193         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7194         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
7195         with *movv2sf_internal_rex64_avx.
7196         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7197         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7198         Use %v prefix in insn mnemonic to handle TARGET_AVX.
7199         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
7200         "vex" in "prefix" attribute calculation.
7201         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
7202
7203 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
7204
7205         PR target/47951
7206         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7207         inputs match the output.
7208
7209 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
7210
7211         PR target/47955
7212         * config/m68k/m68k.c (m68k_expand_prologue): Set
7213         current_function_static_stack_size.
7214
7215 2011-05-02   Jan Hubicka  <jh@suse.cz>
7216
7217         * lto-streamer.c (lto_streamer_cache_insert_1,
7218         lto_streamer_cache_lookup, lto_streamer_cache_create,
7219         lto_streamer_cache_delete): Use pointer map instead of hashtable.
7220         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7221
7222 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
7223
7224         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7225         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7226         config/m68k/t-opts: New files.
7227         * config/m68k/m68k-tables.opt: New file (generated).
7228         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7229         extra_options and m68k/t-opts to tmake_file.
7230         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7231         (all_isas): Initialize using m68k-isas.def.
7232         (all_microarchs): Initialize using m68k-microarchs.def.
7233         (m68k_find_selection): Remove.
7234         (m68k_handle_option): Don't assert that global structures are in
7235         use.  Use error_at.  Access variables via opts pointer.  Don't
7236         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
7237         directly for -m68020-40 and -m68020-60.
7238         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7239         m68k_tune_entry here.
7240         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7241         to m68k-opts.h.
7242         (m68k_library_id_string): Remove declaration.
7243         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7244         (m68k_library_id_string): New Variable.
7245         (march=, mcpu=, mtune=): Use Enum and Var.
7246
7247 2011-05-02  Richard Guenther  <rguenther@suse.de>
7248
7249         * varasm.c (output_constructor_regular_field): Compute zero-based
7250         index with double-ints.  Make sure to ICE instead of producing
7251         wrong code.
7252         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7253         in asserts.  Properly use a signed type.
7254
7255 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
7256
7257         * config/i386/sse.md (V): New mode iterator.
7258         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
7259         TARGET_SSE2.
7260         (V_256): Rename from AVX256MODE.
7261         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
7262         condition to all users.
7263         (VF1): Ditto.
7264         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
7265         condition to all users.
7266         (VF_128): Make V4SF mode unconditional.
7267         (VF_256): Rename from AVX256MODEF2P.
7268         (VI4F_128): Rename from SSEMODE4S.
7269         (VI8F_128): Rename from SSEMODE2D.
7270         (VI4F_256): Rename from AVX256MODE8P.
7271         (VI8F_256): Rename from AVX256MODE4P.
7272         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7273         (ssescalarmodesuffix): Remove SF and DF modes.
7274         (SSEMODE124): Remove.
7275         (SSEMODE1248): Ditto.
7276         (SSEMODEF2P): Ditto.
7277         (AVXMODEF2P): Ditto.
7278         (AVXMODEFDP): Ditto.
7279         (AVXMODEFSP): Ditto.
7280         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7281         unconditional.
7282         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
7283         unconditional.
7284         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7285         xop_pcmov_<mode>256.  Use V mode iterator.
7286
7287         Adjust RTX patterns globally for renamed mode attributes.
7288
7289 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7290
7291         * haifa-sched.c (sched_emit_insn): Emit insn before first
7292         non-scheduled insn.  Inform back-end about new insn.  Add
7293         new insn to scheduled_insns list.
7294
7295 2011-05-02  Richard Guenther  <rguenther@suse.de>
7296
7297         PR tree-optimization/48822
7298         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7299         (process_scc): Indicate which iteration we start.
7300
7301 2011-05-02  Jan Hubicka  <jh@suse.cz>
7302
7303         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7304         (lto_section_overrun): New.
7305         * lto-section-out.c (append_block): Rename to ...
7306         (lto_append_block): ... this one; export.
7307         (lto_output_1_stream): Move lto lto-streamer.h
7308         (lto_output_data_stream): Update.
7309         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7310         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7311         functions.
7312
7313 2011-05-02  Richard Guenther  <rguenther@suse.de>
7314
7315         * tree.c (tree_code_counts): New global array.
7316         (record_node_allocation_statistics): Count individual tree codes.
7317         (dump_tree_statistics): Dump individual code stats.
7318
7319 2011-05-01  Jan Hubicka  <jh@suse.cz>
7320
7321         * ipa-inline.c (caller_growth_limits): Fix thinko when
7322         looking for largest stack frame.
7323         * ipa-inline.h (dump_inline_summary): Declare.
7324         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7325         on stack usage.
7326         (dump_inline_summary): Export.
7327         (debug_inline_summary): Declare as DEBUG_FUNCTION.
7328
7329 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
7330
7331         * reginfo.c (memory_move_cost): Change rclass argument type form
7332         'enum reg_class' to reg_class_t.
7333         * reload.h (memory_move_cost): Update prototype.
7334         * postreload.c reload_cse_simplify_set): Change type dclass var to
7335         reg_class_t.
7336         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7337         Update prototype.
7338         (ira_allocate_and_set_costs): Change aclass argument type form
7339         'enum reg_class' to reg_class_t.
7340         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7341         Change aclass argument type to reg_class_t.
7342         (update_conflict_hard_reg_costs): Change type aclass and pref vars
7343         to reg_class_t.
7344         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7345         memory_move_cost call.
7346
7347         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7348         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7349         Change type tmp var to reg_class_t.
7350
7351 2011-04-30  Jan Hubicka  <jh@suse.cz>
7352
7353         * ipa-inline.c (can_inline_edge_p): Disregard limits when
7354         inlining into function with flatten attribute.
7355         (want_inline_small_function_p): Be more realistic about inlining
7356         cold calls where callee size grows.
7357
7358 2011-04-30  Jan Hubicka  <jh@suse.cz>
7359
7360         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7361         flags.
7362
7363 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
7364
7365         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7366         PRINT_OPERAND_PUNCT_VALID_P): Remove.
7367         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7368         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7369         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7370         (print_operand): Rename to...
7371         (sparc_print_operand): ...this. Make static. Adjust
7372         sparc_print_operand function call.
7373         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7374         functions.
7375
7376 2011-04-30  Jan Hubicka  <jh@suse.cz>
7377
7378         PR middle-end/48752
7379         * ipa-inline.c (early_inliner): Disable when doing late
7380         addition of function.
7381
7382 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
7383
7384         * dwarf2out.c (get_address_mode): New inline.
7385         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7386         if not dwarf_strict emit
7387         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7388         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7389         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
7390         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7391         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7392         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7393         mem_loc_descriptor callers.
7394         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7395         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7396         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7397         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7398         (base_types): New variable.
7399         (get_base_type_offset, calc_base_type_die_sizes,
7400         base_type_for_mode, mark_base_types, base_type_cmp,
7401         move_marked_base_types): New functions.
7402         (calc_die_sizes): Assert that die_offset is 0 or equal to
7403         next_die_offset.
7404         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7405         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
7406         callers.  If not dwarf_strict, call mem_loc_descriptor even for
7407         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7408         (gen_subprogram_die): Don't give up on call site parameters
7409         with non-integral or large integral modes.  Adjust
7410         mem_loc_descriptor callers.
7411         (prune_unused_types): Call prune_unused_types_mark on base_types
7412         vector entries.
7413         (resolve_addr): Call mark_base_types.
7414         (dwarf2out_finish): Call move_marked_base_types.
7415
7416         PR tree-optimization/48809
7417         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7418         type.
7419         (gen_inbound_check): Don't compute index_expr - range_min in utype
7420         again, instead reuse SSA_NAME initialized in build_arrays.
7421         Remove two useless gsi_for_stmt calls.
7422
7423 2011-04-29  Jeff Law  <law@redhat.com>
7424
7425         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7426
7427 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7428
7429         * cgraph.h (cgraph_postorder): Remove declaration.
7430         * ipa-utils.h (ipa_free_postorder_info): Declare.
7431         (ipa_reverse_postorder): Likewise.
7432         * cgraphunit.c: Include ipa-utils.h.
7433         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7434         * ipa-inline.c: Include ipa-utils.h.
7435         (ipa_inline): Update call to ipa_reverse_postorder.
7436         * ipa-pure-const.c (propagate_pure_const): Update call to
7437         ipa_reduced_postorder and ipa_print_order.  Call
7438         ipa_free_postorder_info to clean up.
7439         (propagate_nothrow): Likewise.
7440         * ipa-reference.c (propagate): Removed a useless call to
7441         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7442         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
7443         * ipa.c: Include ipa-utils.h.
7444         (ipa_profile): Update call to ipa_reverse_postorder.
7445         (cgraph_postorder): Moved to...
7446         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7447         (ipa_utils_print_order): Renamed to ipa_print_order.
7448         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7449         comments.
7450         (ipa_free_postorder_info): New function.
7451         * passes.c: Include ipa-utils.h.
7452         (do_per_function_toporder): Update call to ipa_reverse_postorder.
7453         (ipa_write_summaries): Likewise.
7454         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7455         (cgraphunit.o): Likewise.
7456         (ipa.o): Likewise.
7457         (ipa-inline.o): Likewise.
7458
7459 2011-04-29  Jan Hubicka  <jh@suse.cz>
7460
7461         * gcc.dg/tree-ssa/inline-10.c: New testcase.
7462         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7463         * ipa-inline.h (clause_t): Turn into unsigned int.
7464         * ipa-inline-analysis.c (add_clause): Do more simplification.
7465         (and_predicates): Shortcut more cases.
7466         (predicates_equal_p): Move forward; check that clauses are properly
7467         ordered.
7468         (or_predicates): Shortcut more cases.
7469         (edge_execution_predicate): Rewrite as...
7470         (set_cond_stmt_execution_predicate): ... this function; handle
7471         __builtin_constant_p.
7472         (set_switch_stmt_execution_predicate): New .
7473         (compute_bb_predicates): New.
7474         (will_be_nonconstant_predicate): Update TODO.
7475         (estimate_function_body_sizes): Use compute_bb_predicates
7476         and free them later, always try to estimate if stmt is constant.
7477         (estimate_time_after_inlining, estimate_size_after_inlining):
7478         Gracefully handle optimized out edges.
7479         (read_predicate): Fix off by one error.
7480
7481 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7482
7483         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7484
7485 2011-04-27  Xinliang David Li  <davidxl@google.com>
7486
7487         * tree-profile.c (init_ic_make_global_vars): Set
7488         tls attribute on ic vars.
7489         * coverage.c (coverage_end_function): Initialize
7490         function_list with zero.
7491
7492 2011-04-29  Richard Guenther  <rguenther@suse.de>
7493
7494         * builtins.c (fold_builtin_classify_type): Use integer_type_node
7495         for the type of the result.
7496         (fold_builtin_isascii): Likewise.
7497         (fold_builtin_toascii): Use integer_type_node where appropriate.
7498         (fold_builtin_logb): Likewise.
7499         (fold_builtin_frexp): Likewise.
7500         (fold_builtin_strstr): Likewise.
7501         (fold_builtin_strpbrk): Likewise.
7502         (fold_builtin_fputs): Likewise.
7503         (fold_builtin_sprintf): Likewise.
7504         (fold_builtin_snprintf): Likewise.
7505         (fold_builtin_printf): Likewise.
7506         (do_mpfr_remquo): Use a proper type for the assigned constant.
7507         (do_mpfr_lgamma_r): Likewise.
7508         * dwarf2out.c (resolve_one_addr): Use size_int.
7509         * except.c (init_eh): Likewise.
7510         (assign_filter_values): Use integer_type_node for filter values.
7511         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7512         indices.
7513         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7514         for EH region numbers.
7515         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7516         for the shift amount.
7517
7518 2011-04-29  Richard Guenther  <rguenther@suse.de>
7519
7520         * expr.h (expand_shift): Rename to ...
7521         (expand_variable_shift): ... this.
7522         (expand_shift): Take a constant shift amount.
7523         * expmed.c (expand_shift): Rename to ...
7524         (expand_variable_shift): ... this.
7525         (expand_shift): New wrapper around expand_variable_shift.
7526         * expr.c (convert_move, emit_group_load_1, emit_group_store,
7527         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7528         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7529         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7530         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7531         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7532         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7533         emit_store_flag_1, emit_store_flag): Likewise.
7534         * builtins.c (expand_builtin_signbit): Likewise.
7535         * calls.c (load_register_parameters): Likewise.
7536         * function.c (assign_parm_setup_block): Likewise.
7537         * lower-subreg.c (resolve_shift_zext): Likewise.
7538         * optabs.c (widen_bswap, expand_abs_nojump,
7539         expand_one_cmpl_abs_nojump, expand_float): Likewise.
7540         * spu/spu.c (spu_expand_extv): Likewise.
7541         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7542
7543 2011-04-29  Richard Guenther  <rguenther@suse.de>
7544
7545         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7546         for the remapped region number.
7547         * predict.c (build_predict_expr): Use integer_type_node for the
7548         predict kind.
7549         * fold-const.c (fold_binary_loc): Use integer_type_node for
7550         the shift amount.  Use a proper type for the PLUS_EXPR operand.
7551
7552 2011-04-29  Michael Matz  <matz@suse.de>
7553
7554         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7555         other trees that just builtins.
7556         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7557
7558 2011-04-29  Richard Guenther  <rguenther@suse.de>
7559
7560         * tree-nested.c (get_trampoline_type): Use size_int.
7561         (get_nl_goto_field): Likewise.
7562         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7563         for all indexes.
7564         (lower_eh_constructs_2): Likewise.
7565         (lower_resx): Likewise.
7566         (lower_eh_dispatch): Likewise.
7567         * tree-mudflap.c (mf_build_string): Use size_int.
7568         (mudflap_register_call): Use integer_type_node for the flag.
7569         (mudflap_enqueue_constant): Use size_int.
7570         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7571         instead of rebuilding it.
7572
7573 2011-04-29  Richard Guenther  <rguenther@suse.de>
7574
7575         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7576         Handle OBJ_TYPE_REF.
7577         (find_func_aliases_for_call): Use it more consistently.
7578
7579 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
7580
7581         * haifa-sched.c (last_nondebug_scheduled_insn): New.
7582         (rank_for_schedule): Use it.
7583         (schedule_block): Set it.
7584
7585 2011-04-28  David Li  <davidxl@google.com>
7586
7587         * tree.c (crc32_string): Use crc32_byte.
7588         (crc32_byte): New function.
7589         * tree.h (crc32_byte): New function.
7590         * gcov.c (read_graph_file): Handle new cfg_cksum.
7591         (read_count_file): Ditto.
7592         * profile.c (instrument_values): Ditto.
7593         (get_exec_counts): Ditto.
7594         (read_profile_edge_counts): Ditto.
7595         (compute_branch_probabilities): Ditto.
7596         (compute_value_histograms): Ditto.
7597         (branch_prob): Ditto.
7598         (end_branch_prob): Ditto.
7599         * coverage.c (read_counts_file): Ditto.
7600         (get_coverage_counts): Ditto.
7601         (tree_coverage_counter_addr): Ditto.
7602         (coverage_checksum_string): Ditto.
7603         (coverage_begin_output): Ditto.
7604         (coverage_end_function): Ditto.
7605         (build_fn_info_type): Ditto.
7606         (build_fn_info_value): Ditto.
7607         * libgcov.c (gcov_exit): Ditto.
7608         * gcov-dump.c (tag_function): Ditto.
7609         (compute_checksum): Remove.
7610
7611 2011-04-29  Alan Modra  <amodra@gmail.com>
7612
7613         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7614         unspec plus offset.  Tidy macho code.
7615
7616 2011-04-29  Martin Jambor  <mjambor@suse.cz>
7617
7618         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7619         node instead of a decl.  Update all callers.
7620         * cgraph.h: Update declaration.
7621
7622 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
7623
7624         PR tree-optimization/48765
7625         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7626         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7627         to indicate if loop aware SLP is being used.  Scan the statements
7628         and update the vectorization factor according to the type of
7629         vectorization before statement analysis.
7630         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7631         pass it to vect_analyze_loop_operations.
7632         (vectorizable_reduction): Set number of copies to 1 in case of pure
7633         SLP statement.
7634         * tree-vect-stmts.c (vectorizable_conversion,
7635         vectorizable_assignment, vectorizable_shift,
7636         vectorizable_operation, vectorizable_type_demotion,
7637         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7638         Likewise.
7639         (vectorizable_condition): Move the check that it is not SLP
7640         vectorization before the number of copies check.
7641         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7642         to vectorize the loop using SLP.
7643
7644 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
7645
7646         PR middle-end/48597
7647         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7648         inline asm.
7649
7650 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
7651
7652         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7653         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7654         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7655         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7656         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7657         linux*.h headers.
7658         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7659         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7660         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7661         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7662         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7663         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7664         REG_NAME.
7665         * config/i386/linux.h (REG_NAME): Don't define.
7666         * config/i386/linux64.h (REG_NAME): Don't define.
7667         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7668         Undefine before defining.
7669
7670 2011-04-28  Jan Hubicka  <jh@suse.cz>
7671
7672         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7673         nonconstant_names array.
7674         (estimate_function_body_sizes): Build nonconstant_names array; handle
7675         BUILT_IN_CONSTANT_P.
7676
7677 2011-04-28  Richard Guenther  <rguenther@suse.de>
7678
7679         PR bootstrap/48804
7680         Revert
7681         2011-04-28  Richard Guenther  <rguenther@suse.de>
7682
7683         * tree-ssa-structalias.c (solve_constraints): Build succ graph
7684         as late as possible.
7685
7686 2011-04-28  Richard Guenther  <rguenther@suse.de>
7687
7688         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7689         (debug_constraint): Do it here.
7690         (dump_constraints): And here.
7691         (rewrite_constraints): And here.
7692         (dump_constraint_edge): Remove.
7693         (dump_constraint_graph): Rewrite to produce DOT output.
7694         (solve_constraints): Build succ graph as late as possible.
7695         Dump constraint graphs before and after solving.
7696
7697 2011-04-28  Richard Guenther  <rguenther@suse.de>
7698
7699         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7700         New function split out from ...
7701         (find_func_aliases): ... here.  Call it.
7702         (find_func_aliases_for_call): Likewise.
7703
7704 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7705
7706         * internal-fn.h (internal_fn_name_array): Declare.
7707         (internal_fn_flags_array): Likewise.
7708
7709 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7710
7711         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
7712         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7713         Move from sse.md.
7714         (ssemodefsuffix): Remove.
7715         (ssevecmodesuffix): New mode attribute.
7716         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7717         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7718         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7719         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7720         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7721         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7722         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7723         ssemodesuffix mode attribute.
7724         (float splitters): Use ssevecmodesuffix mode attribute.
7725         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7726         (sseinsmode): Rename from avxvecmode.
7727         (avxsizesuffix): Rename from avxmodesuffix.
7728         (sseintvecmode): Rename from avxpermvecmode.
7729         (ssedoublevecmode): Rename from ssedoublesizemode.
7730         (ssehalfvecmode): Rename from avxhalfvecmode.
7731         (ssescalarmode): Rename from avxscalarmode.
7732         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7733         templates for ssemodesuffix mode attribute.
7734         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7735         mode attribute.
7736
7737         Adjust RTX patterns globally for renamed mode attributes.
7738
7739 2011-04-27  Jan Hubcika  <jh@suse.cz>
7740
7741         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7742         * ipa-inline-analysis.c: Include alloc-pool.h.
7743         (edge_predicate_pool): New.
7744         (trye_predicate_p): New function
7745         (false_predicate_p): New function.
7746         (add_clause): Sanity check that false clauses are "optimized";
7747         never add clauses to predicate that is already known to be false.
7748         (and_predicate): Use flase_predicate_p.
7749         (evaulate_predicate): Rename to ...
7750         (evaluate_predicate): ... this one; update all callers; assert
7751         that false is not listed among possible truths.
7752         (dump_predicate): Use true_predicate_p.
7753         (account_size_time): Use false_predicate_p.
7754         (evaulate_conditions_for_edge): Rename to ...
7755         (evaluate_conditions_for_edge) ... this one.
7756         (edge_set_predicate): New function.
7757         (inline_edge_duplication_hook): Duplicate edge predicates.
7758         (inline_edge_removal_hook): Free edge predicates.
7759         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7760         (dump_inline_summary): Update.
7761         (estimate_function_body_sizes): Set edge predicates.
7762         (estimate_calls_size_and_time): Handle predicates.
7763         (estimate_callee_size_and_time): Update.
7764         (remap_predicate): Add toplev_predicate; update comment.
7765         (remap_edge_predicates): New function.
7766         (inline_merge_summary): Compute toplev predicate; update.
7767         (read_predicate): New function.
7768         (read_inline_edge_summary): Use it.
7769         (inline_read_section): Likewise.
7770         (write_predicate): New function.
7771         (write_inline_edge_summary): Use it.
7772         (inline_write_summary): Likewise.
7773         (inline_free_summary): Free alloc pool and edge summary vec.
7774
7775 2011-04-27  Richard Guenther  <rguenther@suse.de>
7776
7777         * tree-ssa-structalias.c (changed_count): Remove.
7778         (changed): Use a bitmap.
7779         (unify_nodes): Adjust.
7780         (do_sd_constraint): Likewise.
7781         (do_ds_constraint): Likewise.
7782         (do_complex_constraint): Likewise.
7783         (solve_graph): Likewise.
7784
7785 2011-04-27  Jan Hubicka  <jh@suse.cz>
7786
7787         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7788
7789 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
7790
7791         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7792         (avx_vperm2f128_*_operand): Ditto.
7793         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7794         Use avx_vpermilp_parallel in insn condition.
7795         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7796         Use avx_vperm2f128_parallel in insn condition.
7797
7798 2011-04-27  Richard Guenther  <rguenther@suse.de>
7799
7800         * Makefile.in (tree-ssa-structalias.o): Remove
7801         gt-tree-ssa-structalias.h dependency.
7802         (GTFILES): Remove tree-ssa-structalias.c.
7803         * tree.c (allocate_decl_uid): New function.
7804         (make_node_stat): Use it.
7805         (copy_node_stat): Likewise.
7806         * tree.h (allocate_decl_uid): Declare.
7807         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7808         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7809         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7810         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7811         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7812         (struct heapvar_map): Likewise.
7813         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7814         heapvar_insert): Likewise.
7815         (make_heapvar_for): Rename to ...
7816         (make_heapvar): ... this.  Simplify.
7817         (fake_var_decl_obstack): New global var.
7818         (build_fake_var_decl): New function.
7819         (make_constraint_from_heapvar): Adjust.
7820         (handle_lhs_call): Likewise.
7821         (create_function_info_for): Likewise.
7822         (intra_create_variable_infos): Likewise.
7823         (init_alias_vars): Allocate fake_var_decl_obstack.
7824         (init_alias_heapvars, delete_alias_heapvars): Remove.
7825         (compute_points_to_sets): Do not call init_alias_heapvars.
7826         (ipa_pta_execute): Likewise.
7827         (delete_points_to_sets): Free fake_var_decl_obstack.
7828
7829 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7830
7831         * config/spu/divmovti4.c (union qword_UTItype): New data type.
7832         (si_from_UTItype, si_to_UTItype): New functions.
7833         (__udivmodti4): Use them to implement type-punning.
7834         * config/spu/multi3.c (union qword_TItype): New data type.
7835         (si_from_TItype, si_to_TItype): New functions.
7836         (__multi3): Use them to implement type-punning.
7837
7838 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7839
7840         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7841
7842 2011-04-27  Jan Hubicka  <jh@suse.cz>
7843
7844         * ipa-prop.c (function_insertion_hook_holder): New holder.
7845         (ipa_add_new_function): New function.
7846         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7847         Register/deregister holder.
7848
7849 2011-04-27  Richard Guenther  <rguenther@suse.de>
7850
7851         PR tree-optimization/48772
7852         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7853
7854 2011-04-27  Richard Guenther  <rguenther@suse.de>
7855
7856         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7857         TARGET_MEM_REF handling.
7858
7859 2011-04-27  Nick Clifton  <nickc@redhat.com>
7860
7861         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7862         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7863         (REG_CLASS_NAMES): Likewise.
7864         (REG_CLASS_CONTENTS): Likewise.
7865         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7866         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
7867         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
7868         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
7869         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
7870         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7871         duplicate register classes.
7872         (frv_class_likely_spilled_p): Likewise.
7873         (frv_register_move_cost): Likewise.
7874
7875         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7876         end of the regno_reg_class array.
7877
7878 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
7879
7880         PR c/48742
7881         * c-typeck.c (build_binary_op): Don't wrap arguments if
7882         int_operands is true.
7883
7884 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
7885
7886         PR target/48767
7887         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7888         targetm.calls.must_pass_in_stack for void type.
7889
7890 2011-04-26  Jan Hubicka  <jh@suse.cz>
7891
7892         * cgraphbuild.c (build_cgraph_edges): Update call
7893         of cgraph_create_edge and cgraph_create_indirect_edge.
7894         * cgraph.c (cgraph_create_edge_including_clones,
7895         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7896         cgraph_update_edges_for_call_stmt_node): Do not take nest
7897         argument; do not initialize call_stmt_size/time.
7898         (dump_cgraph_node): Do not dump nest.
7899         (cgraph_clone_edge): Do not take loop_nest argument;
7900         do not propagate it; do not clone call_stmt_size/time.
7901         (cgraph_clone_node): Likewise.
7902         (cgraph_create_virtual_clone): Update.
7903         * cgraph.h (struct cgraph_edge): Remove
7904         call_stmt_size/call_stmt_time/loop_nest.
7905         (cgraph_create_edge, cgraph_create_indirect_edge,
7906         cgraph_create_edge_including_clones, cgraph_clone_node): Update
7907         prototype.
7908         * tree-emutls.c (gen_emutls_addr): Update.
7909         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7910         loop_nest; handle indirect calls, too.
7911         (clone_inlined_nodes): Do not care about updating inline summaries.
7912         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7913         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7914         stream call_stmt_size/call_stmt_time/loop_nest.
7915         * ipa-inline.c (edge_badness): Update.
7916         (ipa_inline): dump summaries after inlining.
7917         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7918         New.
7919         (inline_edge_summary): New function.
7920         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7921         (inline_edge_removal_hook): Handle edge summaries.
7922         (inline_edge_duplication_hook): New hook.
7923         (inline_summary_alloc): Alloc hooks.
7924         (initialize_growth_caches): Do not register removal hooks.
7925         (free_growth_caches); Do not free removal hook.
7926         (dump_inline_edge_summary): New function.
7927         (dump_inline_summary): Use it.
7928         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7929         (inline_update_callee_summaries): New function.
7930         (inline_merge_summary): Use it.
7931         (do_estimate_edge_time, do_estimate_edge_growth): Update.
7932         (read_inline_edge_summary): New function.
7933         (inline_read_section): Use it.
7934         (write_inline_edge_summary): New function.
7935         (inline_write_summary): Use it.
7936         (inline_free_summary): Free edge new holders.
7937         * tree-inline.c (copy_bb): Update.
7938
7939 2011-04-26  Jason Merrill  <jason@redhat.com>
7940
7941         * tree-eh.c (lower_try_finally_switch): Create the label along with
7942         the CASE_LABEL_EXPR.
7943
7944 2011-04-26  David S. Miller  <davem@davemloft.net>
7945             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7946
7947         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7948         * configure: Regenerate.
7949
7950 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7951
7952         PR target/48258
7953         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7954         reduction.
7955         (VEC_reduc): New code iterator and splitters for vector reduction.
7956         (VEC_reduc_name): Ditto.
7957         (VEC_reduc_rtx): Ditto.
7958         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7959         (reduc_<VEC_reduc_name>_v4sf): Ditto.
7960
7961         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7962         support for extracting SF on VSX.
7963
7964         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7965         generating xscvspdp.
7966         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7967         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7968         double add, minimum, maximum vector reduction.
7969         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7970         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7971         optimize double vector reduction.
7972         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7973
7974 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
7975
7976         * config/fr30/fr30.h (inhibit_libc): Don't define.
7977         * config/m32r/m32r-protos.h: Correct comment.
7978         * config/v850/v850.h (GHS_default_section_names,
7979         GHS_current_section_names): Use tree, not union tree_node *.
7980
7981 2011-04-26  Xinliang David Li  <davidxl@google.com>
7982
7983         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7984         * c-family/c-opts.c (c_common_handle_option): Set
7985         warn_maybe_uninitialized.
7986         * opts.c (common_handle_option): Ditto.
7987         * common.opt:  New option.
7988         * tree-ssa.c (warn_uninit): Add one more parameter.
7989         (warn_uninitialized_var): Pass warning code.
7990         * tree-flow.h: Interface change.
7991
7992 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7993
7994         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7995         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7996         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7997
7998 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7999
8000         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8001         * config/mips/mips.opt (mmips-tfile): Remove.
8002
8003         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8004         mips-tdump reference to ...
8005         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
8006         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8007         reference by Tru64 UNIX.
8008
8009 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
8010
8011         PR debug/48768
8012         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8013         is error_mark_node, set value to NULL.
8014
8015         PR tree-optimization/48734
8016         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8017         if return value from maybe_fold_*_comparsions isn't something
8018         the code is prepared to handle.
8019
8020 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
8021
8022         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8023         mode check.
8024         (ext_QIreg_nomode_operands): Remove.
8025         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8026         (*andsi_1): Ditto.
8027         (*andhi_1): Ditto.
8028
8029 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
8030
8031         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8032
8033 2011-04-26  Richard Guenther  <rguenther@suse.de>
8034
8035         * c-typeck.c (build_unary_op): Do not expand array-refs via
8036         pointer arithmetic.  Only adjust qualifiers for function types.
8037
8038 2011-04-26  Richard Guenther  <rguenther@suse.de>
8039
8040         PR middle-end/48694
8041         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8042         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
8043         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
8044         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
8045
8046 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
8047
8048         * doc/extend.texi: Document __underlying_type.
8049
8050 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
8051
8052         * config/rs6000/titan.md (automata_option "progress"): Remove.
8053
8054 2011-04-25  Jeff Law  <law@redhat.com>
8055
8056         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8057
8058 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8059
8060         * system.h (ENUM_BITFIELD): Remove.
8061
8062 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
8063             Eric Botcazou  <ebotcazou@adacore.com>
8064
8065         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8066         for STORE_FLAG_VALUE==-1 case.
8067
8068 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
8069
8070         PR target/43804
8071         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8072         LEGITIMATE_PIC_OPERAND_P.
8073
8074 2011-04-24  Jan Hubicka  <jh@suse.cz>
8075
8076         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8077         WPA hack.
8078         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8079         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8080         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
8081         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8082         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8083         Sanity check predicate length.
8084         (remap_predicate): Likewise; sanity check jump functions.
8085         (inline_read_section, inline_write_summary): Sanity check
8086         predicate length.
8087
8088 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
8089
8090         PR other/48748
8091         * doc/extend.texi (Type Traits): Document __is_standard_layout,
8092         __is_literal_type, and __is_trivial; update throughout about
8093         possibly cv-qualified void types.
8094
8095 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
8096
8097         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8098         testsuite and make it version agnostic.
8099
8100 2011-04-22  Jan Hubicka  <jh@suse.cz>
8101
8102         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8103
8104 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
8105
8106         PR c/48685
8107         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8108         to VOID_TYPE even around MODIFY_EXPR.
8109
8110 2011-04-22  Mike Stump  <mikestump@comcast.net>
8111
8112         * gensupport.c (read_md_rtx): Fix typo in comment.
8113         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8114         comment.
8115
8116 2011-04-22  Jan Hubicka  <jh@suse.cz>
8117
8118         * gengtype.c (open_base_files): Add ipa-inline.h include.
8119         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8120         ipa-prop.c; update all uses.
8121         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
8122         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8123         merge summary of inlined function into former caller.
8124         * ipa-inline.c (max_benefit): Remove.
8125         (edge_badness): Compensate for removal of benefits.
8126         (update_caller_keys): Use
8127         reset_node_growth_cache/reset_edge_growth_cache.
8128         (update_callee_keys): Likewise.
8129         (update_all_callee_keys): Likewise.
8130         (inline_small_functions): Do not collect max_benefit; do not reset
8131         estimated_growth; call free_growth_caches and initialize_growth_caches.
8132         * ipa-inline.h (struct condition, type clause_t, struct predicate,
8133         struct size_time_entry): New structures.
8134         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
8135         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8136         and estimated_growth.
8137         (edge_growth_cache_entry): New structure.
8138         (node_growth_cache, edge_growth_cache): New global vars.
8139         (estimate_growth): Turn into inline.
8140         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8141         initialize_growth_caches, free_growth_caches): Declare.
8142         (estimate_edge_growth): Rewrite.
8143         (estimate_edge_time): Implement as inline cache lookup.
8144         (reset_node_growth_cache, reset_edge_growth_cache): New inline
8145         functions.
8146         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8147         (NUM_CONDITIONS): New constant.
8148         (predicate_conditions): New enum.
8149         (IS_NOT_CONSTANT): New constant.
8150         (edge_removal_hook_holder): New var.
8151         (node_growth_cache, edge_growth_cache): New global vars.
8152         (true_predicate, single_cond_predicate, false_predicate,
8153         not_inlined_predicate, add_condition, add_clause, and_predicates,
8154         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8155         dump_clause, dump_predicate, account_size_time,
8156         evaulate_conditions_for_edge): New functions.
8157         (inline_summary_alloc): Move to heap.
8158         (inline_node_removal_hook): Clear condition and entry vectors.
8159         (inline_edge_removal_hook): New function.
8160         (initialize_growth_caches, free_growth_caches): New function.
8161         (dump_inline_summary): Update.
8162         (edge_execution_predicate): New function.
8163         (will_be_nonconstant_predicate): New function.
8164         (estimate_function_body_sizes): Compute BB and constantness predicates.
8165         (compute_inline_parameters): Do not clear estimated_growth.
8166         (estimate_edge_size_and_time): New function.
8167         (estimate_calls_size_and_time): New function.
8168         (estimate_callee_size_and_time): New function.
8169         (remap_predicate): New function.
8170         (inline_merge_summary): New function.
8171         (do_estimate_edge_time): New function based on...
8172         (estimate_edge_time): ... this one.
8173         (do_estimate_edge_growth): New function.
8174         (do_estimate_growth): New function based on....
8175         (estimate_growth): ... this one.
8176         (inline_analyze_function): Analyze after deciding on jump functions.
8177         (inline_read_section): New function.
8178         (inline_read_summary): Use it.
8179         (inline_write_summary): Write all the new data.
8180         * ipa-prop.c (ipa_get_param_decl_index): Export.
8181         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8182         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8183         Declare.
8184         (ipa_get_lattice): Move here from ipa-cp.c
8185         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8186         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8187         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8188         cgraph_edge_inlinable_p): Remove.
8189         * cgraphunit.c: Include ipainline.h
8190         (cgraph_process_new_functions): Update call of
8191         compute_inline_parameters.
8192
8193 2011-04-22  Richard Guenther  <rguenther@suse.de>
8194
8195         * tree.c (build_int_cst): Properly create canonicalized integer
8196         constants.
8197         (build_int_cst_type): Remove scary comments.
8198
8199 2011-04-22  Xinliang David Li  <davidxl@google.com>
8200
8201         * toplev.c (process_options): Enable -Werror=coverage-mismatch
8202         by default when -Wno-error is not specified.
8203         * opts-global.c (decode_options): Remove call to
8204         control_warning_options.
8205
8206 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
8207
8208         PR tree-optimization/48717
8209         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8210         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8211
8212 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
8213
8214         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
8215         definition where used.
8216
8217 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
8218
8219         PR c/48716
8220         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8221         TREE_STATIC variables declared inside of some OpenMP construct.
8222
8223 2011-04-22  Martin Jambor  <mjambor@suse.cz>
8224
8225         PR middle-end/48585
8226         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8227
8228 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
8229
8230         PR c/36750
8231         * c-typeck.c (pop_init_level): Do not warn about initializing
8232         with ` = {0}'.
8233
8234 2011-04-22  Alan Modra  <amodra@gmail.com>
8235
8236         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8237         when returning call_cookie.
8238         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8239         pointers, to functions with no more vector args than the current
8240         function, and some non-local calls for ABI_V4.
8241         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8242         sibcall_nonlocal_aix64): Combine to ..
8243         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
8244         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8245         (sibcall_value_nonlocal_aix<mode>): ..likewise.
8246         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8247         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
8248         operand.
8249         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8250         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8251         sibcall_value_symbolic_64): Delete.
8252
8253 2011-04-21  Xinliang David Li  <davidxl@google.com>
8254
8255         * cgraph.h: Remove pid.
8256         * cgraph.c: Remove pid.
8257         * value-prof.c (init_node_map): New function.
8258         (del_node_map): New function.
8259         (find_func_by_funcdef_no): New function.
8260         (gimple_ic_transform): Call new function.
8261         * cgraphunit.c (cgraph_finalize_function): Remove pid.
8262         * function.c (get_last_funcdef_no): New function.
8263         * function.h (get_last_funcdef_no): New function.
8264         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8265         to libgcov function.
8266         (tree-profiling): Call node map init and delete function.
8267
8268 2011-04-21  Ian Lance Taylor  <iant@google.com>
8269
8270         * godump.c (go_format_type): Use exported Go name for anonymous
8271         field name.
8272
8273 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8274
8275         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8276         Call builtin_function_type_list instead of builtin_function_type.
8277         (UNARY, BINARY, TRINARY, QUAD): Likewise.
8278
8279 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8280
8281         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8282         build_function_type_list instead of build_function_type.
8283         Delete variable `endlink'.
8284
8285 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8286
8287         * config/s390/s390.c (s390_init_builtins): Call
8288         build_function_type_list instead of build_function_type.
8289
8290 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
8291
8292         * config/ia64/ia64.c (ia64_init_builtins): Call
8293         build_function_type_list instead of builtin_function_type.
8294
8295 2011-04-21  Easwaran Raman  <eraman@google.com>
8296
8297         * cfgexpand.c (stack_var): Remove OFFSET...
8298         (add_stack_var): ...and its reference here...
8299         (expand_stack_vars): ...and here.
8300         (stack_var_cmp): Sort by descending order of size.
8301         (partition_stack_vars): Change heuristic.
8302         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8303         (dump_stack_var_partition): Add newline after each partition.
8304
8305 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
8306             Jeff Law  <law@redhat.com>
8307
8308         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8309         * gengtype.c (matching_file_name_substitute): Likewise.
8310
8311 2011-04-21  Richard Guenther  <rguenther@suse.de>
8312
8313         PR lto/48703
8314         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8315
8316 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
8317
8318         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8319
8320 2011-04-21  Richard Guenther  <rguenther@suse.de>
8321
8322         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8323         file name.
8324
8325 2011-04-21  Richard Guenther  <rguenther@suse.de>
8326
8327         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8328         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8329         Use DECL_P, not SSA_VAR_P.
8330         (ptr_derefs_may_alias_p): Likewise.
8331         (ptr_deref_may_alias_ref_p_1): Likewise.
8332         (decl_refs_may_alias_p): Likewise.
8333         (refs_may_alias_p_1): Likewise.
8334         (ref_maybe_used_by_call_p_1): Likewise.
8335         (call_may_clobber_ref_p_1): Likewise.
8336         (indirect_ref_may_alias_decl_p): Assume indirect refrences
8337         are either MEM_REF or TARGET_MEM_REF.
8338         (indirect_refs_may_alias_p): Likewise.
8339         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8340         for MEM_EXPR of indirect calls.
8341
8342 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8343
8344         * vmsdbgout.c (write_srccorr): Compute file length from the string.
8345         (dst_file_info_struct): Remove flen field.
8346         (lookup_filename): Remove code that set flen field.
8347
8348 2011-04-21  Tristan Gingold  <gingold@adacore.com>
8349
8350         * config/ia64/ia64.c (ia64_start_function): Add a guard.
8351
8352 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
8353
8354         PR target/48708
8355         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8356         vec_extract and vec_concat for non-SSE4_1 targets.
8357
8358 2011-04-21  Richard Guenther  <rguenther@suse.de>
8359
8360         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8361         return statements.
8362
8363 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8364
8365         * config/i386/cygming.h (union tree_node, TREE): Don't define or
8366         undefine.
8367         (FILE): Don't undefine.
8368
8369 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
8370
8371         * config/alpha/alpha.c (struct machine_function): Use rtx, not
8372         struct rtx_def *.
8373         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8374         struct rtx_def *.
8375         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8376         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8377         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8378         rtx_def *.
8379         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
8380         definitions where used.
8381         * config/microblaze/microblaze.h (struct microblaze_args): Use
8382         rtx, not struct rtx_def *.
8383         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8384         rtx_def *.
8385         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8386         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8387         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8388         not struct rtx_def *.
8389         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8390         struct rtx_def *.
8391         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8392         rtx_def *.
8393         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8394
8395 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8396
8397         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8398         operand_equal_p to compare DR_BASE_ADDRESSes.
8399         (vect_check_interleaving): Likewise.
8400
8401 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8402
8403         PR target/46329
8404         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8405         for all Neon struct constants.
8406
8407 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8408
8409         * target.def (legitimate_constant_p): New hook.
8410         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8411         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8412         * doc/tm.texi: Regenerate.
8413         * hooks.h (hook_bool_mode_rtx_true): Declare.
8414         * hooks.c (hook_bool_mode_rtx_true): Define.
8415         * system.h (LEGITIMATE_CONSTANT_P): Poison.
8416         * calls.c (precompute_register_parameters): Replace uses of
8417         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8418         (emit_library_call_value_1): Likewise.
8419         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8420         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8421         * ira-costs.c (scan_one_insn): Likewise.
8422         * recog.c (general_operand, immediate_operand): Likewise.
8423         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8424         * reload1.c (init_eliminable_invariants): Likewise.
8425
8426         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8427         mode argument.
8428         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8429         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8430         argument.
8431         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8432         * config/alpha/predicates.md (input_operand): Update call to
8433         alpha_legitimate_constant_p.
8434
8435         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8436         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8437         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8438         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8439         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8440         (arm_legitimate_constant_p): New functions.
8441         (arm_cannot_force_const_mem): Make static.
8442
8443         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8444
8445         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8446         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8447         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8448         instead of bfin_legitimate_constant_p.
8449         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
8450         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8451
8452         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8453
8454         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8455
8456         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8457         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8458         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8459         (frv_legitimate_constant_p): Make static.  Add a mode argument.
8460
8461         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8462         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8463         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8464
8465         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8466         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8467         * config/i386/i386.c (legitimate_constant_p): Rename to...
8468         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
8469         argument.
8470         (ix86_cannot_force_const_mem): Update accordingly.
8471         (ix86_legitimate_address_p): Likewise.
8472         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8473         * config/i386/i386.md: Update commentary.
8474
8475         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8476         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8477         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8478         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
8479
8480         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8481
8482         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8483         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8484         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8485         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
8486
8487         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8488         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8489         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8490
8491         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8492         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8493         (m32r_legitimate_constant_p): New function.
8494
8495         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8496         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8497         LEGITIMATE_CONSTANT_P.
8498         (LEGITIMATE_CONSTANT_P): Delete.
8499         * config/m68k/m68k.c (m68k_expand_prologue): Call
8500         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8501         (m68k_legitimate_constant_p): New function.
8502         * config/m68k/m68k.md: Update comments.
8503
8504         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8505         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8506         (mcore_legitimate_constant_p): New function.
8507
8508         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8509         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8510         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8511         Add a mode argument.
8512         (mep_legitimate_address): Update accordingly.
8513         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8514
8515         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8516         Delete.
8517         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8518         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8519         static.  Check OP's mode for VOIDmode.
8520         (microblaze_legitimate_constant_p): New function.
8521         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8522
8523         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8524         * config/mips/mips.c (mips_legitimate_constant_p): New function.
8525         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8526         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8527         * config/mips/predicates.md: Update comments.
8528
8529         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8530         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8531         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8532         (mmix_legitimate_constant_p): Make static, return a bool, and take
8533         a mode argument.
8534         (mmix_print_operand_address): Update accordingly.
8535
8536         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8537         Delete.
8538         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8539         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8540         static.  Add a mode argument.
8541         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8542
8543         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8544
8545         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8546         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8547         (pa_legitimate_constant_p): New function.
8548
8549         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8550
8551         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8552         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8553         (pdp11_legitimate_constant_p): New function.
8554
8555         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8556         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8557         (rs6000_legitimate_constant_p): New function.
8558
8559         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8560         (rx_legitimate_constant_p): ...this.
8561         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8562         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8563         (rx_legitimate_constant_p): ...this.
8564         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8565         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8566
8567         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8568         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8569         * config/s390/s390.c (legitimate_constant_p): Rename to...
8570         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
8571         and add a mode argument.
8572         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8573
8574         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8575
8576         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8577         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8578         (sh_legitimate_constant_p): New function.
8579
8580         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8581         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8582         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8583         (legitimate_constant_p): Rename to...
8584         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
8585         argument.
8586         (constant_address_p): Update accordingly.
8587
8588         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8589         argument and return a bool.
8590         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8591         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8592         (spu_legitimate_constant_p): Add a mode argument and return a bool.
8593         (spu_rtx_costs): Update accordingly.
8594         * config/spu/predicates.md (vec_imm_operand): Likewise.
8595
8596         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8597
8598         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8599         * config/v850/v850.c (v850_legitimate_constant_p): New function.
8600         (TARGET_LEGITIMATE_CONSTANT_P): Define.
8601
8602         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8603         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8604         * config/vax/vax.c (legitimate_constant_p): Likewise.
8605
8606         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8607         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8608         (xtensa_legitimate_constant_p): New function.
8609
8610 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
8611
8612         * target.def (cannot_force_const_mem): Add a mode argument.
8613         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8614         * doc/tm.texi: Regenerate.
8615         * hooks.h (hook_bool_mode_rtx_false): Declare.
8616         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8617         (hook_bool_mode_const_rtx_true): Likewise.
8618         (hook_bool_mode_rtx_false): New function.
8619         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8620         to be non-VOID.  Update call to cannot_force_const_mem.
8621         (find_reloads): Update accordingly.
8622         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8623         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8624         argument.
8625         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8626         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8627         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8628         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8629         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8630         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8631         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8632         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8633         (m68k_cannot_force_const_mem): ...this new function.
8634         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8635         argument.
8636         (mips_const_insns, mips_legitimize_const_move): Update calls.
8637         (mips_secondary_reload_class): Likewise.
8638         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8639         (pa_cannot_force_const_mem): ...this new function.
8640         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8641         (rs6000_cannot_force_const_mem): ...this new function.
8642         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8643         argument.
8644         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8645         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8646         to...
8647         (xtensa_cannot_force_const_mem): ...this new function.
8648
8649 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8650
8651         * config/mips/mips.c (mips16_build_function_stub): Call
8652         build_function_type_list instead of build_function_type.
8653         (mips16_build_call_stub): Likewise.
8654
8655 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8656
8657         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8658         instead of build_function_type.
8659
8660 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
8661
8662         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8663         instead of build_function_type.
8664
8665 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
8666
8667         PR target/48678
8668         * config/i386/i386.md (insv): Change operand 0 constraint to
8669         "register_operand".  Change operand 1 and 2 constraint to
8670         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
8671         * config/i386/sse.md (sse4_1_pinsrb): Export.
8672         (sse2_pinsrw): Ditto.
8673         (sse4_1_pinsrd): Ditto.
8674         (sse4_1_pinsrq): Ditto.
8675         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8676         * config/i386/i386.c (ix86_expand_pinsr): New.
8677
8678 2011-04-20  Easwaran Raman  <eraman@google.com>
8679
8680         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8681         containing union type only with -fstrict-aliasing.
8682
8683 2011-04-20  Jim Meyering  <meyering@redhat.com>
8684
8685         Remove useless if-before-free tests.
8686         * calls.c (expand_call, save_area): Likewise.
8687         * cfgcleanup.c (try_forward_edges): Likewise.
8688         * collect2.c (collect_execute): Likewise.
8689         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8690         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8691         * coverage.c (coverage_checksum_string): Likewise.
8692         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8693         * cselib.c (cselib_init): Likewise.
8694         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8695         (df_set_clean_cfg): Likewise.
8696         * function.c (free_after_compilation): Likewise.
8697         * gcc.c (do_spec_1, main): Likewise.
8698         * gcov.c (create_file_names): Likewise.
8699         * gensupport.c (identify_predicable_attribute): Likewise.
8700         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8701         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8702         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8703         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8704         * ipa-pure-const.c (local_pure_const): Likewise.
8705         * ipa-reference.c (propagate): Likewise.
8706         * ira-costs.c (free_ira_costs): Likewise.
8707         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8708         * matrix-reorg.c (mat_free): Likewise.
8709         * prefix.c (get_key_value): Likewise.
8710         * profile.c (compute_value_histograms): Likewise.
8711         * reload1.c (free_reg_equiv): Likewise.
8712         * sched-deps.c (free_deps): Likewise.
8713         * sel-sched-ir.c (fence_clear): Likewise.
8714         * sese.c (set_rename, if_region_set_false_region): Likewise.
8715         * tree-data-ref.c (free_rdg): Likewise.
8716         * tree-eh.c (lower_try_finally): Likewise.
8717         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8718         * tree-ssa-live.c (delete_var_map): Likewise.
8719         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8720         * tree-ssa-pre.c (phi_trans_add): Likewise.
8721
8722 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
8723
8724         PR tree-optimization/48611
8725         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8726         beyond ERT_MUST_NOT_THROW region.
8727
8728 2011-04-20  Catherine Moore  <clm@codesourcery.com>
8729
8730         * config/mips/mips.opt (mfix-24k): New.
8731         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8732         * config/mips/mips.md (length): Increase by 4 for stores if
8733         fixing 24K errata.
8734         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8735         all noreorder if fixing 24K errata.
8736         * doc/invoke.texi: Document mfix-24k.
8737
8738 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
8739
8740         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8741         quad-word modes, reduce to 9-bit index range when above 1016 limit.
8742
8743 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8744
8745         * config/arm/arm.c (arm_gen_constant): Move movw support ....
8746         (const_ok_for_op): ... to here.
8747
8748 2011-04-20  Kai Tietz  <ktietz@redhat.com>
8749
8750         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8751         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8752
8753 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
8754
8755         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8756
8757 2011-04-20  Richard Guenther  <rguenther@suse.de>
8758
8759         PR tree-optimization/47892
8760         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8761         are if-convertible.
8762
8763 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8764
8765         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8766
8767 2011-04-20  Tristan Gingold  <gingold@adacore.com>
8768
8769         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8770
8771 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
8772
8773         PR target/18145
8774
8775         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8776         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8777         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8778         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8779         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8780
8781         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8782         New prototype.
8783
8784         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8785         (avr_asm_named_section, avr_asm_output_aligned_common,
8786         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8787         New functions to update...
8788         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8789         (avr_asm_init_sections): Overwrite section callbacks for
8790         data_section, bss_section.
8791         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8792         from here to...
8793         (avr_file_end): ...here.
8794
8795 2011-04-20  Richard Guenther  <rguenther@suse.de>
8796
8797         PR middle-end/48695
8798         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8799         objects and types here.  Adjust for their offset before comparing.
8800
8801 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8802
8803         * tree-vect-stmts.c (vectorizable_store): Only chain one related
8804         statement per copy.
8805
8806 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
8807
8808         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8809         (GIMPLE_H): Include $(INTERNAL_FN_H).
8810         (OBJS-common): Add internal-fn.o.
8811         (internal-fn.o): New rule.
8812         * internal-fn.def: New file.
8813         * internal-fn.h: Likewise.
8814         * internal-fn.c: Likewise.
8815         * gimple.h: Include internal-fn.h.
8816         (GF_CALL_INTERNAL): New gf_mask.
8817         (gimple_statement_call): Put fntype into a union with a new
8818         internal_fn field.
8819         (gimple_build_call_internal): Declare.
8820         (gimple_build_call_internal_vec): Likewise.
8821         (gimple_call_same_target_p): Likewise.
8822         (gimple_call_internal_p): New function.
8823         (gimple_call_internal_fn): Likewise.
8824         (gimple_call_fntype): Return null for internal calls.
8825         (gimple_call_set_fntype): Assert that the function is not internal.
8826         (gimple_call_set_fn): Likewise.
8827         (gimple_call_set_fndecl): Likewise.
8828         (gimple_call_set_internal_fn): New function.
8829         (gimple_call_addr_fndecl): Handle null functions.
8830         (gimple_call_return_type): Likewise null types.
8831         * gimple.c (gimple_build_call_internal_1): New function.
8832         (gimple_build_call_internal): Likewise.
8833         (gimple_build_call_internal_vec): Likewise.
8834         (gimple_call_same_target_p): Likewise.
8835         (gimple_call_flags): Handle calls to internal functions.
8836         (gimple_call_fnspec): New function.
8837         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8838         (gimple_has_side_effects): Handle null functions.
8839         (gimple_rhs_has_side_effects): Likewise.
8840         (gimple_call_copy_skip_args): Handle calls to internal functions.
8841         * cfgexpand.c (expand_call_stmt): Likewise.
8842         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8843         * gimple-fold.c (gimple_fold_call): Handle null functions.
8844         (gimple_fold_stmt_to_constant_1): Don't fold
8845         calls to internal functions.
8846         * gimple-low.c (gimple_check_call_args): Handle calls to internal
8847         functions.
8848         * gimple-pretty-print.c (dump_gimple_call): Likewise.
8849         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8850         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8851         (do_warn_unused_result): Likewise.
8852         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8853         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8854         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8855         the target of a call.
8856         (initialize_hash_element): Update accordingly.
8857         (hashable_expr_equal_p): Use gimple_call_same_target_p.
8858         (iterative_hash_hashable_expr): Handle calls to internal functions.
8859         (print_expr_hash_elt): Likewise.
8860         * tree-ssa-pre.c (can_value_number_call): Likewise.
8861         (eliminate): Handle null functions.
8862         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8863         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8864         (find_func_aliases): Likewise.
8865         * value-prof.c (gimple_ic_transform): Likewise.
8866         (gimple_indirect_call_to_profile): Likewise.
8867         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8868         * lto-streamer-out.c (output_gimple_stmt): Likewise.
8869
8870 2011-04-19  Jan Hubicka  <jh@suse.cz>
8871
8872         * ipa-inline-transform.c (save_inline_function_body): Add comments.
8873         * ipa-inline.c (inline_small_functions): Compute summaries first,
8874         populate heap later.
8875
8876 2011-04-19  Jan Hubicka  <jh@suse.cz>
8877
8878         * cgraph.h (save_inline_function_body): Remove.
8879         * ipa-inline-transform.c: New file, broke out of...
8880         * ipa-inline.c: ... this one; Update toplevel comment.
8881         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8882         make global.
8883         (update_noncloned_frequencies): Move to ipa-inline-transform.c
8884         (cgraph_mark_inline_edge): Rename to inline_call; move to
8885         ipa-inline-transform.c.
8886         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8887         move to ipa-inline-transform.c
8888         (recursive_inlining, inline_small_functions, flatten_function,
8889         ipa_inline, inline_always_inline_functions,
8890         early_inline_small_functions): Update.
8891         (inline_transform): Move to ipa-inline-transform.c.
8892         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8893         Declare.
8894         * Makefile.in (ipa-inline-transform.o): New file.
8895         * cgraphunit.c (save_inline_function_body): Move to
8896         ipa-inline-transform.c
8897
8898 2011-04-19  DJ Delorie  <dj@redhat.com>
8899
8900         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8901         registers if we already know there aren't any.
8902         (m32c_emit_epilogue): Don't emit a barrier here.
8903         (m32c_emit_eh_epilogue): Likewise.
8904         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8905         operands at expand time.
8906         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8907         int" wchar type.
8908         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8909         duplicates.  Provide aliases instead.
8910         * config/m32c/prologue.md (eh_return): Emit a barrier here.
8911         (eh_epilogue): Add a "(return)" here as a hint to other parts of
8912         the compiler.
8913
8914 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
8915
8916         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8917         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8918         (general_or_i64_p, sparc_register_move_cost): New function.
8919
8920 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8921
8922         * doc/install.texi (Configuration, --enable-threads): Remove mach.
8923         Add lynx, mipssde.  Sort table.
8924
8925 2011-04-19  Xinliang David Li  <davidxl@google.com>
8926
8927         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8928         not negative.
8929
8930 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
8931
8932         PR target/48678
8933         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8934         is a SUBREG with non-MODE_INT mode inside of it.
8935
8936 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8937
8938         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8939         also according to actual contants.
8940         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8941         (gimple_fold_call): Use it.
8942         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8943
8944 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8945
8946         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8947         non-pointer assignments.
8948
8949 2011-04-19  Martin Jambor  <mjambor@suse.cz>
8950
8951         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8952         account anc_offset and otr_type from the indirect edge info.
8953         * ipa-prop.c (get_ancestor_addr_info): New function.
8954         (compute_complex_ancestor_jump_func): Assignment analysis moved to
8955         get_ancestor_addr_info, call it.
8956         (ipa_note_param_call): Do not initialize information about polymorphic
8957         calls, return the indirect call graph edge.  Remove the last
8958         parameter, adjust all callers.
8959         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8960         parameters.  Initialize polymorphic information in the indirect edge.
8961
8962 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8963
8964         PR lto/48148
8965         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8966         the types if they have different enumeration identifiers.
8967
8968 2011-04-19  Jan Hubicka  <jh@suse.cz>
8969
8970         * cgraph.h (cgraph_optimize_for_size_p): Declare.
8971         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8972         * predict.c (cgraph_optimize_for_size_p): Break out from ...
8973         (optimize_function_for_size_p) ... here.
8974
8975 2011-04-19  Richard Guenther  <rguenther@suse.de>
8976
8977         PR lto/48207
8978         * tree.c (free_lang_data): Do not reset the decl-assembler-name
8979         langhook.
8980
8981 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8982
8983         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8984         if DECL_NO_INLINE_WARNING_P is set on the function.
8985
8986 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
8987
8988         PR fortran/47976
8989         * reload1.c (inc_for_reload): Return void. All callers changed.
8990         (emit_input_reload_insns): Don't try to delete previous output
8991         reloads to a register, or record spill_reg_store for autoincs.
8992
8993 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
8994
8995         * gengtype.h: Updated copyright year.
8996         (struct input_file_st): Add inpisplugin field.
8997         (type_fileloc): New function.
8998         * gengtype.c
8999         (write_typed_struct_alloc_def): Add gcc_assert.
9000         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9001         (write_typed_alloc_defns): Don't output for plugin files.
9002         (input_file_by_name): Clear inpisplugin field.
9003         (main): Set inpisplugin field for plugin files.
9004
9005 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
9006
9007         * gengtype-state.c (string_eq): New.
9008         (read_state): Use string_eq instead of strcmp when creating the
9009         state_ident_tab.
9010
9011 2011-04-19  Wei Guozhi  <carrot@google.com>
9012
9013         PR target/47855
9014         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9015         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9016         linkage.
9017         * config/arm/constraints.md (Uu): New constraint.
9018         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9019
9020 2011-04-19  Tristan Gingold  <gingold@adacore.com>
9021
9022         * config.gcc (-*-*-*vms): Added.
9023         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9024         definitions moved.
9025         * config/vms/vms-ld.c: New file.
9026         * config/vms/vms-ar.c: New file.
9027         * config/vms/t-vmsnative: New file.
9028
9029 2011-04-18  Xinliang David Li  <davidxl@google.com>
9030
9031         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9032
9033 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
9034
9035         PR middle-end/48661
9036         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9037         if TREE_TYPE (v) is non-NULL.
9038
9039         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9040         gimple_get_virt_mehtod_for_binfo.
9041         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9042         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9043         callers.
9044         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9045
9046 2011-04-18  Michael Matz  <matz@suse.de>
9047             Steve Ellcey  <sje@cup.hp.com>
9048
9049         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9050         use its mode as source mode if it isn't VOIDmode.
9051
9052 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
9053
9054         * doc/passes.texi: Fill crossref nodes.
9055
9056 2011-04-18  Jim Meyering  <meyering@redhat.com>
9057
9058         Fix doubled-word typos in comments and strings
9059         * config/alpha/vms-unwind.h: s/for for/for/
9060         * config/arm/unwind-arm.h: Likewise.
9061         * config/microblaze/microblaze.c: Likewise.
9062         * config/sh/constraints.md: s/in in/in/
9063         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9064
9065 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
9066
9067         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9068         (AVX_FLOAT_MODE_P): Ditto.
9069         (AVX128_VEC_FLOAT_MODE_P): Ditto.
9070         (AVX256_VEC_FLOAT_MODE_P): Ditto.
9071         (AVX_VEC_FLOAT_MODE_P): Ditto.
9072         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9073         (UNSPEC_MASKSTORE): Ditto.
9074         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9075         Merge from <sse>_movmsk<ssemodesuffix> and
9076         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
9077         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
9078         iterator.
9079         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9080         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9081         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9082
9083 2011-04-18  Jan Hubicka  <jh@suse.cz>
9084
9085         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9086
9087         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9088         (want_inline_function_called_once_p): Break out the logic from
9089         ipa_inline.
9090         (edge_badness): Ensure that profile is not misupdated.
9091         (lookup_recursive_calls): Prioritize by call frequencies.
9092         (inline_small_functions): Move program size estimates here;
9093         actually process whole queue even when unit growth has been
9094         met. (to properly compute inline_failed reasons and for the
9095         case unit size decrease.) Revisit comments on recursive inlining.
9096         (ipa_inline): Remove unit summary code; first inline hot calls
9097         of functions called once, cold calls next.
9098         (order, nnodes): Remove unused variables.
9099         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9100         (GTFILES): Remove ipa-inline.c
9101         * sel-sched.c (fill_insns): Silence uninitialized var warning.
9102
9103 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9104
9105         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9106
9107 2011-04-18  Jie Zhang  <jie@codesourcery.com>
9108             Richard Earnshaw  <rearnsha@arm.com>
9109
9110         * arm.c (neon_builtin_type_bits): Remove.
9111         (typedef enum neon_builtin_mode): New.
9112         (T_MAX): Don't define.
9113         (typedef enum neon_builtin_datum): Remove bits, codes[],
9114         num_vars and base_fcode.  Add mode, code and fcode.
9115         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9116         VAR10): Change accordingly.
9117         (neon_builtin_data[]): Change accordingly
9118         (arm_init_neon_builtins): Change accordingly.
9119         (neon_builtin_compare): Remove.
9120         (locate_neon_builtin_icode): Remove.
9121         (arm_expand_neon_builtin): Change accordingly.
9122
9123         * arm.h (enum arm_builtins): Move to ...
9124         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9125
9126         * arm.c (arm_builtin_decl): Declare.
9127         (TARGET_BUILTIN_DECL): Define.
9128         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9129         (arm_builtin_decls[]): New.
9130         (arm_init_neon_builtins): Store builtin declarations in
9131         arm_builtin_decls[].
9132         (arm_init_tls_builtins): Likewise.
9133         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
9134         (arm_builtin_decl): New.
9135
9136 2011-04-18  Richard Guenther  <rguenther@suse.de>
9137
9138         * tree.c (upper_bound_in_type): Build properly canonicalized
9139         INTEGER_CSTs.
9140         (lower_bound_in_type): Likewise.
9141
9142 2011-04-18  Richard Guenther  <rguenther@suse.de>
9143
9144         * gimple.h (gimple_call_addr_fndecl): New function.
9145         (gimple_call_fndecl): Use it.
9146         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9147         for direct calls.
9148         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9149         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9150
9151 2011-04-18  Richard Guenther  <rguenther@suse.de>
9152
9153         PR middle-end/48650
9154         * tree.c (build_string): STRING_CST is now derived from tree_typed.
9155
9156 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9157
9158         PR lto/48492
9159         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9160         DECL_IN_CONSTANT_POOL without RTL.
9161
9162 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
9163             Ira Rosen  <ira.rosen@linaro.org>
9164
9165         PR target/48252
9166         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9167         to match neon_vzip/vuzp/vtrn_internal.
9168         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9169         outputs explicitly dependent on both inputs.
9170         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9171
9172 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
9173
9174         PR tree-optimization/48616
9175         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9176         whether the shift is by scalar or vector based on whether all SLP
9177         scalar stmts have the same rhs.
9178
9179 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
9180
9181         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9182         memory operands.
9183
9184 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
9185
9186         PR target/43700
9187         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9188         registers.
9189
9190 2011-04-17  Jan Hubicka  <jh@suse.cz>
9191
9192         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9193         * cgrpahunit.c (cgraph_finalize_function): Do not set
9194         finalized_by_frontend.
9195         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9196         finalized_by_frontend.
9197
9198 2011-04-17  Jan Hubicka  <jh@suse.cz>
9199
9200         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9201         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9202         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9203         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9204         method.
9205         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9206         gimple-fold.c
9207         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9208
9209 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
9210
9211         PR lto/48538
9212         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9213         is non-null before accessing it.
9214         (input_cgraph): Remove trailing spaces.
9215
9216 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9217
9218         * params.def (sms-min-sc): New param flag.
9219         * modulo-sched.c (sms_schedule): Use it.
9220         * doc/invoke.texi (sms-min-sc): Document it.
9221
9222 2011-04-17  Jan Hubicka  <jh@suse.cz>
9223
9224         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9225         present, also set gimple_call_set_cannot_inline.
9226         * ipa-inline.c: Update toplevel comment.
9227         (MAX_TIME): Remove.
9228         (cgraph_clone_inlined_nodes): Fix linebreaks.
9229         (cgraph_check_inline_limits): Restructure to ...
9230         (caller_growth_limits): ... this one; be more tolerant
9231         on growth in nested inline chains; add explanatory comment;
9232         fix stack accounting thinko introduced by previous patch.
9233         (cgraph_default_inline_p): Remove.
9234         (report_inline_failed_reason): New function.
9235         (can_inline_edge_p): New function.
9236         (can_early_inline_edge_p): New function.
9237         (leaf_node_p): Move upwards in file.
9238         (want_early_inline_function_p): New function.
9239         (want_inline_small_function_p): New function.
9240         (want_inline_self_recursive_call_p): New function.
9241         (cgraph_edge_badness): Rename to ...
9242         (edge_badness) ... this one; fix linebreaks.
9243         (update_edge_key): Update call of edge_baddness; add
9244         detailed dump about queue updates.
9245         (update_caller_keys): Use can_inline_edge_p and
9246         want_inline_small_function_p.
9247         (cgraph_decide_recursive_inlining): Rename to...
9248         (recursive_inlining): Use can_inline_edge_p and
9249         want_inline_self_recursive_call_p; simplify and remove no longer
9250         valid FIXME.
9251         (cgraph_set_inline_failed): Remove.
9252         (add_new_edges_to_heap): Use can_inline_edge_p and
9253         want_inline_small_function_p.
9254         (cgraph_decide_inlining_of_small_functions): Rename to ...
9255         (inline_small_functions): ... this one; cleanup; use
9256         can/want predicates; cleanup debug ouput; work edges till fibheap
9257         is exhausted and do not stop once unit growth is reached; remove
9258         later loop processing remaining edges.
9259         (cgraph_flatten): Rename to ...
9260         (flatten_function): ... this one; use can_inline_edge_p
9261         and can_early_inline_edge_p predicates.
9262         (cgraph_decide_inlining): Rename to ...
9263         (ipa_inline): ... this one; remove unreachable nodes before
9264         inlining functions called once; simplify the pass.
9265         (cgraph_perform_always_inlining): Rename to ...
9266         (inline_always_inline_functions): ... this one; use
9267         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9268         (cgraph_decide_inlining_incrementally): Rename to ...
9269         (early_inline_small_functions): ... this one; simplify
9270         using new predicates; cleanup; make dumps prettier.
9271         (cgraph_early_inlining): Rename to ...
9272         (early_inliner): newer inline regular functions into always-inlines;
9273         fix updating of call stmt summaries.
9274         (pass_early_inline): Update for new names.
9275         (inline_transform): Fix formating.
9276         (gate_cgraph_decide_inlining): Rename to ...
9277         (pass_ipa_inline): ... this one.
9278         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9279         * ipa-inline-analysis.c (dump_inline_summary): Update.
9280         (compute_inline_parameters): Do not compute disregard_inline_limits;
9281         look for mismatching arguments.
9282         (estimate_growth): Fix handlig of non-trivial self recursion.
9283         (inline_read_summary): Do not read info->disregard_inline_limits.
9284         (inline_write_summary): Do not write info->disregard_inline_limits.
9285         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9286         and move all checks into can_inline_edge_p predicate; re-enable code
9287         comparing optimization levels.
9288         (expand_call_inline): Do not test inline_forbidden_into_p.
9289         * Makefile.in (ipa-inline.o): Update arguments.
9290
9291 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9292
9293         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9294
9295 2011-04-17  Revital Eres  <revital.eres@linaro.org>
9296
9297         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9298
9299 2011-04-17  Michael Matz  <matz@suse.de>
9300
9301         PR tree-optimization/48622
9302         PR lto/48645
9303         * ipa-inline-analysis.c (inline_read_summary): Read size/time
9304         in same order as they're written.
9305
9306 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9307
9308         * config/pa/predicates.md: Reorganize and simplify predicates.
9309         Eliminate duplicate code checks.
9310         (arith_operand): Rename to arith14_operand
9311         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9312         * config/pa/pa.md: Use renamed operands.
9313         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9314         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9315         arith11_operand, adddi3_operand, indexed_memory_operand,
9316         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9317         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9318         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9319         move_dest_operand, move_src_operand, prefetch_cc_operand,
9320         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9321         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9322         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9323         div_operand, int5_operand, movb_comparison_operator,
9324         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9325         arith_double_operand, ireg_operand, lhs_lshift_operand,
9326         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9327         integer_store_memory_operand): Likewise.
9328         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9329         (integer_store_memory_operand, read_only_operand,
9330         function_label_operand, borx_reg_operand,
9331         non_hard_reg_operand): Likewise.
9332         (eq_neq_comparison_operator): Delete unused operator.
9333         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9334         function_label_operand.
9335         (emit_move_sequence): Likewise.
9336
9337 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9338
9339         * config/i386/sse.md (sseunpackmode): New mode attribute.
9340         (ssepackmode): Ditto.
9341         (vec_pack_trunc_<mode>): Macroize expander from
9342         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9343         (vec_unpacks_lo_<mode>): Macroize expander from
9344         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9345         (vec_unpacks_hi_<mode>): Macroize expander from
9346         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9347         (vec_unpacku_lo_<mode>): Macroize expander from
9348         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9349         (vec_unpacku_hi_<mode>): Macroize expander from
9350         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9351         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9352         ix86_expand_sse4_unpack.
9353         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9354
9355 2011-04-16  Jan Hubicka  <jh@suse.cz>
9356
9357         * cgraphbuild.c: Include ipa-inline.h.
9358         (reset_inline_failed): Use initialize_inline_failed.
9359         * cgraph.c: Include ipa-inline.h.
9360         (cgraph_create_node_1): Do not initialize estimated_growth.
9361         (initialize_inline_failed): More to ipa-inline-analysis.c
9362         (dump_cgraph_node): Do not dump inline flags.
9363         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9364         and disregard_inline_limits flags.
9365         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9366         time, size, estimated_growth.
9367         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9368         Update.
9369         * cgraphunit.c (cgraph_decide_is_function_needed): Use
9370         DECL_DISREGARD_INLINE_LIMITS.
9371         (cgraph_analyze_function): Do not initialize
9372         node->local.disregard_inline_limits.
9373         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9374         inlinable, versionable and disregard_inline_limits.
9375         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9376         cgraph_check_inline_limits, cgraph_default_inline_p,
9377         cgraph_edge_badness, update_caller_keys, update_callee_keys,
9378         add_new_edges_to_heap): Update.
9379         (cgraph_decide_inlining_of_small_function): Update; set
9380         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9381         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9382         cgraph_decide_inlining_incrementally): Update.
9383         * ipa-inline.h (inline_summary): Add inlinable, versionable,
9384         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9385         time, size and estimated_growth parameters.
9386         (estimate_edge_growth): Update.
9387         (initialize_inline_failed): Declare.
9388         * ipa-split.c: Include ipa-inline.h
9389         (execute_split_functions): Update.
9390         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9391         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9392         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9393         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9394         estimated_growth to INT_MIN.
9395         (inline_node_duplication_hook): Likewise.
9396         (dump_inline_summary): Dump new fields.
9397         (compute_inline_parameters): Update.
9398         (estimate_edge_time, estimate_time_after_inlining,
9399         estimate_size_after_inlining, estimate_growth, inline_read_summary,
9400         inline_write_summary):
9401         (initialize_inline_failed): Move here from cgraph.c.
9402         * tree-sra.c: Include ipa-inline.h.
9403         (ipa_sra_preliminary_function_checks): Update.
9404         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9405         ipa-inline.h.
9406
9407 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
9408
9409         * config/i386/sse.md (V16): New mode iterator.
9410         (VI1, VI8): Ditto.
9411         (AVXMODEQI, AVXMODEDI): Remove.
9412         (sse2, sse3): New mode attribute.
9413         (mov<mode>): Use V16 mode iterator.
9414         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9415         (push<mode>1): Use V16 mode iterator.
9416         (movmisalign<mode>): Ditto.
9417         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9418         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9419         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9420         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9421         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9422         avx_movdqu<avxmodesuffix>.
9423         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9424         *avx_movdqu<avxmodesuffix>.
9425         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9426         avx_lddqu<avxmodesuffix>.
9427         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9428         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9429         avx_movnt<AVXMODEDI:mode>.
9430         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9431         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9432
9433 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
9434
9435         PR target/48629
9436         * haifa-sched.c (prune_ready_list, schedule_block): Use
9437         sched_pressure_p rather than flag_sched_pressure.
9438
9439 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
9440
9441         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9442         cgraph_get_node instead of cgraph_get_create_node.
9443
9444 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
9445
9446         * cfgexpand.c (expand_debug_expr): Use
9447         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9448
9449 2011-04-15  Michael Matz  <matz@suse.de>
9450
9451         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9452         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9453         * function.c (gimplify_parameters): Ditto.
9454         * gimplify.c (gimplify_vla_decl): Ditto.
9455
9456         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9457         (gimple_call_set_alloca_for_var): New inline function.
9458         (gimple_call_alloca_for_var_p): Ditto.
9459         * gimple.c (gimple_build_call_from_tree): Remember
9460         CALL_ALLOCA_FOR_VAR_P state.
9461         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9462
9463         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9464         calls if they were for VLA objects.
9465
9466 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9467
9468         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9469         of ADR_EXPRs.
9470
9471 2011-04-15  Martin Jambor  <mjambor@suse.cz>
9472
9473         PR middle-end/48601
9474         * tree-emutls.c (lower_emutls_function_body): Call
9475         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
9476         result is non-NULL.
9477
9478 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
9479
9480         * c-decl.c (detect_field_duplicates): Call
9481         objc_detect_field_duplicates instead of objc_get_interface_ivars.
9482
9483 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
9484
9485         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9486         * gimple.c (gimple_asm_clobbers_memory_p): Define.
9487         * ipa-pure-const.c (check_stmt): Call it.
9488         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9489
9490 2011-04-15  Richard Guenther  <rguenther@suse.de>
9491
9492         PR tree-optimization/48290
9493         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9494         Properly decide inhibiting propagation based on the valueized
9495         operand.  Do loop-closed SSA form preserving here ...
9496         (init_copy_prop): ... not here.
9497
9498 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
9499
9500         PR target/48612
9501         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9502         (*ieee_smax<mode>3): Likewise.
9503
9504 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9505
9506         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9507         Replace match_operand with match_dup for the third operand in
9508         these expanders.
9509
9510 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9511
9512         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9513         to track processing of conditionals.  Update all callers.
9514         (try_combine, simplify_if_then_else): Update.
9515
9516 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9517
9518         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9519         -fsched-pressure.
9520
9521 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
9522
9523         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9524         instead of match_operand for operand 3.
9525
9526 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
9527
9528         * recog.h (insn_operand_data): Add an "allows_mem" field.
9529         * genoutput.c (output_operand_data): Initialize it.
9530         * optabs.c (maybe_legitimize_operand_same_code): New function.
9531         (maybe_legitimize_operand): Use it when matching the original
9532         op->value.
9533
9534 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9535
9536         * gimplify.c: Fix issues in comments throughout.
9537         (voidify_wrapper_expr): Fix long line.
9538         (build_stack_save_restore): Likewise.
9539         (gimplify_loop_expr): Likewise.
9540         (gimplify_compound_lval): Likewise.
9541         (gimplify_init_ctor_eval): Likewise.
9542         (gimplify_modify_expr_rhs): Likewise.
9543         (omp_notice_threadprivate_variable): Likewise.
9544
9545 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9546
9547         * cfgexpand.c (expand_call_stmt): Convert the function type to the
9548         original one if this is not a builtin function.
9549
9550 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
9551
9552         PR target/48605
9553         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9554         offset it as needed based on top 2 bits in operands[3], change
9555         MEM mode to SFmode and mask those 2 bits away from operands[3].
9556
9557 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9558
9559         * c-parser.c (c_parser_objc_protocol_definition): Updated for
9560         change from objc_declare_protocols() to objc_declare_protocol().
9561
9562 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
9563
9564         * config/i386/sse.md (sse4_1): New mode attribute.
9565         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9566         avx_blend<ssemodesuffix><avxmodesuffix> and
9567         sse4_1_blend<ssemodesuffix> using VF mode iterator.
9568         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9569         avx_blendv<ssemodesuffix><avxmodesuffix> and
9570         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9571         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9572         avx_dp<ssemodesuffix><avxmodesuffix> and
9573         sse4_1_dp<ssemodesuffix> using VF mode iterator.
9574         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9575         (sse4_1_packusdw): Merge with *avx_packusdw.
9576         (sse4_1_pblendvb): Merge with *avx_pblendvb.
9577         (sse4_1_pblendw): Merge with *avx_pblendw.
9578         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9579         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9580         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9581         VF mode iterator.
9582         (sse4_1_round<ssescalarmodesuffix>): Merge with
9583         *avx_round<ssescalarmodesuffix>.
9584         (aesenc): Merge with *avx_aesenc.
9585         (aesenclast): Merge with *avx_aesenclast.
9586         (aesdec): Merge with *avx_aesdec.
9587         (aesdeclast): Merge with *avx_aesdeclast.
9588         (pclmulqdq): Merge with *pclmulqdq.
9589         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9590         New predicate.
9591         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9592
9593 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
9594
9595         PR middle-end/48608
9596         * cfgexpand.c (get_decl_align_unit): Renamed to ...
9597         (align_local_variable): This.  Update DECL_ALIGN.
9598         (add_stack_var): Updated.
9599         (expand_one_stack_var): Likewise.
9600
9601 2011-04-14  Richard Guenther  <rguenther@suse.de>
9602
9603         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9604         Remove.
9605         (dse_initialize_block_local_data, dse_leave_block,
9606         record_voperand_set, get_stmt_uid): Likewise.
9607         (dse_possible_dead_store_p): Allow any kind of killing stmt.
9608         (dse_optimize_stmt): Remove voperand set handling code.
9609         Simplify and improve to handle any kind of killing stmt.
9610         (dse_record_phi): Remove.
9611         (dse_enter_block): Simplify.
9612         (tree_ssa_dse): Likewise.
9613         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9614
9615 2011-04-14  Jan Hubicka  <jh@suse.cz>
9616
9617         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9618         * cgraph.h (struct inline_summary): Move to ipa-inline.h
9619         (cgraph_local_info): Remove inline_summary.
9620         * ipa-cp.c: Include ipa-inline.h.
9621         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9622         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9623         accesor.
9624         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9625         (input_overwrite_node): Do not set inline summary.
9626         (input_node): Do not stream inline summary.
9627         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9628         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9629         growth; we do not have inline parameters computed for that anyway.
9630         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9631         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9632         (inline_summary_t): New type and VECtor.
9633         (debug_inline_summary, dump_inline_summaries): Declare.
9634         (inline_summary): Use VOCtor.
9635         (estimate_edge_growth): Kill hack computing call stmt size directly.
9636         * lto-section-in.c (lto_section_name): Add inline section.
9637         * ipa-inline-analysis.c: Include lto-streamer.h
9638         (node_removal_hook_holder, node_duplication_hook_holder): New holders
9639         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9640         (inline_summary_vec): Define.
9641         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9642         dump_inline_summaries): New functions.
9643         (estimate_function_body_sizes): Properly compute size/time of outgoing
9644         calls.
9645         (compute_inline_parameters): Alloc inline_summary; do not compute
9646         size/time of incomming calls.
9647         (estimate_edge_time): Avoid missing time summary hack.
9648         (inline_read_summary): Read inline summary info.
9649         (inline_write_summary): Write inline summary info.
9650         (inline_free_summary): Free all hooks and inline summary vector.
9651         * lto-streamer.h: Add LTO_section_inline_summary section.
9652         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9653         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9654
9655 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9656
9657         * tree-vectorizer.h (vect_strided_store_supported): Add a
9658         HOST_WIDE_INT argument.
9659         (vect_strided_load_supported): Likewise.
9660         (vect_permute_store_chain): Return void.
9661         (vect_transform_strided_load): Likewise.
9662         (vect_permute_load_chain): Delete.
9663         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9664         count argument.  Check that the count is a power of two.
9665         (vect_strided_load_supported): Likewise.
9666         (vect_permute_store_chain): Return void.  Update after above changes.
9667         Assert that the access is supported.
9668         (vect_permute_load_chain): Likewise.
9669         (vect_transform_strided_load): Return void.
9670         * tree-vect-stmts.c (vectorizable_store): Update calls after
9671         above interface changes.
9672         (vectorizable_load): Likewise.
9673         (vect_analyze_stmt): Don't check for strided powers of two here.
9674
9675 2011-04-14  Richard Guenther  <rguenther@suse.de>
9676
9677         PR tree-optimization/48590
9678         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9679         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9680         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9681         BUILT_IN_STACK_SAVE.
9682         * tree-ssa-dce.c (propagate_necessity): Handle
9683         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9684
9685 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
9686
9687         * c-parser.c (c_parser_objc_class_declaration): Updated call to
9688         objc_declare_class.
9689
9690 2011-04-14  Richard Guenther  <rguenther@suse.de>
9691
9692         * tree.h (get_object_alignment_1): Declare.
9693         * builtins.c (get_object_alignment_1): Split out worker from ...
9694         (get_object_alignment): ... here.
9695         * fold-const.c (get_pointer_modulus_and_residue): Use
9696         get_object_alignment_1.
9697
9698 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9699
9700         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9701         type parameter.
9702         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9703         parameter.  Generalise code to handle arrays as well as vectors.
9704         (vect_setup_realignment): Update accordingly.
9705         * tree-vect-stmts.c (vectorizable_store): Likewise.
9706         (vectorizable_load): Likewise.
9707
9708 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9709
9710         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9711         within the per-copy loop.
9712
9713 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9714
9715         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9716         in the dump file.
9717
9718 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
9719
9720         * doc/options.texi (Negative): Explicitly mention that the
9721         Negative chain must be circular.
9722
9723 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
9724
9725         * function.h (block_chainon): Declare.
9726         * function.c (block_chainon): Define.
9727
9728 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
9729             Eric Weddington  <eric.weddington@atmel.com>
9730             Georg-Johann Lay  <avr@gjlay.de>
9731
9732         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9733         New Includes
9734         (avr_init_builtins, avr_expand_builtin,
9735         avr_expand_delay_cycles, avr_expand_unop_builtin,
9736         avr_expand_binop_builtin ): New functions.
9737         (avr_builtin_id): New enum
9738         (struct avr_builtin_description): New struct
9739         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9740         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9741
9742         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9743         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9744         UNSPECV_DELAY_CYCLES): new enumeration values
9745         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9746         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9747         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9748         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9749         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9750         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9751         "fmulsu"): New insns
9752
9753         * config/avr/avr-c.c: fix line endings
9754         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9755         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9756         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9757         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9758         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9759
9760         * doc/extend.texi (AVR Built-in Functions): New node
9761         (Target Builtins): Add documentation of AVR
9762         built-in functions.
9763
9764 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
9765
9766         PR target/44643
9767         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9768         alone. Error if non-const data has attribute progmem.
9769
9770 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9771
9772         * tree.h (struct tree_constructor): Include tree_typed instead of
9773         tree_common.
9774         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9775         TS_TYPED instead of TS_COMMON.
9776
9777 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9778
9779         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9780         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9781         (sse2_psadbw): Merge with *avx_psadbw.
9782         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9783         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9784         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9785         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9786         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9787         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9788         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9789         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9790         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9791         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9792         (ssse3_palignrti): Merge with *avx_palignrti.
9793
9794 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9795
9796         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9797         * tree-ssanames.c (fini_ssanames): VEC_free it.
9798         (make_ssa_name_fn): Update for VECness of free_ssanames.
9799         (release_ssa_name, release_dead_ssa_names): Likewise.
9800         * tree.h (struct tree_ssa_name): Include tree_typed instead of
9801         tree_common.
9802         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9803         TS_TYPED instead of TS_COMMON.
9804
9805 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9806
9807         * postreload-gcse.c (gcse_after_reload_main): Add calls to
9808         statistics_counter_event.
9809         * tree-ssa-copyrename.c (stats): Define.
9810         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
9811         statistics_counter_event.
9812         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9813         (bswap_stats, widen_mul_stats): Define.
9814         (insert_reciprocals): Increment rdivs_inserted.
9815         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
9816         rfuncs_inserted.  Add calls to statistics_counter_event.
9817         (execute_cse_sincos_1): Increment inserted.
9818         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
9819         statistics_counter_event.
9820         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
9821         of bswap_stats.  Add calls to statistics_counter_event.
9822         (convert_mult_to_widen): Increment widen_mults_inserted.
9823         (convert_plusminus_to_widen): Increment maccs_inserted.
9824         (convert_mult_to_fma): Increment fmas_inserted.
9825         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
9826         calls to statistics_counter_event.
9827
9828 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
9829
9830         PR rtl-optimization/48455
9831         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9832         `temp_costs->mem_cost'.
9833
9834 2011-04-13  Jan Hubicka  <jh@suse.cz>
9835
9836         * ipa-inline.h: New file.
9837         * ipa-inline-analysis.c: New file. Broken out of ...
9838         * ipa-inline.c: ... this file; update toplevel comment;
9839         include ipa-inline.h
9840         (inline_summary): Move to ipa-inline.h
9841         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9842         ipa-inline-analysis.c.
9843         (cgraph_estimate_time_after_inlining): Rename to
9844         estiamte_time_after_inlining; move to ipa-inline-analysis.c
9845         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9846         to estimate_edge_growth.
9847         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9848         rename to estimate_size_after_inlining.
9849         (cgraph_mark_inline_edge): Update for new naming convention.
9850         (cgraph_check_inline_limits): Likewise.
9851         (cgraph_edge_badness): Likewise.
9852         (cgraph_decide_recursive_inlining): Likewise.
9853         (cgraph_decide_inlining_of_small_functions): Likewise.
9854         (cgraph_decide_inlining_incrementally): Likewise.
9855         (cgraph_estimate_growth): Rename to estimate_growth; move to
9856         ipa-inline-analysis.c.
9857         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9858         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9859         (compute_inline_parameters): Likewise.
9860         (compute_inline_parameters_for_current): Likewise.
9861         (pass_inline_parameters): Likewise.
9862         (inline_indirect_intraprocedural_analysis): Likewise.
9863         (analyze_function): Rename to inline_analyze_function; likewise.
9864         (add_new_function): Move to ipa-inline-analysis.c.
9865         (inline_generate_summary): Likewise.
9866         (inline_read_summary): Likewise.
9867         (inline_write_summary): Likewise.
9868         * Makefile.in (ipa-inline-analysis.c): New file.
9869
9870 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9871
9872         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9873         * configure: Regenerate.
9874
9875 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
9876
9877         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9878         instead of tree_common.
9879         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9880         Likewise.
9881         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9882         TS_TYPED rather than TS_COMMON.
9883         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9884
9885 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
9886
9887         PR target/45263
9888         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9889         r20 around calls of __tablejump_elpm__
9890
9891 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
9892
9893         PR middle-end/48591
9894         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9895         NULL.
9896         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9897
9898 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
9899
9900         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9901         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9902         (cfi_vec): New typedef.
9903         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9904         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9905         (cie_cfi_vec): New static variable.
9906         (cie_cfi_head): Delete.
9907         (add_cfi): Accept a cfi_vec * as first argument. All callers and
9908         declaration changed. Use vector rather than list operations.
9909         (new_cfi): Don't initialize the dw_cfi_next field.
9910         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9911         rather than list operations.
9912         (lookup_cfa): Use vector rather than list operations.
9913         (output_cfis): New argument upto. Accept a cfi_vec rather than
9914         a dw_cfi_ref list head as argument. All callers changed.
9915         Iterate over the vector using upto as a maximum index.
9916         (output_all_cfis): New static function.
9917         (output_fde): Use vector rather than list operations. Use the
9918         new upto argument for output_cfis rather than manipulating a
9919         list.
9920         (dwarf2out_begin_prologue): Change initializations to match
9921         new struct members.
9922         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9923         from the vector length rather than searching for the end of a list.
9924         Use output_all_cfis.
9925         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9926
9927 2011-04-13  Nick Clifton  <nickc@redhat.com>
9928
9929         * config/rx/rx.md (movmemsi): Do not use this pattern when
9930         volatile pointers are involved.
9931
9932 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
9933
9934         * config/i386/sse.md (pinsrbits): Remove.
9935         (sse2_packsswb): Merge with *avx_packsswb.
9936         (sse2_packssdw): Merge with *avx_packssdw.
9937         (sse2_packuswb): Merge with *avx_packuswb.
9938         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9939         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9940         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9941         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9942         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9943         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9944         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9945         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9946         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9947         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9948         (sse2_loadld): Merge with *avx_loadld.
9949         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9950         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9951         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9952         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9953         (vec_concatv2di): Merge with *vec_concatv2di_avx.
9954
9955 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
9956
9957         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9958         calling TREE_CHAIN.
9959         * print-tree.c (print_node): Likewise.
9960         * tree-inline.c (copy_tree_r): Likewise.
9961         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9962         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9963         instead of TS_COMMON.
9964         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9965         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9966         (copy_node_stat): Zero TREE_CHAIN only if necessary.
9967         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9968         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9969         ...and these...
9970         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9971         * tree.h: ...here.
9972         (TREE_CHAIN): Check for a TS_COMMON structure.
9973         (TREE_TYPE): Check for a TS_TYPED structure.
9974
9975 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
9976
9977         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9978         cgraph_get_create_node instead of cgraph_node.
9979
9980 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
9981
9982         * c-parser.c (c_parser_initelt): Updated call to
9983         objc_build_message_expr.
9984         (c_parser_postfix_expression): Likewise.
9985
9986 2011-04-12  Kai Tietz  <ktietz@redhat.com>
9987
9988         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9989         MASK_MS_BITFIELD_LAYOUT bit.
9990
9991 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
9992
9993         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9994         assert it is always true.
9995         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9996         moves.
9997
9998 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
9999
10000         * c-parser.c (c_lex_one_token): Rewritten conditional used when
10001         compiling Objective-C to be more efficient.
10002
10003 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
10004
10005         * opts-common.c (decode_cmdline_options_to_array): Remove variable
10006         argv_copied.
10007
10008 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10009
10010         * recog.h, genoutput.c, optabs.c: Revert last patch.
10011
10012 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10013
10014         PR target/48090
10015         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10016
10017 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10018
10019         * recog.h (insn_operand_data): Add an "allows_mem" field.
10020         * genoutput.c (output_operand_data): Initialize it.
10021         * optabs.c (maybe_legitimize_operand_same_code): New function.
10022         (maybe_legitimize_operand): Use it when matching the original
10023         op->value.
10024
10025 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10026
10027         * genpreds.c (process_define_predicate): Move most processing
10028         to gensupport.c.  Continue to validate the expression.
10029         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10030         (process_define_predicate): Move processing to gensupport.c.
10031         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10032         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10033         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
10034         argument.
10035         (valid_predicate_name_p): New function, split out from old
10036         genpreds.c:process_define_predicate.
10037         (process_define_predicate): New function, combining code from
10038         old genpreds.c and genrecog.c functions.
10039         (process_rtx): Call it for DEFINE_PREDICATE and
10040         DEFINE_SPECIAL_PREDICATE.
10041
10042 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
10043
10044         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10045         size of a '%A' memory reference.
10046         (T_DREG, T_QREG): New neon_builtin_type_bits.
10047         (arm_init_neon_builtins): Assert that the load and store operands
10048         are neon_struct_operands.
10049         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10050         (NEON_ARG_MEMORY): New builtin_arg.
10051         (neon_dereference_pointer): New function.
10052         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10053         Handle NEON_ARG_MEMORY.
10054         (arm_expand_neon_builtin): Update after above interface changes.
10055         Use NEON_ARG_MEMORY for loads and stores.
10056         * config/arm/predicates.md (neon_struct_operand): New predicate.
10057         * config/arm/iterators.md (V_two_elem): Tweak formatting.
10058         (V_three_elem): Use BLKmode for accesses that have no associated mode.
10059         (V_four_elem): Tweak formatting.
10060         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10061         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10062         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10063         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10064         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10065         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10066         (neon_vst4<mode>): Replace pointer operand with a memory operand.
10067         Use %A in the output template.
10068         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10069         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10070         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10071         the width of the memory access.  Remove post-increment.
10072         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10073
10074 2011-04-12  Nick Clifton  <nickc@redhat.com>
10075
10076         * config/v850/v850.c (expand_prologue): Do not use the CALLT
10077         instruction for interrupt handlers if the target is the basic V850
10078         architecture.
10079         (expand_epilogue): Likewise.
10080
10081 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10082
10083         PR rtl-optimization/48549
10084         * combine.c (propagate_for_debug): Also stop after BB_END of
10085         this_basic_block.  Process LAST and just stop processing after it.
10086         (combine_instructions): If last_combined_insn has been deleted,
10087         set last_combined_insn to its PREV_INSN.
10088
10089 2011-04-12  Richard Guenther  <rguenther@suse.de>
10090
10091         PR tree-optimization/46076
10092         * gimple.h (struct gimple_statement_call): Add fntype field.
10093         (gimple_call_fntype): Adjust.
10094         (gimple_call_set_fntype): New function.
10095         * gimple.c (gimple_build_call_1): Set the call function type.
10096         * gimplify.c (gimplify_call_expr): Preserve the function
10097         type the frontend used for the call.
10098         (gimplify_modify_expr): Likewise.
10099         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10100         function type.
10101         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10102         function type.
10103         * tree-ssa.c (useless_type_conversion_p): Function pointer
10104         conversions are useless.
10105
10106 2011-04-12  Martin Jambor  <mjambor@suse.cz>
10107
10108         * cgraph.h (cgraph_node): Remove function declaration.
10109         (cgraph_create_node): Declare.
10110         (cgraph_get_create_node): Likewise.
10111         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10112         Updated all callers.
10113         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10114         the decl does not already exist.  Call cgraph_get_create_node instead
10115         of cgraph_node.
10116         (cgraph_get_create_node): New function.
10117         (cgraph_same_body_alias): Update comment.
10118         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10119         assert it does not return NULL.
10120         (cgraph_update_edges_for_call_stmt): Likewise.
10121         (cgraph_clone_edge): Likewise.
10122         (cgraph_create_virtual_clone): Likewise.
10123         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10124         instead of cgraph_node.
10125         (cgraph_add_new_function): Call cgraph_create_node or
10126         cgraph_get_create_node instead of cgraph_node.
10127         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10128         instead of cgraph_node.
10129         (record_eh_tables): Likewise.
10130         (mark_address): Likewise.
10131         (mark_load): Likewise.
10132         (build_cgraph_edges): Call cgraph_get_create_node instead
10133         of cgraph_node.
10134         (rebuild_cgraph_edges): Likewise.
10135         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10136         instead of cgraph_node.
10137         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10138         cgraph_node.
10139         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10140         cgraph_create_node instead of cgraph_node.
10141         * c-decl.c (finish_function): Call cgraph_get_create_node instead
10142         of cgraph_node.
10143         * lto-cgraph.c (input_node): Likewise.
10144         * lto-streamer-in.c (input_function): Likewise.
10145         * varasm.c (mark_decl_referenced): Likewise.
10146         (assemble_alias): Likewise.
10147
10148 2011-04-12  Martin Jambor  <mjambor@suse.cz>
10149
10150         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10151         instead of cgraph_node and assert it does not return NULL.
10152         * lto-streamer-in.c (lto_read_body): Likewise.
10153         * omp-low.c (new_omp_context): Likewise.
10154         (create_task_copyfn): Likewise.
10155         * tree-emutls.c (lower_emutls_function_body): Likewise.
10156         * matrix-reorg.c (transform_allocation_sites): Likewise.
10157
10158 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
10159
10160         PR c/48552
10161         * c-typeck.c (build_asm_expr): Error out on attempts to use
10162         void type outputs or inputs for constraints that allow reg or
10163         don't allow memory.
10164
10165 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
10166             Richard Earnshaw  <rearnsha@arm.com>
10167
10168         PR target/48250
10169         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10170         to use sign-magnitude offsets. Reject unsupported unaligned
10171         cases. Add detailed description in comments.
10172         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10173         condition from TARGET_32BIT to TARGET_ARM.
10174
10175 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
10176
10177         * tree.h (struct typed_tree): New.
10178         (struct tree_common): Include it instead of tree_base.
10179         (TREE_TYPE): Update for new location of type field.
10180         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10181         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10182         (union tree_node): Add typed field.
10183         * treestruct.def (TS_TYPED): New.
10184         * lto-streamer.c (check_handled_ts_structures): Handle it.
10185         * tree.c (MARK_TS_TYPED): New macro.
10186         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10187
10188 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
10189
10190         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10191         (force_nonfallthru): Do not alter the loop nest if no basic block
10192         was created.
10193
10194 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10195
10196         * config/i386/sse.md (VI): New mode iterator.
10197         (SSEMODEI): Remove.
10198         (AVX256MODEI): Ditto.
10199         (AVXMODEF4P): Ditto.
10200         (avxvecpsmode): Ditto.
10201         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
10202         (sse2_andnot<mode>3): New expander.
10203         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10204         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
10205         (<any_logic:code><mode>3): Use VI mode iterator.
10206         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10207         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
10208         (*andnottf3): Handle AVX three-operand constraints.
10209         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10210
10211 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10212             Robert Millan  <rmh@gnu.org>
10213
10214         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10215         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10216         GNU_USER_DYNAMIC_LINKER64): Define.
10217         (REG_NAME): Don't undefine.
10218         (MD_UNWIND_SUPPORT): Undefine.
10219         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10220         (REG_NAME): Don't undefine.
10221         (MD_UNWIND_SUPPORT): Undefine.
10222         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10223
10224 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10225
10226         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10227         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10228
10229 2011-04-11  Xinliang David Li  <davidxl@google.com>
10230
10231         * value-profile.c (check_ic_target): New function.
10232         (gimple_ic_transform): Sanity check indirect call target.
10233         * gimple-low.c (gimple_check_call_args): Interface change.
10234         (gimple_check_call_matching_types): New function.
10235         * tree-inline.c (tree_can_inline_p): Call new function.
10236
10237 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
10238
10239         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10240         tree-pretty-print.h & realmpfr.h.
10241
10242 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
10243
10244         PR middle-end/48464
10245         * ira.c (setup_pressure_classes): Fix typo in loop condition.
10246         (setup_allocno_and_important_classes): Ditto.
10247
10248 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10249
10250         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10251         GNU_USER_DYNAMIC_LINKER.
10252         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10253         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10254         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10255         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10256         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10257         GNU_USER_TARGET_OS_CPP_BUILTINS.
10258         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10259         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10260         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10261         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10262         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10263         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10264         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10265         GNU_USER_TARGET_OS_CPP_BUILTINS.
10266         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10267         GNU_USER_DYNAMIC_LINKER.
10268         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10269         GNU_USER_TARGET_OS_CPP_BUILTINS.
10270         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10271         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10272         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10273         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10274         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10275         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10276         GNU_USER_DYNAMIC_LINKER64): Remove.
10277         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10278         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10279         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10280         GNU_USER_DYNAMIC_LINKER.
10281         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10282         GNU_USER_TARGET_OS_CPP_BUILTINS.
10283         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10284         GNU_USER_TARGET_OS_CPP_BUILTINS.
10285         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10286         to GNU_USER_TARGET_OS_CPP_BUILTINS.
10287         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10288         GNU_USER_TARGET_OS_CPP_BUILTINS.
10289         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10290         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10291         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10292         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10293         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10294         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10295         GNU_USER_DYNAMIC_LINKER.
10296         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10297         GNU_USER_TARGET_OS_CPP_BUILTINS.
10298         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10299         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10300         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10301         GNU_USER_DYNAMIC_LINKER.
10302         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10303         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10304         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10305         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10306         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10307         GNU_USER_DYNAMIC_LINKER.
10308         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10309         GNU_USER_DYNAMIC_LINKERN32.
10310         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10311         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
10312         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
10313         GNU_USER_DYNAMIC_LINKER32.
10314         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10315         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10316         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10317         GNU_USER_DYNAMIC_LINKER.
10318         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10319         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10320         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10321         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10322         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10323         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10324         GNU_USER_DYNAMIC_LINKER32.
10325         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10326         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10327         GNU_USER_DYNAMIC_LINKER.
10328         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10329         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10330         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10331         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
10332         GNU_USER_DYNAMIC_LINKER64.
10333         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10334         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10335         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10336         GNU_USER_DYNAMIC_LINKER.
10337         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10338         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10339         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10340         GNU_USER_DYNAMIC_LINKER.
10341         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10342         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10343         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10344         GNU_USER_DYNAMIC_LINKER32.
10345         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10346         GNU_USER_DYNAMIC_LINKER64.
10347         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10348         GNU_USER_DYNAMIC_LINKER64.
10349         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10350         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10351         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10352         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10353         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10354
10355 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10356
10357         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
10358         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10359         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10360         GNU_USER_DYNAMIC_LINKER.
10361         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10362         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
10363         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10364         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10365         GNU_USER_DYNAMIC_LINKER64.
10366         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10367         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10368         GNU_USER_LINK_EMULATION.
10369         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10370         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10371         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10372         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10373         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10374         CPP_SPEC, CC1_SPEC): Remove.
10375         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10376         (GNU_USER_DYNAMIC_LINKER): Define.
10377         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10378         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10379         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10380         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10381         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10382         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10383         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10384         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10385         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10386         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10387         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10388         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10389         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10390         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10391         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10392         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10393         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10394         GNU_USER_DYNAMIC_LINKER.
10395         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10396         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10397         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10398         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10399         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10400         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
10401         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10402         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10403         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10404         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10405
10406 2011-04-11  Kai Tietz  <ktietz@redhat.com>
10407
10408         PR target/9601
10409         PR target/11772
10410         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10411         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10412         comment.
10413         (ix86_is_msabi_thiscall): Removed.
10414         (ix86_is_type_thiscall): Likewise.
10415         (ix86_get_callcvt): New function.
10416         (ix86_comp_type_attributes): Simplify check.
10417         (ix86_function_regparm): Use ix86_get_callcvt for calling
10418         convention attribute checks.
10419         (ix86_return_pops_args): Likewise.
10420         (ix86_static_chain): Likewise.
10421         (x86_this_parameter): Likewise.
10422         (x86_output_mi_thunk): Likewise.
10423         (ix86_function_type_abi): Optimize check for types without attributes.
10424         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10425         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10426         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10427         by flag-values.
10428         (IX86_BASE_CALLCVT): Helper macro.
10429         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10430         Use ix86_get_callcvt for calling convention attribute checks and avoid
10431         symbol-decoration for stdcall in TARGET_RTD case.
10432         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10433         Likewise.
10434         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10435         for declaration.
10436
10437 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
10438
10439         * config/i386/sse.md (VI_128): New mode iterator.
10440         (VI12_128): Rename from SSEMODE12.
10441         (VI14_128): Rename from SSEMODE14.
10442         (VI124_128): New mode iterator.
10443         (VI24_128): Rename from SSEMODE248.
10444         (VI248_128): Rename from SSEMODE248.
10445         (SSEMODE124C8): Remove.
10446         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10447         (*sse2_<plusminus_insn><mode>3): Merge with
10448         *avx_<plusminus_insn><mode>3.
10449         (*mulv8hi3): Merge with *avx_mulv8hi3.
10450         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10451         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10452         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10453         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10454         (ashr<mode>3): Merge with *avx_ashr<mode>3.
10455         (lshr<mode>3): Merge with *avx_lshr<mode>3.
10456         (ashl<mode>3): Merge with *avx_ashl<mode>3.
10457         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10458         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10459         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10460         (*<smaxmin:code>v8hi3): Ditto.
10461         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10462         (*<smaxmin:code>v16qi3): Ditto.
10463         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10464         (*sse2_eq<mode>3): Ditto.
10465         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10466         (*sse2_gt<mode>3): Ditto.
10467         (vcondv2di): Split out of vcond<mode>.
10468         (vconduv2di): Split out of vcondu<mode>.
10469
10470 2011-04-11  Richard Guenther  <rguenther@suse.de>
10471
10472         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10473         before calling tree_low_cst.
10474
10475 2011-04-11  Richard Guenther  <rguenther@suse.de>
10476
10477         * stor-layout.c (layout_type): Compute all array index size operations
10478         in the original type.
10479         (initialize_sizetypes): Add comment.
10480         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10481
10482 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
10483
10484         * common.opt (Tbss=, Tdata=, Ttext=): New options.
10485
10486 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10487
10488         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10489         of cgraph_node, handle NULL return value.
10490         (cgraph_global_info): Likewise.
10491         (cgraph_rtl_info): Likewise.
10492         * tree-inline.c (estimate_num_insns): Likewise.
10493         * gimplify.c (unshare_body): Likewise.
10494         (unvisit_body): Likewise.
10495         (gimplify_body): Likewise.
10496         * predict.c (optimize_function_for_size_p): Likewise.
10497         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10498         (call_may_clobber_ref_p_1): Likewise.
10499         * varasm.c (function_section_1): Likewise.
10500         (assemble_start_function): Likewise.
10501
10502 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10503
10504         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10505         of cgraph_node.
10506         * final.c (rest_of_clean_state): Likewise.
10507         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10508         * passes.c (pass_init_dump_file): Likewise.
10509         (execute_all_ipa_transforms): Likewise.
10510         (function_called_by_processed_nodes_p): Likewise.
10511         * predict.c (maybe_hot_frequency_p): Likewise.
10512         (probably_never_executed_bb_p): Likewise.
10513         (compute_function_frequency): Likewise.
10514         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10515         (unnest_nesting_tree_1): Likewise.
10516         (lower_nested_functions): Likewise.
10517         * tree-optimize.c (execute_fixup_cfg): Likewise.
10518         (tree_rest_of_compilation): Likewise.
10519         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10520         * tree-sra.c (ipa_early_sra): Likewise.
10521         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10522         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10523         * ipa.c (record_cdtor_fn): Likewise.
10524         * ipa-inline.c (cgraph_early_inlining): Likewise.
10525         (compute_inline_parameters_for_current): Likewise.
10526         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10527         * ipa-pure-const.c (local_pure_const): Likewise.
10528         * ipa-split.c (split_function): Likewise.
10529         (execute_split_functions): Likewise.
10530         * cgraphbuild.c (build_cgraph_edges): Likewise.
10531         (rebuild_cgraph_edges): Likewise.
10532         (cgraph_rebuild_references): Likewise.
10533         (remove_cgraph_callee_edges): Likewise.
10534         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10535         (verify_cgraph_node): Likewise.
10536         (cgraph_analyze_functions): Likewise.
10537         (cgraph_preserve_function_body_p): Likewise.
10538         (save_inline_function_body): Likewise.
10539         (save_inline_function_body): Likewise.
10540         * tree-inline.c (copy_bb): Likewise.
10541         (optimize_inline_calls): Likewise.
10542
10543 2011-04-11  Martin Jambor  <mjambor@suse.cz>
10544
10545         PR tree-optimization/48195
10546         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10547         ipa_check_create_edge_args.
10548         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10549         ipa_check_create_edge_args.
10550         * ipa-inline.c (inline_generate_summary): Do not call
10551         ipa_check_create_node_params and ipa_check_create_edge_args.
10552         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10553         ipa_check_create_edge_args.
10554
10555 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
10556
10557         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10558         instead of loop.
10559         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10560         * function.c (record_hard_reg_sets): Likewise.
10561         * ira.c (compute_regs_asm_clobbered): Likewise.
10562         * sched-deps.c (sched_analyze_1): Likewise.
10563         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10564
10565 2011-04-09  Xinliang David Li  <davidxl@google.com>
10566
10567         PR tree-optimization/PR48484
10568         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10569         has_valid_pred lazily
10570
10571 2011-04-09  Duncan Sands  <baldrick@free.fr>
10572
10573         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10574
10575 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
10576
10577         * combine.c (combine_validate_cost): Adjust comments.  Set registered
10578         cost of I0 to zero at the end, if any.
10579
10580 2011-04-08  Xinliang David Li  <davidxl@google.com>
10581
10582         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10583         to insane profile data.
10584
10585 2011-04-08  Xinliang David Li  <davidxl@google.com>
10586
10587         * ipa-cp.c (ipcp_update_profiling): Correct
10588          negative scale factor due to insane profile data.
10589
10590 2011-04-08  Xinliang David Li  <davidxl@google.com>
10591
10592         * final.c (dump_basic_block_info): New function.
10593         (final): Dump basic block.
10594         (final_scan_insn): Remove old dump.
10595
10596 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
10597
10598         PR target/47829
10599         * config.gcc (i386-*-freebsd): Disable unwind table generation for
10600         crtbegin/crtend.
10601
10602 2011-04-08  Michael Matz  <matz@suse.de>
10603
10604         PR middle-end/48389
10605         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10606         functions.
10607         (rebuild_jump_labels): Call rebuild_jump_labels_1.
10608         * rtl.h (rebuild_jump_labels_chain): Declare.
10609         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10610         insns inserted on edges.
10611
10612 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
10613
10614         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10615         * config/arm/arm-arches.def: New.
10616         * config/arm/arm-opts.h: New.
10617         * config/arm/genopt.sh: New.
10618         * config/arm/arm-tables.opt: New (generated).
10619         * config/arm/arm.c (arm_handle_option, arm_target_help,
10620         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10621         (all_architectures): Get most table contents from arm-arches.def.
10622         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10623         arm_selected_tune here.
10624         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10625         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10626         (march=, mcpu=, mtune=): Use Enum and Var.
10627         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10628         (arm.o): Update dependencies.
10629
10630 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
10631
10632         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10633         of header_file.
10634         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10635         (write_typed_alloc_defns): Likewise.
10636         (main): Calls write_typed_alloc_defns with output_header.
10637
10638 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
10639
10640         PR inline-asm/48435
10641         * ira-color.c (setup_profitable_hard_regs): Add comments.
10642         Don't take prohibited hard regs into account.
10643         (setup_conflict_profitable_regs): Rename to
10644         get_conflict_profitable_regs.
10645         (check_hard_reg_p): Check prohibited hard regs.
10646
10647 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
10648
10649         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10650         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10651         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10652
10653 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10654
10655         PR target/48366
10656         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10657         move from floating point to shift amount register.
10658         (emit_move_sequence): Remove secondary reload support for floating
10659         point to shift amount amount register copies.
10660         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10661         amount register copies.
10662         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10663         register, return false if mode isn't a scalar integer mode.
10664         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10665
10666 2011-04-08  Richard Guenther  <rguenther@suse.de>
10667
10668         * gimple.c (gimple_call_flags): Remove kludge.
10669
10670 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10671
10672         * sel-sched.c (sel_region_init): Move call to
10673         sel_setup_region_sched_flags after setup_current_loop_nest.
10674
10675 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
10676
10677         PR rtl-optimization/48272
10678         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10679         init_insn_reg_pressure_info.  Adjust a caller.
10680         * sched-int.h (init_insn_reg_pressure_info): Declare.
10681         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10682         when sched-pressure is enabled.
10683
10684 2011-04-08  Richard Guenther  <rguenther@suse.de>
10685
10686         * gimple.c (gimple_set_modified): Do not queue calls to
10687         MODIFIED_NORETURN_CALLS here ...
10688         * tree-ssa-operands.c (update_stmt_operands): ... but here.
10689
10690 2011-04-08  Richard Guenther  <rguenther@suse.de>
10691
10692         PR lto/48467
10693         * toplev.c (lang_dependent_init): Do not open asm_out_file
10694         in WPA mode, nor perform debug machinery initialization.
10695         (finalize): Do not unlink asm_out_file in WPA mode.
10696
10697 2011-04-08  Richard Guenther  <rguenther@suse.de>
10698
10699         * gimple.h (gimple_call_fntype): New function.
10700         (gimple_call_return_type): Use it.
10701         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10702         * gimple-low.c (gimple_check_call_args): Likewise.
10703         * gimple.c (gimple_call_flags): Likewise.
10704         (gimple_call_arg_flags): Likewise.
10705         (gimple_call_return_flags): Likewise.
10706         * tree-cfg.c (verify_gimple_call): Likewise.
10707         (do_warn_unused_result): Likewise.
10708         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10709         * value-prof.c (gimple_ic_transform): Fix fndecl check.
10710
10711 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
10712
10713         PR rtl-optimization/48235
10714         * sel-sched.c (code_motion_process_successors): Recompute the last
10715         insn in basic block if control flow changed.
10716         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
10717         Update condition for ilist_remove.
10718
10719 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10720
10721         PR rtl-optimization/48302
10722         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10723         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
10724         it to record added preheader blocks.
10725         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
10726         on to sel_add_loop_preheaders.
10727         (sel_region_init): Move call to setup_current_loop_nest after
10728         sel_init_bbs.
10729
10730 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10731
10732         PR target/48273
10733         * cfgloop.h (loop_has_exit_edges): New helper.
10734         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10735         non-clonable.
10736         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10737         that have no exit edges.
10738
10739 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
10740
10741         PR rtl-optimization/48442
10742         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
10743         all callers.  Adjust assert.
10744
10745 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
10746
10747         PR tree-optimization/48377
10748         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10749         is_packed to true even for types with smaller TYPE_ALIGN than
10750         TYPE_SIZE.
10751
10752 2011-04-08  Richard Guenther  <rguenther@suse.de>
10753
10754         PR bootstrap/48513
10755         * doc/tm.texi: Re-generate.
10756
10757 2011-04-08  Wei Guozhi  <carrot@google.com>
10758
10759         PR target/47855
10760         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10761         * config/arm/arm.c (arm_attr_length_push_multi): New function.
10762         * config/arm/arm.md (*push_multi): Change the length computation to
10763         call a C function.
10764
10765 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
10766
10767         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10768         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10769         * doc/tm.texi: Regenerate.
10770         * system.h (ASM_OUTPUT_BSS): Poison.
10771         * varasm.c (asm_output_bss): Remove function.
10772         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10773
10774         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10775         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10776         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10777         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10778         Likewise.
10779         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10780         Likewise.
10781         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10782         Likewise.
10783         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10784
10785 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10786
10787         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10788         EnumValue lines.
10789
10790 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
10791
10792         * config/m68k/m68k.c (m68k_handle_option): Don't handle
10793         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10794         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10795         OPT_mcpu32.
10796         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10797         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10798         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10799         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10800         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10801         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10802         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10803         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10804         options.  Don't map other m68k options manually.  Don't handle
10805         old-style options as canonical.
10806         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10807         * doc/install.texi (m68k-*-*): Document binutils version requirement.
10808
10809 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10810
10811         * basic-block.h (force_nonfallthru): Move to...
10812         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10813         (force_nonfallthru): ...here.
10814         * cfghooks.c (force_nonfallthru): New function.
10815         * cfgrtl.c (force_nonfallthru): Rename into...
10816         (rtl_force_nonfallthru): ...this.
10817         (commit_one_edge_insertion): Do not set AUX field.
10818         (commit_edge_insertions): Do not discover new basic blocks.
10819         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10820         (cfg_layout_rtl_cfg_hooks): Likewise.
10821         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10822         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
10823         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10824
10825 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
10826
10827         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10828         Remove macros.
10829
10830 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
10831
10832         * config/i386/sse.md: Update copyright year.
10833         (avxcvtvecmode): Remove.
10834         (sse_movhlps): Merge with *avx_movhlps.
10835         (sse_movlhps): Merge with *avx_movlhps.
10836         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10837         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10838         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10839         (sse_loadhps): Merge with *avx_loadhps.
10840         (sse_storelps): Merge with *avx_storelps.
10841         (sse_loadlps): Merge with *avx_loadlps.
10842         (sse_movss): Merge with *avx_movss.
10843         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10844         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10845         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10846         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10847         (vec_set<mode>_0): Ditto.
10848         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10849         (sse4_1_insertps): Merge with *avx_insertps.
10850         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10851         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10852         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10853         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10854         (sse2_storehpd): Merge with *avx_storehpd.
10855         (sse2_loadhpd): Merge with *avx_loadhpd.
10856         (sse2_loadlpd): Merge with *avx_loadlpd.
10857         (sse2_movsd): Merge with *avx_movsd.
10858         (*vec_concatv2df): Merge with *vec_concatv2df.
10859
10860 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
10861
10862         PR debug/48343
10863         * combine.c (combine_instructions): Add last_combined_insn,
10864         update it if insn is after it, pass it to all try_combine calls.
10865         (try_combine): Add last_combined_insn parameter, pass it instead of
10866         i3 to propagate_for_debug.
10867
10868 2011-04-07  Nick Clifton  <nickc@redhat.com>
10869
10870         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10871         to handle MDR <-> data register transfers.
10872         (movhi_internal): Likewise.
10873
10874 2011-04-07  Alan Modra  <amodra@gmail.com>
10875
10876         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10877         previous stack info.
10878
10879 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10880
10881         PR target/43920
10882         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
10883         flow_find_cross_jump.  Swap variables to implement backward replacement.
10884         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10885
10886 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10887
10888         PR target/43920
10889         * cfgcleanup.c (walk_to_nondebug_insn): New function.
10890         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
10891         and bb2.
10892         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10893         src1 or src2.  Redirect edges to the last basic block.  Update
10894         frequency and count on multiple basic blocks in case of fallthru.
10895
10896 2011-04-07  Tom de Vries  <tom@codesourcery.com>
10897
10898         PR target/43920
10899         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10900         function.
10901         (old_insns_match_p): Change return type.  Replace return false/true
10902         with return dir_none/dir_both.  Use can_replace_by.
10903         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
10904         direction from dir_p.  Register replacement direction in dir, last_dir
10905         and afterlast_dir.  Handle new return type of old_insns_match_p using
10906         merge_dir.  Return replacement direction in dir_p.
10907         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10908         return type of old_insns_match_p.
10909         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10910         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10911         flow_find_cross_jump.
10912         * basic-block.h (enum replace_direction): New type.
10913         (flow_find_cross_jump): Add parameter to declaration.
10914
10915 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
10916
10917         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10918         (AVXMODEDCVTPS2DQ): Ditto.
10919         (VEC_FLOAT_MODE): Ditto.
10920         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
10921         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10922         (<any_logic:code><mode>3): Use VF mode iterator.
10923         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10924         Use VF mode iterator.
10925         (copysign<mode>3): Use VF mode iterator.
10926         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
10927         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10928         (*<any_logic:code><MODEF:mode>3): Merge with
10929         *avx_<any_logic:code><MODEF:mode>3.
10930         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10931         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10932         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10933         (avx_cvtdq2ps<avxmodesuffix>): Remove.
10934         (sse2_cvtdq2ps): Use %v modifier.
10935         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10936         (avx_cvtps2dq<avxmodesuffix>): Remove.
10937         (sse2_cvtps2dq): Use %v modifier.
10938         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10939         (avx_cvttps2dq<avxmodesuffix>): Remove.
10940         (sse2_cvttps2dq): Use %v modifier.
10941         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10942         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10943         (sse2_cvtsd2siq): Fix insn template.
10944         (sse2_cvtsd2siq_2): Ditto.
10945         (sse2_cvttsd2siq): Ditto.
10946         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10947         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10948
10949 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
10950
10951         * gcov-io.c: Use GCC Runtime Library Exception.
10952
10953 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
10954
10955         PR debug/48466
10956         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10957         as base_reg whatever register reg has been eliminated to, instead
10958         of hardcoding STACK_POINTER_REGNUM.
10959
10960 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
10961
10962         * doc/tm.texi.in: Document C target hooks as separate from general
10963         target hooks.
10964         * doc/tm.texi: Regenerate.
10965         * genhooks.c (struct hook_desc): Add docname field.
10966         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
10967         docname field.
10968         (hook_array): Include c-target.def.
10969         (emit_documentation): Use docname field in output.
10970         (emit_init_macros): Take docname argument.  Only emit definitions
10971         for hooks matching docname.
10972         (main): Expect additional arguments in all cases.  Pass argument
10973         to emit_init_macros.
10974         * target.def: Move initial macro definitions and comments to
10975         target-hooks-macros.h.
10976         (gcc_targetcm): Move to c-family/c-target.def.
10977         * target.h (targetcm): Move declaration to c-family/c-target.h.
10978         * targhooks.c (default_handle_c_option): Move to
10979         c-family/c-opts.c.
10980         * targhooks.h (default_handle_c_option): Move declaration to
10981         c-family/c-common.h.
10982         * target-hooks-macros.h: New file.
10983         * config.gcc (target_has_targetcm): Define and use to add to
10984         c_target_objs and cxx_target_objs.
10985         * config/default-c.c: New file.
10986         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10987         of target.h and target-def.h.
10988         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10989         (darwin_objc_construct_string, darwin_cfstring_ref_p,
10990         darwin_check_cfstring_format_arg): Make static.
10991         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10992         TARGET_STRING_OBJECT_REF_TYPE_P,
10993         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10994         * config/darwin-protos.h (darwin_objc_construct_string,
10995         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10996         declare.
10997         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10998         TARGET_STRING_OBJECT_REF_TYPE_P,
10999         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11000         * config/t-darwin (darwin-c.o): Update dependencies.
11001         * system.h (TARGET_HAS_TARGETCM): Poison.
11002         * Makefile.in (TARGET_H): Update.
11003         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11004         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11005         (default-c.o): New target.
11006         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11007         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11008         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
11009         c-target.def.
11010         (build/genhooks.o): Update dependencies.
11011
11012 2011-04-06  Richard Guenther  <rguenther@suse.de>
11013
11014         * ipa-inline.c (enum inlining_mode): Remove.
11015         (cgraph_flatten): Use some other token.
11016         (cgraph_edge_early_inlinable_p): New function, split out from ...
11017         (cgraph_perform_always_inlining): New function, split out from ...
11018         (cgraph_decide_inlining_incrementally): ... here.
11019         (cgraph_mark_inline_edge): Adjust.
11020         (cgraph_early_inlining): Re-structure.
11021         (pass_early_inline): Require SSA form.
11022
11023 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
11024             Julian Brown  <julian@codesourcery.com>
11025             Mark Shinwell  <shinwell@codesourcery.com>
11026
11027         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11028         LO_REGS only for Thumb-1.
11029         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11030         be used in short instructions when optimising for size on Thumb-2.
11031
11032 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
11033
11034         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11035         associated with user returns to be preserved.
11036
11037 2011-04-06  Tristan Gingold  <gingold@adacore.com>
11038
11039         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11040         symbol_queue_size, DBXOUT_DECR_NESTING,
11041         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11042         if XCOFF_DEBUGGING_INFO.
11043
11044 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
11045
11046         * config/i386/i386.md (attribute isa): New.
11047         (attribute enabled): New.
11048         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11049         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11050         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11051         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11052         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11053         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11054         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11055         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11056
11057         * config/i386/sse.md (VF): New mode iterator.
11058         (VF1): Ditto.
11059         (VF2): Ditto.
11060         (VF_128): Ditto.
11061         (SSEMODEF4): Remove.
11062         (attribute sse): Handle V8SF and V4DF modes.
11063         (<absneg:code><mode>2): Use VF mode iterator.
11064         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
11065         mode iterator.
11066         (<plusminus_insn><mode>3): Use VF mode iterator.
11067         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11068         Use VF mode iterator.
11069         (<sse>_vm<plusminus_insn><mode>3): Merge with
11070         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
11071         (mul<mode>3): Use VF mode iterator.
11072         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
11073         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
11074         mode iterator.
11075         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11076         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11077         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
11078         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
11079         mode iterator.
11080         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11081         Use VF1 mode iterator.
11082         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11083         (sqrt<VF2:mode>2): New expander.
11084         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11085         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11086         and sqrtv2df2.  Use VF mode iterator.
11087         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
11088         mode iterator.
11089         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11090         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11091         Use VF1 mode iterator.
11092         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11093         (<smaxmin:code><mode>3): Use VF mode iterator.
11094         (*<smaxmin:code><mode>3_finite): Merge with
11095         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
11096         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11097         (<sse>_vm<smaxmin:code><mode>2): Merge with
11098         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
11099         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
11100         mode iterator.
11101         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
11102         mode iterator.
11103         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11104         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11105         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11106         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11107         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
11108         VF mode iterator.
11109         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11110         Use VF_128 mode iterator.
11111         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
11112         mode iterator.
11113         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
11114         VF_128 mode iterator.
11115         (vcond<mode>): Use VF mode iterator.
11116         * config/i386/predicates.md (sse_comparison_operator): Merge with
11117         avx_comparison_float_operator.  Do not declare as special_predicate.
11118         * config/i386/i386.c (struct builtin_description): Update for renamed
11119         compare patterns.
11120         (ix86_expand_args_builtin): Ditto.
11121         (ix86_expand_sse_compare_mask): Ditto.
11122
11123 2011-04-06  Richard Guenther  <rguenther@suse.de>
11124
11125         * tree-inline.c (estimate_num_insns): For calls simply account
11126         for all passed arguments and a used return value.
11127
11128 2011-04-06  Richard Guenther  <rguenther@suse.de>
11129
11130         PR tree-optimization/47663
11131         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11132         call_stmt_time fields.
11133         (cgraph_edge_inlinable_p): Declare.
11134         (cgraph_edge_recursive_p): New inline function.
11135         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11136         (cgraph_clone_edge): Copy it.
11137         * ipa-inline.c (cgraph_estimate_edge_time): New function.
11138         Account for call stmt time.
11139         (cgraph_estimate_time_after_inlining): Take edge argument.
11140         (cgraph_estimate_edge_growth): Account call stmt size.
11141         (cgraph_estimate_size_after_inlining): Take edge argument.
11142         (cgraph_mark_inline_edge): Adjust.
11143         (cgraph_check_inline_limits): Likewise.
11144         (cgraph_recursive_inlining_p): Remove.
11145         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11146         (cgraph_decide_recursive_inlining): Take edge argument and
11147         adjust.
11148         (cgraph_decide_inlining_of_small_functions): Do not avoid
11149         diags for recursive inlining here.
11150         (cgraph_flatten): Adjust.
11151         (cgraph_decide_inlining_incrementally): Likewise.
11152         (estimate_function_body_sizes): Remove call cost handling.
11153         (compute_inline_parameters): Initialize caller edge call costs.
11154         (cgraph_estimate_edge_growth): New function.
11155         (cgraph_estimate_growth): Use it.
11156         (cgraph_edge_badness): Likewise.
11157         (cgraph_check_inline_limits): Take an edge argument.
11158         (cgraph_decide_inlining_of_small_functions): Adjust.
11159         (cgraph_decide_inlining): Likewise.
11160         * tree-inline.c (estimate_num_insns): Only account for call
11161         return value if it is used.
11162         (expand_call_inline): Avoid diagnostics on recursive inline
11163         functions here.
11164         * lto-cgraph.c (lto_output_edge): Output edge call costs.
11165         (input_edge): Input edge call costs.
11166
11167 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11168
11169         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11170
11171 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
11172
11173         * doc/invoke.texi (Spec Files): Fix typo.
11174
11175 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
11176
11177         * profile.c (branch_prob): Move declaration of local variable.  Remove
11178         obsolete ??? comment.  Expand the location explicitly instead of using
11179         the LOCATION_FILE and LOCATION_LINE macros.
11180
11181 2011-04-06  Wei Guozhi  <carrot@google.com>
11182
11183         PR target/47855
11184         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11185         (arm_cond_branch): Likewise.
11186         (arm_cond_branch_reversed): Likewise.
11187         (arm_jump): Likewise.
11188         (push_multi): Likewise.
11189         * config/arm/constraints.md (Py): New constraint.
11190
11191 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11192
11193         PR bootstrap/48471
11194         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11195         Move these...
11196         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11197         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11198         #ifdef DBX_DEBUGGING_INFO.
11199
11200 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
11201
11202         PR bootstrap/48403
11203         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11204         if old and new states differ.
11205
11206 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
11207
11208         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11209         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11210         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11211         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11212         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11213         mcfv4e): Use Alias.
11214         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11215         ColdFire options to -mcpu= options.
11216
11217 2011-04-05  Jeff Law  <law@redhat.com>
11218
11219         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11220         check if BB is a successor of LOOP->header and return
11221         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11222
11223 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
11224
11225         * cprop.c (struct reg_use): Remove.
11226         (reg_use_table): Make an array of RTX.
11227         (find_used_regs, constprop_register, local_cprop_pass,
11228         bypass_block): Simplify users of reg_use_table.
11229         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
11230         on one of the uses found by find_used_regs.
11231
11232 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11233
11234         PR bootstrap/48469
11235         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11236         declaration.
11237
11238 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11239
11240         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11241         as an rtx.
11242         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11243
11244 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
11245
11246         PR middle-end/48441
11247         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11248
11249 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11250
11251         * combine.c: Include obstack.h.
11252         (struct insn_link): Define.
11253         (uid_log_links): Adjust type.
11254         (FOR_EACH_LOG_LINK): New macro.
11255         (insn_link_obstack): Declare.
11256         (alloc_insn_link): Define.
11257         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
11258         type of link variables.
11259         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11260         (try_combine, record_promoted_values, distribute_notes): Likewise.
11261         (distribute_links): Likewise.  Tweak prototype.
11262         (clear_log_links): Delete.
11263         (adjust_for_new_dest): Call alloc_insn_link.
11264         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11265
11266 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11267
11268         * gcse.c (modify_mem_list): Convert to an array of VECs.
11269         (canon_modify_mem_list, compute_transp): Tweak formatting.
11270         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
11271         (load_killed_in_block_p): Likewise.
11272         (record_last_mem_set_info): Likewise.
11273         (clear_modify_mem_tables): Likewise.
11274
11275 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11276
11277         PR middle-end/48461
11278         * function.c (emit_use_return_register_into_block): Only define if
11279         HAVE_return.
11280
11281 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
11282
11283         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11284
11285 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
11286
11287         * config/rx/rx-opts.h: New.
11288         * config/rx/rx.c (rx_cpu_type): Remove.
11289         (rx_handle_option): Don't assert that global structures are in
11290         use.  Access variables via opts pointer.  Defer most handling of
11291         OPT_mint_register_.  Use error_at.
11292         (rx_option_override): Handle deferred OPT_mint_register_ here.
11293         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11294         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11295         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11296         (rx_cpu_types): New Enum and EnumValue entries.
11297         (mint-register=): Use Defer and use Var accordingly.
11298
11299 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11300
11301         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11302         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11303         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11304         Move these...
11305         (debug_free_queue, debug_nesting, symbol_queue_index):
11306         ...and these...
11307         * dbxout.c: ...to here.  Make static.
11308
11309 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
11310
11311         * gcse.c (modify_pair): Define.  Define a VEC of it.
11312         (canon_modify_mem_list): Convert to an array of VECs.
11313         (free_insn_expr_list_list): Delete.
11314         (clear_modify_mem_tables): Call VEC_free instead.
11315         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11316         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11317         (canon_list_insert, compute_transp): Likewise.
11318
11319 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11320
11321         PR target/43920
11322         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11323         for size.
11324
11325 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11326
11327         PR target/43920
11328         * function.c (emit_use_return_register_into_block): New function.
11329         (thread_prologue_and_epilogue_insns): Use
11330         emit_use_return_register_into_block.
11331
11332 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11333
11334         PR target/43920
11335         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11336         insn.
11337
11338 2011-04-05  Tom de Vries  <tom@codesourcery.com>
11339
11340         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11341
11342 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
11343
11344         * config/arm/arm.md (define_constants for unspec): Replace with
11345         define_c_enum.
11346         (define_constants for unspecv): Replace with define_c_enum.
11347         * config/arm/neon.md (define_constants for unspec): Replace with
11348         define_c_enum.
11349
11350 2011-04-04  Richard Henderson  <rth@redhat.com>
11351
11352         PR bootstrap/48400
11353         * dwarf2out.c (output_line_info): Always emit line info from
11354         at least one section.
11355         (dwarf2out_init): Create text_section_line_info here ...
11356         (set_cur_line_info_table): ... not here.
11357
11358 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
11359
11360         PR target/48380
11361         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11362         not called.
11363
11364         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11365
11366 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
11367
11368         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11369         (expr_equiv_p): Remove.
11370         (insert_set_in_table): Look at <dest, src> pair instead of expr.
11371         (hash_scan_set): Update call to insert_set_in_table.
11372         (dump_hash_table): Dump <dest, src> pair.
11373         (lookup_set): Simplify.  Lookup <dest, src> pair.
11374         (compute_transp): Remove, fold heavily simplified code into...
11375         (compute_local_properties): ...here.  Expect COMP and TRANSP
11376         unconditionally.
11377         (find_avail_set): Take set directly from struct expr.
11378         (find_bypass-set): Likewise.
11379         (bypass_block): Likewise.
11380         (cprop_insn): Likewise.  Remove redundant INSN_P test.
11381
11382         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11383         checks on form of COND from find_implicit_sets to here.
11384         (find_implicit_sets): Cleanup control flow. Split critical edges
11385         if it exposes implicit sets.  Allocate/resize implicit_sets as
11386         necessary.
11387         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11388         changed something.  Run df_analyze after find_implicit_sets if any
11389         edges were split.  Do not allocate implicit_sets here.
11390
11391         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11392         (gcse_obstack): Renamed to cprop_obstack.
11393         (GNEW, GNEWVEC, GNEWVAR): Remove.
11394         (gmalloc): Remove.
11395         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11396         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11397         (gcse_alloc): Likewise, and rename to cprop_alloc.
11398         (alloc_gcse_men, free_gcse_mem): Remove.
11399         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11400         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11401         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11402
11403         * cprop.c (oprs_not_set_p): Remove.
11404         (mark_set, mark_clobber): Remove.
11405         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11406         (reg_not_set_p): New function.
11407         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11408         (cprop_insn): Likewise.
11409         (cprop_jump): Use FOR_EACH_EDGE.
11410
11411 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
11412
11413         PR bootstrap/48403
11414         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11415         (rank_for_schedule): Use scheduled_insns vector instead of
11416         last_scheduled_insn.
11417         (ok_for_early_queue_removal): Likewise.
11418         (queue_to_ready): Search forward in nonscheduled_insns_begin if
11419         we have a dbg_cnt.
11420         (choose_ready): Likewise.
11421         (commit_schedule): Use VEC_iterate.
11422         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
11423         a dbg_cnt, use it and ensure the first insn is in the ready list.
11424         (haifa_sched_init): Allocate scheduled_insns.
11425         (sched_extend_ready_list): Don't allocate it; reserve space.
11426         (haifa_sched_finish): Free it.
11427
11428 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11429
11430         * optc-gen.awk: Always remove type from Variable entry before
11431         recording in var_seen.
11432
11433 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
11434
11435         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11436         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11437         call to tidy_fallthru_edges.
11438
11439 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
11440
11441         * doc/options.texi (ToLower): Document.
11442         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11443         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11444         * opts.h (cl_option): Add cl_tolower field.
11445         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11446         arguments with lowercase strings.
11447         * config/rx/rx.opt (mcpu=): Add ToLower.
11448         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11449         argument.
11450
11451 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11452
11453         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11454
11455 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
11456
11457         * config/vax/vax.c: Include reload.h.
11458
11459 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
11460
11461         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11462         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11463         (sparc_preferred_reload_class): New function.
11464
11465 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
11466
11467         PR debug/48401
11468         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11469         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11470
11471 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
11472
11473         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11474         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11475
11476 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
11477
11478         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11479         (ASM_OUTPUT_ALIGNED_BSS): Define.
11480
11481 2011-04-03  Michael Matz  <matz@suse.de>
11482
11483         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11484         and next_slot members.
11485         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11486         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11487         (lto_streamer_cache_append): Declare.
11488         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11489         unsigned index, remove offset parameter, ensure that we append
11490         or update existing entries.
11491         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11492         parameter, update next_slot for append.
11493         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11494         parameter.
11495         (lto_streamer_cache_insert_at): Likewise.
11496         (lto_streamer_cache_append): New function.
11497         (lto_streamer_cache_lookup): Use unsigned index.
11498         (lto_streamer_cache_get): Likewise.
11499         (lto_record_common_node): Don't test tree_node_can_be_shared.
11500         (preload_common_node): Adjust call to lto_streamer_cache_insert.
11501         (lto_streamer_cache_delete): Don't free offsets member.
11502         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11503         (lto_output_string_with_length): Use lto_output_data_stream.
11504         (lto_output_tree_header): Remove ix parameter, don't write it.
11505         (lto_output_builtin_tree): Likewise.
11506         (lto_write_tree): Adjust callers to above, don't track and write
11507         offset, write unsigned index.
11508         (output_unreferenced_globals): Don't emit all global vars.
11509         (write_global_references): Use unsigned indices.
11510         (lto_output_decl_state_refs): Likewise.
11511         (write_symbol): Likewise.
11512         * lto-streamer-in.c (lto_input_chain): Move earlier.
11513         (input_function): Use unsigned index.
11514         (input_alias_pairs): Don't read and then ignore all global vars.
11515         (lto_materialize_tree): Remove ix_p parameter, don't read index,
11516         don't pass it back, use lto_streamer_cache_append.
11517         (lto_register_var_decl_in_symtab): Use unsigned index.
11518         (lto_register_function_decl_in_symtab): Likewise.
11519         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11520         index.
11521         (lto_get_builtin_tree): Don't read index, use
11522         lto_streamer_cache_append.
11523         (lto_read_tree): Adjust call to lto_materialize_tree.
11524
11525         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11526         don't use function calls in arguments to MIN.
11527
11528         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11529         twice.
11530
11531         * gimple.c (gimple_type_leader_entry): Mark deletable.
11532
11533 2011-04-03  Alan Modra  <amodra@gmail.com>
11534
11535         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11536
11537 2011-04-03  Michael Matz  <matz@suse.de>
11538
11539         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11540         an integer.
11541         * tree.h (tree_decl_non_common.vindex): Adjust comment.
11542
11543 2011-04-03  Michael Matz  <matz@suse.de>
11544
11545         * cgraphbuild.c (record_reference): Canonicalize constructor values.
11546         * gimple-fold.c (canonicalize_constructor_val): Accept being called
11547         without function context.
11548         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11549         current_function_decl and cfun.
11550
11551 2011-04-03  Michael Matz  <matz@suse.de>
11552
11553         * tree.c (decl_init_priority_insert): Don't create entry for
11554         default priority.
11555         (decl_fini_priority_insert): Ditto.
11556         (fields_compatible_p, find_compatible_field): Remove.
11557         * tree.h (fields_compatible_p, find_compatible_field): Remove.
11558         * gimple.c (gimple_compare_field_offset): Adjust block comment.
11559
11560 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
11561
11562         * combine.c (try_combine): Remove useless local variable.
11563
11564 2011-04-03  Richard Guenther  <rguenther@suse.de>
11565             Ira Rosen  <ira.rosen@linaro.org>
11566
11567         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11568         non-variable offsets and compare the remaining bases of the two
11569         accesses instead of looking for exact same data-ref.
11570
11571 2011-04-02  Kai Tietz  <ktietz@redhat.com>
11572
11573         PR target/48416
11574         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11575
11576         * i386.c (ix86_is_msabi_thiscall): New helper function.
11577         (ix86_is_type_thiscall): New helper function.
11578         (ix86_comp_type_attributes): Handle thiscall for method-functions
11579         special.
11580         (init_cumulative_args): Likewise.
11581         (find_drap_reg): Likewise.
11582         (ix86_static_chain): Likewise.
11583         (x86_this_parameter): Likewise.
11584         (x86_output_mi_thunk): Likewise.
11585
11586 2011-04-01  Olivier Hainque  <hainque@adacore.com>
11587             Nicolas Setton  <setton@adacore.com>
11588             Eric Botcazou  <ebotcazou@adacore.com>
11589
11590         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11591         (add_gnat_descriptive_type_attribute): New function.
11592         (gen_array_type_die): Call it.
11593         (gen_enumeration_type_die): Likewise.
11594         (gen_struct_or_union_type_die): Likewise.
11595         (modified_type_die): Likewise.
11596         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11597         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11598         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11599
11600 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11601
11602         PR bootstrap/48148
11603         * dwarf2out.c (resolve_addr): Don't call force_decl_die
11604         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11605
11606         Revert:
11607         2011-03-17  Richard Guenther  <rguenther@suse.de>
11608
11609         PR bootstrap/48148
11610         * lto-cgraph.c (input_overwrite_node): Clear the abstract
11611         origin for decls in other ltrans units.
11612         (input_varpool_node): Likewise.
11613
11614 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
11615
11616         PR middle-end/48335
11617         * expr.c (expand_assignment): Handle all possibilities
11618         if TO_RTX is CONCAT.
11619         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11620         (store_split_bit_field): If SUBREG_REG (op0) or
11621         op0 itself has smaller mode than word, return it
11622         for offset 0 and const0_rtx for out-of-bounds stores.
11623         If word is const0_rtx, skip it.
11624
11625 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
11626
11627         * config/h8300/h8300.c (print_operand_address): Rename to...
11628         (h8300_print_operand_address): ...this. Make static. Adjust comments.
11629         Call h8300_print_operand and h8300_print_operand_address instead of
11630         print_operand and print_operand_address. Declare.
11631         (print_operand): Renake to...
11632         (h8300_print_operand): ...this. Make static. Adjust comments.
11633         Call h8300_print_operand instead of print_operand. Declare.
11634         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11635         (h8300_register_move_cost): Likewise.
11636         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11637         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11638         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11639         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11640         * config/h8300/h8300-protos.h (print_operand): Delete.
11641         (print_operand_address): Delete.
11642
11643 2011-04-01  Richard Henderson  <rth@redhat.com>
11644
11645         PR 48400
11646         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11647         in strict mode before dwarf4.  Re-order tests to early out
11648         before switching sections.
11649
11650 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
11651
11652         * config/h8300/constraints.md: New file.
11653         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
11654         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11655         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11656         * config/h8300/predicates.md (bit_operand): Likewise.
11657         (incdec_operand): Use satisfies_constraint_M and
11658         satisfies_constraint_O.  Don't use C code block.
11659         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11660         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11661         (compute_mov_length): Use satisfies_constraint_G.
11662         (fix_bit_operand): Use satisfies_constraint_U.
11663         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11664         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11665         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11666         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11667         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11668         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11669         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11670         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11671         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11672         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11673         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11674         (EXTRA_MEMORY_CONSTRAINT): Delete.
11675
11676 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
11677             Michael Meissner  <meissner@linux.vnet.ibm.com>
11678
11679         PR target/48262
11680         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11681         operands, as per the specifications.
11682
11683         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11684         (vec_extract_evenv4sf): Ditto.
11685         (vec_extract_evenv8hi): Ditto.
11686         (vec_extract_evenv16qi): Ditto.
11687         (vec_extract_oddv4si): Ditto.
11688
11689 2011-03-31  Mark Wielaard  <mjw@redhat.com>
11690
11691         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11692         high_pc attribute if the CU has no associated code. Only output
11693         DW_AT_entry_pc for CU if not generating strict dwarf and
11694         dwarf_version < 4.
11695
11696 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
11697
11698         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11699         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11700         out of ...
11701         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11702         * final.c (final_start_function): Call the new function rather
11703         than using a NULL argument for dwarf2out_frame_debug.
11704
11705         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11706         that contains the prologue.
11707
11708         * haifa-sched.c (queue_insn): New arg REASON.  All callers
11709         changed.  Print it in debugging output.
11710
11711         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11712
11713         * sched-ebb.c (begin_schedule_ready): Remove second argument.
11714         Split most of the code into...
11715         (begin_move_insn): ... here.  New function.
11716         (ebb_sched_info): Add a pointer to it.
11717         * haifa-sched.c (scheduled_insns): New static variable.
11718         (sched_extend_ready_list): Allocate it.
11719         (schedule_block): Use it to record the order of scheduled insns.
11720         Perform RTL changes to move insns only after all scheduling
11721         decisions have been made.
11722         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11723         begin_move_insn field.
11724         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11725         * sched-int.h (struct haifa_sched_info): Remove second argument
11726         from begin_schedule_ready hook.  Add new member begin_move_insn.
11727         * sched-rgn.c (begin_schedule_ready): Remove second argument.
11728         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11729
11730         * haifa-sched.c (prune_ready_list): New function, broken out of
11731         schedule_block.
11732         (schedule_block): Use it.
11733
11734 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11735
11736         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11737
11738 2011-04-01  Kai Tietz  <ktietz@redhat.com>
11739
11740         * config.gcc (*-*-mingw*): Allow as option the
11741         posix threading model.
11742         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
11743         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11744         definition.
11745         (CPP_SPEC): Add pthread/no-pthread handling.
11746         (LIB_SPEC): Likewise.
11747         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11748         (LIB_SPEC): Likewise.
11749         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11750         flag to pass -pthread option for shared libgcc build.
11751         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11752         for shared libgcc build.
11753         * config/i386/t-mingw-pthread: New file.
11754         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11755         New define to enable use of library pthread by default.
11756         * config/i386/mingw.opt (pthread): New driver option.
11757         (no-pthread): New driver option.
11758         * config/i386/cygming.opt: Make sure trailing empty line is retained.
11759         * config/i386/mingw-w64.opt: Likewise.
11760
11761 2011-04-01  Gary Funck  <gary@intrepid.com>
11762
11763         * c-decl.c (grokdeclarator): Fix formatting.
11764
11765 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11766
11767         * expr.c (emit_block_move_via_movmem): Use n_generator_args
11768         instead of n_operands.
11769         (set_storage_via_setmem): Likewise.
11770         * optabs.c (maybe_gen_insn): Likewise.
11771         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11772         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11773         (mips_expand_builtin_direct): Likewise.
11774         * config/spu/spu.c (expand_builtin_args): Likewise.
11775
11776 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11777
11778         * recog.h (insn_data_d): Add n_generator_args.
11779         * genoutput.c (data): Likewise.
11780         (output_insn_data): Print it.
11781         (max_opno, num_dups): Delete.
11782         (scan_operands): Just fill in "d->operand[...]".
11783         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11784
11785 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
11786
11787         * gensupport.h (pattern_stats): New structure.
11788         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11789         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11790         (max_operand_1, max_operand_vec): Delete.
11791         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11792
11793 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
11794
11795         * emit-rtl.c (emit_pattern_after_setloc): New function.
11796         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11797         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11798         (emit_pattern_after): New function.
11799         (emit_insn_after, emit_jump_insn_after): Call it.
11800         (emit_call_insn_after, emit_debug_insn_after): Likewise.
11801         (emit_pattern_before_setloc): New function.
11802         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11803         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11804         Likewise.
11805         (emit_pattern_before): New function.
11806         (emit_insn_before, emit_jump_insn_before): Call it.
11807         (emit_call_insn_before, emit_debug_insn_before): Likewise.
11808
11809 2011-03-31  Richard Henderson  <rth@redhat.com>
11810
11811         * dwarf2out.c (dw_separate_line_info_ref): Remove.
11812         (dw_separate_line_info_entry): Remove.
11813         (enum dw_line_info_opcode): New.
11814         (dw_line_info_entry): Use it.
11815         (dw_line_info_table, dw_line_info_table_p): New.
11816         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11817         (line_info_table, line_info_label_num): Remove.
11818         (line_info_table_in_use): Remove.
11819         (separate_line_info_table): Remove.
11820         (separate_line_info_table_allocated): Remove.
11821         (separate_line_info_table_in_use): Remove.
11822         (LINE_INFO_TABLE_INCREMENT): Remove.
11823         (line_info_label_num): New.
11824         (cur_line_info_table): New.
11825         (text_section_line_info, cold_text_section_line_info): New.
11826         (separate_line_info): New.
11827         (SEPARATE_LINE_CODE_LABEL): Remove.
11828         (print_dwarf_line_table): Remove.
11829         (debug_dwarf): Don't dump it.
11830         (output_one_line_info_table): New.
11831         (output_line_info): Use it.
11832         (new_line_info_table): New.
11833         (set_cur_line_info_table): New.
11834         (dwarf2out_switch_text_section): Use it.
11835         (dwarf2out_begin_function): Likewise.
11836         (push_dw_line_info_entry): New.
11837         (dwarf2out_source_line): Rewrite for new line info tables.
11838         (dwarf2out_init): Remove dead initailizations.
11839
11840 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11841
11842         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
11843         various flags.
11844         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11845         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11846         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11847         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11848         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11849         * opt-functions.awk (flag_init, switch_bit_fields): New.
11850         (switch_flags): Don't handle flags moved to bit-fields.  Don't
11851         generate CL_MISSING_OK or CL_SAVE.
11852         * optc-gen.awk: Update to generate bit-field output as well as
11853         flags field.
11854         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11855         bit-field instead of CL_REJECT_DRIVER flag.
11856         * opts-common.c (generate_canonical_option,
11857         decode_cmdline_option): Use bit-fields instead of CL_* flags.
11858         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11859         instead of CL_REJECT_NEGATIVE flag.
11860         * toplev.c (print_switch_values): Use cl_report bit-field instead
11861         of CL_REPORT flag.
11862
11863 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
11864
11865         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11866         a zero minimum index only if it is redundant.
11867
11868 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
11869
11870         PR rtl-optimization/48381
11871         * ira-color.c (assign_hard_reg): Use hard reg set intersection
11872         instead of ira_class_hard_reg_index for calculating conflicting
11873         hard registers.
11874
11875 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
11876
11877         * cprop.c: Clean up hash table building.
11878         (reg_avail_info): Remove.
11879         (oprs_available_p): Remove.
11880         (record_last_reg_set_info): Remove.
11881         (record_last_set_info): Remove.
11882         (reg_available_p): New function.
11883         (gcse_constant_p): Do not treat unfolded conditions as constants.
11884         (make_set_regs_unavailable): New function.
11885         (hash_scan_set): Simplify with new reg_available_p.
11886         (compute_hash_table_work): Traverse insns stream only once.
11887         Do not compute reg_avail_info. Traverse insns in reverse order.
11888         Record implicit sets after recording explicit sets from the block.
11889
11890 2011-03-31  Michael Matz  <matz@suse.de>
11891
11892         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11893
11894 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
11895
11896         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11897         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11898         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11899         (h8300_mode_dependent_address_p): New function.
11900         (h8300_get_index): Make static.
11901
11902 2011-03-31  Jeff Law  <law@redhat.com>
11903
11904         * reload1.c (elimination_effects): Fix typo in recent change.
11905
11906         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11907         typo potentially leading to null pointer dereference.
11908
11909         * caller-save.c (new_saved_hard_reg): Eliminate return value.
11910         (setup_save_areas): Corresponding changes to avoid useless
11911         assignments.
11912
11913         * jump.c (reversed_comparison_code_parts): Avoid successive return
11914         statements when REVERSE_CONDITION is defined.
11915
11916         * expr.c (expand_assignment): Avoid useless assignments.
11917         (expand_expr_real_1): Likewise.
11918         (expand_expr_real_2): Avoid useless statements.
11919
11920         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11921
11922         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11923
11924         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11925         statements.
11926
11927         * stmt.c (expand_expr_stmt): Avoid useless assignment.
11928
11929 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
11930
11931         PR target/47109
11932         * doc/tm.texi.in (TARGET_VERSION): Remove.
11933         * doc/tm.texi: Regenerate.
11934         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11935         * collect2.c (main): Don't use TARGET_VERSION.
11936         * mips-tdump.c (main): Don't use TARGET_VERSION.
11937         * mips-tfile.c (main): Don't use TARGET_VERSION.
11938         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11939         * config/rs6000/vxworksae.h: Remove.
11940         * config/alpha/alpha.h (TARGET_VERSION): Remove.
11941         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11942         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11943         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11944         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11945         * config/arm/arm.h (TARGET_VERSION): Remove.
11946         * config/arm/coff.h (TARGET_VERSION): Remove.
11947         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11948         * config/arm/elf.h (TARGET_VERSION): Remove.
11949         * config/arm/freebsd.h (TARGET_VERSION): Remove.
11950         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11951         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11952         * config/arm/pe.h (TARGET_VERSION): Remove.
11953         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11954         * config/arm/semi.h (TARGET_VERSION): Remove.
11955         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11956         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11957         * config/arm/vxworks.h (TARGET_VERSION): Remove.
11958         * config/avr/avr.h (TARGET_VERSION): Remove.
11959         * config/bfin/bfin.h (TARGET_VERSION): Remove.
11960         * config/fr30/fr30.h (TARGET_VERSION): Remove.
11961         * config/frv/frv.h (TARGET_VERSION): Remove.
11962         * config/h8300/h8300.h (TARGET_VERSION): Remove.
11963         * config/i386/cygwin.h (TARGET_VERSION): Remove.
11964         * config/i386/darwin.h (TARGET_VERSION): Remove.
11965         * config/i386/darwin64.h (TARGET_VERSION): Remove.
11966         * config/i386/djgpp.h (TARGET_VERSION): Remove.
11967         * config/i386/freebsd.h (TARGET_VERSION): Remove.
11968         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11969         * config/i386/gnu.h (TARGET_VERSION): Remove.
11970         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11971         * config/i386/i386elf.h (TARGET_VERSION): Remove.
11972         * config/i386/linux.h (TARGET_VERSION): Remove.
11973         * config/i386/linux64.h (TARGET_VERSION): Remove.
11974         * config/i386/lynx.h (TARGET_VERSION): Remove.
11975         * config/i386/mingw32.h (TARGET_VERSION): Remove.
11976         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11977         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11978         * config/i386/netware.h (TARGET_VERSION): Remove.
11979         * config/i386/nto.h (TARGET_VERSION): Remove.
11980         * config/i386/openbsd.h (TARGET_VERSION): Remove.
11981         * config/i386/vxworks.h (TARGET_VERSION): Remove.
11982         * config/ia64/elf.h (TARGET_VERSION): Remove.
11983         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11984         * config/ia64/hpux.h (TARGET_VERSION): Remove.
11985         * config/ia64/linux.h (TARGET_VERSION): Remove.
11986         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11987         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11988         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11989         * config/lm32/lm32.h (TARGET_VERSION): Remove.
11990         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11991         * config/m32c/m32c.h (TARGET_VERSION): Remove.
11992         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11993         * config/m32r/m32r.h (TARGET_VERSION): Remove.
11994         * config/m68k/linux.h (TARGET_VERSION): Remove.
11995         * config/m68k/m68k.h (TARGET_VERSION): Remove.
11996         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11997         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11998         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11999         * config/mep/mep.h (TARGET_VERSION): Remove.
12000         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12001         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12002         * config/mips/iris6.h (MACHINE_TYPE): Remove.
12003         * config/mips/linux.h (TARGET_VERSION): Remove.
12004         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12005         * config/mips/vxworks.h (TARGET_VERSION): Remove.
12006         * config/mmix/mmix.h (TARGET_VERSION): Remove.
12007         * config/mn10300/linux.h (TARGET_VERSION): Remove.
12008         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12009         * config/pa/pa.h (TARGET_VERSION): Remove.
12010         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12011         * config/picochip/picochip.h (TARGET_VERSION): Remove.
12012         * config/rs6000/aix.h (TARGET_VERSION): Remove.
12013         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12014         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12015         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12016         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12017         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12018         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12019         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12020         * config/rs6000/linux.h (TARGET_VERSION): Remove.
12021         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12022         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12023         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12024         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12025         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12026         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12027         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12028         * config/s390/linux.h (TARGET_VERSION): Remove.
12029         * config/s390/s390.h (TARGET_VERSION): Remove.
12030         * config/s390/tpf.h (TARGET_VERSION): Remove.
12031         * config/score/score.h (TARGET_VERSION): Remove.
12032         * config/sh/linux.h (TARGET_VERSION): Remove.
12033         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12034         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12035         * config/sh/sh.h (TARGET_VERSION): Remove.
12036         * config/sh/sh64.h (TARGET_VERSION): Remove.
12037         * config/sh/superh.h (TARGET_VERSION): Remove.
12038         * config/sh/vxworks.h (TARGET_VERSION): Remove.
12039         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12040         * config/sparc/linux.h (TARGET_VERSION): Remove.
12041         * config/sparc/linux64.h (TARGET_VERSION): Remove.
12042         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12043         TARGET_NAME32, TARGET_NAME): Remove.
12044         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12045         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12046         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12047         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12048         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12049         * config/spu/spu.h (TARGET_VERSION): Remove.
12050         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12051         * config/v850/v850.h (TARGET_VERSION): Remove.
12052         * config/vax/linux.h (TARGET_VERSION): Remove.
12053         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12054         * config/xtensa/elf.h (TARGET_VERSION): Remove.
12055         * config/xtensa/linux.h (TARGET_VERSION): Remove.
12056
12057 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
12058
12059         PR target/48142
12060         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12061         frame-related from frame-unrelated adjustments to the stack pointer.
12062
12063 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
12064
12065         * common.opt (fdebug-types-section): Move earlier.
12066         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12067
12068 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
12069
12070         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12071         var.
12072
12073 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
12074
12075         * tree.h (CASE_CHAIN): Define.
12076         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12077         (gimple_redirect_edge_and_branch): Likewise.
12078
12079 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
12080
12081         PR middle-end/48367
12082         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12083         calculation.
12084
12085 2011-03-30  Jeff Law  <law@redhat.com>
12086
12087         * PR bootstrap/48371
12088         * reload1.c (reload): Fix botch in last change.
12089
12090         * reload.h (struct reload): Fix typo introduced in last change.
12091
12092 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12093
12094         * config/arm/arm.opt (mhard-float, msoft-float): Mark
12095         Undocumented.  Remove help text.
12096         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12097         -mhard-float.
12098
12099 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12100
12101         * doc/options.texi (NegativeAlias): Document.
12102         (Alias): Mention NegativeAlias.
12103         * opt-functions.awk: Handle NegativeAlias.
12104         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
12105         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12106         * opts.h (CL_NEGATIVE_ALIAS): Define.
12107         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12108         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12109         OPT_mspe_.
12110         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12111         Alias entries.
12112         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12113         mno-spe and mno-isel instead of mspe=no and -misel=no.
12114
12115 2011-03-29  Mark Wielaard  <mjw@redhat.com>
12116
12117         * common.opt (fdebug-types-section): New flag.
12118         * doc/invoke.texi: Document new -fno-debug-types-section flag.
12119         * dwarf2out.c (use_debug_types): New define.
12120         (struct die_struct): Mark die_id with GTY desc use_debug_types.
12121         (print_die): Guard output of type unit signatures using
12122         use_debug_types.
12123         (build_abbrev_table): Replace assert of dwarf_version >= 4
12124         with assert on use_debug_types.
12125         (size_of_die): Likewise.
12126         (unmark_dies): Likewise.
12127         (value_format): Decide AT_ref_external form on use_debug_types.
12128         (output_die): Replace dwarf_version version check guard with
12129         use_debug_types where appropriate.
12130         (modified_type_die): Likewise.
12131         (gen_reference_type_die): Likewise.
12132         (dwarf2out_start_source_file): Likewise.
12133         (dwarf2out_end_source_file): Likewise.
12134         (prune_unused_types_walk_attribs): Likewise.
12135         (dwarf2out_finish): Likewise.
12136
12137 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
12138
12139         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12140
12141 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12142
12143         PR rtl-optimization/48332
12144         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12145         mode of input operand N and modeN to its actual mode.
12146
12147 2011-03-30  Jeff Law  <law@redhat.com>
12148
12149         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12150         define accessor macro.
12151         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12152         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12153         (reg_equiv_init): Likewise.
12154         (reg_equivs_size): New variable.
12155         (reg_equiv_init_size): Remove.
12156         (allocate_initial_values): Move prototype to here from....
12157         * integrate.h (allocate_initial_values): Remove prototype.
12158         * integrate.c: Include reload.h.
12159         (allocate_initial_values): Corresponding changes.
12160         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12161         (fix_reg_equiv_init, no_equiv): Corresponding changes.
12162         (update_equiv_regs): Corresponding changes.
12163         (ira): Corresponding changes.
12164         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12165         (push_secondary_reload): Corresponding changes.
12166         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12167         (make_memloc, find_reloads_address): Corresponding changes.
12168         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12169         (find_reloads_address_1): Corresponding changes.
12170         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12171         (refers_to_regno_for_reload_p): Corresponding changes.
12172         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12173         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12174         * reload1.c: Include ggc.h.
12175         (grow_reg_equivs): New function.
12176         (replace_pseudos_in, reload): Corresponding changes.
12177         (calculate_needs_all_insns, alter_regs): Corresponding changes.
12178         (eliminate_regs_1, elimination_effects): Corresponding changes.
12179         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12180         (delete_output_reload): Likewise.
12181         * caller-save.c (mark_referenced_regs): Corresponding changes.
12182         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12183         * frv/predicates.md (frv_load_operand): Corresponding changes.
12184         * microblaze/microblaze.c (double_memory_operand): Corresponding
12185         changes.
12186         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12187         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12188         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12189         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12190         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12191         changes.
12192         * pa/pa.c (emit_move_sequence): Corresponding changes.
12193         * vax/vax.c (nonindexed_address_p): Corresponding changes.
12194
12195 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12196
12197         PR target/47551
12198         * config/arm/arm.c (coproc_secondary_reload_class): Handle
12199         structure modes.  Don't check neon_vector_mem_operand for
12200         vector or structure modes.
12201
12202 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
12203             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12204
12205         PR target/43590
12206         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12207         operand 1 and reshuffle the operands to match.
12208         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12209
12210 2011-03-30  Christian Schüler  <cschueler@gmx.de>
12211
12212         PR driver/48208
12213         * config/c.opt (F): Added 'Driver' to -F option.
12214
12215         PR driver/48260
12216         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12217           handler function.
12218         * config/darwin.opt: Added '-arch' option.
12219
12220 2011-03-30  Nick Clifton  <nickc@redhat.com>
12221
12222         * config/rx/rx.md: Add peepholes and patterns to combine
12223         extending loads and simple arithmetic instructions.
12224         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12225         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12226         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12227         modes to use pre-decrement and post-increment addressing.
12228         (rx_is_restricted_memory_address): Add range checking of REG+INT
12229         addresses.
12230         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
12231         (rx_memory_move_cost): Adjust cost of stores.
12232         (rx_adjust_insn_length): New function.
12233
12234 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
12235
12236         PR c/48305
12237         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12238         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12239         matching arg00/arg01 types.
12240
12241 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
12242
12243         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12244         last_location to UNKNOWN_LOCATION.
12245
12246 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
12247
12248         PR target/48349
12249         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12250         FLOAT_SSE_REGS.
12251
12252 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
12253             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12254
12255         PR bootstrap/48337
12256         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12257         Init(PROCESSOR_V7).
12258         (sparc_cpu): Likewise.
12259         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12260         PROCESSOR_V7.
12261
12262 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12263
12264         PR target/48336
12265         PR middle-end/48342
12266         PR rtl-optimization/48345
12267         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12268         hard regs for given mode from profitable regs when doing secondary
12269         allocation.
12270
12271 2011-03-29  Jeff Law  <law@redhat.com>
12272
12273         PR bootstrap/48327
12274         * tree-ssa-threadupdate.c (struct redirection_data): Remove
12275         do_not_duplicate field.
12276         (lookup_redirection_data): Corresponding changes.
12277         (create_duplicates): Always create a template block.
12278         (redirect_edges): Remove code which reused the original block
12279         when it was going to become unreachable code.
12280         (thread_block): Don't set do_not_duplicate field.
12281
12282 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
12283
12284         * lto-opts.c (register_user_option_p, lto_register_user_option):
12285         Make type argument unsigned.
12286         * lto-streamer.h (lto_register_user_option): Make type argument
12287         unsigned.
12288         * opth-gen.awk: Make CL_* macros unsigned.
12289         * opts-common.c (find_opt): Make lang_mask argument unsigned.
12290         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12291         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12292         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12293         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12294         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12295         (find_opt): Make lang_mask argument unsigned.
12296
12297 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12298
12299         PR rtl-optimization/48331
12300         PR rtl-optimization/48334
12301         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12302         for any used algorithm.
12303
12304 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12305
12306         * ira-conflicts.c (build_object_conflicts): Add unused attribute
12307         to parent_max.
12308
12309 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
12310
12311         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12312         (alpha_option_override): Don't set alpha_sr_alias_set.
12313         (emit_frame_store_1): Use gen_frame_mem rather than calling
12314         set_mem_alias_set.
12315         (alpha_expand_epilogue): Ditto.
12316
12317 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
12318
12319         PR tree-optimization/48290
12320         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12321         vectorization, check that relevant phis in the basic block after
12322         the inner loop are really inner loop's exit phis.
12323
12324 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
12325
12326         PR debug/48190
12327         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12328         (cached_dw_loc_list_def): New structure.
12329         (cached_dw_loc_list): New typedef.
12330         (cached_dw_loc_list_table): New variable.
12331         (cached_dw_loc_list_table_hash): New function.
12332         (cached_dw_loc_list_table_eq): Likewise.
12333         (add_location_or_const_value_attribute): Take a bool cache_p.
12334         Cache the list when the parameter is true.
12335         (gen_formal_parameter_die): Update caller.
12336         (gen_variable_die): Likewise.
12337         (dwarf2out_finish): Likewise.
12338         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12339         while generating debug info for the decl.
12340         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12341         (dwarf2out_init): Initialize cached_dw_loc_list_table.
12342         (resolve_addr): Cache the result of resolving a chain of
12343         location lists.
12344
12345 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
12346
12347         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12348         conflict object hard regset nodes have intersecting hard reg sets.
12349
12350         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12351         after regstat_init_n_sets_and_refs.
12352
12353         * ira.c: Add more comments at the top.
12354         (setup_stack_reg_pressure_class, setup_pressure_classes):
12355         Add comments how we compute the register pressure classes.
12356         (setup_allocno_and_important_classes): Add more comments.
12357         (setup_class_translate_array, reorder_important_classes)
12358         (setup_reg_class_relations): Add comments.
12359
12360         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
12361         start of the file.
12362
12363         * ira-color.c: Add 2011 to the Copyright line.
12364         (assign_hard_reg):  Add more comments.
12365         (improve_allocation): Ditto.
12366
12367         * ira-costs.c: Add 2011 to the Copyright line.
12368         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12369         comments.
12370         (setup_regno_cost_classes_by_mode): Ditto.
12371
12372         Initial patches from ira-improv branch:
12373
12374         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12375
12376         * ira-build.c (ira_create_object): Remove initialization of
12377         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
12378         (ira_create_allocno): Remove initialization of
12379         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12380         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12381         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12382         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12383         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12384         Initialize ALLOCNO_ADD_DATA.
12385         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12386         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12387         ALLOCNO_REG.
12388         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
12389         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12390
12391         * ira.c (ira_reallocate): Remove.
12392         (setup_pressure_classes): Call
12393         ira_init_register_move_cost_if_necessary.  Use
12394         ira_register_move_cost instead of ira_get_register_move_cost.
12395         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12396         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12397
12398         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12399         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12400         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12401         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12402         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12403         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12404         Fix formatting.
12405         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12406         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12407         (struct allocno_color_data): New.
12408         (allocno_color_data_t): New typedef.
12409         (allocno_color_data): New definition.
12410         (ALLOCNO_COLOR_DATA): New macro.
12411         (struct object_color_data): New.
12412         (object_color_data_t): New typedef.
12413         (object_color_data): New definition.
12414         (OBJECT_COLOR_DATA): New macro.
12415         (update_copy_costs, calculate_allocno_spill_cost): Call
12416         ira_init_register_move_cost_if_necessary.  Use
12417         ira_register_move_cost instead of ira_get_register_move_cost.
12418         (move_spill_restore, update_curr_costs): Ditto.
12419         (allocno_spill_priority): Make it inline.
12420         (color_pass): Allocate and free allocno_color_dat and object_color_data.
12421         (struct coalesce_data, coalesce_data_t): New.
12422         (allocno_coalesce_data): New definition.
12423         (ALLOCNO_COALESCE_DATA): New macro.
12424         (merge_allocnos, coalesced_allocno_conflict_p): Use
12425         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12426         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12427         (coalesce_allocnos): Ditto.
12428         (setup_coalesced_allocno_costs_and_nums): Ditto.
12429         (collect_spilled_coalesced_allocnos): Ditto.
12430         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12431         (setup_slot_coalesced_allocno_live_ranges): Ditto.
12432         (coalesce_spill_slots): Ditto.
12433         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
12434         free allocno_coalesce_data.
12435
12436         * ira-conflicts.c: Fix formatting.
12437         (process_regs_for_copy): Call
12438         ira_init_register_move_cost_if_necessary.  Use
12439         ira_register_move_cost instead of ira_get_register_move_cost.
12440         (build_object_conflicts): Optimize.
12441
12442         * ira-costs.c (record_reg_classes): Optimize.  Call
12443         ira_init_register_move_cost_if_necessary.  Use
12444         ira_register_move_cost, ira_may_move_in_cost, and
12445         ira_may_move_out_cost instead of ira_get_register_move_cost and
12446         ira_get_may_move_cost.
12447         (record_address_regs): Ditto.
12448         (scan_one_insn): Optimize.
12449         (find_costs_and_classes): Optimize.
12450         (process_bb_node_for_hard_reg_moves): Call
12451         ira_init_register_move_cost_if_necessary.  Use
12452         ira_register_move_cost instead of ira_get_register_move_cost.
12453
12454         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12455         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12456         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12457         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12458         definitions.
12459         (ira_initiate_emit_data, ira_finish_emit_data)
12460         (create_new_allocno): New functions.
12461         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12462         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12463         Use ira_register_move_cost instead of ira_get_register_move_cost.
12464
12465         * ira-int.h: Fix some comments.
12466         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12467         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12468         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12469         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
12470         add_data.
12471         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
12472         bitfield after mode.  Make hard_regno a short int.  Make
12473         hard_regno short.  Remove first_coalesced_allocno and
12474         next_coalesced_allocno.  Move mem_optimized_dest_p,
12475         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12476         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
12477         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12478         temp, colorable_p.  Add new member add_data.
12479         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12480         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12481         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12482         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12483         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12484         (ALLOCNO_ADD_DATA): New macro.
12485         (ira_emit_data_t): New typedef.
12486         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
12487         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12488         from struct ira_allocno.
12489         (ALLOCNO_EMIT_DATA): New macro.
12490         (ira_allocno_emit_data, allocno_emit_reg): New.
12491         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12492         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12493         (OBJECT_ADD_DATA): New macro.
12494         (ira_reallocate): Remove.
12495         (ira_initiate_emit_data, ira_finish_emit_data): New.
12496         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12497         (ira_init_register_move_cost_if_necessary): New.
12498         (ira_object_conflict_iter_next): Merge into
12499         ira_object_conflict_iter_cond.
12500         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12501
12502         * ira-live.c (process_single_reg_class_operands): Call
12503         ira_init_register_move_cost_if_necessary.  Use
12504         ira_register_move_cost instead of ira_get_register_move_cost.
12505
12506         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
12507
12508         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12509
12510         * ira-costs.c: Fix formatting.
12511         (cost_classes, cost_classes_num): Remove.
12512         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12513         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12514         (cost_classes_del, cost_classes_htab): New.
12515         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12516         (initiate_regno_cost_classes, setup_cost_classes): New.
12517         (setup_regno_cost_classes_by_aclass): New.
12518         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12519         (record_reg_classes): Use regno_cost_classes instead of
12520         cost_classes.  Move checking opposite operand up.
12521         (record_address_regs): Use regno_cost_classes
12522         instead of cost_classes.
12523         (scan_one_insn): Ditto.  Use always general register.
12524         (print_allocno_costs): Use regno_cost_classes instead of
12525         cost_classes.
12526         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
12527         (find_costs_and_classes): Set up cost classes for each registers.
12528         Use also their mode for this.  Use regno_cost_classes instead of
12529         cost_classes.
12530         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12531         cost_classes.
12532         (free_ira_costs, ira_init_costs): Don't use cost_classes.
12533         (ira_costs, ira_set_pseudo_classes): Call
12534         initiate_regno_cost_classes and finish_regno_cost_classes.
12535
12536         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
12537
12538         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12539
12540         * target.def (ira_cover_classes): Remove.
12541
12542         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12543
12544         * doc/tm.texi.in: Ditto.
12545
12546         * ira-conflicts.c: Remove mentioning cover classes from the file.
12547         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
12548         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
12549
12550         * targhooks.c (default_ira_cover_classes): Remove.
12551
12552         * targhooks.h (default_ira_cover_classes): Ditto.
12553
12554         * haifa-sched.c: Remove mentioning cover classes from the file.
12555         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12556         ira_pressure_classes and ira_pressure_classes_num instead of
12557         ira_reg_class_cover_size and ira_reg_class_cover.  Use
12558         sched_regno_pressure_class instead of sched_regno_cover_class.
12559         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12560         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12561
12562         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
12563         classes from the file.
12564         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12565         (struct object_hard_regs, struct object_hard_regs_node): New.
12566         (struct ira_object): New members profitable_hard_regs,
12567         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12568         (struct ira_allocno): Rename cover_class to aclass.  Rename
12569         cover_class_cost and updated_cover_class_cost to class_cost and
12570         updated_class_cost.  Remove splay_removed_p and
12571         left_conflict_size.  Add new members colorable_p.
12572         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12573         (ALLOCNO_COLORABLE_P): New macro.
12574         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12575         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12576         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12577         (OBJECT_...): Rename parameter C to O.
12578         (OBJECT_PROFITABLE_HARD_REGS): New macro.
12579         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12580         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12581         (struct target_ira_int): New members x_ira_max_memory_move_cost,
12582         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12583         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12584         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12585         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
12586         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
12587         x_ira_reg_class_subunion.
12588         (ira_max_memory_move_cost, ira_max_register_move_cost)
12589         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12590         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12591         (ira_important_class_nums, ira_reg_class_superunion): New macros.
12592         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12593         (ira_reg_class_union): Rename to ira_reg_class_subunion.
12594         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12595         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12596         (ira_tune_allocno_costs_and_cover_classes): Rename to
12597         ira_tune_allocno_costs.
12598         (ira_debug_hard_regs_forest): New.
12599         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12600         (ira_object_conflict_iter_next): Fix comments.
12601         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12602         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12603         cover_class to aclass.
12604         (ira_allocate_and_accumulate_costs): Ditto.
12605         (ira_allocate_and_set_or_copy_costs): Ditto.
12606
12607         * opts.c (decode_options): Remove ira_cover_class check.
12608
12609         * ira-color.c: Remove mentioning cover classes from the file.  Use
12610         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12611         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12612         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12613         (splay-tree.h): Remove include.
12614         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12615         before copy_freq_compare_func.
12616         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12617         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12618         New definitions.
12619         (hard_regs_roots, hard_regs_node_vec): Ditto.
12620         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12621         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12622         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12623         (create_new_object_hard_regs_node): Ditto.
12624         (add_new_object_hard_regs_node_to_forest): Ditto.
12625         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12626         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12627         Ditto.
12628         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12629         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12630         (remove_unused_object_hard_regs_nodes): Ditto.
12631         (enumerate_object_hard_regs_nodes): Ditto.
12632         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12633         (object_hard_regs_subnode_t): Ditto.
12634         (struct object_hard_regs_subnode): Ditto.
12635         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12636         (setup_object_hard_regs_subnode_index): Ditto.
12637         (get_object_hard_regs_subnodes_num): Ditto.
12638         (form_object_hard_regs_nodes_forest): Ditto.
12639         (finish_object_hard_regs_nodes_tree): Ditto.
12640         (finish_object_hard_regs_nodes_forest): Ditto.
12641         (allocnos_have_intersected_live_ranges_p): Rename to
12642         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12643         (pseudos_have_intersected_live_ranges_p): Rename to
12644         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
12645         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12646         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12647         (update_copy_costs): Remove assert.  Skip cost update if the hard
12648         reg does not belong the class.
12649         (assign_hard_reg): Process only profitable hard regs.
12650         (uncolorable_allocnos_num): Make it scalar.
12651         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12652         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12653         and ira_reg_class_max_nregs.
12654         (bucket_allocno_compare_func): Check frequency first.
12655         (sort_bucket): Add compare function as a parameter.
12656         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12657         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12658         (push_allocno_to_stack): Rewrite for checking new allocno
12659         colorability.
12660         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
12661         (push_only_colorable): Pass new parameter to sort_bucket.
12662         (push_allocno_to_spill): Remove.
12663         (allocno_spill_priority_compare): Make it inline and rewrite.
12664         (splay_tree_allocate, splay_tree_free): Remove.
12665         (allocno_spill_sort_compare): New function.
12666         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
12667         build and use splay tree.  Choose first allocno in uncolorable
12668         allocno bucket to spill.  Remove setting spill cost.
12669         (all_conflicting_hard_regs): Remove.
12670         (setup_allocno_available_regs_num): Check only profitable hard
12671         regs.  Print info about hard regs nodes.
12672         (setup_allocno_left_conflicts_size): Remove.
12673         (put_allocno_into_bucket): Don't call
12674         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
12675         (improve_allocation): New.
12676         (color_allocnos): Call setup_profitable_hard_regs,
12677         form_object_hard_regs_nodes_forest, improve_allocation,
12678         finish_object_hard_regs_nodes_forest.  Setup spill cost.
12679         (print_loop_title): Use pressure classes.
12680         (color_allocnso): Ditto.
12681         (do_coloring): Remove allocation and freeing splay_tree_node_pool
12682         and allocnos_for_spilling.
12683         (ira_sort_regnos_for_alter_reg): Don't setup members
12684         {first,next}_coalesced_allocno.
12685         (color): Remove allocating and freeing removed_splay_allocno_vec.
12686         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12687         prohibited_class_mode_regs.
12688
12689         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
12690         formatting.
12691         (update_allocno_pressure_excess_length): Use pressure classes.
12692         (inc_register_pressure, dec_register_pressure): Check for pressure
12693         class.
12694         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12695         pressure class.  Use ira_reg_class_nregs instead of
12696         ira_reg_class_max_nregs.
12697         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12698         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12699         (single_reg_class): Use ira_reg_class_nregs instead of
12700         ira_reg_class_max_nregs.
12701         (process_bb_node_lives): Use pressure classes.
12702
12703         * ira-emit.c: Remove mentioning cover classes from the file.  Use
12704         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12705         (change_loop): Use pressure classes.
12706         (modify_move_list): Call ira_set_allocno_class instead of
12707         ira_set_allocno_cover_class.
12708
12709         * ira-build.c: Remove mentioning cover classes from the file.  Use
12710         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12711         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
12712         ALLOCNO_UPDATED_CLASS_COST instead of
12713         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
12714         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12715         (ira_create_allocno): Remove initialization of
12716         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
12717         ALLOCNO_COLORABLE_P.
12718         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12719         Update conflict regs for the objects.
12720         (create_cap_allocno): Remove assert.  Don't propagate
12721         ALLOCNO_AVAILABLE_REGS_NUM.
12722         (ira_free_allocno_costs): New function.
12723         (finish_allocno): Change a part of code into call of
12724         ira_free_allocno_costs.
12725         (low_pressure_loop_node_p): Use pressure classes.
12726         (object_range_compare_func): Don't compare classes.
12727         (setup_min_max_conflict_allocno_ids): Ditto.
12728
12729         * loop-invariant.c: Remove mentioning cover classes from the file.
12730         Use ira_pressure_classes and ira_pressure_classes_num instead of
12731         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
12732         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12733         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12734         Use reg_allocno_class instead of reg_cover_class.
12735         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12736         STACK_REG_COVER_CLASS.
12737         (get_regno_cover_class): Rename to get_regno_pressure_class.
12738         (move_loop_invariants): Initialize and finalize regstat.
12739
12740         * ira.c: Remove mentioning cover classes from the file.  Add
12741         comments about coloring without cover classes.  Use ALLOCNO_CLASS
12742         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
12743         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12744         setup_class_subset_and_memory_move_costs.
12745         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12746         (setup_cover_and_important_classes): Rename to
12747         setup_allocno_and_important_classes.
12748         (setup_class_translate_array): New.
12749         (setup_class_translate): Call it for allocno and pressure classes.
12750         (cover_class_order): Rename to allocno_class_order.
12751         (comp_reg_classes_func): Use ira_allocno_class_translate instead
12752         of ira_class_translate.
12753         (reorder_important_classes): Set up ira_important_class_nums.
12754         (setup_reg_class_relations): Set up ira_reg_class_superunion.
12755         (print_class_cover): Rename to print_classes.  Add parameter.
12756         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12757         Print pressure classes too.
12758         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
12759         setup_reg_subclasses.
12760         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12761         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12762         (setup_prohibited_class_mode_regs): Use
12763         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12764         (clarify_prohibited_class_mode_regs): New function.
12765         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12766         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12767         (ira_init_once): Initialize them.
12768         (free_register_move_costs): Process them.
12769         (ira_init): Move calls of find_reg_classes and
12770         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12771         Call clarify_prohibited_class_mode_regs.
12772         (ira_no_alloc_reg): Remove.
12773         (too_high_register_pressure_p): Use pressure classes.
12774
12775         * sched-deps.c: Remove mentioning cover classes from the file.
12776         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
12777         ira_pressure_classes and ira_pressure_classes_num instead of
12778         ira_reg_class_cover_size and ira_reg_class_cover.
12779         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12780         sched_regno_pressure_class instead of sched_regno_cover_class.
12781         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
12782         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12783
12784         * ira.h: Add 2010 to Copyright.
12785         (ira_no_alloc_reg): Remove external.
12786         (struct target_ira): Rename x_ira_hard_regno_cover_class,
12787         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12788         x_ira_class_translate to x_ira_hard_regno_allocno_class,
12789         x_ira_allocno_classes_num, x_ira_allocno_classes, and
12790         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
12791         x_ira_pressure_classes, x_ira_pressure_class_translate, and
12792         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
12793         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
12794         x_ira_no_alloc_regs.
12795         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12796         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12797         ira_allocno_classes_num and ira_allocno_classes.
12798         (ira_class_translate): Rename to ira_allocno_class_translate.
12799         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12800         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12801         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12802         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12803         (ira_no_alloc_regs): New.
12804
12805         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
12806         classes from the file.  Use ALLOCNO_CLASS instead of
12807         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
12808         ALLOCNO_COVER_CLASS_COST.
12809         (regno_cover_class): Rename to regno_aclass.
12810         (record_reg_classes): Use ira_reg_class_subunion instead of
12811         ira_reg_class_union.
12812         (record_address_regs): Check overflow.
12813         (scan_one_insn): Ditto.
12814         (print_allocno_costs): Print total mem cost fore regional allocation.
12815         (print_pseudo_costs): Use REG_N_REFS.
12816         (find_costs_and_classes): Use classes intersected with them on the
12817         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
12818         ira_reg_class_union.  Use ira_allocno_class_translate and
12819         regno_aclass instead of ira_class_translate and regno_cover_class.
12820         Modify code for finding regno_aclass.  Setup preferred classes for
12821         the next pass.
12822         (setup_allocno_cover_class_and_costs): Rename to
12823         setup_allocno_class_and_costs.  Use regno_aclass instead of
12824         regno_cover_class.  Use ira_set_allocno_class instead of
12825         ira_set_allocno_cover_class.
12826         (init_costs, finish_costs): Use regno_aclass instead of
12827         regno_cover_class.
12828         (ira_costs): Use setup_allocno_class_and_costs instead of
12829         setup_allocno_cover_class_and_costs.
12830         (ira_tune_allocno_costs_and_cover_classes): Rename to
12831         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
12832         by processing objects.  Use ira_reg_class_max_nregs instead of
12833         ira_reg_class_nregs.
12834
12835         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12836
12837         * sched-int.h: Remove mentioning cover classes from the file.
12838         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12839
12840         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
12841         classes from the file.
12842         (struct reg_pref): Rename coverclass into allocnoclass.
12843         (reg_cover_class): Rename to reg_allocno_class.
12844
12845         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12846
12847         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12848
12849         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12850
12851         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12852
12853         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12854
12855         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12856
12857         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12858
12859         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12860
12861         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12862
12863         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12864
12865         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12866         (i386_ira_cover_classes): Ditto.
12867
12868         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12869
12870         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12871
12872         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12873
12874         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12875
12876         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12877
12878         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12879
12880         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12881         (mips_ira_cover_classes): Ditto.
12882
12883         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12884
12885         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12886
12887         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12888
12889         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12890
12891         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12892
12893         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12894         (IRA_COVER_CLASSES_VSX): Ditto.
12895
12896         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12897         (rs6000_ira_cover_classes): Ditto.
12898
12899         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12900
12901         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12902
12903         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12904
12905         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12906
12907         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12908
12909         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12910
12911         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12912
12913         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12914
12915         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12916
12917         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12918
12919 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
12920
12921         PR debug/48253
12922         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12923         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12924         dw_fde_unlikely_section_end_label, cold_in_std_section,
12925         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12926         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12927         fields.
12928         (output_fde): Use dw_fde_second_{begin,end} if second is
12929         true, otherwise dw_fde_{begin,end}.
12930         (output_call_frame_info): Test dw_fde_second_begin != NULL
12931         instead of dw_fde_switched_sections.
12932         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12933         fields, initialize new fields.  Initialize in_std_section
12934         unconditionally from the first partition.
12935         (dwarf2out_end_epilogue): Don't override dw_fde_end when
12936         dw_fde_second_begin is non-NULL.
12937         (dwarf2out_switch_text_section): Stop initializing removed
12938         dw_fde_struct fields, initialize new fields, initialize
12939         also dw_fde_end here.  Set dw_fde_switch_cfi even when
12940         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
12941         (struct var_loc_list_def): Add last_before_switch field.
12942         (arange_table, arange_table_allocated, arange_table_in_use,
12943         ARANGE_TABLE_INCREMENT, add_arange): Removed.
12944         (size_of_aranges): Count !in_std_section and !second_in_std_section
12945         hunks in fdes, instead of looking at arange_table_in_use.
12946         (output_aranges): Add aranges_length argument, don't call
12947         size_of_aranges here.  Instead of using aranges_table*
12948         emit ranges for fdes when !in_std_section resp.
12949         !second_in_std_section.
12950         (dw_loc_list): Break ranges crossing section switch.
12951         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
12952         use dw_fde_second_end instead of dw_fde_end as end of last range.
12953         (gen_subprogram_die): Don't call add_arange.  Use
12954         dw_fde_{begin,end} for first partition and if switched
12955         section dw_fde_second_{begin,end} for the second.
12956         (var_location_switch_text_section_1,
12957         var_location_switch_text_section): New functions.
12958         (dwarf2out_begin_function): Initialize cold_text_section even
12959         when function_section () isn't text_section.
12960         (prune_unused_types): Don't walk arange_table.
12961         (dwarf2out_finish): Don't needlessly test
12962         flag_reorder_blocks_and_partition when testing cold_text_section_used.
12963         If info_section_emitted, call size_of_aranges and if it indicates
12964         non-empty .debug_aranges, call output_aranges with the computed
12965         size.  Stop using removed dw_fde_struct fields, use
12966         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12967         for second.
12968
12969         PR debug/48203
12970         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12971         create ENTRY_VALUE if incoming or address of incoming's MEM
12972         is a hard REG.
12973         * dwarf2out.c (mem_loc_descriptor): Don't emit
12974         DW_OP_GNU_entry_value of DW_OP_fbreg.
12975         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12976         on ENTRY_VALUE is able to find the canonical parameter VALUE.
12977         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12978         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12979         ENTRY_VALUE_EXPs.
12980         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12981         is a REG_P or MEM_P with REG_P address, compute hash directly
12982         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12983         (preserve_only_constants): Don't clear VALUES forwaring
12984         ENTRY_VALUE to some other VALUE.
12985
12986 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
12987
12988         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12989         instead of GEN_INT.
12990
12991 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
12992
12993         * cfgexpand.c (expand_gimple_cond): Always set the source location and
12994         block before expanding the statement.
12995         (expand_gimple_stmt_1): Likewise.  Set them here...
12996         (expand_gimple_stmt): ...and not here.  Tidy.
12997         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12998         unknown.
12999
13000 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
13001
13002         * Makefile.in: New rule for cprop.o.
13003         * gcse.c: Move constant/copy propagation to cprop.c.
13004         (compute_local_properties): Only handle expression tables.
13005         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13006         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13007         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13008         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13009         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13010         compute_cprop_data, find_used_regs, try_replace_reg,
13011         find_avail_set, cprop_jump, constprop_register, cprop_insn,
13012         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13013         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13014         find_bypass_set, reg_killed_on_edge, bypass_block,
13015         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13016         execute_rtl_cprop, pass_rtl_cprop): Move to...
13017         * cprop.c: ...here.  New file, constant/copy propagation for RTL
13018         moved from gcse.c to here with minor cleanups in duplicated code.
13019
13020 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
13021
13022         * config/i386/i386.c (flag_opts): Fix a typo in
13023         -mavx256-split-unaligned-store.
13024
13025 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
13026
13027         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13028         LIBCALL_VALUE): Remove macros.
13029         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13030         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13031         (h8300_function_value, h8300_libcall_value,
13032         h8300_function_value_regno_p): New functions.
13033
13034 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
13035
13036         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13037
13038 2011-03-28  Jeff Law  <law@redhat.com>
13039
13040         * tree-ssa-threadupdate.c (redirect_edges): Call
13041         create_edge_and_update_destination_phis as needed.
13042         (create_edge_and_update_destination_phis): Accept new BB argument.
13043         All callers updated.
13044         (thread_block): Do not update the profile when threading around
13045         intermediate blocks.
13046         (thread_single_edge): Likewise.
13047         (determine_bb_domination_status): If BB is not a successor of the
13048         loop header, return NONDOMINATING.
13049         (register_jump_thread): Note when we register a jump thread around
13050         an intermediate block.
13051         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13052         (thread_across_edge): Use it.
13053
13054 2011-03-28  Tristan Gingold  <gingold@adacore.com>
13055
13056         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13057         when for_return is 2.
13058
13059 2011-03-28  Jeff Law  <law@redhat.com>
13060
13061         * var-tracking.c (canonicalize_values_mark): Delete unused
13062         lhs assignment.
13063         (canonicalize_values_star, set_variable_part): Likewise.
13064         (clobber_variable_part, delete_variable_part): Likewise.
13065
13066 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
13067
13068         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13069
13070 2011-03-28  Martin Jambor  <mjambor@suse.cz>
13071
13072         * tree-inline.c (expand_call_inline): Do not check that destination
13073         node is analyzed.
13074         (optimize_inline_calls): Assert that destination node is analyzed.
13075         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13076         not call tree_lowering_passes.
13077         * cgraph.h (cgraph_analyze_function): Declare.
13078         * cgraphunit.c (cgraph_analyze_function): Make public.
13079
13080 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
13081
13082         * config/sparc/sparc-opts.h: New.
13083         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13084         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13085         (sparc_option_override): Store processor_type enumeration rather
13086         than string in cpu_default.  Remove name and enumeration from
13087         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
13088         without using sparc_select.  Use target_flags_explicit instead of
13089         fpu_option_set.
13090         * config/sparc/sparc.h (enum processor_type): Move to
13091         sparc-opts.h.
13092         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13093         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13094         HeaderInclude entry.
13095         (mcpu=, mtune=): Use Var and Enum.
13096         (sparc_processor_type): New Enum and EnumValue entries.
13097
13098 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13099             Iain Sandoe  <iains@gcc.gnu.org>
13100
13101         PR target/48245
13102         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13103
13104 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
13105
13106         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13107         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13108         Insert new statements at it in lieu of STMT.
13109         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13110         * tree-vect-stmts.c (vectorizable_store): Likewise.
13111         (vectorizable_load): Likewise.
13112
13113 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
13114
13115         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13116         (divtf3): Ditto.
13117         (multf3): Ditto.
13118         (subtf3): Ditto.
13119
13120 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
13121
13122         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13123         unaligned 256bit load/store.
13124         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13125         (*avx_movdqu<avxmodesuffix>): Likewise.
13126
13127 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13128
13129         PR target/48288
13130         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13131         * config/pa/pa.md (iordi3): Use new predicate in expander.
13132         (iorsi3): Likewise.
13133
13134 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
13135
13136         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13137         FUNCTION_VALUE_REGNO_P): Remove macros.
13138         * config/mips/mips-protos.h (mips_function_value): Remove.
13139         * config/mips/mips.c (mips_function_value): Rename to...
13140         (mips_function_value_1): ... this. Make static.  Handle receiving
13141         the function type in 'fn_decl_or_type' argument.
13142         (mips_function_value, mips_libcall_value,
13143         mips_function_value_regno_p): New function.
13144         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13145         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13146
13147 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
13148
13149         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13150         and -mavx256-split-unaligned-store.
13151         (ix86_option_override_internal): Split 32-byte AVX unaligned
13152         load/store by default.
13153         (ix86_avx256_split_vector_move_misalign): New.
13154         (ix86_expand_vector_move_misalign): Use it.
13155
13156         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13157         -mavx256-split-unaligned-store.
13158
13159         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13160         256bit load/store.  Generate unaligned store on misaligned memory
13161         operand.
13162         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13163         256bit load/store.
13164         (*avx_movdqu<avxmodesuffix>): Likewise.
13165
13166         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13167         -mavx256-split-unaligned-store.
13168
13169 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
13170
13171         PR target/38598
13172         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13173         Update commentary.
13174
13175 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
13176
13177         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13178         opno arguments with an expand_operand.  Use create_input_operand.
13179         (mips_prepare_builtin_target): Delete.
13180         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13181         functions.
13182         (mips_expand_builtin_direct): Use create_output_operand and
13183         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
13184         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
13185         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13186
13187 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
13188
13189         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13190         function.
13191         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13192
13193 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
13194
13195         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13196         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
13197         basic blocks and call commit_edge_insertions directly.
13198         (fixup_abnormal_edges): Move from here to...
13199         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
13200         on the edges and return whether some have actually been inserted.
13201         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13202         compensation code.
13203
13204 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
13205
13206         PR rtl-optimization/48144
13207         * sel-sched-ir.c (merge_history_vect): Factor out from ...
13208         (merge_expr_data): ... here.
13209         (av_set_intersect): Rename to av_set_code_motion_filter.
13210         Update all callers.  Call merge_history_vect when an expression
13211         is found in both sets.
13212         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13213
13214 2011-03-26  Alan Modra  <amodra@gmail.com>
13215
13216         * config/rs6000/predicates.md (word_offset_memref_op): Handle
13217         cmodel medium addresses.
13218         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13219         64-bit gpr loads and stores.
13220         (rs6000_secondary_reload_ppc64): New function.
13221         * config/rs6000/rs6000-protos.h: Declare it.
13222         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13223
13224 2011-03-26  Alan Modra  <amodra@gmail.com>
13225
13226         PR target/47487
13227         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13228         GNU Go in traceback table.
13229
13230 2011-03-25  Richard Henderson  <rth@redhat.com>
13231
13232         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13233         if there are exactly 6 operands.
13234         (set_storage_via_setmem): Similarly.
13235
13236 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13237
13238         * collect2.c (write_c_file_stat): Handle backslash
13239         as right-hand directory separator.
13240         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13241         checking just for slash.
13242         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13243         instead of checking for trailing slash.
13244         * gcc.c (record_temp_file): Use filename_cmp instead
13245         of strcmp.
13246         (do_spec_1): Likewise.
13247         (replace_outfile_spec_function): Likewise.
13248         (is_directory): Use filename_ncmp instead of strncmp.
13249         (print_multilib_info): Likewise.
13250         * gcov.c (find_source): Use filename_cmp instead
13251         instead of strcmp.
13252         (make_gcov_file_name): Fix order of slash/backslash
13253         checks.
13254         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13255         (add_standard_paths): Likewise.
13256         * mips-tfile.c (saber_stop): Handle backslash.
13257         * prefix.c (update_path): Use filename_ncmp instead of
13258         strncmp.
13259         * profile.c (output_location): Use filename_cmp instead
13260         of strcmp.
13261         * read-md.c (handle_toplevel_file): Handle backslash.
13262         * tlink.c (frob_extension):  Likewise.
13263         * tree-cfg.c (same_line_p): Use filename_cmp instead of
13264         strcmp.
13265         * tree-dump.c (dequeue_and_dump): Handle backslash.
13266         * tree.c (get_file_function_name): Likewise.
13267         * gengtype.c (read_input_list): Likewise.
13268         (get_file_realbasename): Likewise.
13269         (get_output_file_with_visibility): Use filename_cmp
13270         instead of strcmp.
13271
13272 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
13273
13274         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13275         case to VFPv1.
13276
13277 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13278
13279         * fold-const.c (expr_location_or): New function.
13280         (fold_truth_not_expr): Call it.
13281
13282 2011-03-25  Jeff Law  <law@redhat.com>
13283
13284         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13285         va_end.
13286         * c-family/c-common.c (def_fn_type): Likewise.
13287         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13288         * emit-rtl.c (gen_rtvec): Likewise.
13289         * lto/lto-lang.c (def_fn_type): Likewise.
13290
13291 2011-03-25  Richard Guenther  <rguenther@suse.de>
13292
13293         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13294         also generate copies.
13295         (fini_copy_prop): Handle constant values properly.
13296
13297 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
13298
13299         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13300         mode size instead of bitsize with DWARF2_ADDR_SIZE.
13301         (hash_loc_operands, compare_loc_operands): Handle
13302         DW_OP_GNU_entry_value.
13303
13304 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13305
13306         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13307         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13308         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13309         comment and use macro TARGET_64BIT_MS_ABI instead.
13310         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13311         and change default behavior for 32-bit MS_ABI.
13312         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13313         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13314         32-bit, too.
13315         (ix86_cfun_abi): Likewise.
13316         (ix86_maybe_switch_abi): Adjust comment.
13317         (init_cumulative_args): Check for bit-ness in MS_ABI case.
13318         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13319         instead of checking for SYSV_ABI.
13320         (ix86_nsaved_sseregs): Likewise.
13321         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13322         to 16 bytes.
13323         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13324         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13325         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13326         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13327         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13328
13329 2011-03-25  Richard Guenther  <rguenther@suse.de>
13330
13331         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13332         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13333         (verify_gimple): Remove.
13334         * tree-cfg.c (verify_gimple_call): Merge verification
13335         from verify_stmts.
13336         (verify_gimple_phi): Merge verification from verify_stmts.
13337         (verify_gimple_label): New function.
13338         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13339         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13340         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13341         (verify_stmts): Rename to verify_gimple_in_cfg.
13342         (verify_gimple_in_cfg): New function.
13343         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13344         * tree-ssa.c (verify_ssa): Likewise.
13345         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13346
13347 2011-03-25  Richard Guenther  <rguenther@suse.de>
13348
13349         * passes.c (init_optimization_passes): Add FRE pass after
13350         early SRA.
13351
13352 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
13353             Andrew Stubbs  <ams@codesourcery.com>
13354
13355         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13356         for Cortex-A8.
13357         (arm_movdi_vfp_cortexa8): New pattern.
13358         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13359         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13360         instructions when tuning for Cortex-A8.  Set attribute "arch".
13361         * config/arm/arm.md: Move include arm-tune.md up a bit.
13362         (define_attr "arch"): Add "onlya8" and "nota8" values.
13363         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13364
13365 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
13366
13367         PR bootstrap/48282
13368         Revert:
13369         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13370
13371         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13372         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13373         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13374         * passes.c (init_optimization_passes): Move
13375         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13376
13377 2011-03-25  Kai Tietz  <ktietz@redhat.com>
13378
13379         * c-typeck.c (comptypes_internal): Replace target
13380         hook call of comp_type_attributes by version in tree.c file.
13381         * gimple.c (gimple_types_compatible_p_1): Likewise.
13382         * tree-ssa.c (useless_type_conversion_p): Likewise.
13383         * tree.c (build_type_attribute_qual_variant): Likewise.
13384         (attribute_value_equal): New static helper function.
13385         (comp_type_attributes): New function.
13386         (merge_attributes): Use attribute_value_equal for comparison.
13387         (attribute_list_contained): Likewise.
13388         * tree.h (comp_type_attributes): New prototype.
13389
13390 2011-03-25  Richard Guenther  <rguenther@suse.de>
13391
13392         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13393         of complex types at -O0.
13394         (verify_gimple_assign_binary): Likewise.
13395         (verify_gimple_assign_ternary): Likewise.
13396
13397 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13398
13399         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13400         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13401
13402 2011-03-24  Mark Wielaard  <mjw@redhat.com>
13403
13404         PR debug/48041
13405         * dwarf2out.c (output_abbrev_section): Only write table when
13406         abbrev_die_table_in_use > 1.
13407
13408 2011-02-24  Richard Henderson  <rth@redhat.com>
13409
13410         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13411         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13412         (alpha_expand_unaligned_load_words): Use extql.
13413         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13414         (emit_insxl): Handle all modes for consistency.
13415
13416 2011-02-24  Richard Henderson  <rth@redhat.com>
13417
13418         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13419         (alpha_expand_unaligned_load): Likewise.
13420         (alpha_expand_unaligned_store): Likewise.
13421         (alpha_expand_unaligned_load_words): Likewise.
13422         (alpha_expand_unaligned_store_words): Likewise.
13423         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13424         (alpha_split_lock_test_and_set_12): Likewise.
13425         (print_operand, alpha_fold_builtin_extxx): Likewise.
13426         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13427         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13428         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13429         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13430         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13431         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13432         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13433         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13434         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13435         (extwl, extll, extql): Similarly.
13436         (inswh, inslh, insqh): Similarly.
13437         (mskbl, mskwl, mskll, mskql): Similarly.
13438         (mskwh, msklh, mskqh): Similarly.
13439
13440 2011-02-24  Richard Henderson  <rth@redhat.com>
13441
13442         * config/alpha/alpha.md (attribute isa): Add er, ner.
13443         (attribute enabled): Handle them.
13444         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13445
13446 2011-02-24  Richard Henderson  <rth@redhat.com>
13447
13448         * config/alpha/alpha.md (attribute isa): Add vms.
13449         (attribute enabled): Handle it.
13450         (*movsf): Merge *movsf_{nofix,fix,nofp}.
13451         (*movdf): Merge *movdf_{nofix,fix,nofp}.
13452         (*movtf): Rename from *movtf_internal for consistency.
13453         (*movsi): Merge with *movsi_nt_vms.
13454         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13455         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13456         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13457         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13458
13459 2011-02-24  Richard Henderson  <rth@redhat.com>
13460
13461         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13462         (extendqisi2, extendhisi2): Likewise.
13463         (extendqidi2): Simplify BWX/non-BWX expansions.
13464         (extendhidi2): Similarly.
13465
13466 2011-02-24  Richard Henderson  <rth@redhat.com>
13467
13468         * config/alpha/alpha.md (attribute isa): New.
13469         (attribute enabled): New.
13470         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13471         (zero_extendqisi2, zero_extendqidi2): Similarly.
13472         (zero_extendhisi2, zero_extendhidi2): Similarly.
13473         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13474
13475 2011-02-24  Richard Henderson  <rth@redhat.com>
13476
13477         * config/alpha/predicates.md (input_operand): Revert last change;
13478         update comment to mention 32-bit VMS rather than Windows.
13479
13480 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13481
13482         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13483         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
13484         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13485         * passes.c (init_optimization_passes): Move
13486         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13487
13488 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13489
13490         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13491
13492 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13493
13494         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13495         correctly.
13496
13497 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
13498
13499         PR debug/48204
13500         * simplify-rtx.c (simplify_const_unary_operation): Call
13501         real_convert when changing mode class with FLOAT_EXTEND.
13502
13503 2011-03-24  Nick Clifton  <nickc@redhat.com>
13504
13505         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13506         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13507         * config/rx/rx.c (rx_option_override): Set align_jumps,
13508         align_loops and align_labels if not set by the user.
13509         (rx_align_for_label): New function.
13510         (rx_max_skip_for_label): New function.
13511         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13512         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13513         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13514         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13515         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13516
13517 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13518
13519         PR rtl-optimization/48263
13520         * optabs.c (expand_binop_directly): Reinstate convert_modes code
13521         and original commutative_p handling.  Use maybe_gen_insn.
13522
13523 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13524
13525         * reload.c (find_reloads_subreg_address): Add address_reloaded
13526         parameter and return true there if the full address has been
13527         reloaded.
13528         (find_reloads_toplev): Pass address_reloaded flag.
13529         (find_reloads_address_1): Don't use address_reloaded parameter.
13530
13531 2011-03-24  Jeff Law  <law@redhat.com>
13532
13533         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13534         unused variable "ann".
13535         (remove_unused_locals): Likewise.
13536
13537         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13538         statement.
13539
13540         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13541         after it is freed.
13542
13543 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13544
13545         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13546         for invalid symbolic addresses.
13547         (s390_secondary_reload): Don't use s390_check_symref_alignment for
13548         larl operands.
13549
13550 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13551
13552         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13553         the argument in calls to fold_truth_not_expr.
13554
13555 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13556
13557         * tree.c (record_node_allocation_statistics): New function.
13558         (make_node_stat, copy_node_stat, build_string): Call it.
13559         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13560         (build1_stat, build_omp_clause): Likewise.
13561
13562 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13563
13564         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13565         last commit.
13566
13567 2011-03-24  Richard Guenther  <rguenther@suse.de>
13568
13569         PR tree-optimization/48271
13570         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13571         blocks that still exist.
13572
13573 2011-03-24  Richard Guenther  <rguenther@suse.de>
13574
13575         PR tree-optimization/48270
13576         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13577         not free datarefs before ddrs.
13578
13579 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
13580
13581         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13582         from the address built for a reference with variable offset.
13583
13584 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
13585
13586         PR target/48237
13587         * config/i386/i386.md (*movdf_internal_rex64): Do not split
13588         alternatives that can be handled with movq or movabsq insn.
13589         (*movdf_internal): Disable for !TARGET_64BIT.
13590         (*movdf_internal_nointeger): Ditto.
13591         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13592
13593 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
13594
13595         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13596         (FUNCTION_ARG_ADVANCE): Likewise.
13597         * tm.texi.in: Change references to them to hook references.
13598         * tm.texi: Regenerate.
13599         * targhooks.c (default_function_arg): Eliminate check for target macro.
13600         (default_function_incoming_arg): Likewise.
13601         (default_function_arg_advance): Likewise.
13602         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13603         (function_arg_advance): Likewise.
13604         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13605
13606 2011-03-24  Richard Guenther  <rguenther@suse.de>
13607
13608         PR middle-end/48269
13609         * tree-object-size.c (addr_object_size): Do not double-account
13610         for MEM_REF offsets.
13611
13612 2011-03-24  Diego Novillo  <dnovillo@google.com>
13613
13614         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13615         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13616         (lto_input_data_block): Move from lto-opts.c.  Make extern.
13617         Update all users.
13618         (lto_input_string): Rename from input_string.  Make extern.
13619         Update all users.
13620         * lto-streamer-out.c (lto_output_string_with_length): Rename from
13621         output_string_with_length.
13622         Output 0 to indicate a non-NULL string.  Update all callers to
13623         not emit 0.
13624         (lto_output_string): Rename from output_string.  Make extern.
13625         Update all users.
13626         (lto_output_decl_state_streams): Make extern.
13627         (lto_output_decl_state_refs): Make extern.
13628         * lto-streamer.h (lto_input_string): Declare.
13629         (lto_input_data_block): Declare.
13630         (lto_output_string): Declare.
13631         (lto_output_string_with_length): Declare.
13632         (lto_output_decl_state_streams): Declare.
13633         (lto_output_decl_state_refs): Declare.
13634
13635 2011-03-24  Richard Guenther  <rguenther@suse.de>
13636
13637         PR tree-optimization/46562
13638         * tree.c (build_invariant_address): New function.
13639         * tree.h (build_invariant_address): Declare.
13640         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13641         a renamed function moved ...
13642         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13643         Take valueization callback parameter.
13644         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13645         * gimple-fold.h: New file.
13646         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13647         (ccp_fold, fold_const_aggregate_ref,
13648         fold_ctor_reference, fold_nonarray_ctor_reference,
13649         fold_array_ctor_reference, fold_string_cst_ctor_reference,
13650         get_base_constructor): Move ...
13651         * gimple-fold.c: ... here.
13652         (gimple_fold_stmt_to_constant_1): New function
13653         split out from ccp_fold.  Take a valueization callback parameter.
13654         Valueize all operands.
13655         (gimple_fold_stmt_to_constant): New wrapper function.
13656         (fold_const_aggregate_ref_1): New function split out from
13657         fold_const_aggregate_ref.  Take a valueization callback parameter.
13658         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13659         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13660         invariant POINTER_PLUS_EXPRs to invariant form.
13661         (vn_valueize): New function.
13662         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13663         * tree-vrp.c (vrp_valueize): New function.
13664         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13665         to fold statements to constants.
13666         * tree-ssa-pre.c (eliminate): Properly guard propagation of
13667         function declarations.
13668         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13669         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13670
13671 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
13672
13673         * config/h8300/predicates.md (jump_address_operand): Fix register
13674         mode check.
13675
13676 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
13677
13678         * doc/invoke.texi (max-stores-to-sink): Document.
13679         * params.h (MAX_STORES_TO_SINK): Define.
13680         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13681         if either vectorization or if-conversion is disabled.
13682         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13683         tree-vect-data-refs.c vect_equal_offsets.
13684         (dr_equal_offsets_p): New function.
13685         (find_data_references_in_bb): Remove static.
13686         * tree-data-ref.h (find_data_references_in_bb): Declare.
13687         (dr_equal_offsets_p): Likewise.
13688         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13689         (vect_drs_dependent_in_basic_block): Update calls to
13690         vect_equal_offsets.
13691         (vect_check_interleaving): Likewise.
13692         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13693         (cond_if_else_store_replacement): Rename to...
13694         (cond_if_else_store_replacement_1): ... this.  Change arguments and
13695         documentation.
13696         (cond_if_else_store_replacement): New function.
13697         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13698         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13699
13700 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
13701
13702         PR target/46934
13703         * config/arm/arm.md (casesi): Use the gen_int_mode() function
13704         to subtract lower bound instead of GEN_INT().
13705
13706 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
13707
13708         PR other/48179
13709         PR other/48221
13710         PR other/48234
13711         * doc/extend.texi (Alignment): Move section to match order in TOC.
13712         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13713         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13714
13715 2011-03-23  Jeff Law  <law@redhat.com>
13716
13717         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13718         before removing the edge.
13719
13720         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13721         it may have been freed by redirect_branch_edge or
13722         redirect_edge_succ_nodup.
13723
13724 2011-03-23  Richard Guenther  <rguenther@suse.de>
13725
13726         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13727         (check_va_list_escapes): Likewise.
13728         (check_all_va_list_escapes): Likewise.
13729
13730 2011-03-23  Richard Guenther  <rguenther@suse.de>
13731
13732         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13733         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13734         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13735         (alias.o): Likewise.
13736         (ipa-type-escape.o): Remove.
13737         (ipa-struct-reorg.o): Likewise.
13738         (GTFILES): Remove ipa-struct-reorg.c.
13739         * alias.c: Do not include ipa-type-escape.h.
13740         * tree-ssa-alias.c: Likewise.
13741         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13742         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13743         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13744         and ipa-type-escape passes.
13745         * tree-pass.h (pass_ipa_type_escape): Remove.
13746         (pass_ipa_struct_reorg): Likewise.
13747         * ipa-struct-reorg.h: Remove.
13748         * ipa-struct-reorg.c: Likewise.
13749         * ipa-type-escape.h: Likewise.
13750         * ipa-type-escape.c: Likewise.
13751         * doc/invoke.texi (-fipa-struct-reorg): Remove.
13752         (--param struct-reorg-cold-struct-ratio): Likewise.
13753         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13754         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13755         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13756
13757 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13758
13759         * config/s390/2084.md: Enable all insn reservations also for z9_ec
13760         cpu attribute value.
13761         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13762         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13763         * config/s390/s390.c (processor_flags_table): New constant array.
13764         (s390_handle_arch_option): Remove.
13765         (s390_handle_option): Remove s390_handle_arch_option invocations
13766         and OPT_mwarn_framesize_ handling.
13767         (s390_option_override): Remove s390_handle_arch_option invocation.
13768         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13769         warnings.
13770         * config/s390/s390.md (cpu attribute): Add z9_ec value.
13771         * config/s390/s390.opt (s390_tune, s390_arch)
13772         (march=): Replace s390_arch_option enum and values with
13773         processor_type.  Set variable name to s390_arch.  Set
13774         initialization value.
13775         (mtune=): Replace s390_arch_option with processor_type.  Set
13776         variable name to s390_tune.  Set initialization value.
13777
13778 2011-03-23  Julian Brown  <julian@codesourcery.com>
13779
13780         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13781         accesses which are not naturally aligned.
13782
13783 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13784
13785         PR target/47553
13786         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13787
13788 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
13789
13790         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13791         parameter from "int" to "enum insn_code".
13792         (expand_operand_type): New enum.
13793         (expand_operand): New structure.
13794         (create_expand_operand): New function.
13795         (create_fixed_operand, create_output_operand): Likewise
13796         (create_input_operand, create_convert_operand_to): Likewise.
13797         (create_convert_operand_from, create_address_operand): Likewise.
13798         (create_integer_operand): Likewise.
13799         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13800         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13801         (expand_insn, expand_jump_insn): Likewise.
13802         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13803         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13804         (expand_movstr, expand_builtin___clear_cache): Likewise.
13805         (expand_builtin_lock_release): Likewise.
13806         * explow.c (allocate_dynamic_stack_space): Likewise.
13807         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
13808         and use the default handling in that case.
13809         * expmed.c (check_predicate_volatile_ok): Delete.
13810         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13811         (emit_cstore): Likewise.
13812         * expr.c (emit_block_move_via_movmem): Likewise.
13813         (set_storage_via_setmem, expand_assignment): Likewise.
13814         (emit_storent_insn, try_casesi): Likewise.
13815         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
13816         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13817         (expand_vec_shift_expr, expand_binop_directly): Likewise.
13818         (expand_twoval_unop, expand_twoval_binop): Likewise.
13819         (expand_unop_direct, emit_indirect_jump): Likewise.
13820         (emit_conditional_move, vector_compare_rtx): Likewise.
13821         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13822         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13823         (expand_sync_lock_test_and_set): Likewise.
13824         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
13825         (emit_unop_insn): Likewise.
13826         (expand_copysign_absneg): Change icode to an insn_code.
13827         (create_convert_operand_from_type): New function.
13828         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13829         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13830         (expand_insn, expand_jump_insn): Likewise.
13831         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13832         than const_int_operand for operand 2.
13833
13834 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13835
13836         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13837         if possible.
13838
13839 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13840
13841         * emit-rtl.c (emit_pattern_before_noloc): New function.
13842         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13843         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13844         (emit_pattern_after_noloc): New function.
13845         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13846         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13847
13848 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
13849
13850         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13851         (__ffsDI2): Likewise.
13852
13853 2011-03-22  Richard Henderson  <rth@redhat.com>
13854
13855         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13856         of !TARGET_ABI_OPEN_VMS.
13857         (alpha_trampoline_init, alpha_start_function): Likewise.
13858         (alpha_expand_epilogue, alpha_file_start): Likewise.
13859         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13860         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13861         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13862         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13863         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13864
13865 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13866
13867         * config/s390/s390-opts.h: New.
13868         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13869         s390_arch_flags, s390_warn_framesize, s390_stack_size,
13870         s390_stack_guard): Remove.
13871         (s390_handle_arch_option): Return void.  Take enum
13872         s390_arch_option value instead of string and searching array.
13873         (s390_handle_option): Don't assert that global structures are in
13874         use.  Access variables via opts pointer.  Use error_at.  Don't use
13875         sscanf for -mstack-guard= or -mstack-size=.  Update call to
13876         s390_handle_arch_option.
13877         (s390_option_override): Update call to s390_handle_arch_option.
13878         (s390_emit_prologue): Use %d format for s390_stack_size in
13879         diagnostic.  Use %wd for HOST_WIDE_INT.
13880         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13881         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13882         * config/s390/s390.opt (config/s390/s390-opts.h): New
13883         HeaderInclude entry.
13884         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13885         s390_arch_flags, s390_warn_framesize): New Variable entries.
13886         (s390_arch_option): New Enum and EnumValue entries.
13887         (march=): Use Enum instead of Var.
13888         (mstack-guard=, mstack-size=): Use UInteger and Var.
13889         (mtune=): Use Enum.
13890
13891 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13892
13893         * config/score/score.c (score_handle_option): Don't assert that
13894         global structures are in use.  Access target_flags via opts
13895         pointer.  Use value of -march= option to determine target_flags
13896         settings.
13897         * config/score/score.opt (march=): Use Enum.
13898         (score_arch): New Enum and EnumValue entries.
13899
13900 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13901
13902         * config/mep/mep.c (option_mtiny_specified): Remove.
13903         (mep_option_override): Move register handling for -mivc2 from
13904         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
13905         instead of option_mtiny_specified.
13906         (mep_handle_option): Access target_flags via opts pointer.  Don't
13907         assert that global structures are in use.  Defer part of -mivc2
13908         handling and move it to mep_option_override.
13909         * config/mep/mep.opt (IVC2): New Mask entry.
13910         (mivc2): Use Var and Defer instead of Mask.
13911
13912 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13913
13914         * config/v850/v850-opts.h: New.
13915         * config/v850/v850.c (small_memory): Replace with
13916         small_memory_physical_max array.  Make that array static const.
13917         (v850_handle_memory_option): Take integer value of argument.  Take
13918         gcc_options pointer, option text and location.  Return void.
13919         Update for changes to small memory structures.
13920         (v850_handle_option): Access target_flags via opts pointer.  Don't
13921         assert that global structures are in use.  Update calls to
13922         v850_handle_memory_option.
13923         (v850_encode_data_area): Update references to small memory settings.
13924         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13925         (enum small_memory_type): Move to v850-opts.h.
13926         * config/v850/v850.opt (config/v850/v850-opts.h): New
13927         HeaderInclude entry.
13928         (small_memory_max): New Variable entry.
13929         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
13930         (mtda, mzda): Likewise.
13931
13932 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13933
13934         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13935         pointer.  Don't assert that global structures are in use.
13936
13937 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13938
13939         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13940         via opts pointer.  Don't assert that global structures are in use.
13941
13942 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13943
13944         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13945         (munix=93): Use Var.
13946         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13947         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13948         * config/pa/pa-opts.h: New.
13949         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13950         (pa_handle_option): Don't assert that global structures are in
13951         use.  Access target_flags via opts pointer.  Don't handle
13952         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13953         OPT_munix_98 here.
13954         (pa_option_override): Handle deferred OPT_mfixed_range_.
13955
13956 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13957
13958         * config/mn10300/mn10300-opts.h: New.
13959         * config/mn10300/mn10300.c (mn10300_processor,
13960         mn10300_tune_string): Remove.
13961         (mn10300_handle_option): Don't assert that global structures are
13962         in use.  Access mn10300_processor via opts pointer.  Don't handle
13963         OPT_mtune_ here.
13964         * config/mn10300/mn10300.h (enum processor_type): Move to
13965         mn10300-opts.h.
13966         (mn10300_processor): Remove.
13967         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13968         HeaderInclude entry.
13969         (mn10300_processor): New Variable entry.
13970         (mtune=): Use Var.
13971
13972 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13973
13974         * config/microblaze/microblaze.c: Don't include opts.h.
13975         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13976         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13977         (mno-clearbss): Use Var and Warn.
13978
13979 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13980
13981         * config/m32r/m32r-opts.h: New.
13982         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13983         (m32r_handle_option): Don't assert that global structures are in
13984         use.  Access target_flags and m32r_cache_flush_func via opts
13985         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
13986         OPT_mno_flush_trap here.
13987         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13988         include of m32r-opts.h.
13989         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13990         HeaderInclude entry.
13991         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13992         (mmodel=): Use Enum and Var.
13993         (m32r_model): New Enum and EnumValue entries.
13994         (mno-flush-trap): Use Var.
13995         (msdata=): Use Enum and Var.
13996         (m32r_sdata): New Enum and EnumValue entries.
13997
13998 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
13999
14000         * config/m32c/m32c.c: Don't include opts.h.
14001         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14002         m32c_handle_option): Remove.
14003         (m32c_option_override): Check global_options_set.x_target_memregs
14004         instead of target_memregs_set.
14005         * config/m32c/m32c.h (target_memregs): Remove.
14006         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14007         variable.
14008
14009 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14010
14011         * config/iq2000/iq2000-opts.h: New.
14012         * config/iq2000/iq2000.c: Don't include opts.h.
14013         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14014         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14015         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14016         HeaderInclude entry.
14017         (iq2000_tune): New Variable entry.
14018         (march=): Add comment.  Use Enum.
14019         (iq2000_arch): New Enum and EnumValue entries.
14020         (mcpu=): Use Enum and Var.
14021         (iq2000_tune): New Enum and EnumValue entries.
14022
14023 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14024
14025         * config/ia64/ia64-opts.h: New.
14026         * config/ia64/ia64.c (ia64_tune): Remove.
14027         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14028         here.  Use error_at.
14029         (ia64_option_override): Handle deferred OPT_mfixed_range_.
14030         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14031         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14032         HeaderInclude entry.
14033         (ia64_tune): New Variable entry.
14034         (mfixed-range=): Use Defer and Var.
14035         (mtune=): Use Enum and Var.
14036         (ia64_tune): New Enum and EnumValue entries.
14037
14038 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14039
14040         * config/frv/frv-opts.h: New.
14041         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14042         frv-opts.h.
14043         (frv_cpu_type): Remove.
14044         * config/frv/frv.c: Don't include opts.h.
14045         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
14046         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
14047         (frv_cpu_type): New Variable entry.
14048         (frv_cpu): New Enum and EnumValue entries.
14049
14050 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14051
14052         * config/cris/cris.c (cris_handle_option): Access target_flags via
14053         opts pointer.  Don't assert that global structures are in use.
14054         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14055         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14056
14057 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14058
14059         * config/bfin/bfin-opts.h: New.
14060         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14061         bfin_si_revision, bfin_workarounds): Remove.
14062         (bfin_cpus): Make static const.
14063         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14064         not bfin_lib_id_given.
14065         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
14066         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
14067         pointer. Use error_at.  Don't assert that global structures are in use.
14068         * config/bfin/bfin.h: Include bfin-opts.h.
14069         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14070         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14071         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14072         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14073         entries.
14074
14075 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14076
14077         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14078         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14079         or -msoft-float here.
14080         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14081         -msoft-float and -mhard-float.
14082         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
14083         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14084         msoft-float.
14085         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14086         -msoft-float.
14087         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14088         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14089         not mhard-float.
14090         (LIBGCC_SPEC): Don't handle -msoft-float.
14091         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14092         -mhard-float.
14093         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14094         msoft-float.
14095         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14096         -mfloat-abi=*, not -msoft-float and -mhard-float.
14097         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14098         -msoft-float.
14099         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14100         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14101         mhard-float and msoft-float.
14102         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14103         mfloat-abi=soft in comments, not mhard-float and msoft-float.
14104         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14105         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14106         mhard-float.
14107         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14108         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14109         msoft-float.
14110         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14111         not mhard-float.
14112         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14113         not msoft-float.
14114
14115 2011-03-22  Richard Henderson  <rth@redhat.com>
14116
14117         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14118         TARGET_ABI_WINDOWS_NT.
14119         (alpha_output_function_end_prologue): Likewise.
14120         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14121         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14122         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14123         (trap, *movsi_nt_vms): Likewise.
14124         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14125         (*tablejump_osf_nt_internal): Remove.
14126         * config/alpha/predicates.md (input_operand): Only test Pmode.
14127
14128 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14129
14130         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14131         via opts pointer.  Use error_at.  Don't assert that global
14132         structures are in use.
14133
14134 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14135
14136         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14137         (ix86_handle_option): Access ix86_isa_flags and
14138         ix86_isa_flags_explicit via opts pointer.  Don't assert that
14139         global structures are in use.
14140         (ix86_function_specific_save, ix86_function_specific_restore):
14141         Update ix86_isa_flags_explicit field name.
14142         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14143         (ix86_isa_flags_explicit): Rename TargetSave entry to
14144         x_ix86_isa_flags_explicit.
14145
14146 2011-03-22  Richard Henderson  <rth@redhat.com>
14147
14148         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14149         (alpha_option_override, direct_return): Likewise.
14150         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14151         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14152         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14153         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14154         (alpha_expand_epilogue, alpha_end_function): Likewise.
14155         (alpha_init_libfuncs): Likewise.
14156         (struct machine_function): Remove unicosmk members.
14157         (print_operand) ['t']: Remove.
14158         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14159         unicosmk_output_module_name, unicosmk_output_common,
14160         current_section_align, unicosmk_output_text_section_asm_op,
14161         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14162         unicosmk_section_type_flags, unicosmk_unique_section,
14163         unicosmk_asm_named_section, unicosmk_insert_attributes,
14164         unicosmk_output_align, unicosmk_defer_case_vector,
14165         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14166         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14167         unicosmk_output_ssib, unicosmk_add_call_info_word,
14168         unicosmk_extern_head, unicosmk_output_default_externs,
14169         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14170         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14171         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14172         * config/alpha/alpha-protos.h: Update.
14173         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14174         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14175         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14176         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14177         (*mulsi_se, mulvsi3): Likewise.
14178         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14179         (*divmodsi_internal, call, call_value, realign): Likewise.
14180         (moddi3, umoddi3): Likewise; remove duplicate expander.
14181         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14182         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14183         (*movdi_nofix): Remove r/U alternative.
14184         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14185         * config/alpha/constraints.md ("U"): Remove.
14186         * config/alpha/predicates.md (call_operand"): Don't test
14187         TARGET_ABI_UNICOSMK.
14188
14189 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14190
14191         * target.def (handle_option): Take gcc_options and
14192         cl_decoded_option pointers and location_t.
14193         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14194         * doc/tm.texi: Regenerate.
14195         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14196         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14197         * lto-opts.c (lto_reissue_options): Generate option structure for
14198         targetm.handle_option call.
14199         * opts.c (target_handle_option): Update call to
14200         targetm.handle_option.  Remove assertions about values now passed
14201         down to hook.
14202         * targhooks.c (default_target_handle_option): New.
14203         * targhooks.h (default_target_handle_option): Declare.
14204         * config/alpha/alpha.c: Include opts.h.
14205         (alpha_handle_option): Update to new hook interface.
14206         * config/arm/arm.c: Include opts.h.
14207         (arm_handle_option): Update to new hook interface.
14208         * config/arm/t-arm (arm.o): Update dependencies.
14209         * config/bfin/bfin.c: Include opts.h.
14210         (bfin_handle_option): Update to new hook interface.
14211         * config/cris/cris.c: Include opts.h.
14212         (cris_handle_option): Update to new hook interface.
14213         * config/frv/frv.c: Include opts.h.
14214         (frv_handle_option): Update to new hook interface.
14215         * config/i386/i386.c: Include opts.h.
14216         (ix86_handle_option): Update to new hook interface.
14217         (ix86_valid_target_attribute_inner_p): Generate option structure
14218         for call to ix86_handle_option.
14219         * config/i386/t-i386 (i386.o): Update dependencies.
14220         * config/ia64/ia64.c: Include opts.h.
14221         (ia64_handle_option): Update to new hook interface.
14222         * config/ia64/t-ia64 (ia64.o): Update dependencies.
14223         * config/iq2000/iq2000.c: Include opts.h.
14224         (iq2000_handle_option): Update to new hook interface.
14225         * config/m32c/m32c.c: Include opts.h.
14226         (m32c_handle_option): Update to new hook interface.
14227         * config/m32r/m32r.c: Include opts.h.
14228         (m32r_handle_option): Update to new hook interface.
14229         * config/m68k/m68k.c: Include opts.h.
14230         (m68k_handle_option): Update to new hook interface.
14231         * config/mep/mep.c: Include opts.h.
14232         (mep_handle_option): Update to new hook interface.
14233         * config/microblaze/microblaze.c: Include opts.h.
14234         (microblaze_handle_option): Update to new hook interface.
14235         * config/mips/mips.c: Include opts.h.
14236         (mips_handle_option): Update to new hook interface.
14237         * config/mn10300/mn10300.c: Include opts.h.
14238         (mn10300_handle_option): Update to new hook interface.
14239         * config/pa/pa.c: Include opts.h.
14240         (pa_handle_option): Update to new hook interface.
14241         * config/pdp11/pdp11.c: Include opts.h.
14242         (pdp11_handle_option): Update to new hook interface.
14243         * config/rs6000/rs6000.c: Include opts.h.
14244         (rs6000_handle_option): Update to new hook interface.
14245         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14246         * config/rx/rx.c: Include opts.h.
14247         (rx_handle_option): Update to new hook interface.
14248         * config/s390/s390.c: Include opts.h.
14249         (s390_handle_option): Update to new hook interface.
14250         * config/score/score.c: Include opts.h.
14251         (score_handle_option): Update to new hook interface.
14252         * config/sh/sh.c: Include opts.h.
14253         (sh_handle_option): Update to new hook interface.
14254         * config/sparc/sparc.c: Include opts.h.
14255         (sparc_handle_option): Update to new hook interface.
14256         * config/v850/v850.c: Include opts.h.
14257         (v850_handle_option): Update to new hook interface.
14258
14259 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14260
14261         * gcc.c (driver_unknown_option_callback): Only permit and save
14262         unknown -Wno- options.
14263         (driver_wrong_lang_callback): Save options directly instead of via
14264         driver_unknown_option_callback.
14265
14266 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14267
14268         * combine.c (simplify_set): Try harder to find the best CC mode when
14269         simplifying a nested COMPARE on the RHS.
14270
14271 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
14272
14273         * config/alpha/gnu.h: Remove.
14274         * config/arc: Remove directory.
14275         * config/arm/netbsd.h: Remove.
14276         * config/arm/t-pe: Remove.
14277         * config/crx: Remove directory.
14278         * config/i386/netbsd.h: Remove.
14279         * config/m68hc11: Remove directory.
14280         * config/m68k/uclinux-oldabi.h: Remove.
14281         * config/mcore/mcore-pe.h: Remove.
14282         * config/mcore/t-mcore-pe: Remove.
14283         * config/netbsd-aout.h: Remove.
14284         * config/rs6000/gnu.h: Remove.
14285         * config/sh/sh-symbian.h: Remove.
14286         * config/sh/symbian-base.c: Remove.
14287         * config/sh/symbian-c.c: Remove.
14288         * config/sh/symbian-cxx.c: Remove.
14289         * config/sh/symbian-post.h: Remove.
14290         * config/sh/symbian-pre.h: Remove.
14291         * config/sh/t-symbian: Remove.
14292         * config/svr3.h: Remove.
14293         * config/vax/netbsd.h: Remove.
14294         * config.build: Don't handle i[34567]86-*-pe.
14295         * config.gcc: Remove handling of deprecations for most deprecated
14296         targets.
14297         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14298         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14299         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14300         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14301         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14302         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14303         Remove cases.
14304         * config.host: Don't handle i[34567]86-*-pe.
14305         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14306         (ASM_SPEC32): Don't handle -mcall-gnu.
14307         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14308         -mcall-gnu.
14309         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14310         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14311         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14312         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14313         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14314         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14315         conditional on SYMBIAN.
14316         * configure.ac: Don't handle powerpc*-*-gnu*.
14317         * configure: Regenerate.
14318         * doc/extend.texi (interrupt attribute): Don't mention CRX.
14319         * doc/install-old.texi (m6811, m6812): Don't mention.
14320         * doc/install.texi (arc-*-elf*): Don't document multilib option.
14321         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14322         (m68k-uclinuxoldabi): Don't mention.
14323         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14324         Remove.
14325         (-mcall-gnu): Remove.
14326         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14327         families): Remove constraint documentation.
14328
14329 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
14330
14331         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14332         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14333         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14334
14335 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14336
14337         PR target/48226
14338         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14339         vector when peeking at the next token for vector, don't expand the
14340         keywords.
14341
14342 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
14343
14344         * config/avr/avr-protos.h (expand_epilogue): Change prototype
14345         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14346         * config/avr/avr.c (init_cumulative_args)
14347         (avr_function_arg_advance): Use it.
14348         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14349         sibcall epilogues.
14350         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14351         (avr_function_ok_for_sibcall): ...this new function.
14352         (avr_lookup_function_attribute1): New static Function.
14353         (avr_naked_function_p, interrupt_function_p)
14354         (signal_function_p, avr_OS_task_function_p)
14355         (avr_OS_main_function_p): Use it.
14356         * config/avr/avr.md ("sibcall", "sibcall_value")
14357         ("sibcall_epilogue"): New expander.
14358         ("*call_insn", "*call_value_insn"): New insn.
14359         ("call_insn", "call_value_insn"): Remove
14360         ("call", "call_value", "epilogue"): Change expander to handle
14361         sibling calls.
14362
14363 2011-03-21  Nick Clifton  <nickc@redhat.com>
14364
14365         * doc/invoke.texi (Overall Options): Move closing brace to end of
14366         options list.
14367         (Optimization Options): Add missing @gol.
14368         (Directory Options): Likewise.
14369         (i386 and x86-64 Options): Likewise.
14370         (RS6000 and PowerPC Options): Likewise.
14371         (i386 and x86-64 Windows Options): Likewise.
14372         (V850 Options): Add text missing from descriptions.
14373
14374 2011-03-22  Richard Henderson  <rth@redhat.com>
14375
14376         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14377         (avr_incoming_return_addr_rtx): New.
14378         (emit_push_byte): New.
14379         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
14380         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
14381         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
14382         (emit_pop_byte): New.
14383         (expand_epilogue): Use it.  Pop frame pointer by bytes.
14384         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14385         (INCOMING_RETURN_ADDR_RTX): New.
14386         (INCOMING_FRAME_SP_OFFSET): New.
14387         (ARG_POINTER_CFA_OFFSET): New.
14388         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14389         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14390         (pophi): Remove.
14391
14392         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14393
14394 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14395
14396         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14397         (FUNCTION_ARG_ADVANCE): Likewise.
14398         * tm.texi.in: Change references to them to hook references.
14399         * tm.texi: Regenerate.
14400         * targhooks.c (default_function_arg): Eliminate check for target
14401         macro.
14402         (default_function_incoming_arg): Likewise.
14403         (default_function_arg_advance): Likewise.
14404         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14405         (function_arg_advance): Likewise.
14406         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14407
14408 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
14409
14410         * tree.c (build_call_1): New function.
14411         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14412
14413 2011-03-22  Richard Guenther  <rguenther@suse.de>
14414
14415         PR tree-optimization/48228
14416         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14417         for single-arg PHIs.
14418
14419 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
14420
14421         PR rtl-optimization/48143
14422         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14423         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14424         sse2_cvtps2pd): Likewise.
14425
14426 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14427
14428         * recog.c (canonicalize_change_group): Use validate_unshare_change.
14429
14430 2011-03-22  Richard Guenther  <rguenther@suse.de>
14431
14432         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14433         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14434         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14435         and REALIGN_LOAD_EXPR.
14436         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14437         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14438         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14439         DOT_PROD_EXPR case ...
14440         (expand_expr_real_2): ... here.
14441         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14442         and REALIGN_LOAD_EXPR.
14443         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14444         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14445         (vect_create_epilog_for_reduction): Likewise.
14446         (vectorizable_reduction): Likewise.
14447         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14448         * tree-vect-stmts.c (vectorizable_load): Likewise.
14449
14450 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
14451
14452         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14453
14454 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14455
14456         * config/s390/s390.c (s390_delegitimize_address): Fix offset
14457         handling for PLTOFF/GOTOFF.
14458
14459 2011-03-22  Nick Clifton  <nickc@redhat.com>
14460
14461         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14462         trailing backslash from the end of the macro definition.
14463
14464 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14465
14466         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14467         and PLT unspecs.
14468
14469 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
14470
14471         * expr.h (prepare_operand): Move to...
14472         * optabs.h (prepare_operand): ...here and change the insn code
14473         parameter from "int" to "enum insn_code".
14474         (insn_operand_matches): Declare.
14475         * expr.c (init_expr_target): Use insn_operand_matches.
14476         (compress_float_constant): Likewise.
14477         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14478         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14479         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14480         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14481         Likewise.
14482         (gen_cond_trap): Likewise.
14483         (prepare_operand): Likewise.  Change icode to an insn_code.
14484         (insn_operand_matches): New function.
14485         * reload.c (find_reloads_address_1): Use insn_operand_matches.
14486         * reload1.c (gen_reload): Likewise.
14487         * targhooks.c (default_secondary_reload): Likewise.
14488
14489 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14490
14491         * config/alpha/alpha.md (unspec): New define_c_enum.
14492         (unspecv): Ditto.
14493
14494 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
14495
14496         PR debug/48214
14497         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14498         between a call and its CALL_ARG_LOCATION note.
14499
14500 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
14501
14502         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14503
14504 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14505
14506         PR c/42544
14507         PR c/48197
14508         * c-common.c (shorten_compare): If primopN is first sign-extended
14509         to opN and then zero-extended to result type, set primopN to opN.
14510
14511 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
14512
14513         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14514         for barrier handlers.
14515
14516 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14517
14518         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14519         UNSPEC constants to be in the unspec enumeration, and redefine
14520         all UNSPECV constants to be in the unspecv enumeration, so that
14521         dumps print which unspec/unspec_volatile this is.
14522         * config/rs6000/vector.md (UNSPEC_*): Ditto.
14523         * config/rs6000/paired.md (UNSPEC_*): Ditto.
14524         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14525         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14526         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14527
14528         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14529         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14530         UNSPECV_LWSYNC, since these are used as unspec_volatile.
14531         * config/rs6000/sync.md (isync, lwsync): Ditto.
14532
14533 2011-03-21  Richard Guenther  <rguenther@suse.de>
14534
14535         * params.def (lto-min-partition): Fix typo.
14536
14537 2011-03-21  Richard Guenther  <rguenther@suse.de>
14538
14539         PR c/47939
14540         * c-decl.c (grokdeclarator): Drop to the main variant only
14541         for array types.  Drop flag_gen_aux_info check.
14542
14543 2011-03-21  Richard Guenther  <rguenther@suse.de>
14544
14545         PR translation/47911
14546         * params.def (lto-partitions): Fix typo.
14547         (lto-min-partition): Fix wording.
14548
14549 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
14550
14551         * config/rs6000/t-freebsd: Remove duplication from file.
14552
14553 2011-03-21  Richard Guenther  <rguenther@suse.de>
14554
14555         PR middle-end/47661
14556         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14557
14558 2011-03-21  Richard Guenther  <rguenther@suse.de>
14559
14560         PR lto/48210
14561         * params.def (lto-partitions): Require at least 1 partition.
14562
14563 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14564
14565         * gthr-solaris.h: Remove.
14566         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14567         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14568         (LIB_SPEC): Likewise.
14569         * config/sol2.opt (threads): Remove.
14570         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14571         (sparc*-*-solaris2*): Likewise.
14572         * configure.ac (enable_threads): Enable solaris support.
14573         * configure: Regenerate.
14574         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14575         * doc/install.texi (Configuration, --enable-threads=lib): Remove
14576         solaris.
14577
14578 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14579
14580         * config.gcc: Obsolete *-*-solaris2.8*.
14581         * doc/install.texi (Specific, *-*-solaris2*): Document it.
14582
14583 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14584
14585         PR bootstrap/48135
14586         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14587         reference.  Solaris 8 perl works.
14588
14589 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14590
14591         PR bootstrap/48135
14592         * doc/install.texi (Prerequisites): Move jar etc. up.
14593         Explain support library version requirements.
14594
14595 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14596
14597         PR bootstrap/48135
14598         * doc/install.texi (Prerequisites): Move Perl to build
14599         requirements.  Always necessary on Solaris 2 with Sun ld.
14600
14601 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14602
14603         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14604         binutils 2.21.
14605         (Specific, i?86-*-solaris2.[89]): Likewise.
14606         (Specific, i?86-*-solaris2.10): Likewise.
14607         (Specific, mips-sgi-irix6): Likewise.
14608         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14609         Update for binutils 2.21.
14610
14611 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14612
14613         * configure.ac (gcc_cv_lto_plugin): Fix typo.
14614         Allow -fuse-linker-plugin for non-default plugin linker.
14615         * configure: Regenerate.
14616
14617 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14618
14619         PR bootstrap/48167
14620         * gengtype.c (files_rules): Added rule for cp/parser.h.
14621
14622 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
14623
14624         PR target/48213
14625         * config/s390/s390.c (s390_delegitimize_address): Don't call
14626         lowpart_subreg if orig_x has BLKmode.
14627
14628 2011-03-21  Kai Tietz  <ktietz@redhat.com>
14629
14630         PR target/12171
14631         * doc/plugins.texi: Adjust documentation for plugin register_callback.
14632         * tree.h (attribute_spec): Add new member affects_type_identity.
14633         * attribs.c (empty_attribute_table): Adjust attribute_spec
14634         initializers.
14635         * config/alpha/alpha.c: Likewise.
14636         * config/arc/arc.c: Likewise.
14637         * config/arm/arm.c: Likewise.
14638         * config/avr/avr.c: Likewise.
14639         * config/bfin/bfin.c: Likewise.
14640         * config/crx/crx.c: Likewise.
14641         * config/darwin.h: Likewise.
14642         * config/h8300/h8300.c: Likewise.
14643         * config/i386/cygming.h: Likewise.
14644         * config/i386/i386.c: Likewise.
14645         * config/ia64/ia64.c: Likewise.
14646         * config/m32c/m32c.c: Likewise.
14647         * config/m32r/m32r.c: Likewise.
14648         * config/m68hc11/m68hc11.c: Likewise.
14649         * config/m68k/m68k.c: Likewise.
14650         * config/mcore/mcore.c: Likewise.
14651         * config/mep/mep.c: Likewise.
14652         * config/microblaze/microblaze.c: Likewise.
14653         * config/mips/mips.c: Likewise.
14654         * config/rs6000/rs6000.c: Likewise.
14655         * config/rx/rx.c: Likewise.
14656         * config/sh/sh.c: Likewise.
14657         * config/sol2.h: Likewise.
14658         * config/sparc/sparc.c: Likewise.
14659         * config/spu/spu.c: Likewise.
14660         * config/stormy16/stormy16.c: Likewise.
14661         * config/v850/v850.c: Likewise.
14662
14663 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
14664
14665         * simplify-rtx.c (simplify_binary_operation_1): Handle
14666         (xor (and A B) C) case when B and C are both constants.
14667
14668 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
14669
14670         * tree-dfa.c (add_referenced_var): Fix typo in comment.
14671
14672 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
14673
14674         PR bootstrap/48168
14675         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14676
14677 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
14678
14679         PR rtl-optimization/48156
14680         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14681         assume df and df_lr are not NULL.
14682
14683 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
14684
14685         PR debug/48023
14686         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14687         between a call and its CALL_ARG_LOCATION note.
14688
14689 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
14690
14691         PR debug/48178
14692         * config/sh/sh.c (find_barrier): Don't emit a constant pool
14693         between a call and its corresponding CALL_ARG_LOCATION note.
14694
14695 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
14696
14697         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14698         instead of loop. Use HARD_REGISTER_NUM_P predicate.
14699         * haifa-sched.c (setup_ref_regs): Ditto.
14700         * caller-save.c (add_used_regs_1): Ditto.
14701         * dse.c (look_for_hardregs): Ditto.
14702         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14703         * sched-rgn.c (check_live_1): Ditto.
14704
14705 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14706
14707         * c-decl.c (diagnose_mismatched_decls): Give an error for
14708         redefining a typedef with variably modified type.
14709
14710 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
14711
14712         * c-decl.c (grokfield): Don't allow typedefs for structures or
14713         unions with no tag by default.
14714         * doc/extend.texi (Unnamed Fields): Update.
14715
14716 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
14717
14718         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14719         Rewrite using indirect functions.
14720         (lwp_slwpcb): Ditto.
14721         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14722         (avx_vinsertf128<mode>): Ditto.
14723
14724 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14725
14726         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14727         unspecs.
14728
14729 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14730
14731         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14732         splitting between a call and its corresponding CALL_ARG_LOCATION note.
14733
14734 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14735
14736         PR rtl-optimization/48170
14737         * gcse.c (hoist_code): Remove bogus asserts.
14738
14739 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
14740
14741         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14742         computation for prologue/epilogue.
14743
14744 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14745
14746         * Makefile.in (check-consistency): Remove.
14747
14748 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
14749
14750         PR debug/48176
14751         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14752         arange_table_in_use is 0, but either text_section_used or
14753         cold_text_section_used is true.  Don't call it if
14754         !info_section_emitted.
14755
14756 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
14757
14758         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14759         FUNCTION_VALUE_REGNO_P): Remove.
14760         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14761         Remove.
14762         * config/avr/avr.c (avr_ret_register): Make static inline.
14763         (avr_function_value_regno_p): New function.
14764         (avr_libcall_value): Make static. Add 'func' argument.
14765         (avr_function_value): Make static. Rename 'func' argument to
14766         'fn_decl_or_type', forward it to avr_libcall_value. Call
14767         avr_ret_register function instead of RET_REGISTER macro.
14768         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14769
14770 2011-03-18  Jason Merrill  <jason@redhat.com>
14771
14772         PR c++/23372
14773         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14774
14775 2011-03-18  Richard Guenther  <rguenther@suse.de>
14776
14777         * doc/install.texi (--enable-gold): Remove.
14778         (--with-plugin-ld): Document.
14779         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14780
14781 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
14782
14783         PR middle-end/47790
14784         * expr.c (optimize_bitfield_assignment_op): Revamp to work
14785         again after expansion changes.
14786
14787 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
14788
14789         * combine.c (try_combine): Do simplification only call of
14790         subst() on i2 even when i1 is present. Update comments.
14791
14792 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
14793
14794         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14795         and UNSPEC_PCREL_SYMOFF.
14796
14797 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14798
14799         * config/s390/s390.md: Use define_c_enum for the unspec constant
14800         definitions.
14801
14802 2011-03-18  Richard Henderson  <rth@redhat.com>
14803             Jakub Jelinek  <jakub@redhat.com>
14804
14805         PR bootstrap/48161
14806         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14807         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14808
14809 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14810
14811         PR middle-end/47725
14812         * combine.c (cant_combine_insn_p): Don't check zero/sign
14813         extended hard registers.
14814
14815 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14816
14817         PR middle-end/47725
14818         * combine.c (cant_combine_insn_p): Check zero/sign extended
14819         hard registers.
14820
14821 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
14822
14823         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14824         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14825         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14826         Change return type to bool.
14827         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14828
14829 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14830
14831         PR debug/48163
14832         * var-tracking.c (prepare_call_arguments): If CALL target
14833         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14834         pc instead of looking it up using cselib_lookup and use
14835         Pmode for it if x has VOIDmode.
14836         * dwarf2out.c (gen_subprogram_die): If also both first and
14837         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14838
14839         PR debug/48163
14840         * function.c (assign_parms): For data.passed_pointer parms
14841         use MEM of data.entry_parm instead of data.entry_parm itself
14842         as DECL_INCOMING_RTL.
14843         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14844         also when passed and declared mode is the same, DECL_RTL
14845         is a MEM with pseudo as address and DECL_INCOMING_RTL is
14846         a MEM too.
14847
14848 2011-03-16  Jeff Law  <law@redhat.com>
14849
14850         PR rtl-optimization/37273
14851         * ira-costs.c (scan_one_insn): Detect constants living in memory and
14852         handle them like argument loads from stack slots.  Do not double
14853         count memory for memory constants and argument loads from stack slots.
14854
14855 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14856
14857         PR debug/48160
14858         * var-tracking.c (prepare_call_arguments): Check SUBREG.
14859
14860 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
14861
14862         PR target/48171
14863         * config/i386/i386.opt: Add Save to -mavx and -mfma.
14864
14865 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14866
14867         PR bootstrap/48153
14868         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14869         if dwarf_strict.
14870         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14871         Clear call_arg_locations and call_arg_loc_last always.
14872
14873         PR middle-end/48152
14874         * var-tracking.c (prepare_call_arguments): If argument needs to be
14875         passed by reference, adjust argtype and mode.
14876
14877 2011-03-17  Richard Guenther  <rguenther@suse.de>
14878
14879         PR middle-end/48134
14880         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14881         a value make sure to fold the statement.
14882
14883 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
14884
14885         PR target/43872
14886         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14887         return condition with !cfun->calls_alloca.
14888
14889 2011-03-17  Richard Guenther  <rguenther@suse.de>
14890
14891         PR bootstrap/48148
14892         * lto-cgraph.c (input_overwrite_node): Clear the abstract
14893         origin for decls in other ltrans units.
14894         (input_varpool_node): Likewise.
14895
14896 2011-03-17  Richard Guenther  <rguenther@suse.de>
14897
14898         PR middle-end/48165
14899         * tree-object-size.c (compute_object_offset): Properly return
14900         the offset operand of MEM_REFs as sizetype.
14901
14902 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
14903
14904         PR rtl-optimization/48141
14905         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14906         * dse.c: Include params.h.
14907         (active_local_stores_len): New variable.
14908         (add_wild_read, dse_step1): Clear it when setting active_local_stores
14909         to NULL.
14910         (record_store, check_mem_read_rtx): Decrease it when removing
14911         from the chain.
14912         (scan_insn): Likewise.  Increase it when adding to chain, if it
14913         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14914         set active_local_stores to NULL before the addition.
14915         * Makefile.in (dse.o): Depend on $(PARAMS_H).
14916
14917         PR rtl-optimization/48141
14918         * dse.c (record_store): If no positions are needed in an insn
14919         that cannot be deleted, at least unchain it from active_local_stores.
14920
14921 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
14922
14923         PR debug/47510
14924         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14925         (lookup_type_die_strip_naming_typedef): ... here.
14926         (get_context_die): Use it.
14927         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14928         the anonymous struct named by the naming typedef.
14929
14930 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
14931
14932         PR target/48154
14933         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14934         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14935
14936 2011-03-16  Jeff Law  <law@redhat.com>
14937
14938         * tree-vrp.c (identify_jump_threads): Slightly simplify type
14939         check for operands of conditional.  Allow type to be a pointer.
14940
14941 2011-03-16  Richard Guenther  <rguenther@suse.de>
14942
14943         PR tree-optimization/48149
14944         * fold-const.c (fold_binary_loc): Fold
14945         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14946
14947 2011-03-16  Richard Guenther  <rguenther@suse.de>
14948
14949         PR tree-optimization/26134
14950         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14951         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14952         (non_rewritable_mem_ref_base): Handle complex type component
14953         accesses, constrain offsets for vector and complex extracts
14954         more properly.
14955
14956 2011-03-16  Richard Guenther  <rguenther@suse.de>
14957
14958         PR tree-optimization/48146
14959         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14960         operands avoiding the need for renaming.
14961
14962 2011-03-16  Richard Guenther  <rguenther@suse.de>
14963
14964         * gimple-fold.c (maybe_fold_reference): Open-code relevant
14965         constant folding.  Move MEM_REF canonicalization first.
14966         Rely on fold_const_aggregate_ref for initializer folding.
14967         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14968
14969 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
14970
14971         PR middle-end/48136
14972         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14973         arg0/arg1 or their arguments are always fold converted to matching
14974         types.
14975
14976         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14977         to nargs.
14978
14979 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14980
14981         PR lto/46944
14982         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14983         Handle in-tree gold.
14984         (ld_vers): Extract binutils version for gold.
14985         (gcc_cv_ld_hidden): Handle gold here.
14986         (gcc_cv_lto_plugin): Determine level of linker plugin support.
14987         * configure: Regenerate.
14988         * config.in: Regenerate.
14989         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14990         -fuse-linker-plugin otherwise.
14991         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
14992         (LINK_COMMAND_SPEC): Use it.
14993         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14994
14995 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
14996
14997         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14998         * calls.c: Remove debug.h include.
14999         (emit_call_1): Don't call virtual_call_token debug hook.
15000         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15001         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15002         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15003         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15004         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15005         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15006         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15007         dwarf2out_virtual_call): Remove.
15008         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15009         copy_call_info and virtual_call hooks.
15010         (dwarf2out_init): Don't initialize vcall_insn_table,
15011         debug_dcall_section and debug_vcall_section.
15012         (prune_unused_types): Don't mark nodes from dcall_table.
15013         (dwarf2out_finish): Don't output dcall or vcall tables.
15014         * final.c (final_scan_insn): Don't call direct_call or
15015         virtual_call debug hooks.
15016         * debug.h (struct gcc_debug_hooks): Remove direct_call,
15017         virtual_call_token, copy_call_info and virtual_call hooks.
15018         (debug_nothing_uid): Remove prototype.
15019         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15020         copy_call_info and virtual_call hooks.
15021         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15022         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15023         * debug.c (do_nothing_debug_hooks): Likewise.
15024         (debug_nothing_uid): Remove.
15025         * doc/invoke.texi (-fenable-icf-debug): Remove.
15026         * common.opt (-fenable-icf-debug): Likewise.
15027
15028         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15029         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15030         call's MEM.  Handle functions returning aggregate through a hidden
15031         first pointer.  For virtual calls add clobbered pc to call arguments
15032         chain.
15033         * dwarf2out.c (gen_subprogram_die): Emit
15034         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15035         can't be emitted.
15036
15037         PR debug/45882
15038         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15039         * rtl.h (ENTRY_VALUE_EXP): Define.
15040         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15041         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15042         * print-rtl.c (print_rtx): Likewise.
15043         * gengtype.c (adjust_field_rtx_def): Likewise.
15044         * var-tracking.c (vt_add_function_parameter): Adjust
15045         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15046         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15047         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15048         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15049         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15050
15051         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15052         Call var_location debug hook even on CALL_INSNs.
15053         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15054         * rtl.def (ENTRY_VALUE): New.
15055         * dwarf2out.c: Include cfglayout.h.
15056         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15057         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15058         (struct call_arg_loc_node): New type.
15059         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15060         tail_call_site_count): New variables.
15061         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15062         DW_TAG_GNU_call_site_parameter.
15063         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15064         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15065         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15066         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15067         and DW_AT_GNU_all_source_call_sites.
15068         (mem_loc_descriptor): Handle ENTRY_VALUE.
15069         (add_src_coords_attributes): Don't add enything if
15070         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15071         (dwarf2out_abstract_function): Save and clear call_arg_location,
15072         call_site_count and tail_call_site_count around dwarf2out_decl call.
15073         (gen_call_site_die): New function.
15074         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15075         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15076         (dwarf2out_function_decl): Clear call_arg_locations,
15077         call_arg_loc_last, set call_site_count and tail_call_site_count
15078         to -1 and free block_map.
15079         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15080         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
15081         followed by any real instructions.
15082         (dwarf2out_begin_function): Set call_site_count and
15083         tail_call_site_count to 0.
15084         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15085         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15086         attempt to force a DIE for it and worst case remove the attribute.
15087         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15088         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15089         the decl itself.
15090         * var-tracking.c: Include tm_p.h.
15091         (vt_stack_adjustments): For calls call note_register_arguments.
15092         (argument_reg_set): New variable.
15093         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15094         ensure the VALUE is resolved.
15095         (call_arguments): New variable.
15096         (prepare_call_arguments): New function.
15097         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15098         (struct expand_loc_callback_data): Add ignore_cur_loc field.
15099         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15100         always use the best expression.
15101         (vt_expand_loc): Add ignore_cur_loc argument.
15102         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15103         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15104         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15105         note for all calls.
15106         (vt_add_function_parameter): Use cselib_lookup_from_insn.
15107         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15108         argument.  Don't call cselib_preserve_only_values and
15109         cselib_reset_table.
15110         (note_register_arguments): New function.
15111         (vt_initialize): Compute argument_reg_set.  Call
15112         vt_add_function_parameters before processing basic blocks instead of
15113         afterwards.  For calls call prepare_call_arguments before calling
15114         cselib_process_insn.
15115         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15116         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15117         (var-tracking.o): Depend on $(TM_P_H).
15118         * cfglayout.h (insn_scope): New prototype.
15119         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15120         * cfglayout.c (insn_scope): No longer static.
15121         * insn-notes.def (CALL_ARG_LOCATION): New.
15122         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15123         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15124         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15125         nothing for DECL_EXTERNAL BLOCK_VARS.
15126
15127 2011-03-16  Alan Modra  <amodra@gmail.com>
15128
15129         PR target/45844
15130         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15131         create invalid offset address for vsx splat insn.
15132         * config/rs6000/predicates.md (splat_input_operand): New.
15133         * config/rs6000/vsx.md (vsx_splat_*): Use it.
15134
15135 2011-03-15  Xinliang David Li  <davidxl@google.com>
15136
15137         PR c/47837
15138         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15139         (normalize_preds): New function.
15140         (is_use_properly_guarded): Normalize def predicates.
15141
15142 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15143
15144         PR target/46788
15145         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15146         in the output template.
15147
15148 2011-03-15  Richard Guenther  <rguenther@suse.de>
15149
15150         PR middle-end/47650
15151         * tree-pretty-print.c (dump_function_declaration): Properly
15152         dump unprototyped and varargs function types.
15153
15154 2011-03-15  Richard Guenther  <rguenther@suse.de>
15155
15156         PR tree-optimization/13954
15157         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15158         and friends.
15159
15160 2011-03-15  Richard Guenther  <rguenther@suse.de>
15161
15162         PR tree-optimization/48037
15163         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15164         selects into BIT_FIELD_REFs.
15165         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15166         vector select.
15167
15168 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
15169
15170         PR tree-optimization/48129
15171         * builtins.c (fold_builtin_snprintf): Convert to type of
15172         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15173         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15174
15175 2011-03-15  Richard Guenther  <rguenther@suse.de>
15176
15177         PR tree-optimization/41490
15178         * tree-ssa-dce.c (propagate_necessity): Handle returns without
15179         value but with VUSE.
15180         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15181         return statements.
15182         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15183         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15184         * tree-tailcall.c (find_tail_calls): Ignore returns.
15185
15186 2011-03-15  Richard Guenther  <rguenther@suse.de>
15187
15188         PR middle-end/48031
15189         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15190         or variable-indexed array accesses when in gimple form.
15191
15192 2011-03-15  Richard Guenther  <rguenther@suse.de>
15193
15194         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15195
15196 2011-03-15  Alan Modra  <amodra@gmail.com>
15197
15198         PR target/48032
15199         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15200         presume symbol_refs without a symbol_ref_decl are suitably
15201         aligned, nor other trees we may see here.  Handle anchor symbols.
15202         (legitimate_constant_pool_address_p): Comment.  Add mode param.
15203         Check cmodel=medium addresses.  Adjust all calls.
15204         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15205         creating cmodel=medium optimized access to locals.
15206         * config/rs6000/constraints.md (R): Pass QImode to
15207         legitimate_constant_pool_address_p.
15208         * config/rs6000/predicates.md (input_operand): Pass mode to
15209         legitimate_constant_pool_address_p.
15210         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15211         Update prototype.
15212
15213 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
15214
15215         PR target/48053
15216         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15217         64-bit constants being loaded into registers other than GPRs such
15218         as loading 0 into a VSX register.
15219
15220 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15221
15222         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15223
15224 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15225
15226         PR middle-end/47917
15227         * builtins.c (fold_builtin_snprintf): New function.
15228         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15229         (fold_builtin_4): Likewise.
15230
15231         PR middle-end/38878
15232         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15233         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
15234         and C - X == X also strip nops from +/-/p+ operand.
15235         When optimizing -X == C, fold C to arg0's type.
15236
15237         PR debug/47946
15238         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15239         emit it as add_AT_int instead of add_AT_unsigned.
15240
15241 2011-03-14  Tom Tromey  <tromey@redhat.com>
15242
15243         * unwind-dw2.c: Include sys/sdt.h if it exists.
15244         (_Unwind_DebugHook): Use STAP_PROBE2.
15245         * config.in, configure: Rebuild.
15246         * configure.ac: Check for sys/sdt.h.
15247
15248 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
15249
15250         * config/i386/i386.md (ROUND_FLOOR): New constant.
15251         (ROUND_CEIL): Ditto.
15252         (ROUND_TRUNC): Ditto.
15253         (ROUND_MXCSR): Ditto.
15254         (ROUND_NO_EXC): Ditto.
15255         (rint<mode>2): Use new defines instead of numerical constants.
15256         (floor<mode>2): Ditto.
15257         (ceil<mode>2): Ditto.
15258         (btrunc<mode>2): Ditto.
15259         * config/i386/i386-builtin-types.def: Define ROUND function type
15260         aliases.
15261         * config/i386/i386.c (enum ix86_builtins): Add
15262         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15263         (struct builtin_description): Add
15264         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15265         (ix86_expand_sse_round): New static function.
15266         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15267         function types.
15268         (ix86_builtin_vectorized_function): Handle
15269         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15270
15271 2011-03-14  Tom Tromey  <tromey@redhat.com>
15272
15273         * c-parser.c (c_parser_asm_string_literal): Clear
15274         warn_overlength_strings.
15275
15276 2011-03-14  Tom Tromey  <tromey@redhat.com>
15277
15278         * c-parser.c (disable_extension_diagnostics): Save
15279         warn_overlength_strings.
15280         (restore_extension_diagnostics): Restore warn_overlength_strings.
15281
15282 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15283
15284         * BASE-VER: Change to 4.7.0.
15285
15286 2011-03-14  Richard Guenther  <rguenther@suse.de>
15287
15288         PR middle-end/48098
15289         * tree.c (build_vector_from_val): Adjust assert to requirements
15290         and reality.
15291
15292 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
15293
15294         PR bootstrap/48102
15295         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15296
15297 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
15298
15299         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15300         terms of target_flags_explicit. Adjust copyright year.
15301
15302         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15303         * config/rs6000/t-freebsd: New file. Add override for
15304         LIB2FUNCS_EXTRA.
15305
15306 2011-03-13  Chris Demetriou  <cgd@google.com>
15307
15308         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15309         (-fno-diagnostics-show-option): this, to reflect current default.
15310         (-Werror=): Update text about -fno-diagnostics-show-option.
15311
15312 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
15313
15314         PR target/48053
15315         * config/rs6000/predicates.md (easy_vector_constant_add_self,
15316         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15317         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15318         mode is not V2DImode or V2DFmode.
15319         (vspltis_constant): Do not handle V2DImode and V2DFmode.
15320         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15321         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15322         registers to 0.
15323         (movdi_internal64): Likewise.
15324
15325 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
15326
15327         PR tree-optimization/47127
15328         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15329         parameter.
15330         (set_cloog_options): Same.
15331         (scop_to_clast): Same.
15332         (print_clast_stmt): Do not call cloog_state_malloc and
15333         cloog_state_free.
15334         (print_generated_program): Same.
15335         (gloog): Same.
15336         * graphite-clast-to-gimple.h (cloog_state): Declared.
15337         (scop_to_clast): Adjust declaration.
15338         * graphite.c (cloog_state): Defined here.
15339         (graphite_initialize): Call cloog_state_malloc.
15340         (graphite_finalize): Call cloog_state_free.
15341
15342 2011-03-11  Jason Merrill  <jason@redhat.com>
15343
15344         * attribs.c (lookup_attribute_spec): Take const_tree.
15345         * tree.h: Adjust.
15346
15347 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
15348
15349         * config/sparc/sparc.c (sparc_option_override): Use
15350         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15351
15352 2011-03-11  Richard Guenther  <rguenther@suse.de>
15353
15354         PR tree-optimization/48067
15355         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15356         multiplication result will be only used once on the target
15357         stmt.
15358
15359 2011-03-11  Richard Guenther  <rguenther@suse.de>
15360
15361         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15362
15363 2011-03-11  Richard Guenther  <rguenther@suse.de>
15364
15365         PR lto/48073
15366         * tree.c (find_decls_types_r): Do not walk types only reachable
15367         from IDENTIFIER_NODEs.
15368
15369 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15370
15371         PR middle-end/48044
15372         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15373         all vnode->force_output nodes as needed.
15374
15375 2011-03-11  Jason Merrill  <jason@redhat.com>
15376
15377         PR c++/48069
15378         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15379         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15380
15381 2011-03-11  Martin Jambor  <mjambor@suse.cz>
15382
15383         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15384         cgraph_node.
15385
15386 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
15387
15388         PR tree-optimization/48063
15389         * ipa-inline.c (cgraph_decide_inlining): Don't try to
15390         inline functions called once if !tree_can_inline_p (node->callers).
15391
15392 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
15393
15394         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15395         extra_objs.
15396         * config/score/score3.c: Delete.
15397         * config/score/score3.h: Delete.
15398         * config/score/mul-div.S: Delete.
15399         * config/score/sfp-machine.h: Add new file.
15400         * config/score/constraints.md: Add new file.
15401         * config/score/t-score-softfp: Add new file.
15402         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15403         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15404         (score7_extra_constraint): Delete.
15405         (score7_option_override): Remove unused code.
15406         * config/score/score.c: Remove score3 and score5 define and code.
15407         * config/score/score.h: Remove score3 and score5 define and code.
15408         * config/score/score.md: Remove score3 template and unusual insn.
15409         * config/score/score.opt: Remove score3 and score5 options.
15410
15411 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15412
15413         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15414         when _HPUX_SOURCE is defined.
15415         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15416
15417 2011-03-10  Jason Merrill  <jason@redhat.com>
15418
15419         PR c++/48029
15420         * stor-layout.c (layout_type): Don't set structural equality
15421         on arrays of incomplete type.
15422         * tree.c (type_hash_eq): Handle comparing them properly.
15423
15424 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
15425
15426         PR debug/48043
15427         * config/s390/s390.c (s390_delegitimize_address): Make sure the
15428         result mode matches original rtl mode.
15429
15430 2011-03-10  Nick Clifton  <nickc@redhat.com>
15431
15432         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15433         (andsi3, andsi3_flags): Fix timings for three operand alternative.
15434
15435 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
15436
15437         PR rtl-optimization/47866
15438         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15439         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15440         if target wasn't scalar.
15441         * function.c (assign_stack_temp_for_type): Assert that neither
15442         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15443         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15444         macro.
15445         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15446
15447 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15448
15449         * config/s390/s390-protos.h (s390_label_align): New prototype.
15450         * config/s390/s390.c (s390_label_align): New function.
15451         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15452
15453 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
15454
15455         PR target/47755
15456         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15457         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
15458         (output_vec_const_move): Ditto.
15459
15460 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
15461
15462         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15463         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15464         * config/mips/mips.c (mips_preferred_reload_class): Make static.
15465         Change 'rclass' argument and result type to reg_class_t.
15466         (TARGET_PREFERRED_RELOAD_CLASS): Define.
15467
15468 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
15469
15470         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15471         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15472         (TARGET_MEMORY_MOVE_COST): Define.
15473         (avr_register_move_cost, avr_memory_move_cost): New Functions.
15474
15475 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
15476
15477         PR debug/47881
15478         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15479         removed anything.
15480
15481         PR tree-optimization/48022
15482         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15483         for EQ/NE_EXPR.
15484
15485 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
15486
15487         PR debug/47991
15488         * var-tracking.c (find_use_val): Return NULL for
15489         cui->sets && cui->store_p BLKmode MEMs.
15490
15491 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
15492
15493         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15494         Remove.
15495         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15496         xstormy16_print_operand_address): Remove.
15497         * config/stormy16/stormy16.c (xstormy16_print_operand,
15498         xstormy16_print_operand_address): Make static.
15499         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15500
15501 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
15502
15503         PR target/47862
15504         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15505         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15506         before definition.
15507
15508 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
15509
15510         PR bootstrap/48000
15511         * cfgloopmanip.c (fix_bb_placements): Return immediately
15512         if FROM is BASE_LOOP's header.
15513
15514 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
15515
15516         * gimplify.c (gimplify_function_tree): Fix building calls
15517         to __builtin_return_address.
15518
15519 2011-03-07  Alan Modra  <amodra@gmail.com>
15520
15521         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15522         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15523         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15524         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15525         return_mode args.
15526         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15527         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15528         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15529         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15530         * config/rs6000/rs6000.c
15531         (rs6000_elf_end_indicate_exec_stack): Rename to..
15532         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
15533         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
15534         (rs6000_file_start): ..here.
15535         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15536         file scope variables.
15537         (call_ABI_of_interest): New function.
15538         (init_cumulative_args): Set above vars when function return value
15539         is a float, vector, or small struct.
15540         (rs6000_function_arg_advance_1): Likewise for function args.
15541         (rs6000_va_start): Set rs6000_passes_float if variable arg function
15542         references float args.
15543
15544 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
15545
15546         * doc/cfg.texi: Remove "See" before @ref.
15547         * doc/invoke.texi: Likewise.
15548
15549 2011-03-05  Jason Merrill  <jason@redhat.com>
15550
15551         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15552
15553 2011-03-05  Anthony Green  <green@moxielogic.com>
15554
15555         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15556
15557 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
15558
15559         PR rtl-optimization/47899
15560         * cfgloopmanip.c (fix_bb_placements): Fix first argument
15561         to flow_loop_nested_p when moving the loop upward.
15562
15563 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
15564
15565         PR target/47719
15566         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
15567
15568 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
15569
15570         PR tree-optimization/47967
15571         * ipa-cp.c (build_const_val): Return NULL instead of creating
15572         VIEW_CONVERT_EXPR for mismatching sizes.
15573         (ipcp_create_replace_map): Return NULL if build_const_val failed.
15574         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15575         give up on versioning.
15576
15577 2011-03-05  Alan Modra  <amodra@gmail.com>
15578
15579         PR target/47986
15580         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15581         full cmodel medium/large lo_sum + high addresses.
15582
15583 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15584
15585         * config/s390/s390.c (s390_decompose_address): Reject non-literal
15586         pool references in UNSPEC_LTREL_OFFSET.
15587
15588 2011-03-04  Jan Hubicka  <jh@suse.cz>
15589
15590         PR lto/47497
15591         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15592         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15593         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15594         Add node pointers.
15595         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15596         cgraph_add_thunk): Add node pointers.
15597         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15598         associated to right node.
15599         (input_node): Update use of cgraph_same_body_alias
15600         and cgraph_add_thunk.
15601
15602 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15603
15604         * config/i386/i386.opt (mprefer-avx128): New flag.
15605         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15606         modes when the flag -mprefer-avx128 is on.
15607
15608 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
15609
15610         * dwarf2out.c (compare_loc_operands): Fix address handling.
15611
15612 2011-03-04  Alan Modra  <amodra@gmail.com>
15613
15614         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15615
15616 2011-03-04  Richard Guenther  <rguenther@suse.de>
15617
15618         PR middle-end/47968
15619         * expmed.c (extract_bit_field_1): Prefer vector modes that
15620         vec_extract patterns can handle.
15621
15622 2011-03-04  Richard Guenther  <rguenther@suse.de>
15623
15624         PR middle-end/47975
15625         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15626
15627 2011-03-04  Richard Henderson  <rth@redhat.com>
15628
15629         * explow.c (emit_stack_save): Remove 'after' parameter.
15630         (emit_stack_restore): Likewise.
15631         * expr.h: Update to match.
15632         * builtins.c, calls.c, stmt.c: Likewise.
15633         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15634         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15635         * function.c (expand_function_end): Insert the emit_stack_save
15636         sequence before parm_birth_insn instead of after.
15637
15638 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
15639
15640         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15641         (ssse3_pmaddubsw128): Ditto.
15642         (ssse3_pmaddubsw): Ditto.
15643
15644 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
15645
15646         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15647
15648 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
15649
15650         PR c/47963
15651         * gimplify.c (omp_add_variable): Only call omp_notice_variable
15652         on TYPE_SIZE_UNIT if it is a DECL.
15653
15654         PR debug/47283
15655         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15656         first operand is not is_gimple_mem_ref_addr, try to fold it.
15657         If the operand still isn't is_gimple_mem_ref_addr, clear
15658         MEM_EXPR on op0.
15659
15660 2011-03-03  Richard Guenther  <rguenther@suse.de>
15661
15662         PR middle-end/47283
15663         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15664         match comment.
15665         (refs_may_alias_p_1): For release branches return true if
15666         we are confused by our input.
15667
15668 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15669
15670         * config/s390/s390.c (s390_function_value): Rename to ...
15671         (s390_function_and_libcall_value): ... this.
15672         (s390_function_value): New function.
15673         (s390_libcall_value): New function.
15674         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15675         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15676         target macro definitions.
15677         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15678
15679 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
15680
15681         * config/i386/freebsd64.h (CC1_SPEC): Define.
15682         * config/i386/linux64.h (CC1_SPEC): Define.
15683         * config/i386/x86-64.h (CC1_SPEC): Don't define.
15684
15685 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
15686
15687         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15688         Remove.
15689         * config/stormy16/stormy16.c: Include reload.h.
15690         (xstormy16_memory_move_cost): New function.
15691         (TARGET_MEMORY_MOVE_COST): Define.
15692
15693 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
15694
15695         PR rtl-optimization/47925
15696         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15697         with side effects.  Remove the more-specific check for volatile asms.
15698
15699 2011-03-02  Alan Modra  <amodra@gmail.com>
15700
15701         PR target/47935
15702         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15703         toc relative addresses for valid offsets.
15704
15705 2011-03-01  Richard Guenther  <rguenther@suse.de>
15706
15707         PR tree-optimization/47890
15708         * tree-vect-loop.c (get_initial_def_for_induction): Set
15709         related stmt properly.
15710
15711 2011-03-01  Richard Guenther  <rguenther@suse.de>
15712
15713         PR lto/47924
15714         * lto-streamer.c (lto_record_common_node): Also register
15715         the canonical type.
15716
15717 2011-03-01  Richard Guenther  <rguenther@suse.de>
15718
15719         PR lto/46911
15720         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15721         Do not stream DECL_ABSTRACT_ORIGIN.
15722         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15723         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15724         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15725         Do not stream DECL_ABSTRACT_ORIGIN.
15726         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15727         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15728
15729 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
15730
15731         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15732         FUNCTION_VALUE_REGNO_P): Remove.
15733         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15734         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15735         Add 'outgoing' argument.
15736         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15737         function.
15738         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15739         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15740
15741 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
15742
15743         PR debug/28047
15744         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15745         (lookup_filename): Likewise.
15746         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15747
15748 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
15749             Jakub Jelinek  <jakub@redhat.com>
15750
15751         PR middle-end/47893
15752         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15753         (assign_stack_local_1): Change last argument type to int.
15754         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15755         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
15756         don't record padding space into frame_space_list nor use those areas.
15757         (assign_stack_local): Adjust caller.
15758         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15759         of assign_stack_local, pass 0 as last argument.
15760         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15761         callers.
15762
15763 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
15764
15765         PR debug/47283
15766         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15767         Use target address_mode and pointer_mode hooks instead of hardcoded
15768         Pmode and ptr_mode.  Handle some simple cases of extending if
15769         POINTERS_EXTEND_UNSIGNED < 0.
15770         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15771         Call convert_debug_memory_address.
15772         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15773         convert_debug_memory_address.
15774
15775         PR middle-end/46790
15776         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15777         * configure: Regenerated.
15778         * config.in: Regenerated.
15779         * varasm.c (default_function_section): Return NULL
15780         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15781
15782 2011-02-28  Martin Jambor  <mjambor@suse.cz>
15783
15784         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15785         the description to match the printed values.
15786
15787 2011-02-28  Richard Guenther  <rguenther@suse.de>
15788
15789         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15790         of the copied scope tree.
15791
15792 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15793
15794         * doc/extend.texi (Function Attributes): Avoid deeply (and
15795         wrongly) nested tables.
15796
15797 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
15798
15799         PR middle-end/47903
15800         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15801         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15802         r isn't op0 nor op1.
15803
15804 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15805
15806         * config/avr/avr.md: Remove magic comment for emacs.
15807
15808 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
15809
15810         PR target/45261
15811         * config/avr/avr.c (avr_option_override): Use error on bad options.
15812         (avr_help): New function.
15813         (TARGET_HELP): Define.
15814
15815 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
15816
15817         PR target/42240
15818         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15819         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15820
15821 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
15822
15823         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15824         (ARM Options): Ditto.
15825         (i386 and x86-64 Options): Ditto.
15826         (RX Options): Ditto.
15827         (SPARC Options): Ditto.
15828
15829 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
15830
15831         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15832         FreeBSD 6 and later.  Generally use cpu generic.
15833
15834 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
15835
15836         * doc/cpp.texi: Update copyright years.
15837
15838 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
15839
15840         PR target/46898
15841         * config/lm32/lm32.md (ashrsi3): Added needed variable.
15842
15843 2011-02-25  Jon Beniston  <jon@beniston.com>
15844
15845         PR target/46898
15846         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15847         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15848         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15849         (lm32_block_move_inline): Add type cast to remove warning.
15850         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15851         (gen_int_relational): Move declarations to start of function.
15852
15853 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
15854
15855         PR tree-optimization/45470
15856         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15857         can throw internally only.
15858         * tree-vect-stmts.c (vectorizable_call): Likewise.
15859
15860 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
15861
15862         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15863         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15864         * config/stormy16/stormy16-protos.h
15865         (xstormy16_preferred_reload_class): Remove.
15866         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15867         static. Change 'rclass' argument and return type to reg_class_t.
15868         (TARGET_PREFERRED_RELOAD_CLASS,
15869         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15870
15871 2011-02-24  Richard Guenther  <rguenther@suse.de>
15872
15873         * lto-streamer-in.c (input_bb): Do not find referenced vars
15874         in debug statements.
15875
15876 2011-02-23  Jason Merrill  <jason@redhat.com>
15877
15878         * common.opt (fabi-version): Document v5 and v6.
15879
15880 2011-02-23  Richard Guenther  <rguenther@suse.de>
15881
15882         PR tree-optimization/47849
15883         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15884
15885 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15886
15887         * opts-common.c (decode_cmdline_option): Print empty string
15888         argument as "" in decoded->orig_option_with_args_text.
15889         * gcc.c (execute): Print empty string argument as ""
15890         in the verbose output.
15891         (do_spec_1): Keep empty string argument.
15892
15893 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
15894
15895         * config.gcc: Declare score-* and crx-* obsolete.
15896
15897 2011-02-23  Jie Zhang  <jie@codesourcery.com>
15898
15899         PR rtl-optimization/47763
15900         * web.c (web_main): Ignore naked clobber when replacing register.
15901
15902 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
15903
15904         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15905         Remove.
15906
15907 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15908
15909         PR doc/47848
15910         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15911
15912 2011-02-22  Mike Stump  <mikestump@comcast.net>
15913
15914         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15915         assembler.
15916         * configure: Regenerate.
15917
15918 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
15919
15920         PR rtl-optimization/46002
15921         * ira-color.c (update_copy_costs): Change class intersection
15922         test to reg_class_contents[] test of 'hard_regno'.
15923
15924 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
15925
15926         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15927         than Driver option.
15928         * config/hpux11.opt (mt): Likewise.
15929         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15930         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15931         * config/vax/elf.opt (mno-asm-pic): Likewise.
15932         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15933
15934 2011-02-21  Mike Stump  <mikestump@comcast.net>
15935
15936         PR target/47822
15937         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15938         tree so we can get save the type.
15939         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15940         for CFString instead of trying to use past the end of the builtins.
15941         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15942         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15943         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15944         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15945         Rename to darwin_builtin_cfstring.
15946         (darwin_init_cfstring_builtins): Return the built type.
15947
15948 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
15949
15950         PR target/47840
15951         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15952         (_mm256_insert_epi64): Use _mm_insert_epi64.
15953
15954 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
15955
15956         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15957         * config/stormy16/stormy16-protos.h
15958         (xstormy16_mode_dependent_address_p): Remove.
15959         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15960         Make static. Change return type to bool. Change argument type to
15961         const_rtx. Remove dead code.
15962         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15963
15964 2011-02-21  Richard Guenther  <rguenther@suse.de>
15965
15966         PR lto/47820
15967         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15968         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15969         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15970         TUs context.
15971         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15972         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15973
15974 2011-02-20  Richard Guenther  <rguenther@suse.de>
15975
15976         PR lto/47822
15977         * tree.c (free_lang_data_in_decl): Clean builtins from
15978         the TU decl BLOCK_VARS.
15979
15980 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
15981
15982         PR debug/47620
15983         PR debug/47630
15984         * haifa-sched.c (fix_tick_ready): Skip tick computation
15985         for debug insns.
15986
15987 2011-02-19  Richard Guenther  <rguenther@suse.de>
15988
15989         PR lto/47647
15990         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15991         Remove lazy BLOCK_VARS streaming.
15992         (lto_input_ts_block_tree_pointers): Likewise.
15993         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15994
15995 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
15996
15997         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15998
15999 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
16000
16001         * config/i386/biarch32.h, config/i386/mach.h,
16002         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16003
16004 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
16005
16006         PR target/47800
16007         * config/i386/i386.md (peephole2 for shift and plus): Use
16008         operands[1] original mode in the first insn.
16009
16010 2011-02-18  Mike Stump  <mikestump@comcast.net>
16011
16012         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16013
16014 2011-02-18  Jan Hubicka  <jh@suse.cz>
16015
16016         PR middle-end/47788
16017         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16018         to zero when the function is not inlinable at all.
16019
16020 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16021
16022         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16023         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16024         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16025         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16026         * config/pa/t-pa64: Likewise.
16027         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16028
16029 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
16030
16031         PR driver/47787
16032         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16033
16034 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16035
16036         PR target/47792
16037         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16038
16039 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
16040
16041         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16042         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16043         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16044         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16045         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16046         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16047         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16048         m32r_load_postinc_p, m32r_store_preinc_predec_p,
16049         m32r_legitimate_address_p): New functions.
16050         * config/m32r/constraints.md (constraint "S"): Don't use
16051         STORE_PREINC_PREDEC_P.
16052         (constraint "U"): Don't use LOAD_POSTINC_P.
16053
16054 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
16055
16056         PR rtl-optimization/46178
16057         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16058         compute ira_hard_regno_cover_class[].
16059
16060 2011-02-18  Richard Guenther  <rguenther@suse.de>
16061
16062         PR lto/47798
16063         * lto-streamer.h (lto_global_var_decls): Declare.
16064         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16065         statics for global var processing.
16066
16067 2011-02-18  Richard Guenther  <rguenther@suse.de>
16068
16069         PR tree-optimization/47737
16070         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16071         edge dominance check.
16072
16073 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
16074
16075         PR debug/47780
16076         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16077         avoid invalid rtx sharing.
16078
16079 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
16080
16081         * doc/cpp.texi (Obsolete Features): Add background on the
16082         origin of assertions.
16083
16084 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
16085
16086         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
16087         objc_abi == 2.
16088         * config/darwin.c (output_objc_section_asm_op): Added support for
16089         ABI v1 and v2.
16090         (is_objc_metadata): New.
16091         (darwin_objc2_section): New.
16092         (darwin_objc1_section): New.
16093         (machopic_select_section): Added support for ABI v1 and v2.
16094         (darwin_emit_objc_zeroed): New.
16095         (darwin_output_aligned_bss): Detect objc metadata and treat it
16096         appropriately.
16097         (darwin_asm_output_aligned_decl_common): Same.
16098         (darwin_asm_output_aligned_decl_local): Same.
16099         * config/darwin-sections.def: Updated for ABI v1 and v2.
16100         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16101         compiling Objective-C code for the NeXT runtime, default to using
16102         ABI version 0 for 32-bit, and version 2 for 64-bit.
16103
16104 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16105
16106         * common.opt (optimize_fast): New Variable.
16107         * opts.c (default_options_optimization): Use opts->x_optimize_fast
16108         instead of local variable ofast.
16109
16110 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
16111
16112         * doc/invoke.texi (fobjc-abi-version): Documented.
16113         (fobjc-nilcheck): Documented.
16114         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16115         version.
16116
16117 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16118
16119         PR driver/47390
16120         * common.opt (export-dynamic): New Driver option.
16121         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16122
16123 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16124
16125         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16126
16127 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
16128             Jan Hubicka  <jh@suse.cz>
16129
16130         PR debug/47106
16131         PR debug/47402
16132         * cfgexpand.c (account_used_vars_for_block): Remove.
16133         (estimated_stack_frame_size): Use referenced vars.
16134         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16135         that were referenced in the original function.  Test src_fn
16136         rather than cfun.  Drop redundant get_var_ann.
16137         (setup_one_parameter): Drop redundant get_var_ann.
16138         (declare_return_variable): Likewise.
16139         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16140         (copy_arguments_for_versioning): Drop redundant get_var_ann.
16141         * ipa-inline.c (compute_inline_parameters): Do not compute
16142         disregard_inline_limits here.
16143         (compute_inlinable_for_current, pass_inlinable): New.
16144         (pass_inline_parameters): Require PROP_referenced_vars.
16145         * cgraphunit.c (cgraph_process_new_functions): Don't run
16146         compute_inline_parameters explicitly unless function is in SSA form.
16147         (cgraph_analyze_function): Set .disregard_inline_limits.
16148         * tree-sra.c (convert_callers): Compute inliner parameters
16149         only for functions already in SSA form.
16150
16151 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16152
16153         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16154         -mlittle-endian-data.
16155
16156 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
16157
16158         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16159         -mno-fpu, not -fpu and -no-fpu.
16160         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16161         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16162
16163 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
16164
16165         PR target/43653
16166         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16167         input reload with PLUS RTX.
16168
16169 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16170
16171         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16172         of InverseVar(MDMX).
16173
16174 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16175
16176         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16177         --m4-340.
16178
16179 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16180
16181         * config/mn10300/mn10300.opt (mno-crt0): New.
16182
16183 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16184
16185         * config/m68k/uclinux.opt (static-libc): New Driver option.
16186
16187 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16188
16189         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16190
16191 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
16192
16193         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16194         %{muser-extend-enabled}.
16195
16196 2011-02-16  Richard Guenther  <rguenther@suse.de>
16197
16198         PR tree-optimization/47738
16199         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16200         the TODO from tree_predictive_commoning.
16201
16202 2011-02-15  Jeff Law  <law@redhat.com>
16203
16204         Revert
16205         2011-01-25  Jeff Law  <law@redhat.com>
16206
16207         PR rtl-optimization/37273
16208         * ira-costs.c (scan_one_insn): Detect constants living in memory and
16209         handle them like argument loads from stack slots.  Do not double
16210         count memory for memory constants and argument loads from stack slots.
16211
16212 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16213
16214         PR middle-end/47725
16215         * combine.c (cant_combine_insn_p): Revert the last change.
16216
16217 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
16218
16219         PR target/47755
16220         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16221         mode for vector constants.  Remove code that checks for TImode.
16222
16223 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16224
16225         PR debug/47106
16226         PR debug/47402
16227         * cgraph.h (compute_inline_parameters): Return void.
16228         * ipa-inline.c (compute_inline_parameters): Adjust.
16229
16230 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16231
16232         PR debug/47106
16233         PR debug/47402
16234         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16235         rather than decl.
16236         * cfgexpand.c (estimated_stack_frame_size): Likewise.
16237         * ipa-inline.c (compute_inline_parameters): Adjust.
16238
16239 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16240
16241         PR debug/47106
16242         PR debug/47402
16243         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16244         Adjust all users.  Pass FN to...
16245         * tree-flow-inline.h (first_referenced_var): ... this.  Add
16246         fn argument.
16247         * ipa-struct-reorg.c: Adjust.
16248         * tree-dfa.c: Adjust.
16249         * tree-into-ssa.c: Adjust.
16250         * tree-sra.c: Adjust.
16251         * tree-ssa-alias.c: Adjust.
16252         * tree-ssa-live.c: Adjust.
16253         * tree-ssa.c: Adjust.
16254         * tree-ssanames.c: Adjust.
16255         * tree-tailcall.c: Adjust.
16256
16257 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
16258
16259         PR debug/47106
16260         PR debug/47402
16261         * tree-flow.h (referenced_var_lookup): Add fn parameter.
16262         Adjust all callers.
16263         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16264         * tree-flow-inline.h: Adjust.
16265         * gimple-pretty-print.c: Adjust.
16266         * tree-into-ssa.c: Adjust.
16267         * tree-ssa.c: Adjust.
16268         * cfgexpand.c: Adjust.
16269
16270 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16271
16272         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16273         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16274         (EXTRA_CONSTRAINT): Delete.
16275         * config/iq2000/constraints.md: New file.
16276         * config/iq2000/iq2000.md: Include it.
16277         (define_insn ""): Delete.
16278         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16279         unsupported constraint letters from patterns.
16280         (call_value, call_value_internal1): Likewise.
16281         (call_value_multiple_internal1): Likewise.
16282
16283 2011-02-15  Nick Clifton  <nickc@redhat.com>
16284
16285         * config/mn10300/mn10300.c: Include tm-constrs.h.
16286         (struct liw_data): New data structure describing an LIW candidate
16287         instruction.
16288         (extract_bundle): Use struct liw_data.  Allow small integer
16289         operands for some instructions.
16290         (check_liw_constraints): Use struct liw_data.  Remove swapped
16291         parameter.  Add comments describing the checks.  Fix bug when
16292         assigning the source of liw1 to the source of liw2.
16293         (liw_candidate): Delete.  Code moved into extract_bundle.
16294         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
16295         before swapping.
16296         * config/mn10300/predicates.md (liw_operand): New predicate.
16297         Allows registers and small integer constants.
16298         * config/mn10300/constraints.md (O): New constraint.  Accetps
16299         integers in the range -8 to +7 inclusive.
16300         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16301         for moving a small integer into a register.  Give this alternative
16302         LIW attributes.
16303         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16304         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16305         using the J,K,L and M constraints,
16306         (liw): Remove SI mode on second operands to allow for HI and QI
16307         mode values.
16308         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
16309         instruction.
16310
16311 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
16312
16313         PR middle-end/47725
16314         * combine.c (cant_combine_insn_p): Check zero/sign extended
16315         hard registers.
16316
16317 2011-02-15  Richard Guenther  <rguenther@suse.de>
16318
16319         PR tree-optimization/47743
16320         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16321         for a non-type-compatible VN lookup bail out.
16322
16323 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16324
16325         * config/fr30/constraints.md: New file.
16326         * config/fr30/fr30.md: Include it.
16327         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16328         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16329         (EXTRA_CONSTRAINT): Delete.
16330
16331 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
16332
16333         * config/frv/constraints.md: New file.
16334         * config/frv/predicates.md: Include it.
16335         * config/frv/frv.c (reg_class_from_letter): Delete.
16336         (frv_option_override): Don't initialize it.
16337         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16338         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16339         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16340         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16341         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16342         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16343         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16344         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16345         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16346         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16347         (REG_CLASS_FROM_CONSTRAINT): Delete.
16348
16349 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
16350
16351         PR middle-end/47581
16352         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16353         if frame size is 0 in a leaf function.
16354
16355 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16356
16357         PR pch/14940
16358         * config/alpha/host-osf.c: New file.
16359         * config/alpha/x-osf: New file.
16360         * config.host (alpha*-dec-osf*): Use it.
16361
16362 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16363
16364         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16365         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16366         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16367         (rx_mode_dependent_address_p): ...this. Make static. Change argument
16368         type to const_rtx.
16369         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16370
16371 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16372
16373         * config/stormy16/constraints.md: New file.
16374         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16375         Use satisfies_constraint_Q and satisfies_constraint_R.
16376         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16377         Delete.
16378         (xstormy16_legitiamte_address_p): Declare.
16379         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16380         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16381         (EXTRA_CONSTRAINT): Delete.
16382         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16383         Un-staticize.
16384         (xstormy16_extra_constraint_p): Delete.
16385
16386 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
16387
16388         PR tree-optimization/46494
16389         * loop-unroll.c (split_edge_and_insert): Adjust comment.
16390         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16391         (pass_rtl_loop_done): Add TODO_verify_flow.
16392         * fwprop.c (pass_rtl_fwprop): Likewise.
16393         * modulo-sched.c (pass_sms): Likewise.
16394         * tree-ssa-dom.c (pass_dominator): Likewise.
16395         * tree-ssa-loop-ch.c (pass_ch): Likewise.
16396         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16397         (pass_tree_loop_done): Likewise.
16398         * tree-ssa-pre.c (execute_pre): Likewise.
16399         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16400         * tree-ssa-sink.c (pass_sink_code): Likewise.
16401         * tree-vrp.c (pass_vrp): Likewise.
16402
16403 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16404
16405         * config/v850/constraints.md: New file.
16406         * config/v850/v850.md: Include it.
16407         * config/v850/predicates.md (reg_or_0_operand): Use
16408         satisfies_constraint_G.
16409         (special_symbolref_operand): Use satisfies_constraint_K.
16410         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16411         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16412         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16413         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16414         (EXTRA_CONSTRAINT): Delete.
16415         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16416         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16417         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16418
16419 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
16420
16421         PR target/47696
16422         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16423         description.
16424
16425 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
16426
16427         * config/mcore/constraints.md: New file.
16428         * config/mcore/mcore.md: Include it.
16429         * config/mcore/mcore.c (reg_class_from_letter): Delete.
16430         * config/mcore/mcore.h (reg_class_from_letter): Delete.
16431         (REG_CLASS_FROM_LETTER): Delete.
16432         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16433         insn_const_int_ok_for_constraint.
16434         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16435         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16436         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16437         (EXTRA_CONSTRAINT): Delete.
16438
16439 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16440
16441         PR ada/41929
16442         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16443         (IS_SIGHANDLER): Define.
16444         (sparc64_is_sighandler): New function, split off from
16445         sparc64_fallback_frame_state.
16446         (sparc_is_sighandler): New function, split off from
16447         sparc_fallback_frame_state.
16448         (sparc64_fallback_frame_state): Merge with ...
16449         (sparc_fallback_frame_state): ... this into ...
16450         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16451         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
16452         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
16453         stack instead of hardcoded offsets.
16454
16455 2011-02-14  Andriy Gapon  <avg@freebsd.org>
16456
16457         PR target/45808
16458         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16459
16460 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16461
16462         * configure: Regenerate.
16463
16464 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
16465
16466         PR driver/45731
16467         * gcc.c (asm_options): Correct spec matching --target-help.
16468
16469 2011-02-12  Martin Jambor  <mjambor@suse.cz>
16470
16471         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16472         to gimple call error.
16473
16474 2011-02-12  Mike Stump  <mikestump@comcast.net>
16475
16476         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16477         comments in backslash regions.
16478
16479 2011-02-12  Mike Stump  <mikestump@comcast.net>
16480             Jakub Jelinek  <jakub@redhat.com>
16481             Iain Sandoe  <iains@gcc.gnu.org>
16482
16483         PR target/47324
16484         * dwarf2out.c (output_cfa_loc): When required, apply the
16485         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16486         (output_loc_sequence): Likewise.
16487         (output_loc_operands_raw): Likewise.
16488         (output_loc_sequence_raw): Likewise.
16489         (output_cfa_loc): Likewise.
16490         (output_loc_list): Suppress register number adjustment when
16491         calling output_loc_sequence()
16492         (output_die): Likewise.
16493
16494 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
16495
16496         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16497         Remove macros.
16498         * config/xtensa/xtensa.c (xtensa_register_move_cost,
16499         xtensa_memory_move_cost): New functions.
16500         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16501
16502 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
16503
16504         PR lto/47225
16505         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16506         in the current directory.
16507         * configure: Rebuilt.
16508
16509 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16510
16511         * config/darwin.c (darwin_override_options): Add a hunk missed
16512         from the commit of r168571.  Trim comment line lengths and
16513         correct indents of the preceding block.
16514
16515 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
16516
16517         * gcc.c (driver_handle_option): Concatenate the argument to -F with
16518         the switch.
16519
16520 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16521
16522         * common.opt (nostartfiles): New Driver option.
16523
16524 2011-02-11  Xinliang David Li  <davidxl@google.com>
16525
16526         PR tree-optimization/47707
16527         * tree-chrec.c (convert_affine_scev): Keep type precision.
16528
16529 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
16530
16531         PR tree-optimization/47420
16532         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16533
16534 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
16535
16536         PR rtl-optimization/47614
16537         * rtl.h (check_for_inc_dec): Declare.
16538         * dse.c (check_for_inc_dec): Externalize...
16539         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16540         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16541
16542 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
16543
16544         PR driver/47678
16545         * gcc.c (main): Do not compile inputs if there were errors in
16546         option handling.
16547         * opts-common.c (read_cmdline_option): Check for wrong language
16548         after other error checks.
16549
16550 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
16551
16552         * cgraph.c: Fix comment typos.
16553         * cgraph.h: Likewise.
16554         * cgraphunit.c: Likewise.
16555         * ipa-cp.c: Likewise.
16556         * ipa-inline.c: Likewise.
16557         * ipa-prop.c: Likewise.
16558         * ipa-pure-const.c: Likewise.
16559         * ipa-ref.c: Likewise.
16560         * ipa-reference.c: Likewise.
16561
16562 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
16563
16564         PR debug/47684
16565         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16566
16567 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16568
16569         PR testsuite/47400
16570         * doc/sourcebuild.texi (Require Support): Document
16571         dg-require-ascii-locale.
16572
16573 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
16574
16575         * doc/lto.texi (Write summary): Fix missing parentheses.
16576
16577 2011-02-10  DJ Delorie  <dj@redhat.com>
16578
16579         * config/m32c/m32c.c (m32c_option_override): Disable
16580         -fcombine-stack-adjustments until flag value tracking and compare
16581         optimization can be rewritten.
16582
16583 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
16584
16585         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16586         PROCESSOR_POWER7.
16587         (PROCESSOR_DEFAULT64): Likewise.
16588
16589 2011-02-10  Richard Henderson  <rth@redhat.com>
16590
16591         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16592         change from 2011-02-03.
16593         * config/rx/rx.c (flags_from_code): Likewise.
16594         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16595         is valid, n/pz otherwise.
16596         (rx_select_cc_mode): Return CCmode if Y is not zero.
16597
16598 2011-02-10  Richard Guenther  <rguenther@suse.de>
16599
16600         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16601
16602 2011-02-10  Richard Guenther  <rguenther@suse.de>
16603
16604         PR tree-optimization/47677
16605         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16606
16607 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
16608
16609         PR target/47665
16610         * combine.c (make_compound_operation): Only change shifts into
16611         multiplication for SCALAR_INT_MODE_P.
16612
16613 2011-02-10  Jie Zhang  <jie@codesourcery.com>
16614
16615         PR testsuite/47622
16616         Revert
16617         2011-02-05  Jie Zhang  <jie@codesourcery.com>
16618         PR debug/42631
16619         * web.c (entry_register): Don't clobber the number of the
16620         first uninitialized reference in used[].
16621
16622 2011-02-09  Richard Guenther  <rguenther@suse.de>
16623
16624         PR tree-optimization/47664
16625         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16626         all edges again.
16627
16628 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
16629
16630         PR target/46481
16631         PR target/47032
16632         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16633         PROCESSOR_POWER7.
16634         (PROCESSOR_DEFAULT64): Same.
16635         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16636
16637 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16638
16639         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16640
16641 2011-02-09  Martin Jambor  <mjambor@suse.cz>
16642
16643         PR middle-end/45505
16644         * tree-sra.c (struct access): New flags grp_scalar_read and
16645         grp_scalar_write.  Changed description of assignment read and write
16646         flags.
16647         (dump_access): Dump new flags, reorder all of them.
16648         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16649         to detect multiple scalar reads.
16650         (analyze_access_subtree): Use the new scalar read write flags instead
16651         of the old flags.  Adjusted comments.
16652
16653 2011-02-08  DJ Delorie  <dj@redhat.com>
16654
16655         PR target/47548
16656         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16657         patterns.
16658
16659 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16660
16661         * config/m68k/uclinux.opt: New.
16662         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16663
16664 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16665
16666         * config/cris/elf.opt (sim): New Driver option.
16667
16668 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16669
16670         * config/xtensa/elf.opt: New.
16671         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16672
16673 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16674
16675         * config/vax/elf.opt: New.
16676         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16677
16678 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16679
16680         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16681
16682 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16683
16684         * config/gnu-user.opt: New.
16685         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16686         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16687         *-*-uclinux*): Use gnu-user.opt.
16688
16689 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
16690
16691         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16692         * config/i386/gnu.h (CPP_SPEC): Likewise.
16693
16694 2011-02-08  Ian Lance Taylor  <iant@google.com>
16695
16696         * common.opt (fcx-limited-range): Add SetByCombined flag.
16697         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16698         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16699         (fassociative-math, freciprocal-math): Likewise.
16700         (funsafe-math-optimizations): Likewise.
16701         * opth-gen.awk: Handle SetByCombined.
16702         * optc-gen.awk: Likewise.
16703         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16704         (set_unsafe_math_optimizations_flags): Likewise.
16705         * doc/options.texi (Option properties): Document SetByCombined.
16706
16707 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
16708
16709         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16710         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16711         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16712         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16713         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16714
16715 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
16716
16717         PR tree-optimization/46834
16718         PR tree-optimization/46994
16719         PR tree-optimization/46995
16720         * graphite-sese-to-poly.c (used_outside_reduction): New.
16721         (detect_commutative_reduction): Call used_outside_reduction.
16722         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16723         translate_scalar_reduction_to_array only when at least one
16724         loop-phi/close-phi tuple has been detected.
16725
16726 2011-02-08  Richard Guenther  <rguenther@suse.de>
16727
16728         PR middle-end/47639
16729         * tree-vect-generic.c (expand_vector_operations_1): Update
16730         stmts here ...
16731         (expand_vector_operations): ... not here.  Cleanup EH info
16732         and the CFG if required.
16733
16734 2011-02-08  Richard Guenther  <rguenther@suse.de>
16735
16736         PR tree-optimization/47641
16737         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16738         require type compatibility.
16739
16740 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16741
16742         * gimple-low.c (lower_function_body): Don't remove the location of
16743         the return statement here.
16744         (lower_gimple_return): Do it here instead but only if the return
16745         statement is actually used twice.
16746
16747 2011-02-08  Richard Guenther  <rguenther@suse.de>
16748
16749         PR tree-optimization/47632
16750         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16751         unused up_to_stmt parameter, return whether cfg-cleanup is
16752         necessary, remove EH info properly.
16753         (forward_propagate_into_gimple_cond): Adjust caller.
16754         (forward_propagate_into_cond): Likewise.
16755         (forward_propagate_comparison): Likewise.
16756         (tree_ssa_forward_propagate_single_use_vars): Make
16757         forward_propagate_comparison case similar to the two others.
16758
16759 2011-02-08  Nick Clifton  <nickc@redhat.com>
16760
16761         * config/mn10300/mn10300.opt (mliw): New command line option.
16762         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16763         (liw_bundling): New automaton.
16764         (liw): New attribute.
16765         (liw_op): New attribute.
16766         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16767         (movsi_internal): Add LIW attributes.
16768         (andsi3): Likewise.
16769         (iorsi3): Likewise.
16770         (xorsi3): Likewise.
16771         (addsi3): Separate register and immediate alternatives.
16772         Add LIW attributes.
16773         (subsi3): Likewise.
16774         (cmpsi): Likewise.
16775         (aslsi3): Likewise.
16776         (lshrsi3): Likewise.
16777         (ashrsi3): Likewise.
16778         (liw): New pattern.
16779         * config/mn10300/mn10300.c (liw_op_names): New
16780         (mn10300_print_operand): Handle 'W' operand descriptor.
16781         (extract_bundle): New function.
16782         (check_liw_constraints): New function.
16783         (liw_candidate): New function.
16784         (mn10300_bundle_liw): New function.
16785         (mn10300_reorg): New function.
16786         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16787         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16788         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16789         __LIW__ or __NO_LIW__.
16790         * doc/invoke.texi: Describe the -mliw command line option.
16791
16792 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16793
16794         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16795         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16796         pthread_mutex_unlock): Remove.
16797         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16798         * config/pa/t-pa64: Likewise.
16799         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16800         shared libc if not linking against libpthread.
16801         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16802
16803 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
16804
16805         PR target/47558
16806         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16807         on 10.6 and later to ensure that we always use the unwinder from
16808         the system.  Only add -no_compact_unwind when tarteting darwin
16809         10.6 or later.
16810
16811 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
16812
16813         PR target/46997
16814         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16815         (vec_interleave_lowv2sf): Ditto.
16816         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16817         (vec_extract_oddv2sf): Ditto.
16818
16819 2011-02-07  Mike Stump  <mikestump@comcast.net>
16820
16821         PR target/42333
16822         Add __ieee_divdc3 entry point.
16823         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16824         entry point.
16825         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16826         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16827         * config/darwin.c (darwin_rename_builtins): Add.
16828         * config/darwin-protos.h (darwin_rename_builtins): Add.
16829
16830 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
16831
16832         PR target/47636
16833         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16834         for the condition.
16835
16836 2011-02-07  Mike Stump  <mikestump@comcast.net>
16837
16838         * config/darwin.opt (mmacosx-version-min): Update default OS version.
16839
16840 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
16841
16842         PR target/47534
16843         * config/avr/libgcc.S (exit): Move .endfunc
16844
16845 2011-02-07  Richard Guenther  <rguenther@suse.de>
16846
16847         PR tree-optimization/47615
16848         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16849         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16850         (run_scc_vn): Initialize it.
16851         (visit_reference_op_load): Use it.
16852         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16853
16854 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16855
16856         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16857         DImode trapping arithmetic libfuncs.
16858
16859 2011-02-07  Richard Guenther  <rguenther@suse.de>
16860
16861         PR tree-optimization/47621
16862         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16863         two duplicates ...
16864         (execute_update_addresses_taken): ... here.  Make it more
16865         conservative in what we accept.
16866
16867 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16868
16869         * config/sparc/freebsd.h (ASM_SPEC): Define.
16870         * config/sparc/vxworks.h (ASM_SPEC): Define.
16871
16872 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
16873
16874         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16875
16876 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
16877
16878         * doc/invoke.texi: Remove reference to compiler internals from
16879         user documentation.
16880
16881         * reg-notes.def: Remove REG_VALUE_PROFILE.
16882         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16883
16884 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
16885
16886         PR middle-end/47610
16887         * varasm.c (default_section_type_flags): If decl is NULL,
16888         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16889
16890 2011-02-05  Jie Zhang  <jie@codesourcery.com>
16891
16892         PR debug/42631
16893         * web.c (entry_register): Don't clobber the number of the
16894         first uninitialized reference in used[].
16895
16896 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
16897
16898         PR tree-optimization/46194
16899         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16900         (build_classic_dist_vector_1): Do not represent classic distance
16901         vectors when the access functions are variating in different loops.
16902
16903 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16904
16905         * config/mips/iris6.opt: New.
16906         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16907
16908 2011-02-04  Richard Henderson  <rth@redhat.com>
16909             Steve Ellcey  <sje@cup.hp.com>
16910
16911         PR target/46997
16912         * config/ia64/predicates.md (mux1_brcst_element): New.
16913         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16914         * config/ia64/ia64.c (ia64_unpack_assemble): New.
16915         (ia64_unpack_sign): New.
16916         (ia64_expand_unpack): Rewrite using new routines.
16917         (ia64_expand_widen_sum): Ditto.
16918         (ia64_expand_dot_prod_v8qi): Ditto.
16919         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16920         routines, add endian check.
16921         (pmpy2_even): Rename from pmpy2_r, add endian check.
16922         (pmpy2_odd): Rename from pmpy2_l, add endian check.
16923         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16924         (vec_widen_smult_hi_v4hi): Ditto.
16925         (vec_widen_umult_lo_v4hi): Ditto.
16926         (vec_widen_umult_hi_v4hi): Ditto.
16927         (mulv2si3): Change endian checks.
16928         (sdot_prodv4hi): Rewrite with new calls.
16929         (udot_prodv4hi): New.
16930         (vec_pack_ssat_v4hi): Add endian check.
16931         (vec_pack_usat_v4hi): Ditto.
16932         (vec_pack_ssat_v2si): Ditto.
16933         (max1_even): Rename from max1_r, add endian check.
16934         (max1_odd): Rename from max1_l, add endian check.
16935         (*mux1_rev): Format change.
16936         (*mux1_mix): Ditto.
16937         (*mux1_shuf): Ditto.
16938         (*mux1_alt): Ditto.
16939         (*mux1_brcst_v8qi): Use new predicate.
16940         (vec_extract_evenv8qi): Remove endian check.
16941         (vec_extract_oddv8qi): Ditto.
16942         (vec_interleave_lowv4hi): Format change.
16943         (vec_interleave_highv4hi): Ditto.
16944         (mix2_even): Rename from mix2_r, add endian check.
16945         (mix2_odd): Rename from mux2_l, add endian check.
16946         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16947         (vec_extract_evenodd_helper): Format change.
16948         (vec_extract_evenv4hi): Remove endian check.
16949         (vec_extract_oddv4hi): Remove endian check.
16950         (vec_interleave_lowv2si): Format change.
16951         (vec_interleave_highv2si): Format change.
16952         (vec_initv2si): Remove endian check.
16953         (vecinit_v2si): Add endian check.
16954         (reduc_splus_v2sf): Add endian check.
16955         (reduc_smax_v2sf): Ditto.
16956         (reduc_smin_v2sf): Ditto.
16957         (vec_initv2sf): Remove endian check.
16958         (fpack): Add endian check.
16959         (fswap): Add endian check.
16960         (vec_interleave_highv2sf): Add endian check.
16961         (vec_interleave_lowv2sf): Add endian check.
16962         (fmix_lr): Add endian check.
16963         (vec_setv2sf): Format change.
16964         (*vec_extractv2sf_0_be): Use shift to extract operand.
16965         (*vec_extractv2sf_1_be): New.
16966         (vec_pack_trunc_v4hi): Add endian check.
16967         (vec_pack_trunc_v2si): Format change.
16968
16969 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
16970
16971         PR inline-asm/23200
16972         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
16973         do bb, locus and block comparison and disallow loads if it is not set.
16974         (stmt_is_replaceable_p): New function.
16975         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16976         callers.
16977         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16978         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16979         SSA_NAME_DEF_STMT.
16980         * tree-flow.h (stmt_is_replaceable_p): New prototype.
16981
16982 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16983
16984         * config/rs6000/xilinx.opt: New.
16985         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16986
16987 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
16988
16989         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16990
16991 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
16992
16993         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16994         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16995         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16996         secondary_reload_info, xtensa_secondary_reload): Remove.
16997         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16998         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16999         (xtensa_preferred_reload_class): Make static. Change return and
17000         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17001         Use CONST_DOUBLE_P predicate.
17002         (xtensa_preferred_output_reload_class): New function.
17003         (xtensa_secondary_reload): Make static.
17004
17005 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
17006
17007         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17008         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17009         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17010
17011 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17012
17013         PR middle-end/31490
17014         * output.h (SECTION_RELRO): Define.
17015         (SECTION_MACH_DEP): Adjust.
17016         (get_variable_section): New prototype.
17017         * varpool.c (varpool_finalize_named_section_flags): New function.
17018         (varpool_assemble_pending_decls): Call it.
17019         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17020         * cgraphunit.c (cgraph_output_in_order): Call
17021         varpool_finalize_named_section_flags.
17022         * varasm.c (get_section): Allow section flags conflicts between
17023         relro and read-only sections if the section hasn't been declared yet.
17024         Set SECTION_OVERRIDE after diagnosing section type conflict.
17025         (get_variable_section): No longer static.
17026         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17027         readonly sections that need relocations.
17028         (decl_readonly_section_1): New function.
17029         (decl_readonly_section): Use it.
17030
17031         Revert:
17032         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
17033                     Steve Ellcey  <sje@cup.hp.com>
17034
17035         PR middle-end/31490
17036         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17037         if section attribute used.
17038
17039 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17040
17041         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17042         * config/darwin.c (SECTION_NO_ANCHOR): Define.
17043         (darwin_init_sections): Remove assertion.
17044
17045 2011-02-03  Nick Clifton  <nickc@redhat.com>
17046
17047         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17048         lt and ge.
17049         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
17050         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17051         instead of "n" and "pz".
17052         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17053         CC_FLAG_S.
17054
17055 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
17056
17057         PR target/47312
17058         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17059         fma, expand FMA_EXPR as fma{,f,l} call.
17060
17061         PR lto/47274
17062         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17063         copy them into a unsigned char variable and pass address of it to
17064         lto_output_data_stream.
17065
17066         PR target/47564
17067         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17068         around backend_init_target and lang_dependent_init_target calls.
17069         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17070         (verify_cgraph_node): Don't call set_cfun here.  Use
17071         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17072         Set error_found for incorrectly represented calls to thunks.
17073
17074 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
17075
17076         PR debug/43092
17077         PR rtl-optimization/43494
17078         * rtl.h (for_each_inc_dec_fn): New type.
17079         (for_each_inc_dec): Declare.
17080         * rtlanal.c (struct for_each_inc_dec_ops): New type.
17081         (for_each_inc_dec_find_inc_dec): New fn.
17082         (for_each_inc_dec_find_mem): New fn.
17083         (for_each_inc_dec): New fn.
17084         * dse.c (struct insn_size): Remove.
17085         (replace_inc_dec, replace_inc_dec_mem): Remove.
17086         (emit_inc_dec_insn_before): New fn.
17087         (check_for_inc_dec): Use it, along with for_each_inc_dec.
17088         (canon_address): Pass mem modes to cselib_lookup.
17089         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
17090         (cselib_lookup_from_insn): Likewise.
17091         (cselib_subst_to_values): Likewise.
17092         * cselib.c (find_slot_memmode): New var.
17093         (cselib_find_slot): New fn.  Use it instead of
17094         htab_find_slot_with_hash everywhere.
17095         (entry_and_rtx_equal_p): Use find_slot_memmode.
17096         (autoinc_split): New fn.
17097         (rtx_equal_for_cselib_p): Rename and implement in terms of...
17098         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
17099         Deal with autoinc.  Special-case recursion into MEMs.
17100         (cselib_hash_rtx): Likewise.
17101         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
17102         address and MEM modes.
17103         (cselib_subst_to_values): Add memmode, pass it on.
17104         Deal with autoinc.
17105         (cselib_lookup): Add memmode argument, pass it on.
17106         (cselib_lookup_from_insn): Add memmode.
17107         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17108         (struct cselib_record_autoinc_data): New.
17109         (cselib_record_autoinc_cb): New fn.
17110         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
17111         mode to cselib_lookup.  Reset autoinced REGs here instead of...
17112         (cselib_process_insn): ... here.
17113         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17114         to cselib_lookup.
17115         (add_uses): Likewise, also to cselib_subst_to_values.
17116         (add_stores): Likewise.
17117         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
17118         cselib_subst_to_values.
17119         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
17120         * gcse.c (do_local_cprop): Adjusted.
17121         * postreload.c (reload_cse_simplify_set): Adjusted.
17122         (reload_cse_simplify_operands): Adjusted.
17123         * sel-sched-dump (debug_mem_addr_value): Pass mode.
17124
17125 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
17126
17127         PR tree-optimization/45122
17128         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17129         unsafe assumptions when there's more than one loop exit.
17130
17131 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
17132
17133         PR target/47272
17134         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17135         Document using vector double with the load/store builtins, and
17136         that the load/store builtins always use Altivec instructions.
17137
17138         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17139         to use altivec memory instructions, even on VSX.
17140         (vector_altivec_store_<mode>): Ditto.
17141
17142         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17143         function.
17144
17145         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17146         V2DF, V2DI support to load/store overloaded builtins.
17147
17148         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17149         altivec load/store builtins for V2DF/V2DI types.
17150
17151         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17152         set avoid indexed addresses on power6 if -maltivec.
17153         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17154         vector_altivec_load/vector_altivec_store builtins.
17155         (altivec_expand_st_builtin): Ditto.
17156         (altivec_expand_builtin): Add VSX memory builtins.
17157         (rs6000_init_builtins): Add V2DI types to internal types.
17158         (altivec_init_builtins): Add support for V2DF/V2DI altivec
17159         load/store builtins.
17160         (rs6000_address_for_altivec): Insure memory address is appropriate
17161         for Altivec.
17162
17163         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17164         vec_vsx_ld and vec_vsx_st.
17165         (vsx_store_<mode>): Ditto.
17166
17167         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17168         variables to hold long long types for VSX vector memory builtins.
17169         (RS6000_BTI_unsigned_long_long): Ditto.
17170         (long_long_integer_type_internal_node): Ditti.
17171         (long_long_unsigned_type_internal_node): Ditti.
17172
17173         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17174         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17175         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17176
17177         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17178         short cuts.
17179         (vec_vsx_st): Ditto.
17180
17181 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17182
17183         * config/pa/pa-hpux10.opt: New.
17184         * config/hpux11.opt (pthread): New Driver option.
17185         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17186         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17187
17188 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17189
17190         * config/ia64/vms.opt: New.
17191         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17192
17193 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
17194
17195         PR target/47580
17196         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17197         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17198         generator functions.
17199         (vsx_floatuns<VSi><mode>2): Ditto.
17200         (vsx_fix_trunc<mode><VSi>2): Ditto.
17201         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17202
17203 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
17204
17205         * config/i386/djgpp.opt (posix): New Driver option.
17206
17207 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
17208
17209         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17210         Move to the unsupported targets list.
17211
17212 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
17213
17214         PR rtl-optimization/47525
17215         * df-scan.c: Update copyright years.
17216         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17217         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17218
17219 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17220
17221         * config/i386/sysv4.h (TARGET_VERSION): Remove.
17222         (SUBTARGET_RETURN_IN_MEMORY): Remove.
17223         (ASM_OUTPUT_ASCII): Remove.
17224         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17225
17226 2011-02-02  Jeff Law  <law@redhat.com>
17227
17228         PR middle-end/47543
17229         * reload.c (find_reloads_address): Handle reg+d address where both
17230         components are invalid by reloading the entire address.
17231
17232 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
17233             Richard Guenther  <rguenther@suse.de>
17234
17235         PR tree-optimization/40979
17236         PR bootstrap/47044
17237         * passes.c (init_optimization_passes): After LIM call copy_prop
17238         and DCE to clean up.
17239         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17240
17241 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
17242
17243         PR tree-optimization/47576
17244         PR tree-optimization/47555
17245         * doc/invoke.texi (scev-max-expr-complexity): Documented.
17246         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17247         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17248         * tree-scalar-evolution.c (follow_ssa_edge): Use
17249         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17250
17251 2011-02-02  Richard Guenther  <rguenther@suse.de>
17252
17253         PR tree-optimization/47566
17254         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17255
17256 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17257
17258         PR debug/47106
17259         PR debug/47402
17260         * tree-inline.c (declare_return_variable): Remove unused caller
17261         variable.
17262
17263         PR debug/47106
17264         PR debug/47402
17265         * tree-flow-inline.h (clear_is_used, is_used_p): New.
17266         * cfgexpand.c (account_used_vars_for_block): Use them.
17267         * tree-nrv.c (tree_nrv): Likewise.
17268         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17269         (dump_scope_block): Likewise.
17270         (remove_unused_locals): Likewise.
17271
17272         PR debug/47106
17273         PR debug/47402
17274         * tree-inline.c (declare_return_variable): Add result decl to
17275         local decls only once.
17276         * gimple-low.c (record_vars_into): Mark newly-created variables
17277         as referenced.
17278
17279 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
17280
17281         PR debug/47498
17282         PR debug/47501
17283         PR debug/45136
17284         PR debug/45130
17285         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17286         debug insns.
17287         (no_real_insns_p, schedule_block, set_priorities): Drop special
17288         treatment of boundary debug insns.
17289         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17290         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17291         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17292         (BOUNDARY_DEBUG_INSN_P): Likewise.
17293         (SCHEDULE_DEBUG_INSN_P): Likewise.
17294         * sched-rgn.c (init_ready_list): Drop special treatment of
17295         boundary debug insns.
17296         * final.c (rest_of_clean_state): Clear notes' BB.
17297
17298 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17299
17300         * config/openbsd.opt (assert=): New Driver option.
17301
17302 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17303
17304         * config/i386/nto.opt: New.
17305         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17306
17307 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17308
17309         * config/i386/netware.opt: New.
17310         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17311
17312 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17313
17314         * config/interix.opt (posix): New Driver option.
17315
17316 2011-02-01  DJ Delorie  <dj@redhat.com>
17317
17318         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17319
17320         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17321         class for A0/A1.
17322
17323 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
17324
17325         PR tree-optimization/47561
17326         * toplev.c (process_options): Print the Graphite flags.  Add
17327         flag_loop_flatten to the list of options requiring Graphite.
17328
17329 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17330
17331         * config/i386/cygming.opt (posix): New Driver option.
17332
17333 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17334
17335         * config/arm/vxworks.opt: New.
17336         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17337
17338 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
17339
17340         * config/alpha/elf.opt: New.
17341         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17342         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17343
17344 2011-02-01  Richard Guenther  <rguenther@suse.de>
17345
17346         PR tree-optimization/47559
17347         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17348         store-motion on references that can throw.
17349
17350 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
17351
17352         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17353         * tree-pass.h (TDF_CSELIB): New macro.
17354         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17355         cselib_lookup): Check for it rather than for TDF_DETAILS.
17356
17357 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
17358
17359         PR driver/47547
17360         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17361         is HOST_BIT_BUCKET.
17362
17363         * opts.c (finish_options): Don't add x_aux_base_name if it is
17364         HOST_BIT_BUCKET.
17365
17366 2011-02-01  Richard Guenther  <rguenther@suse.de>
17367
17368         PR tree-optimization/47555
17369         Revert
17370         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
17371
17372         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17373
17374 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
17375
17376         PR gcc/46692
17377         * config/lm32/t-lm32: Add multilib for all CPU options.
17378
17379 2011-02-01  Richard Guenther  <rguenther@suse.de>
17380
17381         PR tree-optimization/47541
17382         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17383         sure to have a field at offset zero.
17384
17385 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17386
17387         * config/arc/arc.opt (EB, EL): New Driver options.
17388
17389 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17390
17391         * config/alpha/osf5.opt: New.
17392         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17393
17394 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
17395
17396         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17397
17398 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
17399
17400         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17401         -floop-interchange.
17402         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17403         is an alias of -floop-interchange and that it requires the
17404         Graphite infrastructure.
17405         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17406         flag_loop_interchange based on the value of flag_tree_loop_linear.
17407
17408 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
17409             Richard Guenther  <rguenther@suse.de>
17410
17411         PR tree-optimization/47538
17412         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17413         type instead of r1type, except for comparisons.  For right
17414         shifts and comparisons punt if there are mismatches in
17415         sizetype vs. non-sizetype types.
17416
17417 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17418
17419         * doc/sourcebuild.texi (Effective-Target Keywords): Document
17420         avx_runtime.
17421
17422 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17423
17424         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17425         version number.
17426         * configure: Regenerate.
17427
17428 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17429
17430         * configure.ac (gcc_cv_ld_static_option): Define.
17431         (gcc_cv_ld_dynamic_option): Define.
17432         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17433         instead.
17434         (HAVE_LD_STATIC_DYNAMIC): Update message.
17435         (LD_STATIC_OPTION): Define.
17436         (LD_DYNAMIC_OPTION): Define.
17437         * configure: Regenerate.
17438         * config.in: Regenerate.
17439         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17440         HAVE_LD_STATIC_DYNAMIC]: Use them.
17441
17442 2011-01-31  Nick Clifton  <nickc@redhat.com>
17443
17444         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17445         registers inside interrupt handlers if the handler is not a leaf
17446         function.
17447
17448 2011-01-31  Nick Clifton  <nickc@redhat.com>
17449
17450         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17451         reg_renumber returning an INVALID_REGNUM.
17452
17453 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17454
17455         PR libgcj/44341
17456         * doc/install.texi: Document host options discarded when cross
17457         configuring target libraries.
17458
17459 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
17460
17461         Reverted:
17462         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17463         PR debug/45136
17464         PR debug/45130
17465         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17466         debug insns.
17467         (no_real_insns_p, schedule_block, set_priorities): Drop special
17468         treatment of boundary debug insns.
17469         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17470         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17471         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17472         (BOUNDARY_DEBUG_INSN_P): Likewise.
17473         (SCHEDULE_DEBUG_INSN_P): Likewise.
17474         * sched-rgn.c (init_ready_list): Drop special treatment of
17475         boundary debug insns.
17476         * final.c (rest_of_clean-state): Clear notes' BB.
17477
17478 2011-01-31  Alan Modra  <amodra@gmail.com>
17479
17480         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17481         toc relative expressions as we do in print_operand_address.
17482
17483 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
17484
17485         * doc/extend.texi: Follow spelling conventions.
17486         * doc/invoke.texi: Fix a typo.
17487
17488 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
17489
17490         * config/hpux11.opt: New.
17491         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17492         ia64*-*-hpux*): Use hpux11.opt.
17493
17494 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
17495
17496         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17497         to tmake_file.
17498
17499 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17500
17501         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17502         support sites.
17503
17504 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17505
17506         * doc/install.texi (Binaries): Remove outdated reference for
17507         Motorola 68HC11/68HC12 downloads.
17508
17509 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
17510
17511         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17512         Drepper's paper.
17513
17514 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
17515
17516         PR bootstrap/47147
17517         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17518         used by NetBSD.
17519
17520 2011-01-28  Ahmad Sharif  <asharif@google.com>
17521
17522         * value-prof.c (check_counter): Corrected error message.
17523
17524 2011-01-29  Jie Zhang  <jie@codesourcery.com>
17525
17526         * config/arm/arm.c (arm_legitimize_reload_address): New.
17527         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17528         arm_legitimize_reload_address.
17529         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17530
17531 2011-01-28  Ian Lance Taylor  <iant@google.com>
17532
17533         * godump.c (go_define): Ignore macros whose definitions include
17534         two adjacent operands.
17535
17536 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
17537
17538         PR target/42894
17539         * varasm.c (force_const_mem): Store copy of x in desc->constant
17540         instead of x itself.
17541         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17542         itself into REG_EQUAL note.
17543
17544 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
17545
17546         * config/freebsd.opt (posix, rdynamic): New Driver options.
17547
17548 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17549
17550         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17551         -Bstatic/-Bdynamic.
17552         * configure: Regenerate.
17553
17554 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
17555
17556         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17557         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17558
17559 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
17560
17561         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17562         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17563         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17564         (s390_preferred_reload_class): Make static. Change return and
17565         'rclass' argument type to reg_class_t.
17566
17567 2011-01-27  Jan Hubicka  <jh@suse.cz>
17568
17569         PR middle-end/46949
17570         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17571         (process_function_and_variable_attributes): Check defined weakrefs.
17572
17573 2011-01-27  Martin Jambor  <mjambor@suse.cz>
17574
17575         PR tree-optimization/47228
17576         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17577         build_ref_for_offset.
17578
17579 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17580
17581         * config/spu/spu-elf.h (ASM_SPEC): Remove.
17582
17583 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
17584
17585         PR rtl-optimization/46856
17586         * postreload.c (reload_combine_recognize_const_pattern): Do not
17587         separate cc0 setter and user on cc0 targets.
17588
17589 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
17590
17591         PR c/43082
17592         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17593         passed a VOID_TYPE expression, immediately emit an error and
17594         return error_mark_node.
17595
17596 2011-01-26  Jeff Law  <law@redhat.com>
17597
17598         PR rtl-optimization/47464
17599         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17600         rather than may_trap_p as needed.
17601
17602 2011-01-26  DJ Delorie  <dj@redhat.com>
17603
17604         PR rtl-optimization/46878
17605         * combine.c (insn_a_feeds_b): Check for the implicit cc0
17606         setter/user dependency as well.
17607
17608 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
17609
17610         PR rtl-optimization/44469
17611         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17612         after removing trivially dead basic blocks.
17613
17614 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17615
17616         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17617         * config/frv/frv.h (LINK_SPEC): Likewise.
17618         * config/i386/netware.h (LINK_SPEC): Likewise.
17619         * config/m68k/linux.h (ASM_SPEC): Likewise.
17620         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17621         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17622         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17623         * config/sparc/linux.h (ASM_SPEC): Likewise.
17624         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17625         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17626
17627 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17628
17629         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17630         * config/frv/frv.h (ASM_SPEC): Likewise.
17631         * config/m68k/linux.h (ASM_SPEC): Likewise.
17632         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17633         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17634         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17635         * config/sparc/linux.h (ASM_SPEC): Likewise.
17636         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17637         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17638
17639 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17640
17641         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17642         * config/frv/frv.h (LINK_SPEC): Likewise.
17643         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17644
17645 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
17646
17647         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17648         * config/frv/frv.h (ASM_SPEC): Likewise.
17649         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17650         * config/m68k/linux.h (ASM_SPEC): Likewise.
17651         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17652         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17653         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17654         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17655         * config/sparc/linux.h (ASM_SPEC): Likewise.
17656         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17657         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17658         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17659
17660 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
17661
17662         PR target/46997
17663         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17664         (*mux2): Ditto.
17665         (vec_extract_evenodd_help): Ditto.
17666         (vec_extract_evenv4hi): Ditto.
17667         (vec_extract_oddv4hi): Ditto.
17668         (vec_interleave_lowv2si): Ditto.
17669         (vec_interleave_highv2si): Ditto.
17670         (vec_extract_evenv2si): Ditto.
17671         (vec_extract_oddv2si: Ditto.
17672         (vec_pack_trunc_v2si): Ditto.
17673
17674 2011-01-22  Jan Hubicka  <jh@suse.cz>
17675
17676         PR target/47237
17677         * cgraph.h (cgraph_local_info): New field can_change_signature.
17678         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17679         signature can change.
17680         (ipcp_estimate_growth): Call sequence simplify only if calle signature
17681         can change.
17682         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17683         (cgraph_function_versioning): We can not change signature of functions
17684         that don't allow that.
17685         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17686         (lto_input_node): Likewise.
17687         * ipa-inline.c (compute_inline_parameters): Compute
17688         local.can_change_signature.
17689         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17690         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17691         functions that can not change signature.
17692         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17693         init_cumulative_args): Do not use local calling conventions
17694         for functions that can not change signature.
17695
17696 2011-01-22  Jan Hubicka  <jh@suse.cz>
17697
17698         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17699
17700 2011-01-26  Richard Guenther  <rguenther@suse.de>
17701
17702         PR tree-optimization/47190
17703         * cgraphunit.c (process_common_attributes): New function.
17704         (process_function_and_variable_attributes): Use it.
17705
17706 2011-01-26  Richard Guenther  <rguenther@suse.de>
17707
17708         PR lto/47423
17709         * cgraphbuild.c (record_eh_tables): Record reference to personality
17710         function.
17711
17712 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
17713
17714         PR debug/45454
17715         * sel-sched.c (moveup_expr): Don't let debug insns prevent
17716         non-debug insns from moving up.
17717
17718 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17719
17720         PR target/40125
17721         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17722         t-dlldir{,-x} fragment for build and add it to tmake_file.
17723         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17724         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17725         * config/i386/t-dlldir: New file.
17726         (SHLIB_DLLDIR): Define.
17727         * config/i386/t-dlldir-x: New file.
17728         (SHLIB_DLLDIR): Define.
17729         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17730         (SHLIB_INSTALL): Use it.
17731
17732 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
17733
17734         PR target/47246
17735         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17736         lower bound of the allowed Thumb-2 coprocessor load/store
17737         index range to -256. Add explaining comment.
17738
17739 2011-01-25  Ian Lance Taylor  <iant@google.com>
17740
17741         * godump.c (go_define): Improve lexing of macro expansion to only
17742         accept expressions which match Go spec.
17743
17744 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
17745
17746         PR c++/43601
17747         * tree.c (handle_dll_attribute): Handle it.
17748         * doc/extend.texi (@item dllexport): Mention it.
17749         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17750
17751 2011-01-25  Ian Lance Taylor  <iant@google.com>
17752
17753         PR tree-optimization/26854
17754         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17755         (decl_jump_unsafe): Move higher in file, with no other change.
17756         (bind): Set has_jump_unsafe_decl if appropriate.
17757         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17758         (check_earlier_gotos): Likewise.
17759         (c_check_switch_jump_warnings): Likewise.
17760
17761 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
17762
17763         * doc/invoke.texi (Warning Options): Add missing hyphen.
17764         (-fprofile-dir): Minor grammatical fixes.
17765         (-fbranch-probabilities): Likewise.
17766
17767 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
17768
17769         PR debug/45136
17770         PR debug/45130
17771         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17772         debug insns.
17773         (no_real_insns_p, schedule_block, set_priorities): Drop special
17774         treatment of boundary debug insns.
17775         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17776         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17777         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17778         (BOUNDARY_DEBUG_INSN_P): Likewise.
17779         (SCHEDULE_DEBUG_INSN_P): Likewise.
17780         * sched-rgn.c (init_ready_list): Drop special treatment of
17781         boundary debug insns.
17782         * final.c (rest_of_clean-state): Clear notes' BB.
17783
17784 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17785
17786         * Makefile.in (LAMBDA_H): Removed.
17787         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17788         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17789         lambda-trans.o, and tree-loop-linear.o.
17790         (lto-symtab.o): Remove dependence on LAMBDA_H.
17791         (tree-loop-linear.o): Remove rule.
17792         (lambda-mat.o): Same.
17793         (lambda-trans.o): Same.
17794         (lambda-code.o): Same.
17795         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17796         (tree-vect-slp.o): Same.
17797         * hwint.h (gcd): Moved here.
17798         (least_common_multiple): Same.
17799         * lambda-code.c: Removed.
17800         * lambda-mat.c: Removed.
17801         * lambda-trans.c: Removed.
17802         * lambda.h: Removed.
17803         * tree-loop-linear.c: Removed.
17804         * lto-symtab.c: Do not include lambda.h.
17805         * omega.c (gcd): Removed.
17806         * passes.c (init_optimization_passes): Remove pass_linear_transform.
17807         * tree-data-ref.c (print_lambda_vector): Moved here.
17808         (lambda_vector_copy): Same.
17809         (lambda_matrix_copy): Same.
17810         (lambda_matrix_id): Same.
17811         (lambda_vector_first_nz): Same.
17812         (lambda_matrix_row_add): Same.
17813         (lambda_matrix_row_exchange): Same.
17814         (lambda_vector_mult_const): Same.
17815         (lambda_vector_negate): Same.
17816         (lambda_matrix_row_negate): Same.
17817         (lambda_vector_equal): Same.
17818         (lambda_matrix_right_hermite): Same.
17819         * tree-data-ref.h: Do not include lambda.h.
17820         (lambda_vector): Moved here.
17821         (lambda_matrix): Same.
17822         (dependence_level): Same.
17823         (lambda_transform_legal_p): Removed declaration.
17824         (lambda_collect_parameters): Same.
17825         (lambda_compute_access_matrices): Same.
17826         (lambda_vector_gcd): Same.
17827         (lambda_vector_new): Same.
17828         (lambda_vector_clear): Same.
17829         (lambda_vector_lexico_pos): Same.
17830         (lambda_vector_zerop): Same.
17831         (lambda_matrix_new): Same.
17832         * tree-flow.h (least_common_multiple): Removed declaration.
17833         * tree-parloops.c (lambda_trans_matrix): Moved here.
17834         (LTM_MATRIX): Same.
17835         (LTM_ROWSIZE): Same.
17836         (LTM_COLSIZE): Same.
17837         (LTM_DENOMINATOR): Same.
17838         (lambda_trans_matrix_new): Same.
17839         (lambda_matrix_vector_mult): Same.
17840         (lambda_transform_legal_p): Same.
17841         * tree-pass.h (pass_linear_transform): Removed declaration.
17842         * tree-ssa-loop.c (tree_linear_transform): Removed.
17843         (gate_tree_linear_transform): Removed.
17844         (pass_linear_transform): Removed.
17845         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17846         flag_loop_interchange.
17847
17848 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17849
17850         PR tree-optimization/47265
17851         PR tree-optimization/47443
17852         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17853         if name still has some uses.
17854
17855 2011-01-25  Martin Jambor  <mjambor@suse.cz>
17856
17857         PR tree-optimization/47382
17858         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17859         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17860
17861 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
17862
17863         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17864         sjlj_except_unwind_info.
17865
17866 2011-01-25  Richard Guenther  <rguenther@suse.de>
17867
17868         PR tree-optimization/47426
17869         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17870         visible functions results escape.
17871
17872 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17873
17874         PR target/45701
17875         * config/arm/arm.c (any_sibcall_uses_r3): New function.
17876         (arm_get_frame_offsets): Use it.
17877
17878 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17879             Jakub Jelinek  <jakub@redhat.com>
17880
17881         PR tree-optimization/47271
17882         * tree-if-conv.c (bb_postdominates_preds): New.
17883         (if_convertible_bb_p): Call bb_postdominates_preds.
17884         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17885         (predicate_scalar_phi): Call bb_postdominates_preds.
17886
17887 2011-01-25  Nick Clifton  <nickc@redhat.com>
17888
17889         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17890         * config/rx/rx.c (rx_function_value): Likewise.
17891         (rx_promote_function_mode): Likewise.
17892         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17893         in order to make it legitimate.
17894         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17895         make sure that the first operand is the same as the result register.
17896         (addsi3_unspec): Delete.
17897         (subdi3): Do not accept immediate operands.
17898         (subdi3_internal): Likewise.
17899
17900 2011-01-25  Jeff Law  <law@redhat.com>
17901
17902         PR rtl-optimization/37273
17903         * ira-costs.c (scan_one_insn): Detect constants living in memory and
17904         handle them like argument loads from stack slots.  Do not double
17905         count memory for memory constants and argument loads from stack slots.
17906
17907 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
17908
17909         PR tree-optimization/47427
17910         PR tree-optimization/47428
17911         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17912         coalesce if the new root var would be TREE_READONLY.
17913
17914 2011-01-25  Richard Guenther  <rguenther@suse.de>
17915
17916         PR middle-end/47414
17917         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17918         correct type for TBAA.
17919
17920 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17921
17922         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17923         (close_phi_written_to_memory): Call for_each_index with
17924         dr_indices_valid_in_loop.
17925
17926 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17927
17928         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17929         when it is initialized.
17930
17931 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17932
17933         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17934         call to graphite_find_data_references_in_stmt.
17935         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17936         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
17937         call to graphite_find_data_references_in_stmt.
17938         (analyze_drs_in_stmts): Same.
17939         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17940         in which the scalar analysis of indices is performed.
17941         (create_data_ref): Same.  Update call to dr_analyze_indices.
17942         (find_data_references_in_stmt): Update call to create_data_ref.
17943         (graphite_find_data_references_in_stmt): Same.
17944         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17945         declaration.
17946         (create_data_ref): Same.
17947         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17948         call to create_data_ref.
17949
17950 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17951
17952         * graphite-sese-to-poly.c (build_poly_scop): Move
17953         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17954
17955 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17956
17957         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17958         VAR_DECL, PARM_DECL, and RESULT_DECL.
17959
17960 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17961
17962         * graphite-dependences.c (reduction_dr_1): Allow several reductions
17963         in a reduction PBB.
17964         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17965         that have already been marked as PBB_IS_REDUCTION.
17966
17967 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17968
17969         * graphite-scop-detection.c (same_close_phi_node): New.
17970         (remove_duplicate_close_phi): New.
17971         (make_close_phi_nodes_unique): New.
17972         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17973
17974 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17975
17976         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17977         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17978         of both data references to be the same.
17979
17980 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17981
17982         * graphite-dependences.c (build_lexicographical_constraint): Remove
17983         the gdim parameter.
17984         (build_lexicographical_constraint): Adjust call to
17985         ppl_powerset_is_empty.
17986         (dependence_polyhedron): Same.
17987         (graphite_legal_transform_dr): Same.
17988         (graphite_carried_dependence_level_k): Same.
17989         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17990         parameter.
17991         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17992
17993 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
17994
17995         * graphite-sese-to-poly.c
17996         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17997         (close_phi_written_to_memory): New.
17998         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17999         and unshare_expr.
18000
18001 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18002
18003         * doc/install.texi: Update the expected version number of PPL to 0.11.
18004         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18005         #if PPL_VERSION_MINOR < 11.
18006
18007 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18008
18009         * graphite-dependences.c: Include graphite-cloog-util.h.
18010         (new_poly_ddr): Inlined into dependence_polyhedron.
18011         (free_poly_ddr): Moved close by new_poly_ddr.
18012         (dependence_polyhedron_1): Renamed dependence_polyhedron.
18013         Early return NULL when ppl_powerset_is_empty returns true.
18014         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
18015         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
18016         (graphite_legal_transform_dr): Call new_poly_ddr.
18017         (graphite_carried_dependence_level_k): Same.
18018         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
18019         (dot_transformed_deps_stmt_1): Removed.
18020         (dot_deps_stmt_1): Call dot_deps_stmt_2.
18021         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
18022         (dot_deps_1): Call dot_deps_2.
18023         * Makefile.in (graphite-dependences.o): Add missing dependence on
18024         graphite-cloog-util.h.
18025
18026 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18027
18028         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18029         (build_lexicographical_constraint): Same.
18030         (dependence_polyhedron_1): Same.
18031         (graphite_legal_transform_dr): Same.
18032         (graphite_carried_dependence_level_k): Same.
18033         * graphite-ppl.c (ppl_powerset_is_empty): New.
18034         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18035         * tree-data-ref.c (dump_data_reference): Print the basic block index.
18036
18037 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18038
18039         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18040         the "a followed by b" relation and document it.
18041
18042 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18043
18044         * graphite-dependences.c (build_lexicographical_constraint): Stop the
18045         iteration when the bag of constraints is empty.
18046
18047 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18048
18049         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18050
18051 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18052
18053         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18054         nest and two loop depths as parameters.
18055         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18056         lst_perfect_nestify.
18057
18058 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18059
18060         * graphite-dependences.c (print_pddr): Call
18061         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18062
18063 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
18064
18065         * graphite-ppl.c (debug_gmp_value): New.
18066         * graphite-ppl.h (debug_gmp_value): Declared.
18067
18068 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
18069
18070         * doc/install.texi: Document availability of cloog-0.16.
18071
18072 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
18073
18074         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18075         invalid postdominance info.
18076
18077 2011-01-24  Jan Hubicka  <jh@suse.cz>
18078
18079         PR c/21659
18080         * doc/extend.texi (weak pragma): Drop claim that it must
18081         appear before definition.
18082         * varasm.c (merge_weak, declare_weak): Only sanity check
18083         that DECL is not output at a time it is declared weak.
18084
18085 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
18086
18087         * machmode.def: Fixed comments.
18088
18089 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
18090
18091         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18092
18093 2011-01-24  Paul Koning  <ni1d@arrl.net>
18094
18095         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
18096         WORDS_BIG_ENDIAN.
18097
18098 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
18099
18100         PR target/46519
18101         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18102         (block_info): Add scanned and prev.
18103         (move_or_delete_vzeroupper_2): Return if the basic block
18104         has been scanned and the upper 128bit state is unchanged
18105         from the last scan.
18106         (move_or_delete_vzeroupper_1): Return true if the exit
18107         state is changed.
18108         (move_or_delete_vzeroupper): Visit basic blocks using the
18109         work-list based algorithm based on vt_find_locations in
18110         var-tracking.c.
18111
18112         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18113
18114 2011-01-24  Nick Clifton  <nickc@redhat.com>
18115
18116         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18117         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18118         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
18119         then define __v850e1__.
18120         * doc/invoke.texi: Document -mv850es.
18121
18122 2011-01-24  Richard Henderson  <rth@redhat.com>
18123
18124         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18125         compound unordered comparisons.
18126         * config/rx/rx.c (rx_split_fp_compare): Remove.
18127         * config/rx/rx-protos.h: Update.
18128         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18129         (cbranchsf4): Don't call rx_split_fp_compare.
18130         (*cbranchsf4): Use rx_split_cbranch.
18131         (*cmpsf): Don't accept "i" constraint.
18132         (*conditional_branch): Only valid after reload.
18133         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
18134
18135 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
18136
18137         PR target/47385
18138         * config/rs6000/altivec.md (vector constant splitters): Add
18139         support for creating vector single precision constants if -mvsx is
18140         used and we would create the constant using Altivec primitives.
18141
18142 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
18143             Richard Sandiford  <rdsandiford@googlemail.com>
18144
18145         PR rtl-optimization/47166
18146         * reload1.c (emit_reload_insns): Disable the spill_reg_store
18147         mechanism for PRE_MODIFY and POST_MODIFY.
18148         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18149         reloadreg.
18150
18151 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
18152
18153         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18154
18155 2011-01-22  Jan Hubicka  <jh@suse.cz>
18156
18157         PR lto/47333
18158         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18159
18160 2011-01-22  Jan Hubicka  <jh@suse.cz>
18161
18162         PR tree-optimization/43884
18163         PR lto/44334
18164         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18165         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18166
18167 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
18168
18169         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18170         * config/s390/s390.c (s390_register_move_cost,
18171         s390_memory_move_cost): New.
18172         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18173
18174 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18175
18176         PR middle-end/47401
18177         * except.c (sjlj_assign_call_site_values): Move setting the
18178         crtl->uses_eh_lsda flag to ...
18179         (sjlj_mark_call_sites): ... here.
18180         (sjlj_emit_function_enter): Support NULL dispatch label.
18181         (sjlj_build_landing_pads): In a function with no landing pads
18182         that still has must-not-throw regions, generate code to register
18183         a personality function with empty LSDA.
18184
18185 2011-01-21  Richard Henderson  <rth@redhat.com>
18186
18187         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18188
18189         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18190
18191         * compare-elim.c: New file.
18192         * Makefile.in (OBJS-common): Add it.
18193         (compare-elim.o): New.
18194         * common.opt (fcompare-elim): New.
18195         * opts.c (default_options_table): Add OPT_fcompare_elim.
18196         * tree-pass.h (pass_compare_elim_after_reload): New.
18197         * passes.c (init_optimization_passes): Add it.
18198         * recog.h: Protect against re-inclusion.
18199         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18200         * doc/invoke.texi (-fcompare-elim): Document it.
18201         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18202         * doc/tm.texi: Rebuild.
18203
18204 2011-01-22  Nick Clifton  <nickc@redhat.com>
18205
18206         * config/rx/rx.md (cstoresf4): Pass comparison operator to
18207         rx_split_fp_compare.
18208
18209 2011-01-22  Nick Clifton  <nickc@redhat.com>
18210
18211         * config/rx/rx.md (UNSPEC_CONST): New.
18212         (deallocate_and_return): Wrap the amount popped off the stack in
18213         an UNSPEC_CONST in order to stop it being rejected by
18214         -mmax-constant-size.
18215         (pop_and_return): Add a "(return)" rtx.
18216         (call): Drop the immediate operand.
18217         (call_internal): Likewise.
18218         (call_value): Likewise.
18219         (call_value_internal): Likewise.
18220         (sibcall_internal): Likewise.
18221         (sibcall_value_internal): Likewise.
18222         (sibcall): Likewise.  Generate an explicit call using
18223         sibcall_internal.
18224         (sibcall_value): Likewise.
18225         (mov<>): FAIL if a constant operand is not legitimate.
18226         (addsi3_unpsec): New pattern.
18227
18228         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18229         (ok_for_max_constant): New function.
18230         (gen_safe_add): New function.
18231         (rx_expand_prologue): Use gen_safe_add.
18232         (rx_expand_epilogue): Likewise.
18233         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
18234         UNSPEC CONSTs.
18235
18236 2011-01-21  Jeff Law  <law@redhat.com>
18237
18238         PR tree-optimization/47053
18239         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18240         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18241         statements are deleted.
18242         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
18243         is nonempty, then purge dead edges and cleanup the CFG.
18244
18245 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18246
18247         PR debug/47402
18248         Temporarily revert:
18249         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18250         PR debug/47106
18251         * tree-dfa.c (create_var_ann): Mark variable as used.
18252
18253 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18254
18255         PR middle-end/45566
18256         * except.c (convert_to_eh_region_ranges): Emit queued no-region
18257         notes from other section in hot/cold partitioning even if
18258         last_action is -3.  Increment call_site_base.
18259
18260         PR rtl-optimization/47366
18261         * fwprop.c (forward_propagate_into): Return bool.  If
18262         any changes are made, -fnon-call-exceptions is used and
18263         REG_EH_REGION note is present, call purge_dead_edges
18264         and return true if it purged anything.
18265         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18266         any EH edges were purged.
18267
18268 2011-01-21  Jeff Law  <law@redhat.com>
18269
18270         PR rtl-optimization/41619
18271         * caller-save.c (setup_save_areas): Break out code to determine
18272         which hard regs are live across calls by examining the reload chains
18273         so that it is always used.
18274         Eliminate code which checked REG_N_CALLS_CROSSED.
18275
18276 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18277
18278         PR tree-optimization/47355
18279         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18280         NOP has non-debug uses beyond PHIs in new_bb.
18281
18282 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
18283
18284         PR debug/47106
18285         * cfgexpand.c (account_used_vars_for_block): Only account vars
18286         that are annotated as used.
18287         (estimated_stack_frame_size): Don't set TREE_USED.
18288         * tree-dfa.c (create_var_ann): Mark variable as used.
18289
18290 2011-01-21  Richard Guenther  <rguenther@suse.de>
18291
18292         PR middle-end/47395
18293         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18294
18295 2011-01-21  Richard Guenther  <rguenther@suse.de>
18296
18297         PR tree-optimization/47365
18298         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18299         (vn_reference_lookup_pieces): Adjust.
18300         (vn_reference_lookup): Likewise.
18301         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18302         (vn_reference_lookup_3): Only look through kills if in
18303         VN_WALKREWRITE mode.
18304         (vn_reference_lookup_pieces): Adjust.
18305         (vn_reference_lookup): Likewise.
18306         (visit_reference_op_load): Likewise.
18307         (visit_reference_op_store): Likewise.
18308         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18309         (compute_avail): Likewise.
18310         (eliminate): Likewise.
18311
18312 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
18313
18314         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18315         DECL_IGNORED_P non-reg vars if they are used.
18316
18317         PR tree-optimization/47391
18318         * varpool.c (const_value_known_p): Return false if
18319         decl is volatile.
18320
18321 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
18322
18323         PR bootstrap/47215
18324         * config/i386/i386.c (ix86_local_alignment): Handle
18325         case for va_list_type_node is nil.
18326         (ix86_canonical_va_list_type): Likewise.
18327
18328 2011-01-21  Alan Modra  <amodra@gmail.com>
18329
18330         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18331         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18332
18333 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18334
18335         * config/arm/arm.md (define_attr type): Rename f_load
18336         and f_store to f_fpa_load and f_fpa_store. Update.
18337         (write_conflict): Deal with rename fallout.
18338         (*push_fp_multi): Likewise.
18339         * config/arm/fpa.md (f_load): Use f_fpa_load.
18340         (f_store): Use f_fpa_store.
18341         (*movsf_fpa): Likewise.
18342         (*movdf_fpa): Likewise.
18343         (*movxf_fpa): Likewise.
18344         (*thumb2_movsf_fpa): Likewise.
18345         (*thumb2_movdf_fpa): Likewise.
18346         (*thumb2_movxf_fpa): Likewise.
18347         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18348         f_loadd and f_stored.
18349         (*thumb2_movdi_vfp): Likewise.
18350         (*thumb2_movsf_vfp): Fix attribute to f_loads.
18351         (*thumb2_movsi_vfp): Likewise.
18352         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18353         Use f_loads instead of f_load.
18354         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18355
18356 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
18357
18358         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18359         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18360         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18361         (xtensa_mode_dependent_address_p): New function.
18362         (constantpool_address_p): Make static. Change return type to bool.
18363         Change argument type to const_rtx. Use CONST_INT_P predicate.
18364
18365 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
18366
18367         PR debug/46583
18368         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18369
18370 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18371
18372         PR debug/47283
18373         * cfgexpand.c (expand_debug_expr): Instead of generating
18374         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18375         etc. handling.
18376
18377 2011-01-20  Richard Guenther  <rguenther@suse.de>
18378
18379         PR middle-end/47370
18380         * tree-inline.c (remap_gimple_op_r): Recurse manually for
18381         the pointer operand of MEM_REFs.
18382
18383 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
18384
18385         PR tree-optimization/46130
18386         * ipa-split.c (consider_split): If return_bb contains non-virtual
18387         PHIs other than for retval or if split_function would not adjust it,
18388         refuse to split.
18389
18390 2011-01-20  Richard Guenther  <rguenther@suse.de>
18391
18392         PR tree-optimization/47167
18393         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18394         Revert previous change, only avoid enumeral type changes.
18395
18396 2011-01-19  Mike Stump  <mikestump@comcast.net>
18397
18398         * doc/tm.texi.in (BRANCH_COST): Englishify.
18399         * doc/tm.texi (BRANCH_COST): Likewise.
18400
18401 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
18402
18403         PR c++/47291
18404         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18405         (gen_scheduled_generic_parms_dies): New functions.
18406         (gen_struct_or_union_type_die): Schedule template parameters DIEs
18407         generation for the end of CU compilation.
18408         (dwarf2out_finish): Generate template parameters DIEs here.
18409
18410 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18411
18412         PR debug/46240
18413         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18414         debug bind stmt on merge edges.
18415
18416 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18417
18418         PR debug/47079
18419         PR debug/46724
18420         * function.c (instantiate_expr): Instantiate incoming rtl of
18421         implicit arguments, and recurse on VALUE_EXPRs.
18422         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18423         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18424
18425 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
18426
18427         * c-parser.c (c_parser_for_statement): Initialize
18428         collection_expression.
18429
18430 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18431
18432         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18433
18434 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18435
18436         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18437         (LINK_SHLIB_SPEC): Don't use %(link_path).
18438         (SUBTARGET_EXTRA_SPECS): Remove link_path.
18439
18440 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18441
18442         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18443         (NO_SHARED_LIB_SUPPORT): Remove.
18444         (LINK_SHLIB_SPEC): Remove one conditional definition.
18445
18446 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
18447
18448         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18449         %{call_shared}.
18450         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18451         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18452         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18453         %{call_shared} and conditionals on these options not being passed.
18454         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18455         %{call_shared}.
18456
18457 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18458
18459         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18460         simplify.
18461
18462         * ipa-split.c: Spelling fixes.
18463
18464 2011-01-19  Richard Henderson  <rth@redhat.com>
18465
18466         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18467         (*mulsi3): Likewise.
18468
18469         * longlong.h [__mn10300__] (count_leading_zeros): New.
18470         [__mn10300__] (umul_ppmm, smul_ppmm): New.
18471         [__mn10300__] (add_ssaaaa, subddmmss): New.
18472         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18473         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18474
18475 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18476
18477         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18478
18479 2011-01-19  Richard Henderson  <rth@redhat.com>
18480
18481         * config/mn10300/mn10300.md (addsi3_flags): New.
18482         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18483         (subsi3_flags, subc_internal, subdi3): New.
18484         (subdi3_internal, *subdi3_degenerate): New.
18485         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18486
18487         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18488         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18489         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
18490         * config/mn10300/mn10300-protos.h: Update.
18491         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18492         (return_ret): Likewise.  Rename from return_internal_regs.
18493         (return_internal): Remove.
18494
18495         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18496         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18497         (mn10300_legitimate_constant_p): Likewise.
18498         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18499         (mn10300_frame_size): New.
18500         (mn10300_expand_prologue): Use it.
18501         (mn10300_expand_epilogue): Likewise.
18502         (mn10300_initial_offset): Likewise.
18503         * config/mn10300/mn10300-protos.h: Update.
18504         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18505         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18506         (prologue, epilogue, return_internal): Tidy output code.
18507         (mn10300_store_multiple_operation, return): Likewise.
18508         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18509         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18510         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18511         (load_pic, am33_load_pic): New.
18512         (mn10300_load_pic0, mn10300_load_pic1): New.
18513
18514         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18515         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18516         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18517         (cc_flags_for_mode, cc_flags_for_code): New.
18518         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18519         overflow flag is not valid.  Validate that the flags we need
18520         for the comparison are valid.
18521         (mn10300_output_cmp): Remove.
18522         (mn10300_output_add): New.
18523         (mn10300_select_cc_mode): Use cc_flags_for_code.
18524         (mn10300_split_cbranch): New.
18525         (mn10300_match_ccmode): New.
18526         (mn10300_split_and_operand_count): New.
18527         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18528         to the function.
18529         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18530         (addsi3): ... here.  Use mn10300_output_add.
18531         (*addsi3_flags): New.
18532         (*am33_subsi3, *mn10300_subsi3): Merge...
18533         (subsi3): ... here.  Use attribute isa.
18534         (*subsi3_flags): New.
18535         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
18536         when possible.
18537         (*am33_andsi3, *mn10300_andsi3): Merge...
18538         (andsi3): ... here.
18539         (*andsi3_flags): New.
18540         (andsi3 splitters): New.
18541         (*am33_iorsi3, *mn10300_iorsi3): Merge...
18542         (iorsi3): ... here.
18543         (*iorsi3_flags): New.
18544         (*am33_xorsi3, *mn10300_xorsi3): Merge...
18545         (xorsi3): ... here.
18546         (*xorsi3_flags): New.
18547         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18548         (one_cmplsi2): ... here.
18549         (*one_cmplsi2_flags): New.
18550         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
18551         instead of "dax" in constraints.  Use mn10300_split_cbranch.
18552         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
18553         use matching constraints to eliminate a self-comparison.
18554         (*integer_conditional_branch): Rename from integer_conditional_branch.
18555         Use int_mode_flags to match CC_REG.
18556         (*cbranchsi4_btst, *btstsi): New.
18557         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
18558         mn10300_split_cbranch.
18559         (*am33_cmpsf): Rename from am33_cmpsf.
18560         (*float_conditional_branch): Rename from float_conditional_branch.
18561         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18562         (zero_extendqisi2): ... here.
18563         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18564         (zero_extendhisi2): ... here.
18565         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18566         (extendqisi2): ... here.
18567         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18568         (extendhisi2): ... here.
18569         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18570         (ashlsi3): ... here.
18571         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18572         (lshrsi3): ... here.
18573         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18574         (ashrsi3): ... here.
18575         (consecutive add peephole): Remove.
18576         * config/mn10300/predicates.md (label_ref_operand): New.
18577         (int_mode_flags): New.
18578         (CCZN_comparison_operator): New.
18579
18580         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18581         (throughput_42_latency_43): New reservation.
18582         (mulsidi3, umulsidi3): New expanders.
18583         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
18584         the MDR register to allocation; separately allocate the low and
18585         high parts of the DImode result.
18586         (umulsidi3_internal): Similarly.
18587         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18588         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
18589         (udivsi3, umodsi3): Remove.
18590         (udivmodsi4, divmodsi4): New expanders.
18591         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
18592         (*divmodsi4): Simiarly.
18593         (ext_internal): New.
18594
18595         * config/mn10300/constraints.md ("z"): New constraint.
18596         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18597         (FIXED_REGISTERS): Don't fix MDR.
18598         (CALL_USED_REGSITERS): Reformat nicely.
18599         (REG_ALLOC_ORDER): Add MDR.
18600         (enum regclass): Add MDR_REGS.
18601         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18602         (IRA_COVER_CLASSES): Add MDR_REGS.
18603         (REGNO_REG_CLASS): Handle MDR_REG.
18604         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18605         (mn10300_register_move_cost): Likewise.
18606         * config/mn10300/mn10300.md (MDR_REG): New.
18607         (*movsi_internal): Handle moves to/from MDR_REGS.
18608
18609         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18610         POST_MODIFY.
18611         (mn10300_secondary_reload): Tidy combination reload classes.
18612         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18613         addresses for AM33.  Allow symbolic offsets for reg+imm.
18614         (mn10300_regno_in_class_p): New.
18615         (mn10300_legitimize_reload_address): New.
18616         * config/mn10300/mn10300.h (enum reg_class): Remove
18617         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18618         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
18619         SP_OR_GENERAL_REGS.
18620         (REG_CLASS_NAMES): Update to match.
18621         (REG_CLASS_CONTENTS): Likewise.
18622         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18623         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18624         (REGNO_IN_RANGE_P): Remove.
18625         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18626         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18627         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18628         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18629         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18630         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18631         (REGNO_GENERAL_P): New.
18632         (HAVE_POST_MODIFY_DISP): New.
18633         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18634         (LEGITIMIZE_RELOAD_ADDRESS): New.
18635         * config/mn10300/mn10300-protos.h: Update.
18636
18637         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18638         DATA_REGS for AM33 stack-pointer destination.
18639         (mn10300_preferred_output_reload_class): Likewise.
18640         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18641         into a form appropriate for ...
18642         (TARGET_SECONDARY_RELOAD): New.
18643         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18644         * config/mn10300/mn10300-protos.h: Update.
18645         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18646         reload_insi; use the "A" constraint for the scratch; handle AM33
18647         moves of sp to non-address registers.
18648
18649         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18650         (*movqi_internal): ... here.
18651         (*am33_movhi, *mn10300_movhi): Merge into...
18652         (*movhi_internal): ... here.
18653         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
18654         as the source/destination of moves from/to SP.
18655         (movsf): Only allow for AM33-2.
18656         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18657         any integer constant constraint.  Only allow for AM33-2.  Tidy
18658         all of the alternative outputs.
18659         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18660         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
18661         for MN103.
18662         (udivsi3, umodsi3): New patterns for MN103 only.
18663
18664 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
18665
18666         * doc/tm.texi.in: Spell out that a lack of register class unions
18667         can lead to ICEs.
18668         * doc/tm.texi: Regenerate.
18669
18670 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
18671
18672         PR rtl-optimization/47337
18673         * dce.c (check_argument_store): New function.
18674         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
18675
18676         PR tree-optimization/47290
18677         * tree-eh.c (infinite_empty_loop_p): New function.
18678         (cleanup_empty_eh): Use it.
18679
18680 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
18681
18682         PR target/46997
18683         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18684         (a64_expand_widen_sum): Ditto.
18685         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18686         (vec_extract_evenodd_help): Ditto.
18687         (vec_extract_evenv4hi): Ditto.
18688         (vec_extract_oddv4hi): Ditto.
18689         (vec_extract_evenv2si): Ditto.
18690         (vec_extract_oddv2si): Ditto.
18691         (vec_extract_evenv2sf): Ditto.
18692         (vec_extract_oddv2sf): Ditto.
18693         (vec_pack_trunc_v4hi: Ditto.
18694         (vec_pack_trunc_v2si): Ditto.
18695         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18696         (vec_interleave_highv8qi): Ditto.
18697         (mix1_r): Ditto.
18698         (vec_extract_oddv8qi): Ditto.
18699         (vec_interleave_lowv4hi): Ditto.
18700         (vec_interleave_highv4hi): Ditto.
18701         (vec_interleave_lowv2si): Ditto.
18702         (vec_interleave_highv2si): Ditto.
18703
18704 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18705
18706         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18707         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18708         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
18709         (pa_c_mode_for_suffix): New.
18710         (TARGET_EXPAND_BUILTIN): Define.
18711         (TARGET_C_MODE_FOR_SUFFIX): Define.
18712         (pa_builtins): Define.
18713         (pa_init_builtins): Register __float128 type and init new support
18714         builtins.
18715         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18716         * config/pa/quadlib.c (_U_Qfcopysign): New.
18717
18718 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
18719
18720         PR middle-end/46894
18721         * explow.c (allocate_dynamic_stack_space): Do not assume more than
18722         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18723         are defined.
18724
18725 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18726
18727         PR tree-optimization/47179
18728         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18729         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18730
18731 2011-01-18  Richard Guenther  <rguenther@suse.de>
18732
18733         PR rtl-optimization/47216
18734         * emit-rtl.c: Include tree-flow.h.
18735         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18736         of replicating it with different semantics.
18737         * Makefile.in (emit-rtl.o): Adjust.
18738
18739 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18740
18741         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18742         (cortex_a9_dp): Handle neon types correctly.
18743
18744 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
18745
18746         PR rtl-optimization/47299
18747         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18748         subtarget.  Use normal multiplication if both operands are constants.
18749         * expmed.c (expand_widening_mult): Don't try to optimize constant
18750         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
18751         before using it.
18752
18753 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18754
18755         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
18756         spacing after 'e.g.', typos, comma, hyphenation.
18757
18758 2011-01-17  Richard Henderson  <rth@redhat.com>
18759
18760         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18761         (rx_restricted_mem_operand): New.
18762         (rx_shift_operand): Use register_operand.
18763         (rx_source_operand, rx_compare_operand): Likewise.
18764         * config/rx/rx.md (addsi3_flags): New expander.
18765         (adddi3): Rewrite as expander.
18766         (adc_internal, *adc_flags, adddi3_internal): New patterns.
18767         (subsi3_flags): New expander.
18768         (subdi3): Rewrite as expander.
18769         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18770
18771         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18772         (rx_init_builtins): Remove sat builtin.
18773         (rx_expand_builtin): Likewise.
18774         * config/rx/rx.md (ssaddsi3): New.
18775         (*sat): Rename from sat.  Represent the CC_REG input.
18776
18777         * config/rx/predicates.md (rshift_operator): New.
18778         * config/rx/rx.c (rx_expand_insv): Remove.
18779         * config/rx/rx-protos.h: Update.
18780         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
18781         operand to the canonical position.
18782         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18783         (*bitclr, *bitclr_in_memory): Similarly.
18784         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18785         (insv): Retain the zero_extract in the expansion.
18786
18787         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18788         (bswaphi2, bitinvert, revw): Likewise.
18789
18790         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18791         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18792         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18793         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18794         (bitset, bitset_in_memory): Likewise.
18795         (bitinvert, bitinvert_in_memory): Likewise.
18796         (bitclr, bitclr_in_memory): Likewise.
18797         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18798         (rx_strend, rx_cmpstrn): Likewise.
18799         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
18800         (bitop peep2 patterns): Remove.
18801
18802         * config/rx/rx.c (rx_match_ccmode): New.
18803         * config/rx/rx-protos.h: Update.
18804         * config/rx/rx.md (abssi2): Clobber, don't set flags.
18805         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18806         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18807         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18808         (fix_truncsfsi2, floatsisf2): Likewise.
18809         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18810         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18811         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18812         (*subsi3_flags, *xorsi3_flags): New.
18813
18814         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18815
18816         * config/rx/rx.c (rx_print_operand): Remove workaround for
18817         unsplit comparison operations.
18818
18819         * config/rx/rx.md (movsicc): Split after reload.
18820         (*movsicc): Merge *movsieq and *movsine via match_operator.
18821         (*stcc): New pattern.
18822
18823         * config/rx/rx.c (rx_float_compare_mode): Remove.
18824         * config/rx/rx.h (rx_float_compare_mode): Remove.
18825         * config/rx/rx.md (cstoresi4): Split after reload.
18826         (*sccc): New pattern.
18827
18828         * config/rx/predicates.md (label_ref_operand): New.
18829         (rx_z_comparison_operator): New.
18830         (rx_zs_comparison_operator): New.
18831         (rx_fp_comparison_operator): New.
18832         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18833         Validate that the flags are set properly for the comparison.
18834         (rx_gen_cond_branch_template): Remove.
18835         (rx_cc_modes_compatible): Remove.
18836         (mode_from_flags): New.
18837         (flags_from_code): Rename from flags_needed_for_conditional.
18838         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18839         (rx_select_cc_mode): Likewise.
18840         (rx_split_fp_compare): New.
18841         (rx_split_cbranch): New.
18842         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18843         (*cbranchsi4): Use match_operator and rx_split_cbranch.
18844         (*cbranchsf4): Similarly.
18845         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
18846         match_operator and rx_split_cbranch.
18847         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18848         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
18849         (*cmpsi): Rename from cmpsi.
18850         (*tstsi): Rename from tstsi.
18851         (*cmpsf): Rename from cmpsf; use CC_Fmode.
18852         (*conditional_branch): Rename from conditional_branch.
18853         (*reveresed_conditional_branch): Remove.
18854         (b<code>): Remove expander.
18855         * config/rx/rx-protos.h: Update.
18856
18857         * config/rx/rx.c (rx_compare_redundant): Remove.
18858         * config/rx/rx.md (cmpsi): Don't use it.
18859         * config/rx/rx-protos.h: Update.
18860
18861         * config/rx/rx-modes.def (CC_F): New mode.
18862         * config/rx/rx.c (rx_select_cc_mode): New.
18863         * config/rx/rx.h (SELECT_CC_MODE): Use it.
18864         * config/rx/rx-protos.h: Update.
18865
18866 2011-01-17  Richard Henderson  <rth@redhat.com>
18867
18868         * except.c (dump_eh_tree): Fix stray ; after for statement.
18869
18870 2011-01-17  Richard Guenther  <rguenther@suse.de>
18871
18872         PR tree-optimization/47313
18873         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18874         handling before copying the body.  Properly deal with
18875         by-reference result in SSA form.
18876
18877 2011-01-17  Ian Lance Taylor  <iant@google.com>
18878
18879         PR target/47219
18880         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18881         (struct_value_alias_set): Don't define.
18882         (sparc_option_override): Don't set sparc_sr_alias_set and
18883         struct_value_alias_set.
18884         (save_or_restore_regs): Use gen_frame_mem rather than calling
18885         set_mem_alias_set.
18886         (sparc_struct_value_rtx): Likewise.
18887
18888 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18889
18890         PR target/47318
18891         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18892         (_mm_maskstore_pd): Likewise.
18893         (_mm_maskload_ps): Likewise.
18894         (_mm_maskstore_ps): Likewise.
18895         (_mm256_maskload_pd): Change mask to __m256i.
18896         (_mm256_maskstore_pd): Likewise.
18897         (_mm256_maskload_ps): Likewise.
18898         (_mm256_maskstore_ps): Likewise.
18899
18900         * config/i386/i386-builtin-types.def: Updated.
18901         (ix86_expand_special_args_builtin): Likewise.
18902
18903         * config/i386/i386.c (bdesc_special_args): Update
18904         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18905         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18906         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18907         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18908
18909         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18910         Use <avxpermvecmode> on mask register.
18911         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18912
18913 2011-01-17  Olivier Hainque  <hainque@adacore.com>
18914             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18915             Eric Botcazou  <ebotcazou@adacore.com>
18916
18917         PR target/46655
18918         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18919         if <= USHRT_MAX in 32-bit mode.
18920
18921 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18922
18923         * doc/install.texi (Configuration, Specific): Wrap long
18924         lines in examples.  Allow line wrapping in long options
18925         and URLs where beneficial for PDF output.
18926
18927 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
18928
18929         * config/mips/mips.c (mips_classify_symbol): Don't return
18930         SYMBOL_PC_RELATIVE for nonlocal labels.
18931
18932 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
18933
18934         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18935
18936 2011-01-15  Jan Hubicka  <jh@suse.cz>
18937
18938         PR tree-optimization/47276
18939         * ipa.c (function_and_variable_visibility): Do not try to mark alias
18940         declarations as needed.
18941
18942 2011-01-15  Martin Jambor  <mjambor@suse.cz>
18943
18944         * common.opt (fdevirtualize): New flag.
18945         * doc/invoke.texi (Option Summary): Document it.
18946         * opts.c (default_options_table): Add devirtualize flag.
18947         * ipa-prop.c (detect_type_change): Return immediately if
18948         devirtualize flag is not set.
18949         (detect_type_change_ssa): Likewise.
18950         (compute_known_type_jump_func): Likewise.
18951         (ipa_analyze_virtual_call_uses): Likewise.
18952
18953 2011-01-14  Martin Jambor  <mjambor@suse.cz>
18954
18955         PR tree-optimization/45934
18956         PR tree-optimization/46302
18957         * ipa-prop.c (type_change_info): New type.
18958         (stmt_may_be_vtbl_ptr_store): New function.
18959         (check_stmt_for_type_change): Likewise.
18960         (detect_type_change): Likewise.
18961         (detect_type_change_ssa): Likewise.
18962         (compute_complex_assign_jump_func): Check for dynamic type change.
18963         (compute_complex_ancestor_jump_func): Likewise.
18964         (compute_known_type_jump_func): Likewise.
18965         (compute_scalar_jump_functions): Likewise.
18966         (ipa_analyze_virtual_call_uses): Likewise.
18967         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18968
18969 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18970
18971         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18972         * config/i386/i386.opt (msse5): New Alias.
18973
18974 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18975
18976         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18977         * config/sparc/linux64.h (CC1_SPEC): Likewise.
18978         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18979         * config/sparc/sparc.h (CC1_SPEC): Likewise.
18980
18981 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18982
18983         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18984         -mcpu options.
18985         * config/sparc/linux64.h (CC1_SPEC): Likewise.
18986         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18987         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18988         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18989         Likewise.
18990         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18991
18992 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
18993
18994         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18995
18996 2011-01-14  Mike Stump  <mikestump@comcast.net>
18997
18998         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18999         * config/fr30/fr30.md: Likweise
19000         (movsi_push): Likewise.
19001         (movsi_pop): Likewise.
19002         (enter_func): Likewise.
19003         * config/moxie/moxie.md (movsi_push): Likewise.
19004         (movsi_pop): Likewise.
19005
19006 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19007
19008         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19009         %{no_archive} %{exact_version}.
19010         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19011         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19012         %{no_archive} %{exact_version}.
19013         * config/mips/openbsd.h (LINK_SPEC): Likewise.
19014         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19015         * config/mips/vxworks.h: Likewise.
19016
19017 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19018
19019         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19020
19021 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19022
19023         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19024         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19025
19026 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19027
19028         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19029         -nodefaultlib.
19030
19031 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19032
19033         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19034         for mcpu not cpu.
19035         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19036         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19037         not cpu.
19038         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19039         Don't handle -shlib.
19040
19041 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19042
19043         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19044         (CC1_SPEC): Don't handle -profile.
19045
19046 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19047
19048         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19049         * config/mips/mips.h (CC1_SPEC): Likewise.
19050
19051 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19052
19053         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19054         * config/mips/mips.h (CC1_SPEC): Likewise.
19055
19056 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19057
19058         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19059         * config/m32r/linux.h (LINK_SPEC): Likewise.
19060         * config/mips/linux.h (LINK_SPEC): Likewise.
19061         * config/mips/linux64.h (LINK_SPEC): Likewise.
19062         * config/sparc/linux.h (LINK_SPEC): Likewise.
19063         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19064         LINK_SPEC): Likewise.
19065         * config/xtensa/linux.h (LINK_SPEC): Likewise.
19066
19067 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19068
19069         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19070         %{version:-v}.
19071         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19072
19073 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19074
19075         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19076         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19077
19078 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
19079
19080         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19081
19082 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19083
19084         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19085         supports -Bstatic/-Bdynamic.
19086         * configure: Regenerate.
19087
19088 2011-01-14  Jan Hubicka  <jh@suse.cz>
19089             Jack Howarth  <howarth@bromo.med.uc.edu>
19090
19091         PR target/46037
19092         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19093         when checking debug_info_level. Test write_symbols instead of
19094         debug_hooks->var_location when setting flag_var_tracking_uninit.
19095
19096 2011-01-14  Richard Guenther  <rguenther@suse.de>
19097
19098         PR tree-optimization/47179
19099         * target.def (ref_may_alias_errno): New target hook.
19100         * targhooks.h (default_ref_may_alias_errno): Declare.
19101         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19102         (default_ref_may_alias_errno): New function.
19103         * target.h (struct ao_ref_s): Declare.
19104         * tree-ssa-alias.c: Include target.h.
19105         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19106         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19107         (targhooks.o): Likewise.
19108         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19109         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19110
19111 2011-01-14  Richard Guenther  <rguenther@suse.de>
19112
19113         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
19114
19115 2011-01-14  Richard Guenther  <rguenther@suse.de>
19116
19117         PR tree-optimization/47280
19118         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19119         return CFG changes.
19120         (tree_ssa_forward_propagate_single_use_vars): Deal with
19121         CFG changes from associate_plusminus.
19122
19123 2011-01-14  Richard Guenther  <rguenther@suse.de>
19124
19125         PR middle-end/47281
19126         Revert
19127         2011-01-11  Richard Guenther  <rguenther@suse.de>
19128
19129         PR tree-optimization/46076
19130         * tree-ssa.c (useless_type_conversion_p): Conversions from
19131         unprototyped to empty argument list function types are useless.
19132
19133 2011-01-14  Richard Guenther  <rguenther@suse.de>
19134
19135         PR tree-optimization/47286
19136         * tree-ssa-structalias.c (new_var_info): Register variables are global.
19137
19138 2011-01-14  Martin Jambor  <mjambor@suse.cz>
19139
19140         PR middle-end/46823
19141         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19142
19143 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
19144
19145         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19146         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19147         * config/xtensa/xtensa.c (xtensa_libcall_value,
19148         xtensa_function_value_regno_p): New functions.
19149         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19150
19151 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
19152
19153         PR c++/47213
19154         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19155         PE specific hook.
19156         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19157         New function prototype.
19158         * config/i386/winnt.c (i386_pe_assemble_visibility):
19159         Warn only if attribute was specified by user.
19160
19161 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
19162
19163         PR target/47251
19164         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19165         floating point.
19166         (floatunsdidf2_fcfidu): Ditto.
19167
19168 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19169
19170         * config/s390/s390.c (print_operand_address): Replace 'error' with
19171         'output_operand_lossage'.
19172         (print_operand): Likewise.
19173
19174 2011-01-13  Jeff Law  <law@redhat.com>
19175
19176         PR rtl-optimization/39077
19177         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19178         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19179         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19180         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19181         * gcse.c (prune_insertions_deletions): New function.
19182         (compute_pre_data): Use it.
19183
19184 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
19185
19186         PR debug/PR46973
19187         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19188         static function.
19189         (prune_unused_types_mark): Use it.
19190
19191 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
19192
19193         PR rtl-optimization/45352
19194         * sel-sched.c: Update copyright years.
19195         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19196         in the advancing loop when we have issued issue_rate insns.
19197
19198 2011-01-12  Richard Henderson  <rth@redhat.com>
19199
19200         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19201         (TARGET_MD_ASM_CLOBBERS): New.
19202
19203         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19204         (TARGET_DELEGITIMIZE_ADDRESS): New.
19205
19206         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19207         (clzsi2, *bsch): New patterns.
19208
19209         * config/mn10300/mn10300.md (INT): New mode iterator.
19210         (*mov<INT>_clr): New pattern, and peep2 to generate it.
19211
19212         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19213         flag_split_wide_types.
19214
19215         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19216         (mn10300_trampoline_init): Rewrite without a template, an immediate
19217         load and a direct branch.
19218         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19219
19220 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
19221
19222         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19223         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19224         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19225         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19226
19227 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
19228
19229         PR debug/47209
19230         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19231         of type.
19232
19233 2011-01-12  Jan Hubicka  <jh@suse.cz>
19234
19235         PR driver/47244
19236         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19237         (PLUGIN_COND_CLOSE): New macro.
19238         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19239
19240 2011-01-12  Richard Guenther  <rguenther@suse.de>
19241
19242         PR lto/47259
19243         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19244         register variables in a MEM_REF.
19245
19246 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
19247
19248         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19249         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19250         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19251         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19252         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19253         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19254         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19255         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19256         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19257         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19258         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19259         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19260         * config/gnu-user.h: New.  Copied from linux.h.
19261         (LINUX_TARGET_STARTFILE_SPEC): Rename to
19262         GNU_USER_TARGET_STARTFILE_SPEC.
19263         (LINUX_TARGET_ENDFILE_SPEC): Rename to
19264         GNU_USER_TARGET_ENDFILE_SPEC.
19265         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19266         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19267         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19268         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19269         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19270         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19271         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19272         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19273         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19274         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19275         * config/arm/linux-eabi.h (CC1_SPEC): Use
19276         GNU_USER_TARGET_CC1_SPEC.
19277         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19278         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19279         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19280         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19281         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19282         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19283         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19284         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19285
19286 2011-01-12  Richard Guenther  <rguenther@suse.de>
19287
19288         PR other/46946
19289         * doc/invoke.texi (ffast-math): Document it is turned on
19290         with -Ofast.
19291
19292 2011-01-12  Jan Hubicka  <jh@suse.cz>
19293
19294         PR tree-optimization/47233
19295         * opts.c (common_handle_option): Disable ipa-reference with profile
19296         feedback.
19297
19298 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19299
19300         * c-parser.c (c_parser_objc_at_property_declaration): Improved
19301         error message.
19302
19303 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19304
19305         * c-parser.c (c_lex_one_token): Updated and reindented some
19306         comments.  No changes in code.
19307
19308 2011-01-11  Ian Lance Taylor  <iant@google.com>
19309
19310         * godump.c (go_output_var): Don't output the variable if there is
19311         already a type with the same name.
19312
19313 2011-01-11  Ian Lance Taylor  <iant@google.com>
19314
19315         * godump.c (go_format_type): Don't generate float80.
19316
19317 2011-01-11  Richard Henderson  <rth@redhat.com>
19318
19319         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19320         declaration.  Rewrite for both speed and size.
19321         (mn10300_address_cost_1): Remove.
19322         (mn10300_register_move_cost): New.
19323         (mn10300_memory_move_cost): New.
19324         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
19325         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
19326         extensions, shifts, BSWAP, CLZ.
19327         (mn10300_wide_const_load_uses_clr): Remove.
19328         (TARGET_REGISTER_MOVE_COST): New.
19329         (TARGET_MEMORY_MOVE_COST): New.
19330         * config/mn10300/mn10300-protos.h: Update.
19331         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19332
19333         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19334         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19335         * config/mn10300/mn10300-protos.h: Update.
19336         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19337         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19338         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19339         (*test_int_bitfield, *test_byte_bitfield): Remove.
19340         (*bit_test, *subreg_bit_test): Remove.
19341         * config/mn10300/predicates.md (const_8bit_operand): Remove.
19342
19343         * config/mn10300/constraints.md ("c"): Rename from "A".
19344         ("A", "D"): New constraint letters.
19345         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19346         (fmssf4, fnmasf4, fnmssf4): Likewise.
19347
19348         * config/mn10300/mn10300.md (isa): New attribute.
19349         (enabled): New attribute.
19350
19351         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19352         (abssf2, negsf2): Define only for hardware fp.
19353         (sqrtsf2): Reformat.
19354         (addsf3, subsf3, mulsf3): Merge expander and insn.
19355
19356         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19357         (DEBUGGER_AUTO_OFFSET): Remove.
19358         (DEBUGGER_ARG_OFFSET): Remove.
19359
19360         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19361         Emit register stores with the same offsets as the hardware.
19362         (mn10300_store_multiple_operation): Don't check that the register
19363         save offsets are monotonic.
19364         * config/mn10300/mn10300-protos.h: Update.
19365
19366         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19367
19368         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19369         in terms of the value on the stack, not the MDR register.
19370
19371 2011-01-11  Jan Hubicka  <jh@suse.cz>
19372
19373         PR lto/45721
19374         PR lto/45375
19375         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19376         (symbol_alias_set_destroy, symbol_alias_set_contains,
19377         propagate_aliases_backward): Declare.
19378         * lto-streamer-out.c (struct sets): New sturcture.
19379         (trivally_defined_alias): New function.
19380         (output_alias_pair_p): Rewrite.
19381         (output_unreferenced_globals): Fix output of alias pairs.
19382         (produce_symtab): Likewise.
19383         * ipa.c (function_and_variable_visibility): Set weak alias destination
19384         as needed in lto.
19385         * varasm.c (symbol_alias_set_t): Remove.
19386         (symbol_alias_set_destroy): Export.
19387         (propagate_aliases_forward, propagate_aliases_backward): New functions
19388         based on ...
19389         (compute_visible_aliases): ... this one; remove.
19390         (trivially_visible_alias): New
19391         (trivially_defined_alias): New.
19392         (remove_unreachable_alias_pairs): Rewrite.
19393         (finish_aliases_1): Reorganize code checking if alias is defined.
19394         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19395         in LTO mode.
19396
19397 2011-01-11  Richard Guenther  <rguenther@suse.de>
19398
19399         PR tree-optimization/46076
19400         * tree-ssa.c (useless_type_conversion_p): Conversions from
19401         unprototyped to empty argument list function types are useless.
19402
19403 2011-01-11  Richard Guenther  <rguenther@suse.de>
19404
19405         PR middle-end/45235
19406         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19407         volatile MEMs as MEM_READONLY_P.
19408
19409 2011-01-11  Richard Guenther  <rguenther@suse.de>
19410
19411         PR tree-optimization/47239
19412         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19413
19414 2011-01-11  Jeff Law  <law@redhat.com>
19415
19416         PR tree-optimization/47086
19417         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19418         IVs from statements that might throw.
19419
19420 2011-01-10  Jan Hubicka  <jh@suse.cz>
19421
19422         PR lto/45375
19423         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19424
19425 2011-01-10  Jan Hubicka  <jh@suse.cz>
19426
19427         PR lto/45375
19428         * profile.c (read_profile_edge_counts): Ignore profile inconistency
19429         when correcting profile.
19430
19431 2011-01-10  Jan Hubicka  <jh@suse.cz>
19432
19433         PR lto/46083
19434         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19435         DECL_FINI_PRIORITY.
19436         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19437         Restore DECL_FINI_PRIORITY.
19438
19439 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19440
19441         * doc/gimple.texi: Fix quoting of multi-word return values in
19442         @deftypefn statements.  Ensure presence of return value.  Wrap
19443         overlong @deftypefn lines.
19444         (is_gimple_operand, is_gimple_min_invariant_address): Remove
19445         descriptions of removed functions.
19446         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19447         of multi-word return value in @deftypefn statement.
19448
19449 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19450
19451         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19452         (Conditional Expressions, Logical Operators)
19453         (Statement and operand traversals): Do not indent smallexample
19454         code.  Fix duplicate function argument in example.
19455
19456 2011-01-10  Jeff Law  <law@redhat.com>
19457
19458         PR tree-optimization/47141
19459         * ipa-split.c (split_function): Handle case where we are
19460         returning a value and the return block has a virtual operand phi.
19461
19462 2011-01-10  Jan Hubicka  <jh@suse.cz>
19463
19464         PR tree-optimization/47234
19465         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19466         (pass_feedback_split_functions): Declare.
19467         * passes.c (init_optimization_passes): Add ipa-split as subpass of
19468         tree-profile.
19469         * ipa-split.c (gate_split_functions): Update comments; disable
19470         split-functions for profile_arc_flag and branch_probabilities.
19471         (gate_feedback_split_functions): New function.
19472         (execute_feedback_split_functions): New function.
19473         (pass_feedback_split_functions): New global var.
19474
19475 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
19476
19477         PR lto/46760
19478         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19479         calling gimple_call_set_cannot_inline.
19480
19481 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
19482
19483         * config/darwin-sections.def: Remove unused section.
19484
19485 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
19486
19487         PR c++/47218
19488         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19489
19490 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
19491
19492         PR objc/47232
19493         * c-parser.c (c_parser_declaration_or_fndef): Improved
19494         error message.
19495
19496 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
19497
19498         * config/i386/winnt.c (i386_pe_start_function): Make sure
19499         to switch back to function's section.
19500
19501 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
19502
19503         PR gcc/46902
19504         PR testsuite/46912
19505         * plugin.c: Move include of dlfcn.h from here...
19506         * system.h: ... to here.
19507
19508 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19509
19510         * doc/cpp.texi (C++ Named Operators): Fix markup for header
19511         file name.
19512         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19513         two extra empty pages in PDF output.
19514
19515 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
19516
19517         PR objc/47078
19518         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19519         for error recovery purposes behave as if it was not specified so
19520         that the default type is usd.
19521
19522 2011-01-07  Jan Hubicka  <jh@suse.cz>
19523
19524         PR tree-optmization/46469
19525         * ipa.c (function_and_variable_visibility): Clear needed flags on
19526         nodes with external decls; handle weakrefs merging correctly.
19527
19528 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
19529
19530         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19531         not false.
19532
19533 2011-01-07  Jan Hubicka  <jh@suse.cz>
19534
19535         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19536         and no longer claim that gold is required for linker plugin.
19537         * configure: Regenerate.
19538         * gcc.c (PLUGIN_COND): New macro.
19539         (LINK_COMMAND_SPEC): Use it.
19540         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19541         * config.in (HAVE_LTO_PLUGIN): New.
19542         * configure.ac (--with-lto-plugin): New parameter; autodetect
19543         HAVE_LTO_PLUGIN.
19544
19545 2011-01-07  Jan Hubicka  <jh@suse.cz>
19546
19547         PR tree-optimization/46367
19548         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19549         when we can update original.
19550         (cgraph_mark_inline_edge): Sanity check.
19551         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19552
19553 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19554
19555         * config/spu/spu.h (ASM_COMMENT_START): Define.
19556
19557 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19558
19559         PR driver/42445
19560         * gcc.c (%>S): New.
19561         (SWITCH_KEEP_FOR_GCC): Likewise.
19562         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19563         (do_spec_1): Handle "%>".
19564
19565         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19566
19567 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
19568
19569         PR target/47201
19570         * config/i386/i386.c (ix86_delegitimize_address): If
19571         simplify_gen_subreg fails, return orig_x.
19572
19573         PR bootstrap/47187
19574         * value-prof.c (gimple_stringop_fixed_value): Handle
19575         lhs of the call properly.
19576
19577 2011-01-07  Jan Hubicka  <jh@suse.cz>
19578
19579         PR lto/45375
19580         * lto-opt.c (lto_reissue_options): Set flag_shlib.
19581
19582 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19583
19584         * target.def (function_switched_text_sections): New hook.
19585         * doc/tm.texi: Regenerated.
19586         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19587         * final.c (default_function_switched_text_sections): New.
19588         (final_scan_insn): Call function_switched_text_sections when a
19589         mid-function section change occurs.
19590         * output.h (default_function_switched_text_sections): Declare.
19591         * config/darwin-protos.h (darwin_function_switched_text_sections):
19592         Likewise.
19593         * config/darwin.c (darwin_function_switched_text_sections): New.
19594         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19595
19596 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
19597
19598         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
19599         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
19600         the secondary code fragment when outputting for DWARF == 2.
19601
19602 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
19603
19604         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19605         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19606         Remove.
19607         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19608         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19609
19610 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
19611
19612         PR debug/46704
19613         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19614         when it is not empty.
19615
19616 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
19617
19618         Bobcat Enablement
19619         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19620         (case ${target}): Add btver1.
19621         * config/i386/driver-i386.c (host_detect_local_cpu): Let
19622         -march=native recognize btver1 processors.
19623         * config/i386/i386-c.c (ix86_target_macros_internal): Add
19624         btver1 def_and_undef
19625         * config/i386/i386.c (struct processor_costs btver1_cost): New
19626         btver1 cost table.
19627         (m_BTVER1): New definition.
19628         (m_AMD_MULTIPLE): Includes m_BTVER1.
19629         (initial_ix86_tune_features): Add btver1 tune.
19630         (processor_target_table): Add btver1 entry.
19631         (static const char *const cpu_names): Add btver1 entry.
19632         (software_prefetching_beneficial_p): Add btver1.
19633         (ix86_option_override_internal): Add btver1 instruction sets.
19634         (ix86_issue_rate): Add btver1.
19635         (ix86_adjust_cost): Add btver1.
19636         * config/i386/i386.h (TARGET_BTVER1): New definition.
19637         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19638         (enum processor_type): Add PROCESSOR_BTVER1.
19639         * config/i386/i386.md (define_attr "cpu"): Add btver1.
19640
19641 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19642
19643         PR target/43309
19644         * config/i386/i386.c (legitimize_tls_address)
19645         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19646         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19647         (tls_initial_exec_64_sun): New pattern.
19648
19649 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
19650
19651         * doc/invoke.texi (Overall Options): Improve wording and markup
19652         of the description of -wrapper.
19653
19654 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19655
19656         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19657         rdynamic, threads): New Driver options.
19658
19659 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19660
19661         PR target/38118
19662         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19663         if coming from .tdata.
19664         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19665
19666 2011-01-06  Jan Hubicka  <jh@suse.cz>
19667
19668         PR lto/47188
19669         * collect2.c (main): Do not enable LTOmode when plugin is active.
19670
19671 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19672
19673         PR other/45915
19674         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19675         --version output if supported.
19676         * configure: Regenerate.
19677
19678 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
19679
19680         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19681         Driver options.
19682
19683 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
19684
19685         PR c/47150
19686         * c-convert.c (convert): When converting a complex expression
19687         other than COMPLEX_EXPR to a different complex type, ensure
19688         c_save_expr is called instead of save_expr, unless in_late_binary_op.
19689         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19690         when converting COMPLEX_TYPE.
19691
19692 2011-01-06  Ira Rosen  <irar@il.ibm.com>
19693
19694         PR tree-optimization/47139
19695         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19696         only the last reduction value is used outside the loop.  Update
19697         documentation.
19698
19699 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
19700
19701         * config/rtems.opt: New.
19702         * config.gcc (*-*-rtems*): Use rtems.opt.
19703
19704 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
19705
19706         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19707         processors do not support 3DNow instructions.
19708
19709 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19710
19711         * config/spu/spu.c (spu_option_override): Set parameter
19712         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19713
19714 2011-01-05  Jan Hubicka  <jh@suse.cz>
19715
19716         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19717         at the command line.
19718
19719 2011-01-05  Martin Jambor  <mjambor@suse.cz>
19720
19721         PR lto/47162
19722         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19723         deltas on streamed outgoing edges.
19724         (output_node_opt_summary): Output info for outgoing edges only when
19725         the node is in new parameter set.
19726         (output_cgraph_opt_summary): New parameter set, passed to the two
19727         aforementioned functions.  Update its forward declaration and its
19728         callee too.
19729
19730 2011-01-05  Tom Tromey  <tromey@redhat.com>
19731
19732         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19733         operator to c_finish_omp_atomic.
19734         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19735         (build_unary_op): Update.
19736         (build_modify_expr): Update.
19737         (build_asm_expr): Update.
19738
19739 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19740
19741         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19742         newly inserted insns.
19743         (pad_bb): Likewise.
19744         (spu_emit_branch_hint): Likewise.
19745         (insert_hbrp_for_ilb_runout): Likewise.
19746         (spu_machine_dependent_reorg): Call df_finish_pass after
19747         schedule_insns returns.
19748
19749 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19750
19751         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19752
19753 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
19754
19755         PR tree-optimization/47005
19756         * tree-sra.c (struct access): Add 'non_addressable' bit.
19757         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19758         (decide_one_param_reduction): Return 0 if the parameter is passed by
19759         reference and one of the accesses in the group is non_addressable.
19760
19761 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19762
19763         PR tree-optimization/47056
19764         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19765         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
19766         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
19767
19768 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19769
19770         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19771         initializer.  Skip view conversions from aggregate types.
19772
19773 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
19774
19775         PR bootstrap/47055
19776         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19777
19778 2011-01-04  Philipp Thomas  <pth@suse.de>
19779
19780         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19781         obvious typo.
19782
19783 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19784
19785         * function.c (thread_prologue_and_epilogue_insns): Do not crash
19786         on empty epilogue sequences.
19787
19788 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
19789
19790         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19791         non-static): New Driver options.
19792
19793 2011-01-04  Jie Zhang  <jie@codesourcery.com>
19794
19795         PR driver/47137
19796         * gcc.c (default_compilers[]): Set combinable field to 0
19797         for all assembly languages.
19798
19799 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
19800
19801         * config/mips/loongson3a.md: New file.
19802         * config/mips/mips.md: Include loongson3a.md.
19803         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19804         TUNE_LOONGSON_3A.
19805
19806 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
19807
19808         PR middle-end/47017
19809         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19810         instead of convert_memory_address_addr_space on the base expression.
19811
19812 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19813
19814         * config/spu/spu.c (spu_option_override): Update error text
19815         for bad -march= / -mtune= values.
19816
19817 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19818
19819         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19820         if branch-hint optimization will be performed.
19821
19822 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19823
19824         PR tree-optimization/47148
19825         * ipa-split.c (split_function): Convert arguments to
19826         DECL_ARG_TYPE if possible.
19827
19828         PR tree-optimization/47155
19829         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19830         when computing uns.
19831
19832         PR rtl-optimization/47157
19833         * combine.c (try_combine): If undobuf.other_insn becomes
19834         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19835         and set *new_direct_jump_p too.
19836
19837 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
19838
19839         PR tree-optimization/47021
19840         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19841
19842 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
19843
19844         * gcc.c (process_command): Update copyright notice dates.
19845         * gcov.c (print_version): Likewise.
19846         * gcov-dump.c (print_version): Likewise.
19847         * mips-tfile.c (main): Likewise.
19848         * mips-tdump.c (main): Likewise.
19849
19850 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19851
19852         PR tree-optimization/46801
19853         * tree-sra.c (type_internals_preclude_sra_p): Check whether
19854         aggregate fields start at byte boundary instead of the bit-field flag.
19855
19856 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19857
19858         PR driver/47137
19859         * gcc.c (main): Revert revision 168407.
19860
19861 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19862
19863         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19864
19865 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19866
19867         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19868         vector optab to expand vector/scalar shift, update gimple to vector.
19869
19870 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19871
19872         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19873         a thunk.
19874
19875 2011-01-03  Martin Jambor  <mjambor@suse.cz>
19876
19877         PR tree-optimization/46984
19878         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19879         HOST_WIDE_INT.
19880         (cgraph_create_indirect_edge): Fixed line length.
19881         (cgraph_indirect_call_info): Declare.
19882         (cgraph_make_edge_direct) Update declaration.
19883         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19884         (cgraph_create_indirect_edge): Use it.
19885         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
19886         callees.
19887         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19888         the new thunk_delta representation.
19889         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19890         HOST_WIDE_INT.
19891         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19892         (ipa_read_indirect_edge_info): Likewise.
19893         * lto-cgraph.c (output_edge_opt_summary): New function.
19894         (output_node_opt_summary): Call it on all outgoing edges.
19895         (input_edge_opt_summary): New function.
19896         (input_node_opt_summary): Call it on all outgoing edges.
19897
19898 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
19899
19900         PR driver/47137
19901         * gcc.c (main): Don't check have_o when settting combine_inputs.
19902
19903 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
19904
19905         * regrename.c: Add general comment describing the pass.
19906         (struct du_head): Remove 'length' field.
19907         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19908         (regrename_optimize): Do not sort chains.  Rework comments, add others.
19909         Force renaming to the preferred class (if any) in the first pass and do
19910         not consider registers that belong to it in the second pass.
19911         (create_new_chain): Do not set 'length' field.
19912         (scan_rtx_reg): Likewise.
19913
19914 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
19915
19916         PR tree-optimization/47140
19917         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19918         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19919         to bit_value_binop.
19920
19921         PR rtl-optimization/47028
19922         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19923         parm_birth_insn instead of at the beginning of first bb.
19924
19925 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
19926
19927         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19928         Remove the word "see" before "@pxref".
19929         * doc/rtl.texi: Remove the word "see" before "@pxref".
19930
19931 2011-01-01  Jan Hubicka  <jh@suse.cz>
19932
19933         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19934         memory.
19935
19936 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
19937
19938         PR target/38662
19939         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19940
19941 \f
19942 Copyright (C) 2011 Free Software Foundation, Inc.
19943
19944 Copying and distribution of this file, with or without modification,
19945 are permitted in any medium without royalty provided the copyright
19946 notice and this notice are preserved.