re PR target/48288 (ld: Unsatisfied symbol "__iordi3" in file /test/gnu/gcc/objdir...
[official-gcc.git] / gcc / ChangeLog
blobb054e37ab426871fb59898c70830541cde3dd53c
1 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3         PR target/48288
4         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
5         * config/pa/pa.md (iordi3): Use new predicate in expander.
6         (iorsi3): Likewise.
8 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
10         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
11         FUNCTION_VALUE_REGNO_P): Remove macros.
12         * config/mips/mips-protos.h (mips_function_value): Remove.
13         * config/mips/mips.c (mips_function_value): Rename to...
14         (mips_function_value_1): ... this. Make static.  Handle receiving
15         the function type in 'fn_decl_or_type' argument.
16         (mips_function_value, mips_libcall_value,
17         mips_function_value_regno_p): New function.
18         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
24         and -mavx256-split-unaligned-store.
25         (ix86_option_override_internal): Split 32-byte AVX unaligned
26         load/store by default.
27         (ix86_avx256_split_vector_move_misalign): New.
28         (ix86_expand_vector_move_misalign): Use it.
30         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
31         -mavx256-split-unaligned-store.
33         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
34         256bit load/store.  Generate unaligned store on misaligned memory
35         operand.
36         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
37         256bit load/store.
38         (*avx_movdqu<avxmodesuffix>): Likewise.
40         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
41         -mavx256-split-unaligned-store.
43 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
45         PR target/38598
46         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
47         Update commentary.
49 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
51         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
52         opno arguments with an expand_operand.  Use create_input_operand.
53         (mips_prepare_builtin_target): Delete.
54         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
55         functions.
56         (mips_expand_builtin_direct): Use create_output_operand and
57         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
58         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
59         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
61 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
63         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
64         function.
65         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
67 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
69         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
70         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
71         basic blocks and call commit_edge_insertions directly.
72         (fixup_abnormal_edges): Move from here to...
73         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
74         on the edges and return whether some have actually been inserted.
75         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
76         compensation code.
78 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
80         PR rtl-optimization/48144
81         * sel-sched-ir.c (merge_history_vect): Factor out from ...
82         (merge_expr_data): ... here.
83         (av_set_intersect): Rename to av_set_code_motion_filter.
84         Update all callers.  Call merge_history_vect when an expression
85         is found in both sets.
86         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
88 2011-03-26  Alan Modra  <amodra@gmail.com>
90         * config/rs6000/predicates.md (word_offset_memref_op): Handle
91         cmodel medium addresses.
92         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
93         64-bit gpr loads and stores.
94         (rs6000_secondary_reload_ppc64): New function.
95         * config/rs6000/rs6000-protos.h: Declare it.
96         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
98 2011-03-26  Alan Modra  <amodra@gmail.com>
100         PR target/47487
101         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
102         GNU Go in traceback table.
104 2011-03-25  Richard Henderson  <rth@redhat.com>
106         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
107         if there are exactly 6 operands.
108         (set_storage_via_setmem): Similarly.
110 2011-03-25  Kai Tietz  <ktietz@redhat.com>
112         * collect2.c (write_c_file_stat): Handle backslash
113         as right-hand directory separator.
114         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
115         checking just for slash.
116         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
117         instead of checking for trailing slash.
118         * gcc.c (record_temp_file): Use filename_cmp instead
119         of strcmp.
120         (do_spec_1): Likewise.
121         (replace_outfile_spec_function): Likewise.
122         (is_directory): Use filename_ncmp instead of strncmp.
123         (print_multilib_info): Likewise.
124         * gcov.c (find_source): Use filename_cmp instead
125         instead of strcmp.
126         (make_gcov_file_name): Fix order of slash/backslash
127         checks.
128         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
129         (add_standard_paths): Likewise.
130         * mips-tfile.c (saber_stop): Handle backslash.
131         * prefix.c (update_path): Use filename_ncmp instead of
132         strncmp.
133         * profile.c (output_location): Use filename_cmp instead
134         of strcmp.
135         * read-md.c (handle_toplevel_file): Handle backslash.
136         * tlink.c (frob_extension):  Likewise.
137         * tree-cfg.c (same_line_p): Use filename_cmp instead of
138         strcmp.
139         * tree-dump.c (dequeue_and_dump): Handle backslash.
140         * tree.c (get_file_function_name): Likewise.
141         * gengtype.c (read_input_list): Likewise.
142         (get_file_realbasename): Likewise.
143         (get_output_file_with_visibility): Use filename_cmp
144         instead of strcmp.
146 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
148         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
149         case to VFPv1.
151 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
153         * fold-const.c (expr_location_or): New function.
154         (fold_truth_not_expr): Call it.
156 2011-03-25  Jeff Law  <law@redhat.com>
158         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
159         va_end.
160         * c-family/c-common.c (def_fn_type): Likewise.
161         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
162         * emit-rtl.c (gen_rtvec): Likewise.
163         * lto/lto-lang.c (def_fn_type): Likewise.
165 2011-03-25  Richard Guenther  <rguenther@suse.de>
167         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
168         also generate copies.
169         (fini_copy_prop): Handle constant values properly.
171 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
173         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
174         mode size instead of bitsize with DWARF2_ADDR_SIZE.
175         (hash_loc_operands, compare_loc_operands): Handle
176         DW_OP_GNU_entry_value.
178 2011-03-25  Kai Tietz  <ktietz@redhat.com>
180         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
181         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
182         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
183         comment and use macro TARGET_64BIT_MS_ABI instead.
184         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
185         and change default behavior for 32-bit MS_ABI.
186         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
187         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
188         32-bit, too.
189         (ix86_cfun_abi): Likewise.
190         (ix86_maybe_switch_abi): Adjust comment.
191         (init_cumulative_args): Check for bit-ness in MS_ABI case.
192         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
193         instead of checking for SYSV_ABI.
194         (ix86_nsaved_sseregs): Likewise.
195         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
196         to 16 bytes.
197         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
198         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
199         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
200         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
201         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
203 2011-03-25  Richard Guenther  <rguenther@suse.de>
205         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
206         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
207         (verify_gimple): Remove.
208         * tree-cfg.c (verify_gimple_call): Merge verification
209         from verify_stmts.
210         (verify_gimple_phi): Merge verification from verify_stmts.
211         (verify_gimple_label): New function.
212         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
213         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
214         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
215         (verify_stmts): Rename to verify_gimple_in_cfg.
216         (verify_gimple_in_cfg): New function.
217         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
218         * tree-ssa.c (verify_ssa): Likewise.
219         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
221 2011-03-25  Richard Guenther  <rguenther@suse.de>
223         * passes.c (init_optimization_passes): Add FRE pass after
224         early SRA.
226 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
227             Andrew Stubbs  <ams@codesourcery.com>
229         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
230         for Cortex-A8.
231         (arm_movdi_vfp_cortexa8): New pattern.
232         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
233         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
234         instructions when tuning for Cortex-A8.  Set attribute "arch".
235         * config/arm/arm.md: Move include arm-tune.md up a bit.
236         (define_attr "arch"): Add "onlya8" and "nota8" values.
237         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
239 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
241         PR bootstrap/48282
242         Revert:
243         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
245         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
246         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
247         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
248         * passes.c (init_optimization_passes): Move
249         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
251 2011-03-25  Kai Tietz  <ktietz@redhat.com>
253         * c-typeck.c (comptypes_internal): Replace target
254         hook call of comp_type_attributes by version in tree.c file.
255         * gimple.c (gimple_types_compatible_p_1): Likewise.
256         * tree-ssa.c (useless_type_conversion_p): Likewise.
257         * tree.c (build_type_attribute_qual_variant): Likewise.
258         (attribute_value_equal): New static helper function.
259         (comp_type_attributes): New function.
260         (merge_attributes): Use attribute_value_equal for comparison.
261         (attribute_list_contained): Likewise.
262         * tree.h (comp_type_attributes): New prototype.
264 2011-03-25  Richard Guenther  <rguenther@suse.de>
266         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
267         of complex types at -O0.
268         (verify_gimple_assign_binary): Likewise.
269         (verify_gimple_assign_ternary): Likewise.
271 2011-03-24  Mark Wielaard  <mjw@redhat.com>
273         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
274         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
276 2011-03-24  Mark Wielaard  <mjw@redhat.com>
278         PR debug/48041
279         * dwarf2out.c (output_abbrev_section): Only write table when
280         abbrev_die_table_in_use > 1.
282 2011-02-24  Richard Henderson  <rth@redhat.com>
284         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
285         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
286         (alpha_expand_unaligned_load_words): Use extql.
287         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
288         (emit_insxl): Handle all modes for consistency.
290 2011-02-24  Richard Henderson  <rth@redhat.com>
292         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
293         (alpha_expand_unaligned_load): Likewise.
294         (alpha_expand_unaligned_store): Likewise.
295         (alpha_expand_unaligned_load_words): Likewise.
296         (alpha_expand_unaligned_store_words): Likewise.
297         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
298         (alpha_split_lock_test_and_set_12): Likewise.
299         (print_operand, alpha_fold_builtin_extxx): Likewise.
300         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
301         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
302         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
303         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
304         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
305         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
306         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
307         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
308         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
309         (extwl, extll, extql): Similarly.
310         (inswh, inslh, insqh): Similarly.
311         (mskbl, mskwl, mskll, mskql): Similarly.
312         (mskwh, msklh, mskqh): Similarly.
314 2011-02-24  Richard Henderson  <rth@redhat.com>
316         * config/alpha/alpha.md (attribute isa): Add er, ner.
317         (attribute enabled): Handle them.
318         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
320 2011-02-24  Richard Henderson  <rth@redhat.com>
322         * config/alpha/alpha.md (attribute isa): Add vms.
323         (attribute enabled): Handle it.
324         (*movsf): Merge *movsf_{nofix,fix,nofp}.
325         (*movdf): Merge *movdf_{nofix,fix,nofp}.
326         (*movtf): Rename from *movtf_internal for consistency.
327         (*movsi): Merge with *movsi_nt_vms.
328         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
329         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
330         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
331         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
333 2011-02-24  Richard Henderson  <rth@redhat.com>
335         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
336         (extendqisi2, extendhisi2): Likewise.
337         (extendqidi2): Simplify BWX/non-BWX expansions.
338         (extendhidi2): Similarly.
340 2011-02-24  Richard Henderson  <rth@redhat.com>
342         * config/alpha/alpha.md (attribute isa): New.
343         (attribute enabled): New.
344         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
345         (zero_extendqisi2, zero_extendqidi2): Similarly.
346         (zero_extendhisi2, zero_extendhidi2): Similarly.
347         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
349 2011-02-24  Richard Henderson  <rth@redhat.com>
351         * config/alpha/predicates.md (input_operand): Revert last change;
352         update comment to mention 32-bit VMS rather than Windows.
354 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
356         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
357         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
358         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
359         * passes.c (init_optimization_passes): Move
360         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
362 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
364         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
366 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
368         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
369         correctly.
371 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
373         PR debug/48204
374         * simplify-rtx.c (simplify_const_unary_operation): Call
375         real_convert when changing mode class with FLOAT_EXTEND.
377 2011-03-24  Nick Clifton  <nickc@redhat.com>
379         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
380         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
381         * config/rx/rx.c (rx_option_override): Set align_jumps,
382         align_loops and align_labels if not set by the user.
383         (rx_align_for_label): New function.
384         (rx_max_skip_for_label): New function.
385         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
386         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
387         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
388         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
389         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
391 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
393         PR rtl-optimization/48263
394         * optabs.c (expand_binop_directly): Reinstate convert_modes code
395         and original commutative_p handling.  Use maybe_gen_insn.
397 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
399         * reload.c (find_reloads_subreg_address): Add address_reloaded
400         parameter and return true there if the full address has been
401         reloaded.
402         (find_reloads_toplev): Pass address_reloaded flag.
403         (find_reloads_address_1): Don't use address_reloaded parameter.
405 2011-03-24  Jeff Law  <law@redhat.com>
407         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
408         unused variable "ann".
409         (remove_unused_locals): Likewise.
411         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
412         statement.
414         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
415         after it is freed.
417 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
419         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
420         for invalid symbolic addresses.
421         (s390_secondary_reload): Don't use s390_check_symref_alignment for
422         larl operands.
424 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
426         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
427         the argument in calls to fold_truth_not_expr.
429 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
431         * tree.c (record_node_allocation_statistics): New function.
432         (make_node_stat, copy_node_stat, build_string): Call it.
433         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
434         (build1_stat, build_omp_clause): Likewise.
436 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
438         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
439         last commit.
441 2011-03-24  Richard Guenther  <rguenther@suse.de>
443         PR tree-optimization/48271
444         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
445         blocks that still exist.
447 2011-03-24  Richard Guenther  <rguenther@suse.de>
449         PR tree-optimization/48270
450         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
451         not free datarefs before ddrs.
453 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
455         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
456         from the address built for a reference with variable offset.
458 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
460         PR target/48237
461         * config/i386/i386.md (*movdf_internal_rex64): Do not split
462         alternatives that can be handled with movq or movabsq insn.
463         (*movdf_internal): Disable for !TARGET_64BIT.
464         (*movdf_internal_nointeger): Ditto.
465         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
467 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
469         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
470         (FUNCTION_ARG_ADVANCE): Likewise.
471         * tm.texi.in: Change references to them to hook references.
472         * tm.texi: Regenerate.
473         * targhooks.c (default_function_arg): Eliminate check for target macro.
474         (default_function_incoming_arg): Likewise.
475         (default_function_arg_advance): Likewise.
476         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
477         (function_arg_advance): Likewise.
478         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
480 2011-03-24  Richard Guenther  <rguenther@suse.de>
482         PR middle-end/48269
483         * tree-object-size.c (addr_object_size): Do not double-account
484         for MEM_REF offsets.
486 2011-03-24  Diego Novillo  <dnovillo@google.com>
488         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
489         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
490         (lto_input_data_block): Move from lto-opts.c.  Make extern.
491         Update all users.
492         (lto_input_string): Rename from input_string.  Make extern.
493         Update all users.
494         * lto-streamer-out.c (lto_output_string_with_length): Rename from
495         output_string_with_length.
496         Output 0 to indicate a non-NULL string.  Update all callers to
497         not emit 0.
498         (lto_output_string): Rename from output_string.  Make extern.
499         Update all users.
500         (lto_output_decl_state_streams): Make extern.
501         (lto_output_decl_state_refs): Make extern.
502         * lto-streamer.h (lto_input_string): Declare.
503         (lto_input_data_block): Declare.
504         (lto_output_string): Declare.
505         (lto_output_string_with_length): Declare.
506         (lto_output_decl_state_streams): Declare.
507         (lto_output_decl_state_refs): Declare.
509 2011-03-24  Richard Guenther  <rguenther@suse.de>
511         PR tree-optimization/46562
512         * tree.c (build_invariant_address): New function.
513         * tree.h (build_invariant_address): Declare.
514         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
515         a renamed function moved ...
516         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
517         Take valueization callback parameter.
518         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
519         * gimple-fold.h: New file.
520         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
521         (ccp_fold, fold_const_aggregate_ref,
522         fold_ctor_reference, fold_nonarray_ctor_reference,
523         fold_array_ctor_reference, fold_string_cst_ctor_reference,
524         get_base_constructor): Move ...
525         * gimple-fold.c: ... here.
526         (gimple_fold_stmt_to_constant_1): New function
527         split out from ccp_fold.  Take a valueization callback parameter.
528         Valueize all operands.
529         (gimple_fold_stmt_to_constant): New wrapper function.
530         (fold_const_aggregate_ref_1): New function split out from
531         fold_const_aggregate_ref.  Take a valueization callback parameter.
532         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
533         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
534         invariant POINTER_PLUS_EXPRs to invariant form.
535         (vn_valueize): New function.
536         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
537         * tree-vrp.c (vrp_valueize): New function.
538         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
539         to fold statements to constants.
540         * tree-ssa-pre.c (eliminate): Properly guard propagation of
541         function declarations.
542         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
543         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
545 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
547         * config/h8300/predicates.md (jump_address_operand): Fix register
548         mode check.
550 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
552         * doc/invoke.texi (max-stores-to-sink): Document.
553         * params.h (MAX_STORES_TO_SINK): Define.
554         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
555         if either vectorization or if-conversion is disabled.
556         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
557         tree-vect-data-refs.c vect_equal_offsets.
558         (dr_equal_offsets_p): New function.
559         (find_data_references_in_bb): Remove static.
560         * tree-data-ref.h (find_data_references_in_bb): Declare.
561         (dr_equal_offsets_p): Likewise.
562         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
563         (vect_drs_dependent_in_basic_block): Update calls to
564         vect_equal_offsets.
565         (vect_check_interleaving): Likewise.
566         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
567         (cond_if_else_store_replacement): Rename to...
568         (cond_if_else_store_replacement_1): ... this.  Change arguments and
569         documentation.
570         (cond_if_else_store_replacement): New function.
571         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
572         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
574 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
576         PR target/46934
577         * config/arm/arm.md (casesi): Use the gen_int_mode() function
578         to subtract lower bound instead of GEN_INT().
580 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
582         PR other/48179
583         PR other/48221
584         PR other/48234
585         * doc/extend.texi (Alignment): Move section to match order in TOC.
586         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
587         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
589 2011-03-23  Jeff Law  <law@redhat.com>
591         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
592         before removing the edge.
594         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
595         it may have been freed by redirect_branch_edge or
596         redirect_edge_succ_nodup.
598 2011-03-23  Richard Guenther  <rguenther@suse.de>
600         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
601         (check_va_list_escapes): Likewise.
602         (check_all_va_list_escapes): Likewise.
604 2011-03-23  Richard Guenther  <rguenther@suse.de>
606         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
607         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
608         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
609         (alias.o): Likewise.
610         (ipa-type-escape.o): Remove.
611         (ipa-struct-reorg.o): Likewise.
612         (GTFILES): Remove ipa-struct-reorg.c.
613         * alias.c: Do not include ipa-type-escape.h.
614         * tree-ssa-alias.c: Likewise.
615         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
616         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
617         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
618         and ipa-type-escape passes.
619         * tree-pass.h (pass_ipa_type_escape): Remove.
620         (pass_ipa_struct_reorg): Likewise.
621         * ipa-struct-reorg.h: Remove.
622         * ipa-struct-reorg.c: Likewise.
623         * ipa-type-escape.h: Likewise.
624         * ipa-type-escape.c: Likewise.
625         * doc/invoke.texi (-fipa-struct-reorg): Remove.
626         (--param struct-reorg-cold-struct-ratio): Likewise.
627         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
628         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
629         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
631 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
633         * config/s390/2084.md: Enable all insn reservations also for z9_ec
634         cpu attribute value.
635         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
636         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
637         * config/s390/s390.c (processor_flags_table): New constant array.
638         (s390_handle_arch_option): Remove.
639         (s390_handle_option): Remove s390_handle_arch_option invocations
640         and OPT_mwarn_framesize_ handling.
641         (s390_option_override): Remove s390_handle_arch_option invocation.
642         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
643         warnings.
644         * config/s390/s390.md (cpu attribute): Add z9_ec value.
645         * config/s390/s390.opt (s390_tune, s390_arch)
646         (march=): Replace s390_arch_option enum and values with
647         processor_type.  Set variable name to s390_arch.  Set
648         initialization value.
649         (mtune=): Replace s390_arch_option with processor_type.  Set
650         variable name to s390_tune.  Set initialization value.
652 2011-03-23  Julian Brown  <julian@codesourcery.com>
654         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
655         accesses which are not naturally aligned.
657 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
659         PR target/47553
660         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
662 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
664         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
665         parameter from "int" to "enum insn_code".
666         (expand_operand_type): New enum.
667         (expand_operand): New structure.
668         (create_expand_operand): New function.
669         (create_fixed_operand, create_output_operand): Likewise
670         (create_input_operand, create_convert_operand_to): Likewise.
671         (create_convert_operand_from, create_address_operand): Likewise.
672         (create_integer_operand): Likewise.
673         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
674         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
675         (expand_insn, expand_jump_insn): Likewise.
676         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
677         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
678         (expand_movstr, expand_builtin___clear_cache): Likewise.
679         (expand_builtin_lock_release): Likewise.
680         * explow.c (allocate_dynamic_stack_space): Likewise.
681         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
682         and use the default handling in that case.
683         * expmed.c (check_predicate_volatile_ok): Delete.
684         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
685         (emit_cstore): Likewise.
686         * expr.c (emit_block_move_via_movmem): Likewise.
687         (set_storage_via_setmem, expand_assignment): Likewise.
688         (emit_storent_insn, try_casesi): Likewise.
689         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
690         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
691         (expand_vec_shift_expr, expand_binop_directly): Likewise.
692         (expand_twoval_unop, expand_twoval_binop): Likewise.
693         (expand_unop_direct, emit_indirect_jump): Likewise.
694         (emit_conditional_move, vector_compare_rtx): Likewise.
695         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
696         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
697         (expand_sync_lock_test_and_set): Likewise.
698         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
699         (emit_unop_insn): Likewise.
700         (expand_copysign_absneg): Change icode to an insn_code.
701         (create_convert_operand_from_type): New function.
702         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
703         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
704         (expand_insn, expand_jump_insn): Likewise.
705         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
706         than const_int_operand for operand 2.
708 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
710         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
711         if possible.
713 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
715         * emit-rtl.c (emit_pattern_before_noloc): New function.
716         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
717         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
718         (emit_pattern_after_noloc): New function.
719         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
720         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
722 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
724         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
725         (__ffsDI2): Likewise.
727 2011-03-22  Richard Henderson  <rth@redhat.com>
729         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
730         of !TARGET_ABI_OPEN_VMS.
731         (alpha_trampoline_init, alpha_start_function): Likewise.
732         (alpha_expand_epilogue, alpha_file_start): Likewise.
733         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
734         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
735         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
736         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
737         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
739 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
741         * config/s390/s390-opts.h: New.
742         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
743         s390_arch_flags, s390_warn_framesize, s390_stack_size,
744         s390_stack_guard): Remove.
745         (s390_handle_arch_option): Return void.  Take enum
746         s390_arch_option value instead of string and searching array.
747         (s390_handle_option): Don't assert that global structures are in
748         use.  Access variables via opts pointer.  Use error_at.  Don't use
749         sscanf for -mstack-guard= or -mstack-size=.  Update call to
750         s390_handle_arch_option.
751         (s390_option_override): Update call to s390_handle_arch_option.
752         (s390_emit_prologue): Use %d format for s390_stack_size in
753         diagnostic.  Use %wd for HOST_WIDE_INT.
754         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
755         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
756         * config/s390/s390.opt (config/s390/s390-opts.h): New
757         HeaderInclude entry.
758         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
759         s390_arch_flags, s390_warn_framesize): New Variable entries.
760         (s390_arch_option): New Enum and EnumValue entries.
761         (march=): Use Enum instead of Var.
762         (mstack-guard=, mstack-size=): Use UInteger and Var.
763         (mtune=): Use Enum.
765 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
767         * config/score/score.c (score_handle_option): Don't assert that
768         global structures are in use.  Access target_flags via opts
769         pointer.  Use value of -march= option to determine target_flags
770         settings.
771         * config/score/score.opt (march=): Use Enum.
772         (score_arch): New Enum and EnumValue entries.
774 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
776         * config/mep/mep.c (option_mtiny_specified): Remove.
777         (mep_option_override): Move register handling for -mivc2 from
778         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
779         instead of option_mtiny_specified.
780         (mep_handle_option): Access target_flags via opts pointer.  Don't
781         assert that global structures are in use.  Defer part of -mivc2
782         handling and move it to mep_option_override.
783         * config/mep/mep.opt (IVC2): New Mask entry.
784         (mivc2): Use Var and Defer instead of Mask.
786 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
788         * config/v850/v850-opts.h: New.
789         * config/v850/v850.c (small_memory): Replace with
790         small_memory_physical_max array.  Make that array static const.
791         (v850_handle_memory_option): Take integer value of argument.  Take
792         gcc_options pointer, option text and location.  Return void.
793         Update for changes to small memory structures.
794         (v850_handle_option): Access target_flags via opts pointer.  Don't
795         assert that global structures are in use.  Update calls to
796         v850_handle_memory_option.
797         (v850_encode_data_area): Update references to small memory settings.
798         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
799         (enum small_memory_type): Move to v850-opts.h.
800         * config/v850/v850.opt (config/v850/v850-opts.h): New
801         HeaderInclude entry.
802         (small_memory_max): New Variable entry.
803         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
804         (mtda, mzda): Likewise.
806 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
808         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
809         pointer.  Don't assert that global structures are in use.
811 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
813         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
814         via opts pointer.  Don't assert that global structures are in use.
816 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
818         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
819         (munix=93): Use Var.
820         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
821         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
822         * config/pa/pa-opts.h: New.
823         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
824         (pa_handle_option): Don't assert that global structures are in
825         use.  Access target_flags via opts pointer.  Don't handle
826         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
827         OPT_munix_98 here.
828         (pa_option_override): Handle deferred OPT_mfixed_range_.
830 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
832         * config/mn10300/mn10300-opts.h: New.
833         * config/mn10300/mn10300.c (mn10300_processor,
834         mn10300_tune_string): Remove.
835         (mn10300_handle_option): Don't assert that global structures are
836         in use.  Access mn10300_processor via opts pointer.  Don't handle
837         OPT_mtune_ here.
838         * config/mn10300/mn10300.h (enum processor_type): Move to
839         mn10300-opts.h.
840         (mn10300_processor): Remove.
841         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
842         HeaderInclude entry.
843         (mn10300_processor): New Variable entry.
844         (mtune=): Use Var.
846 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
848         * config/microblaze/microblaze.c: Don't include opts.h.
849         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
850         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
851         (mno-clearbss): Use Var and Warn.
853 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
855         * config/m32r/m32r-opts.h: New.
856         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
857         (m32r_handle_option): Don't assert that global structures are in
858         use.  Access target_flags and m32r_cache_flush_func via opts
859         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
860         OPT_mno_flush_trap here.
861         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
862         include of m32r-opts.h.
863         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
864         HeaderInclude entry.
865         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
866         (mmodel=): Use Enum and Var.
867         (m32r_model): New Enum and EnumValue entries.
868         (mno-flush-trap): Use Var.
869         (msdata=): Use Enum and Var.
870         (m32r_sdata): New Enum and EnumValue entries.
872 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
874         * config/m32c/m32c.c: Don't include opts.h.
875         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
876         m32c_handle_option): Remove.
877         (m32c_option_override): Check global_options_set.x_target_memregs
878         instead of target_memregs_set.
879         * config/m32c/m32c.h (target_memregs): Remove.
880         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
881         variable.
883 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
885         * config/iq2000/iq2000-opts.h: New.
886         * config/iq2000/iq2000.c: Don't include opts.h.
887         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
888         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
889         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
890         HeaderInclude entry.
891         (iq2000_tune): New Variable entry.
892         (march=): Add comment.  Use Enum.
893         (iq2000_arch): New Enum and EnumValue entries.
894         (mcpu=): Use Enum and Var.
895         (iq2000_tune): New Enum and EnumValue entries.
897 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
899         * config/ia64/ia64-opts.h: New.
900         * config/ia64/ia64.c (ia64_tune): Remove.
901         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
902         here.  Use error_at.
903         (ia64_option_override): Handle deferred OPT_mfixed_range_.
904         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
905         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
906         HeaderInclude entry.
907         (ia64_tune): New Variable entry.
908         (mfixed-range=): Use Defer and Var.
909         (mtune=): Use Enum and Var.
910         (ia64_tune): New Enum and EnumValue entries.
912 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
914         * config/frv/frv-opts.h: New.
915         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
916         frv-opts.h.
917         (frv_cpu_type): Remove.
918         * config/frv/frv.c: Don't include opts.h.
919         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
920         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
921         (frv_cpu_type): New Variable entry.
922         (frv_cpu): New Enum and EnumValue entries.
924 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
926         * config/cris/cris.c (cris_handle_option): Access target_flags via
927         opts pointer.  Don't assert that global structures are in use.
928         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
929         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
931 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
933         * config/bfin/bfin-opts.h: New.
934         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
935         bfin_si_revision, bfin_workarounds): Remove.
936         (bfin_cpus): Make static const.
937         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
938         not bfin_lib_id_given.
939         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
940         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
941         pointer. Use error_at.  Don't assert that global structures are in use.
942         * config/bfin/bfin.h: Include bfin-opts.h.
943         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
944         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
945         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
946         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
947         entries.
949 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
951         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
952         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
953         or -msoft-float here.
954         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
955         -msoft-float and -mhard-float.
956         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
957         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
958         msoft-float.
959         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
960         -msoft-float.
961         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
962         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
963         not mhard-float.
964         (LIBGCC_SPEC): Don't handle -msoft-float.
965         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
966         -mhard-float.
967         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
968         msoft-float.
969         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
970         -mfloat-abi=*, not -msoft-float and -mhard-float.
971         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
972         -msoft-float.
973         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
974         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
975         mhard-float and msoft-float.
976         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
977         mfloat-abi=soft in comments, not mhard-float and msoft-float.
978         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
979         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
980         mhard-float.
981         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
982         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
983         msoft-float.
984         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
985         not mhard-float.
986         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
987         not msoft-float.
989 2011-03-22  Richard Henderson  <rth@redhat.com>
991         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
992         TARGET_ABI_WINDOWS_NT.
993         (alpha_output_function_end_prologue): Likewise.
994         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
995         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
996         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
997         (trap, *movsi_nt_vms): Likewise.
998         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
999         (*tablejump_osf_nt_internal): Remove.
1000         * config/alpha/predicates.md (input_operand): Only test Pmode.
1002 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1004         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
1005         via opts pointer.  Use error_at.  Don't assert that global
1006         structures are in use.
1008 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1010         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
1011         (ix86_handle_option): Access ix86_isa_flags and
1012         ix86_isa_flags_explicit via opts pointer.  Don't assert that
1013         global structures are in use.
1014         (ix86_function_specific_save, ix86_function_specific_restore):
1015         Update ix86_isa_flags_explicit field name.
1016         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1017         (ix86_isa_flags_explicit): Rename TargetSave entry to
1018         x_ix86_isa_flags_explicit.
1020 2011-03-22  Richard Henderson  <rth@redhat.com>
1022         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
1023         (alpha_option_override, direct_return): Likewise.
1024         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
1025         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
1026         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
1027         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
1028         (alpha_expand_epilogue, alpha_end_function): Likewise.
1029         (alpha_init_libfuncs): Likewise.
1030         (struct machine_function): Remove unicosmk members.
1031         (print_operand) ['t']: Remove.
1032         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
1033         unicosmk_output_module_name, unicosmk_output_common,
1034         current_section_align, unicosmk_output_text_section_asm_op,
1035         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
1036         unicosmk_section_type_flags, unicosmk_unique_section,
1037         unicosmk_asm_named_section, unicosmk_insert_attributes,
1038         unicosmk_output_align, unicosmk_defer_case_vector,
1039         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
1040         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
1041         unicosmk_output_ssib, unicosmk_add_call_info_word,
1042         unicosmk_extern_head, unicosmk_output_default_externs,
1043         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
1044         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
1045         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
1046         * config/alpha/alpha-protos.h: Update.
1047         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
1048         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
1049         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
1050         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
1051         (*mulsi_se, mulvsi3): Likewise.
1052         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
1053         (*divmodsi_internal, call, call_value, realign): Likewise.
1054         (moddi3, umoddi3): Likewise; remove duplicate expander.
1055         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
1056         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
1057         (*movdi_nofix): Remove r/U alternative.
1058         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
1059         * config/alpha/constraints.md ("U"): Remove.
1060         * config/alpha/predicates.md (call_operand"): Don't test
1061         TARGET_ABI_UNICOSMK.
1063 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1065         * target.def (handle_option): Take gcc_options and
1066         cl_decoded_option pointers and location_t.
1067         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
1068         * doc/tm.texi: Regenerate.
1069         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
1070         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
1071         * lto-opts.c (lto_reissue_options): Generate option structure for
1072         targetm.handle_option call.
1073         * opts.c (target_handle_option): Update call to
1074         targetm.handle_option.  Remove assertions about values now passed
1075         down to hook.
1076         * targhooks.c (default_target_handle_option): New.
1077         * targhooks.h (default_target_handle_option): Declare.
1078         * config/alpha/alpha.c: Include opts.h.
1079         (alpha_handle_option): Update to new hook interface.
1080         * config/arm/arm.c: Include opts.h.
1081         (arm_handle_option): Update to new hook interface.
1082         * config/arm/t-arm (arm.o): Update dependencies.
1083         * config/bfin/bfin.c: Include opts.h.
1084         (bfin_handle_option): Update to new hook interface.
1085         * config/cris/cris.c: Include opts.h.
1086         (cris_handle_option): Update to new hook interface.
1087         * config/frv/frv.c: Include opts.h.
1088         (frv_handle_option): Update to new hook interface.
1089         * config/i386/i386.c: Include opts.h.
1090         (ix86_handle_option): Update to new hook interface.
1091         (ix86_valid_target_attribute_inner_p): Generate option structure
1092         for call to ix86_handle_option.
1093         * config/i386/t-i386 (i386.o): Update dependencies.
1094         * config/ia64/ia64.c: Include opts.h.
1095         (ia64_handle_option): Update to new hook interface.
1096         * config/ia64/t-ia64 (ia64.o): Update dependencies.
1097         * config/iq2000/iq2000.c: Include opts.h.
1098         (iq2000_handle_option): Update to new hook interface.
1099         * config/m32c/m32c.c: Include opts.h.
1100         (m32c_handle_option): Update to new hook interface.
1101         * config/m32r/m32r.c: Include opts.h.
1102         (m32r_handle_option): Update to new hook interface.
1103         * config/m68k/m68k.c: Include opts.h.
1104         (m68k_handle_option): Update to new hook interface.
1105         * config/mep/mep.c: Include opts.h.
1106         (mep_handle_option): Update to new hook interface.
1107         * config/microblaze/microblaze.c: Include opts.h.
1108         (microblaze_handle_option): Update to new hook interface.
1109         * config/mips/mips.c: Include opts.h.
1110         (mips_handle_option): Update to new hook interface.
1111         * config/mn10300/mn10300.c: Include opts.h.
1112         (mn10300_handle_option): Update to new hook interface.
1113         * config/pa/pa.c: Include opts.h.
1114         (pa_handle_option): Update to new hook interface.
1115         * config/pdp11/pdp11.c: Include opts.h.
1116         (pdp11_handle_option): Update to new hook interface.
1117         * config/rs6000/rs6000.c: Include opts.h.
1118         (rs6000_handle_option): Update to new hook interface.
1119         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1120         * config/rx/rx.c: Include opts.h.
1121         (rx_handle_option): Update to new hook interface.
1122         * config/s390/s390.c: Include opts.h.
1123         (s390_handle_option): Update to new hook interface.
1124         * config/score/score.c: Include opts.h.
1125         (score_handle_option): Update to new hook interface.
1126         * config/sh/sh.c: Include opts.h.
1127         (sh_handle_option): Update to new hook interface.
1128         * config/sparc/sparc.c: Include opts.h.
1129         (sparc_handle_option): Update to new hook interface.
1130         * config/v850/v850.c: Include opts.h.
1131         (v850_handle_option): Update to new hook interface.
1133 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1135         * gcc.c (driver_unknown_option_callback): Only permit and save
1136         unknown -Wno- options.
1137         (driver_wrong_lang_callback): Save options directly instead of via
1138         driver_unknown_option_callback.
1140 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
1142         * combine.c (simplify_set): Try harder to find the best CC mode when
1143         simplifying a nested COMPARE on the RHS.
1145 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
1147         * config/alpha/gnu.h: Remove.
1148         * config/arc: Remove directory.
1149         * config/arm/netbsd.h: Remove.
1150         * config/arm/t-pe: Remove.
1151         * config/crx: Remove directory.
1152         * config/i386/netbsd.h: Remove.
1153         * config/m68hc11: Remove directory.
1154         * config/m68k/uclinux-oldabi.h: Remove.
1155         * config/mcore/mcore-pe.h: Remove.
1156         * config/mcore/t-mcore-pe: Remove.
1157         * config/netbsd-aout.h: Remove.
1158         * config/rs6000/gnu.h: Remove.
1159         * config/sh/sh-symbian.h: Remove.
1160         * config/sh/symbian-base.c: Remove.
1161         * config/sh/symbian-c.c: Remove.
1162         * config/sh/symbian-cxx.c: Remove.
1163         * config/sh/symbian-post.h: Remove.
1164         * config/sh/symbian-pre.h: Remove.
1165         * config/sh/t-symbian: Remove.
1166         * config/svr3.h: Remove.
1167         * config/vax/netbsd.h: Remove.
1168         * config.build: Don't handle i[34567]86-*-pe.
1169         * config.gcc: Remove handling of deprecations for most deprecated
1170         targets.
1171         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
1172         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
1173         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
1174         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
1175         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
1176         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
1177         Remove cases.
1178         * config.host: Don't handle i[34567]86-*-pe.
1179         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
1180         (ASM_SPEC32): Don't handle -mcall-gnu.
1181         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
1182         -mcall-gnu.
1183         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
1184         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
1185         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
1186         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
1187         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
1188         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
1189         conditional on SYMBIAN.
1190         * configure.ac: Don't handle powerpc*-*-gnu*.
1191         * configure: Regenerate.
1192         * doc/extend.texi (interrupt attribute): Don't mention CRX.
1193         * doc/install-old.texi (m6811, m6812): Don't mention.
1194         * doc/install.texi (arc-*-elf*): Don't document multilib option.
1195         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
1196         (m68k-uclinuxoldabi): Don't mention.
1197         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
1198         Remove.
1199         (-mcall-gnu): Remove.
1200         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
1201         families): Remove constraint documentation.
1203 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
1205         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
1206         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
1207         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
1209 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
1211         * config/avr/avr-protos.h (expand_epilogue): Change prototype
1212         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
1213         * config/avr/avr.c (init_cumulative_args)
1214         (avr_function_arg_advance): Use it.
1215         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
1216         sibcall epilogues.
1217         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
1218         (avr_function_ok_for_sibcall): ...this new function.
1219         (avr_lookup_function_attribute1): New static Function.
1220         (avr_naked_function_p, interrupt_function_p)
1221         (signal_function_p, avr_OS_task_function_p)
1222         (avr_OS_main_function_p): Use it.
1223         * config/avr/avr.md ("sibcall", "sibcall_value")
1224         ("sibcall_epilogue"): New expander.
1225         ("*call_insn", "*call_value_insn"): New insn.
1226         ("call_insn", "call_value_insn"): Remove
1227         ("call", "call_value", "epilogue"): Change expander to handle
1228         sibling calls.
1230 2011-03-21  Nick Clifton  <nickc@redhat.com>
1232         * doc/invoke.texi (Overall Options): Move closing brace to end of
1233         options list.
1234         (Optimization Options): Add missing @gol.
1235         (Directory Options): Likewise.
1236         (i386 and x86-64 Options): Likewise.
1237         (RS6000 and PowerPC Options): Likewise.
1238         (i386 and x86-64 Windows Options): Likewise.
1239         (V850 Options): Add text missing from descriptions.
1241 2011-03-22  Richard Henderson  <rth@redhat.com>
1243         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
1244         (avr_incoming_return_addr_rtx): New.
1245         (emit_push_byte): New.
1246         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
1247         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
1248         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
1249         (emit_pop_byte): New.
1250         (expand_epilogue): Use it.  Pop frame pointer by bytes.
1251         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
1252         (INCOMING_RETURN_ADDR_RTX): New.
1253         (INCOMING_FRAME_SP_OFFSET): New.
1254         (ARG_POINTER_CFA_OFFSET): New.
1255         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
1256         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
1257         (pophi): Remove.
1259         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
1261 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
1263         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
1264         (FUNCTION_ARG_ADVANCE): Likewise.
1265         * tm.texi.in: Change references to them to hook references.
1266         * tm.texi: Regenerate.
1267         * targhooks.c (default_function_arg): Eliminate check for target
1268         macro.
1269         (default_function_incoming_arg): Likewise.
1270         (default_function_arg_advance): Likewise.
1271         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
1272         (function_arg_advance): Likewise.
1273         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
1275 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
1277         * tree.c (build_call_1): New function.
1278         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
1280 2011-03-22  Richard Guenther  <rguenther@suse.de>
1282         PR tree-optimization/48228
1283         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
1284         for single-arg PHIs.
1286 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
1288         PR rtl-optimization/48143
1289         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
1290         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
1291         sse2_cvtps2pd): Likewise.
1293 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1295         * recog.c (canonicalize_change_group): Use validate_unshare_change.
1297 2011-03-22  Richard Guenther  <rguenther@suse.de>
1299         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
1300         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
1301         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
1302         and REALIGN_LOAD_EXPR.
1303         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
1304         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
1305         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
1306         DOT_PROD_EXPR case ...
1307         (expand_expr_real_2): ... here.
1308         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
1309         and REALIGN_LOAD_EXPR.
1310         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
1311         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
1312         (vect_create_epilog_for_reduction): Likewise.
1313         (vectorizable_reduction): Likewise.
1314         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
1315         * tree-vect-stmts.c (vectorizable_load): Likewise.
1317 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
1319         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
1321 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1323         * config/s390/s390.c (s390_delegitimize_address): Fix offset
1324         handling for PLTOFF/GOTOFF.
1326 2011-03-22  Nick Clifton  <nickc@redhat.com>
1328         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
1329         trailing backslash from the end of the macro definition.
1331 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1333         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
1334         and PLT unspecs.
1336 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
1338         * expr.h (prepare_operand): Move to...
1339         * optabs.h (prepare_operand): ...here and change the insn code
1340         parameter from "int" to "enum insn_code".
1341         (insn_operand_matches): Declare.
1342         * expr.c (init_expr_target): Use insn_operand_matches.
1343         (compress_float_constant): Likewise.
1344         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
1345         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
1346         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
1347         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
1348         Likewise.
1349         (gen_cond_trap): Likewise.
1350         (prepare_operand): Likewise.  Change icode to an insn_code.
1351         (insn_operand_matches): New function.
1352         * reload.c (find_reloads_address_1): Use insn_operand_matches.
1353         * reload1.c (gen_reload): Likewise.
1354         * targhooks.c (default_secondary_reload): Likewise.
1356 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
1358         * config/alpha/alpha.md (unspec): New define_c_enum.
1359         (unspecv): Ditto.
1361 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
1363         PR debug/48214
1364         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
1365         between a call and its CALL_ARG_LOCATION note.
1367 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
1369         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
1371 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
1373         PR c/42544
1374         PR c/48197
1375         * c-common.c (shorten_compare): If primopN is first sign-extended
1376         to opN and then zero-extended to result type, set primopN to opN.
1378 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
1380         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
1381         for barrier handlers.
1383 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1385         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
1386         UNSPEC constants to be in the unspec enumeration, and redefine
1387         all UNSPECV constants to be in the unspecv enumeration, so that
1388         dumps print which unspec/unspec_volatile this is.
1389         * config/rs6000/vector.md (UNSPEC_*): Ditto.
1390         * config/rs6000/paired.md (UNSPEC_*): Ditto.
1391         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
1392         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
1393         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
1395         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
1396         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
1397         UNSPECV_LWSYNC, since these are used as unspec_volatile.
1398         * config/rs6000/sync.md (isync, lwsync): Ditto.
1400 2011-03-21  Richard Guenther  <rguenther@suse.de>
1402         * params.def (lto-min-partition): Fix typo.
1404 2011-03-21  Richard Guenther  <rguenther@suse.de>
1406         PR c/47939
1407         * c-decl.c (grokdeclarator): Drop to the main variant only
1408         for array types.  Drop flag_gen_aux_info check.
1410 2011-03-21  Richard Guenther  <rguenther@suse.de>
1412         PR translation/47911
1413         * params.def (lto-partitions): Fix typo.
1414         (lto-min-partition): Fix wording.
1416 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
1418         * config/rs6000/t-freebsd: Remove duplication from file.
1420 2011-03-21  Richard Guenther  <rguenther@suse.de>
1422         PR middle-end/47661
1423         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
1425 2011-03-21  Richard Guenther  <rguenther@suse.de>
1427         PR lto/48210
1428         * params.def (lto-partitions): Require at least 1 partition.
1430 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1432         * gthr-solaris.h: Remove.
1433         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
1434         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
1435         (LIB_SPEC): Likewise.
1436         * config/sol2.opt (threads): Remove.
1437         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
1438         (sparc*-*-solaris2*): Likewise.
1439         * configure.ac (enable_threads): Enable solaris support.
1440         * configure: Regenerate.
1441         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
1442         * doc/install.texi (Configuration, --enable-threads=lib): Remove
1443         solaris.
1445 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1447         * config.gcc: Obsolete *-*-solaris2.8*.
1448         * doc/install.texi (Specific, *-*-solaris2*): Document it.
1450 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1452         PR bootstrap/48135
1453         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
1454         reference.  Solaris 8 perl works.
1456 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1458         PR bootstrap/48135
1459         * doc/install.texi (Prerequisites): Move jar etc. up.
1460         Explain support library version requirements.
1462 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1464         PR bootstrap/48135
1465         * doc/install.texi (Prerequisites): Move Perl to build
1466         requirements.  Always necessary on Solaris 2 with Sun ld.
1468 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1470         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
1471         binutils 2.21.
1472         (Specific, i?86-*-solaris2.[89]): Likewise.
1473         (Specific, i?86-*-solaris2.10): Likewise.
1474         (Specific, mips-sgi-irix6): Likewise.
1475         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
1476         Update for binutils 2.21.
1478 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1480         * configure.ac (gcc_cv_lto_plugin): Fix typo.
1481         Allow -fuse-linker-plugin for non-default plugin linker.
1482         * configure: Regenerate.
1484 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
1486         PR bootstrap/48167
1487         * gengtype.c (files_rules): Added rule for cp/parser.h.
1489 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
1491         PR target/48213
1492         * config/s390/s390.c (s390_delegitimize_address): Don't call
1493         lowpart_subreg if orig_x has BLKmode.
1495 2011-03-21  Kai Tietz  <ktietz@redhat.com>
1497         PR target/12171
1498         * doc/plugins.texi: Adjust documentation for plugin register_callback.
1499         * tree.h (attribute_spec): Add new member affects_type_identity.
1500         * attribs.c (empty_attribute_table): Adjust attribute_spec
1501         initializers.
1502         * config/alpha/alpha.c: Likewise.
1503         * config/arc/arc.c: Likewise.
1504         * config/arm/arm.c: Likewise.
1505         * config/avr/avr.c: Likewise.
1506         * config/bfin/bfin.c: Likewise.
1507         * config/crx/crx.c: Likewise.
1508         * config/darwin.h: Likewise.
1509         * config/h8300/h8300.c: Likewise.
1510         * config/i386/cygming.h: Likewise.
1511         * config/i386/i386.c: Likewise.
1512         * config/ia64/ia64.c: Likewise.
1513         * config/m32c/m32c.c: Likewise.
1514         * config/m32r/m32r.c: Likewise.
1515         * config/m68hc11/m68hc11.c: Likewise.
1516         * config/m68k/m68k.c: Likewise.
1517         * config/mcore/mcore.c: Likewise.
1518         * config/mep/mep.c: Likewise.
1519         * config/microblaze/microblaze.c: Likewise.
1520         * config/mips/mips.c: Likewise.
1521         * config/rs6000/rs6000.c: Likewise.
1522         * config/rx/rx.c: Likewise.
1523         * config/sh/sh.c: Likewise.
1524         * config/sol2.h: Likewise.
1525         * config/sparc/sparc.c: Likewise.
1526         * config/spu/spu.c: Likewise.
1527         * config/stormy16/stormy16.c: Likewise.
1528         * config/v850/v850.c: Likewise.
1530 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
1532         * simplify-rtx.c (simplify_binary_operation_1): Handle
1533         (xor (and A B) C) case when B and C are both constants.
1535 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
1537         * tree-dfa.c (add_referenced_var): Fix typo in comment.
1539 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
1541         PR bootstrap/48168
1542         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
1544 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
1546         PR rtl-optimization/48156
1547         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
1548         assume df and df_lr are not NULL.
1550 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1552         PR debug/48023
1553         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
1554         between a call and its CALL_ARG_LOCATION note.
1556 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1558         PR debug/48178
1559         * config/sh/sh.c (find_barrier): Don't emit a constant pool
1560         between a call and its corresponding CALL_ARG_LOCATION note.
1562 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
1564         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
1565         instead of loop. Use HARD_REGISTER_NUM_P predicate.
1566         * haifa-sched.c (setup_ref_regs): Ditto.
1567         * caller-save.c (add_used_regs_1): Ditto.
1568         * dse.c (look_for_hardregs): Ditto.
1569         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
1570         * sched-rgn.c (check_live_1): Ditto.
1572 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
1574         * c-decl.c (diagnose_mismatched_decls): Give an error for
1575         redefining a typedef with variably modified type.
1577 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
1579         * c-decl.c (grokfield): Don't allow typedefs for structures or
1580         unions with no tag by default.
1581         * doc/extend.texi (Unnamed Fields): Update.
1583 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
1585         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1586         Rewrite using indirect functions.
1587         (lwp_slwpcb): Ditto.
1588         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
1589         (avx_vinsertf128<mode>): Ditto.
1591 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1593         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
1594         unspecs.
1596 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1598         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
1599         splitting between a call and its corresponding CALL_ARG_LOCATION note.
1601 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
1603         PR rtl-optimization/48170
1604         * gcse.c (hoist_code): Remove bogus asserts.
1606 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
1608         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
1609         computation for prologue/epilogue.
1611 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1613         * Makefile.in (check-consistency): Remove.
1615 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
1617         PR debug/48176
1618         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
1619         arange_table_in_use is 0, but either text_section_used or
1620         cold_text_section_used is true.  Don't call it if
1621         !info_section_emitted.
1623 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
1625         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
1626         FUNCTION_VALUE_REGNO_P): Remove.
1627         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
1628         Remove.
1629         * config/avr/avr.c (avr_ret_register): Make static inline.
1630         (avr_function_value_regno_p): New function.
1631         (avr_libcall_value): Make static. Add 'func' argument.
1632         (avr_function_value): Make static. Rename 'func' argument to
1633         'fn_decl_or_type', forward it to avr_libcall_value. Call
1634         avr_ret_register function instead of RET_REGISTER macro.
1635         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1637 2011-03-18  Jason Merrill  <jason@redhat.com>
1639         PR c++/23372
1640         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
1642 2011-03-18  Richard Guenther  <rguenther@suse.de>
1644         * doc/install.texi (--enable-gold): Remove.
1645         (--with-plugin-ld): Document.
1646         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
1648 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
1650         PR middle-end/47790
1651         * expr.c (optimize_bitfield_assignment_op): Revamp to work
1652         again after expansion changes.
1654 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
1656         * combine.c (try_combine): Do simplification only call of
1657         subst() on i2 even when i1 is present. Update comments.
1659 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1661         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
1662         and UNSPEC_PCREL_SYMOFF.
1664 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1666         * config/s390/s390.md: Use define_c_enum for the unspec constant
1667         definitions.
1669 2011-03-18  Richard Henderson  <rth@redhat.com>
1670             Jakub Jelinek  <jakub@redhat.com>
1672         PR bootstrap/48161
1673         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
1674         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
1676 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
1678         PR middle-end/47725
1679         * combine.c (cant_combine_insn_p): Don't check zero/sign
1680         extended hard registers.
1682 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
1684         PR middle-end/47725
1685         * combine.c (cant_combine_insn_p): Check zero/sign extended
1686         hard registers.
1688 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
1690         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1691         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
1692         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
1693         Change return type to bool.
1694         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1696 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
1698         PR debug/48163
1699         * var-tracking.c (prepare_call_arguments): If CALL target
1700         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
1701         pc instead of looking it up using cselib_lookup and use
1702         Pmode for it if x has VOIDmode.
1703         * dwarf2out.c (gen_subprogram_die): If also both first and
1704         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
1706         PR debug/48163
1707         * function.c (assign_parms): For data.passed_pointer parms
1708         use MEM of data.entry_parm instead of data.entry_parm itself
1709         as DECL_INCOMING_RTL.
1710         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
1711         also when passed and declared mode is the same, DECL_RTL
1712         is a MEM with pseudo as address and DECL_INCOMING_RTL is
1713         a MEM too.
1715 2011-03-16  Jeff Law  <law@redhat.com>
1717         PR rtl-optimization/37273
1718         * ira-costs.c (scan_one_insn): Detect constants living in memory and
1719         handle them like argument loads from stack slots.  Do not double
1720         count memory for memory constants and argument loads from stack slots.
1722 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
1724         PR debug/48160
1725         * var-tracking.c (prepare_call_arguments): Check SUBREG.
1727 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
1729         PR target/48171
1730         * config/i386/i386.opt: Add Save to -mavx and -mfma.
1732 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
1734         PR bootstrap/48153
1735         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
1736         if dwarf_strict.
1737         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
1738         Clear call_arg_locations and call_arg_loc_last always.
1740         PR middle-end/48152
1741         * var-tracking.c (prepare_call_arguments): If argument needs to be
1742         passed by reference, adjust argtype and mode.
1744 2011-03-17  Richard Guenther  <rguenther@suse.de>
1746         PR middle-end/48134
1747         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
1748         a value make sure to fold the statement.
1750 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
1752         PR target/43872
1753         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
1754         return condition with !cfun->calls_alloca.
1756 2011-03-17  Richard Guenther  <rguenther@suse.de>
1758         PR bootstrap/48148
1759         * lto-cgraph.c (input_overwrite_node): Clear the abstract
1760         origin for decls in other ltrans units.
1761         (input_varpool_node): Likewise.
1763 2011-03-17  Richard Guenther  <rguenther@suse.de>
1765         PR middle-end/48165
1766         * tree-object-size.c (compute_object_offset): Properly return
1767         the offset operand of MEM_REFs as sizetype.
1769 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
1771         PR rtl-optimization/48141
1772         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
1773         * dse.c: Include params.h.
1774         (active_local_stores_len): New variable.
1775         (add_wild_read, dse_step1): Clear it when setting active_local_stores
1776         to NULL.
1777         (record_store, check_mem_read_rtx): Decrease it when removing
1778         from the chain.
1779         (scan_insn): Likewise.  Increase it when adding to chain, if it
1780         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
1781         set active_local_stores to NULL before the addition.
1782         * Makefile.in (dse.o): Depend on $(PARAMS_H).
1784         PR rtl-optimization/48141
1785         * dse.c (record_store): If no positions are needed in an insn
1786         that cannot be deleted, at least unchain it from active_local_stores.
1788 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
1790         PR debug/47510
1791         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
1792         (lookup_type_die_strip_naming_typedef): ... here.
1793         (get_context_die): Use it.
1794         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
1795         the anonymous struct named by the naming typedef.
1797 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1799         PR target/48154
1800         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
1801         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
1803 2011-03-16  Jeff Law  <law@redhat.com>
1805         * tree-vrp.c (identify_jump_threads): Slightly simplify type
1806         check for operands of conditional.  Allow type to be a pointer.
1808 2011-03-16  Richard Guenther  <rguenther@suse.de>
1810         PR tree-optimization/48149
1811         * fold-const.c (fold_binary_loc): Fold
1812         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
1814 2011-03-16  Richard Guenther  <rguenther@suse.de>
1816         PR tree-optimization/26134
1817         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
1818         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
1819         (non_rewritable_mem_ref_base): Handle complex type component
1820         accesses, constrain offsets for vector and complex extracts
1821         more properly.
1823 2011-03-16  Richard Guenther  <rguenther@suse.de>
1825         PR tree-optimization/48146
1826         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
1827         operands avoiding the need for renaming.
1829 2011-03-16  Richard Guenther  <rguenther@suse.de>
1831         * gimple-fold.c (maybe_fold_reference): Open-code relevant
1832         constant folding.  Move MEM_REF canonicalization first.
1833         Rely on fold_const_aggregate_ref for initializer folding.
1834         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
1836 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
1838         PR middle-end/48136
1839         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
1840         arg0/arg1 or their arguments are always fold converted to matching
1841         types.
1843         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
1844         to nargs.
1846 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1848         PR lto/46944
1849         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
1850         Handle in-tree gold.
1851         (ld_vers): Extract binutils version for gold.
1852         (gcc_cv_ld_hidden): Handle gold here.
1853         (gcc_cv_lto_plugin): Determine level of linker plugin support.
1854         * configure: Regenerate.
1855         * config.in: Regenerate.
1856         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
1857         -fuse-linker-plugin otherwise.
1858         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
1859         (LINK_COMMAND_SPEC): Use it.
1860         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
1862 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
1864         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
1865         * calls.c: Remove debug.h include.
1866         (emit_call_1): Don't call virtual_call_token debug hook.
1867         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
1868         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
1869         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
1870         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
1871         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
1872         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
1873         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
1874         dwarf2out_virtual_call): Remove.
1875         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
1876         copy_call_info and virtual_call hooks.
1877         (dwarf2out_init): Don't initialize vcall_insn_table,
1878         debug_dcall_section and debug_vcall_section.
1879         (prune_unused_types): Don't mark nodes from dcall_table.
1880         (dwarf2out_finish): Don't output dcall or vcall tables.
1881         * final.c (final_scan_insn): Don't call direct_call or
1882         virtual_call debug hooks.
1883         * debug.h (struct gcc_debug_hooks): Remove direct_call,
1884         virtual_call_token, copy_call_info and virtual_call hooks.
1885         (debug_nothing_uid): Remove prototype.
1886         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
1887         copy_call_info and virtual_call hooks.
1888         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1889         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
1890         * debug.c (do_nothing_debug_hooks): Likewise.
1891         (debug_nothing_uid): Remove.
1892         * doc/invoke.texi (-fenable-icf-debug): Remove.
1893         * common.opt (-fenable-icf-debug): Likewise.
1895         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
1896         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
1897         call's MEM.  Handle functions returning aggregate through a hidden
1898         first pointer.  For virtual calls add clobbered pc to call arguments
1899         chain.
1900         * dwarf2out.c (gen_subprogram_die): Emit
1901         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
1902         can't be emitted.
1904         PR debug/45882
1905         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
1906         * rtl.h (ENTRY_VALUE_EXP): Define.
1907         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
1908         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
1909         * print-rtl.c (print_rtx): Likewise.
1910         * gengtype.c (adjust_field_rtx_def): Likewise.
1911         * var-tracking.c (vt_add_function_parameter): Adjust
1912         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
1913         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
1914         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
1915         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
1916         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
1918         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
1919         Call var_location debug hook even on CALL_INSNs.
1920         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
1921         * rtl.def (ENTRY_VALUE): New.
1922         * dwarf2out.c: Include cfglayout.h.
1923         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1924         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
1925         (struct call_arg_loc_node): New type.
1926         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
1927         tail_call_site_count): New variables.
1928         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
1929         DW_TAG_GNU_call_site_parameter.
1930         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
1931         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
1932         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
1933         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
1934         and DW_AT_GNU_all_source_call_sites.
1935         (mem_loc_descriptor): Handle ENTRY_VALUE.
1936         (add_src_coords_attributes): Don't add enything if
1937         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
1938         (dwarf2out_abstract_function): Save and clear call_arg_location,
1939         call_site_count and tail_call_site_count around dwarf2out_decl call.
1940         (gen_call_site_die): New function.
1941         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
1942         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
1943         (dwarf2out_function_decl): Clear call_arg_locations,
1944         call_arg_loc_last, set call_site_count and tail_call_site_count
1945         to -1 and free block_map.
1946         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
1947         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
1948         followed by any real instructions.
1949         (dwarf2out_begin_function): Set call_site_count and
1950         tail_call_site_count to 0.
1951         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
1952         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
1953         attempt to force a DIE for it and worst case remove the attribute.
1954         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
1955         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
1956         the decl itself.
1957         * var-tracking.c: Include tm_p.h.
1958         (vt_stack_adjustments): For calls call note_register_arguments.
1959         (argument_reg_set): New variable.
1960         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
1961         ensure the VALUE is resolved.
1962         (call_arguments): New variable.
1963         (prepare_call_arguments): New function.
1964         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
1965         (struct expand_loc_callback_data): Add ignore_cur_loc field.
1966         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
1967         always use the best expression.
1968         (vt_expand_loc): Add ignore_cur_loc argument.
1969         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
1970         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
1971         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
1972         note for all calls.
1973         (vt_add_function_parameter): Use cselib_lookup_from_insn.
1974         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
1975         argument.  Don't call cselib_preserve_only_values and
1976         cselib_reset_table.
1977         (note_register_arguments): New function.
1978         (vt_initialize): Compute argument_reg_set.  Call
1979         vt_add_function_parameters before processing basic blocks instead of
1980         afterwards.  For calls call prepare_call_arguments before calling
1981         cselib_process_insn.
1982         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
1983         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
1984         (var-tracking.o): Depend on $(TM_P_H).
1985         * cfglayout.h (insn_scope): New prototype.
1986         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
1987         * cfglayout.c (insn_scope): No longer static.
1988         * insn-notes.def (CALL_ARG_LOCATION): New.
1989         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
1990         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
1991         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
1992         nothing for DECL_EXTERNAL BLOCK_VARS.
1994 2011-03-16  Alan Modra  <amodra@gmail.com>
1996         PR target/45844
1997         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
1998         create invalid offset address for vsx splat insn.
1999         * config/rs6000/predicates.md (splat_input_operand): New.
2000         * config/rs6000/vsx.md (vsx_splat_*): Use it.
2002 2011-03-15  Xinliang David Li  <davidxl@google.com>
2004         PR c/47837
2005         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
2006         (normalize_preds): New function.
2007         (is_use_properly_guarded): Normalize def predicates.
2009 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2011         PR target/46788
2012         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
2013         in the output template.
2015 2011-03-15  Richard Guenther  <rguenther@suse.de>
2017         PR middle-end/47650
2018         * tree-pretty-print.c (dump_function_declaration): Properly
2019         dump unprototyped and varargs function types.
2021 2011-03-15  Richard Guenther  <rguenther@suse.de>
2023         PR tree-optimization/13954
2024         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
2025         and friends.
2027 2011-03-15  Richard Guenther  <rguenther@suse.de>
2029         PR tree-optimization/48037
2030         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
2031         selects into BIT_FIELD_REFs.
2032         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
2033         vector select.
2035 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
2037         PR tree-optimization/48129
2038         * builtins.c (fold_builtin_snprintf): Convert to type of
2039         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
2040         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
2042 2011-03-15  Richard Guenther  <rguenther@suse.de>
2044         PR tree-optimization/41490
2045         * tree-ssa-dce.c (propagate_necessity): Handle returns without
2046         value but with VUSE.
2047         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
2048         return statements.
2049         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
2050         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
2051         * tree-tailcall.c (find_tail_calls): Ignore returns.
2053 2011-03-15  Richard Guenther  <rguenther@suse.de>
2055         PR middle-end/48031
2056         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
2057         or variable-indexed array accesses when in gimple form.
2059 2011-03-15  Richard Guenther  <rguenther@suse.de>
2061         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
2063 2011-03-15  Alan Modra  <amodra@gmail.com>
2065         PR target/48032
2066         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
2067         presume symbol_refs without a symbol_ref_decl are suitably
2068         aligned, nor other trees we may see here.  Handle anchor symbols.
2069         (legitimate_constant_pool_address_p): Comment.  Add mode param.
2070         Check cmodel=medium addresses.  Adjust all calls.
2071         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
2072         creating cmodel=medium optimized access to locals.
2073         * config/rs6000/constraints.md (R): Pass QImode to
2074         legitimate_constant_pool_address_p.
2075         * config/rs6000/predicates.md (input_operand): Pass mode to
2076         legitimate_constant_pool_address_p.
2077         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
2078         Update prototype.
2080 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2082         PR target/48053
2083         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
2084         64-bit constants being loaded into registers other than GPRs such
2085         as loading 0 into a VSX register.
2087 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2089         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
2091 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
2093         PR middle-end/47917
2094         * builtins.c (fold_builtin_snprintf): New function.
2095         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
2096         (fold_builtin_4): Likewise.
2098         PR middle-end/38878
2099         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
2100         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
2101         and C - X == X also strip nops from +/-/p+ operand.
2102         When optimizing -X == C, fold C to arg0's type.
2104         PR debug/47946
2105         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
2106         emit it as add_AT_int instead of add_AT_unsigned.
2108 2011-03-14  Tom Tromey  <tromey@redhat.com>
2110         * unwind-dw2.c: Include sys/sdt.h if it exists.
2111         (_Unwind_DebugHook): Use STAP_PROBE2.
2112         * config.in, configure: Rebuild.
2113         * configure.ac: Check for sys/sdt.h.
2115 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
2117         * config/i386/i386.md (ROUND_FLOOR): New constant.
2118         (ROUND_CEIL): Ditto.
2119         (ROUND_TRUNC): Ditto.
2120         (ROUND_MXCSR): Ditto.
2121         (ROUND_NO_EXC): Ditto.
2122         (rint<mode>2): Use new defines instead of numerical constants.
2123         (floor<mode>2): Ditto.
2124         (ceil<mode>2): Ditto.
2125         (btrunc<mode>2): Ditto.
2126         * config/i386/i386-builtin-types.def: Define ROUND function type
2127         aliases.
2128         * config/i386/i386.c (enum ix86_builtins): Add
2129         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
2130         (struct builtin_description): Add
2131         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
2132         (ix86_expand_sse_round): New static function.
2133         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
2134         function types.
2135         (ix86_builtin_vectorized_function): Handle
2136         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
2138 2011-03-14  Tom Tromey  <tromey@redhat.com>
2140         * c-parser.c (c_parser_asm_string_literal): Clear
2141         warn_overlength_strings.
2143 2011-03-14  Tom Tromey  <tromey@redhat.com>
2145         * c-parser.c (disable_extension_diagnostics): Save
2146         warn_overlength_strings.
2147         (restore_extension_diagnostics): Restore warn_overlength_strings.
2149 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
2151         * BASE-VER: Change to 4.7.0.
2153 2011-03-14  Richard Guenther  <rguenther@suse.de>
2155         PR middle-end/48098
2156         * tree.c (build_vector_from_val): Adjust assert to requirements
2157         and reality.
2159 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
2161         PR bootstrap/48102
2162         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
2164 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
2166         * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
2167         terms of target_flags_explicit. Adjust copyright year.
2169         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
2170         * config/rs6000/t-freebsd: New file. Add override for
2171         LIB2FUNCS_EXTRA.
2173 2011-03-13  Chris Demetriou  <cgd@google.com>
2175         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
2176         (-fno-diagnostics-show-option): this, to reflect current default.
2177         (-Werror=): Update text about -fno-diagnostics-show-option.
2179 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
2181         PR target/48053
2182         * config/rs6000/predicates.md (easy_vector_constant_add_self,
2183         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
2184         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
2185         mode is not V2DImode or V2DFmode.
2186         (vspltis_constant): Do not handle V2DImode and V2DFmode.
2187         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
2188         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
2189         registers to 0.
2190         (movdi_internal64): Likewise.
2192 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
2194         PR tree-optimization/47127
2195         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
2196         parameter.
2197         (set_cloog_options): Same.
2198         (scop_to_clast): Same.
2199         (print_clast_stmt): Do not call cloog_state_malloc and
2200         cloog_state_free.
2201         (print_generated_program): Same.
2202         (gloog): Same.
2203         * graphite-clast-to-gimple.h (cloog_state): Declared.
2204         (scop_to_clast): Adjust declaration.
2205         * graphite.c (cloog_state): Defined here.
2206         (graphite_initialize): Call cloog_state_malloc.
2207         (graphite_finalize): Call cloog_state_free.
2209 2011-03-11  Jason Merrill  <jason@redhat.com>
2211         * attribs.c (lookup_attribute_spec): Take const_tree.
2212         * tree.h: Adjust.
2214 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
2216         * config/sparc/sparc.c (sparc_option_override): Use
2217         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
2219 2011-03-11  Richard Guenther  <rguenther@suse.de>
2221         PR tree-optimization/48067
2222         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
2223         multiplication result will be only used once on the target
2224         stmt.
2226 2011-03-11  Richard Guenther  <rguenther@suse.de>
2228         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
2230 2011-03-11  Richard Guenther  <rguenther@suse.de>
2232         PR lto/48073
2233         * tree.c (find_decls_types_r): Do not walk types only reachable
2234         from IDENTIFIER_NODEs.
2236 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
2238         PR middle-end/48044
2239         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
2240         all vnode->force_output nodes as needed.
2242 2011-03-11  Jason Merrill  <jason@redhat.com>
2244         PR c++/48069
2245         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
2246         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
2248 2011-03-11  Martin Jambor  <mjambor@suse.cz>
2250         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
2251         cgraph_node.
2253 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
2255         PR tree-optimization/48063
2256         * ipa-inline.c (cgraph_decide_inlining): Don't try to
2257         inline functions called once if !tree_can_inline_p (node->callers).
2259 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
2261         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
2262         extra_objs.
2263         * config/score/score3.c: Delete.
2264         * config/score/score3.h: Delete.
2265         * config/score/mul-div.S: Delete.
2266         * config/score/sfp-machine.h: Add new file.
2267         * config/score/constraints.md: Add new file.
2268         * config/score/t-score-softfp: Add new file.
2269         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
2270         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
2271         (score7_extra_constraint): Delete.
2272         (score7_option_override): Remove unused code.
2273         * config/score/score.c: Remove score3 and score5 define and code.
2274         * config/score/score.h: Remove score3 and score5 define and code.
2275         * config/score/score.md: Remove score3 template and unusual insn.
2276         * config/score/score.opt: Remove score3 and score5 options.
2278 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2280         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2281         when _HPUX_SOURCE is defined.
2282         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
2284 2011-03-10  Jason Merrill  <jason@redhat.com>
2286         PR c++/48029
2287         * stor-layout.c (layout_type): Don't set structural equality
2288         on arrays of incomplete type.
2289         * tree.c (type_hash_eq): Handle comparing them properly.
2291 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
2293         PR debug/48043
2294         * config/s390/s390.c (s390_delegitimize_address): Make sure the
2295         result mode matches original rtl mode.
2297 2011-03-10  Nick Clifton  <nickc@redhat.com>
2299         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
2300         (andsi3, andsi3_flags): Fix timings for three operand alternative.
2302 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
2304         PR rtl-optimization/47866
2305         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
2306         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
2307         if target wasn't scalar.
2308         * function.c (assign_stack_temp_for_type): Assert that neither
2309         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
2310         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
2311         macro.
2312         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
2314 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2316         * config/s390/s390-protos.h (s390_label_align): New prototype.
2317         * config/s390/s390.c (s390_label_align): New function.
2318         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
2320 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2322         PR target/47755
2323         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
2324         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
2325         (output_vec_const_move): Ditto.
2327 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
2329         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
2330         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
2331         * config/mips/mips.c (mips_preferred_reload_class): Make static.
2332         Change 'rclass' argument and result type to reg_class_t.
2333         (TARGET_PREFERRED_RELOAD_CLASS): Define.
2335 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
2337         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2338         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
2339         (TARGET_MEMORY_MOVE_COST): Define.
2340         (avr_register_move_cost, avr_memory_move_cost): New Functions.
2342 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
2344         PR debug/47881
2345         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
2346         removed anything.
2348         PR tree-optimization/48022
2349         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
2350         for EQ/NE_EXPR.
2352 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
2354         PR debug/47991
2355         * var-tracking.c (find_use_val): Return NULL for
2356         cui->sets && cui->store_p BLKmode MEMs.
2358 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
2360         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
2361         Remove.
2362         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
2363         xstormy16_print_operand_address): Remove.
2364         * config/stormy16/stormy16.c (xstormy16_print_operand,
2365         xstormy16_print_operand_address): Make static.
2366         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2368 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
2370         PR target/47862
2371         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2372         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
2373         before definition.
2375 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
2377         PR bootstrap/48000
2378         * cfgloopmanip.c (fix_bb_placements): Return immediately
2379         if FROM is BASE_LOOP's header.
2381 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
2383         * gimplify.c (gimplify_function_tree): Fix building calls
2384         to __builtin_return_address.
2386 2011-03-07  Alan Modra  <amodra@gmail.com>
2388         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
2389         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
2390         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
2391         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
2392         return_mode args.
2393         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
2394         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
2395         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
2396         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
2397         * config/rs6000/rs6000.c
2398         (rs6000_elf_end_indicate_exec_stack): Rename to..
2399         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
2400         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
2401         (rs6000_file_start): ..here.
2402         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
2403         file scope variables.
2404         (call_ABI_of_interest): New function.
2405         (init_cumulative_args): Set above vars when function return value
2406         is a float, vector, or small struct.
2407         (rs6000_function_arg_advance_1): Likewise for function args.
2408         (rs6000_va_start): Set rs6000_passes_float if variable arg function
2409         references float args.
2411 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
2413         * doc/cfg.texi: Remove "See" before @ref.
2414         * doc/invoke.texi: Likewise.
2416 2011-03-05  Jason Merrill  <jason@redhat.com>
2418         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
2420 2011-03-05  Anthony Green  <green@moxielogic.com>
2422         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
2424 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
2426         PR rtl-optimization/47899
2427         * cfgloopmanip.c (fix_bb_placements): Fix first argument
2428         to flow_loop_nested_p when moving the loop upward.
2430 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
2432         PR target/47719
2433         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
2435 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
2437         PR tree-optimization/47967
2438         * ipa-cp.c (build_const_val): Return NULL instead of creating
2439         VIEW_CONVERT_EXPR for mismatching sizes.
2440         (ipcp_create_replace_map): Return NULL if build_const_val failed.
2441         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
2442         give up on versioning.
2444 2011-03-05  Alan Modra  <amodra@gmail.com>
2446         PR target/47986
2447         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2448         full cmodel medium/large lo_sum + high addresses.
2450 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2452         * config/s390/s390.c (s390_decompose_address): Reject non-literal
2453         pool references in UNSPEC_LTREL_OFFSET.
2455 2011-03-04  Jan Hubicka  <jh@suse.cz>
2457         PR lto/47497
2458         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
2459         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
2460         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
2461         Add node pointers.
2462         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
2463         cgraph_add_thunk): Add node pointers.
2464         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
2465         associated to right node.
2466         (input_node): Update use of cgraph_same_body_alias
2467         and cgraph_add_thunk.
2469 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
2471         * config/i386/i386.opt (mprefer-avx128): New flag.
2472         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
2473         modes when the flag -mprefer-avx128 is on.
2475 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
2477         * dwarf2out.c (compare_loc_operands): Fix address handling.
2479 2011-03-04  Alan Modra  <amodra@gmail.com>
2481         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
2483 2011-03-04  Richard Guenther  <rguenther@suse.de>
2485         PR middle-end/47968
2486         * expmed.c (extract_bit_field_1): Prefer vector modes that
2487         vec_extract patterns can handle.
2489 2011-03-04  Richard Guenther  <rguenther@suse.de>
2491         PR middle-end/47975
2492         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
2494 2011-03-04  Richard Henderson  <rth@redhat.com>
2496         * explow.c (emit_stack_save): Remove 'after' parameter.
2497         (emit_stack_restore): Likewise.
2498         * expr.h: Update to match.
2499         * builtins.c, calls.c, stmt.c: Likewise.
2500         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
2501         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
2502         * function.c (expand_function_end): Insert the emit_stack_save
2503         sequence before parm_birth_insn instead of after.
2505 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
2507         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
2508         (ssse3_pmaddubsw128): Ditto.
2509         (ssse3_pmaddubsw): Ditto.
2511 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
2513         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
2515 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
2517         PR c/47963
2518         * gimplify.c (omp_add_variable): Only call omp_notice_variable
2519         on TYPE_SIZE_UNIT if it is a DECL.
2521         PR debug/47283
2522         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
2523         first operand is not is_gimple_mem_ref_addr, try to fold it.
2524         If the operand still isn't is_gimple_mem_ref_addr, clear
2525         MEM_EXPR on op0.
2527 2011-03-03  Richard Guenther  <rguenther@suse.de>
2529         PR middle-end/47283
2530         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
2531         match comment.
2532         (refs_may_alias_p_1): For release branches return true if
2533         we are confused by our input.
2535 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2537         * config/s390/s390.c (s390_function_value): Rename to ...
2538         (s390_function_and_libcall_value): ... this.
2539         (s390_function_value): New function.
2540         (s390_libcall_value): New function.
2541         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
2542         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
2543         target macro definitions.
2544         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
2546 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
2548         * config/i386/freebsd64.h (CC1_SPEC): Define.
2549         * config/i386/linux64.h (CC1_SPEC): Define.
2550         * config/i386/x86-64.h (CC1_SPEC): Don't define.
2552 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
2554         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2555         Remove.
2556         * config/stormy16/stormy16.c: Include reload.h.
2557         (xstormy16_memory_move_cost): New function.
2558         (TARGET_MEMORY_MOVE_COST): Define.
2560 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
2562         PR rtl-optimization/47925
2563         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
2564         with side effects.  Remove the more-specific check for volatile asms.
2566 2011-03-02  Alan Modra  <amodra@gmail.com>
2568         PR target/47935
2569         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
2570         toc relative addresses for valid offsets.
2572 2011-03-01  Richard Guenther  <rguenther@suse.de>
2574         PR tree-optimization/47890
2575         * tree-vect-loop.c (get_initial_def_for_induction): Set
2576         related stmt properly.
2578 2011-03-01  Richard Guenther  <rguenther@suse.de>
2580         PR lto/47924
2581         * lto-streamer.c (lto_record_common_node): Also register
2582         the canonical type.
2584 2011-03-01  Richard Guenther  <rguenther@suse.de>
2586         PR lto/46911
2587         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2588         Do not stream DECL_ABSTRACT_ORIGIN.
2589         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
2590         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
2591         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2592         Do not stream DECL_ABSTRACT_ORIGIN.
2593         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
2594         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
2596 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
2598         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
2599         FUNCTION_VALUE_REGNO_P): Remove.
2600         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
2601         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
2602         Add 'outgoing' argument.
2603         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
2604         function.
2605         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2606         TARGET_FUNCTION_VALUE_REGNO_P): Define.
2608 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
2610         PR debug/28047
2611         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
2612         (lookup_filename): Likewise.
2613         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
2615 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
2616             Jakub Jelinek  <jakub@redhat.com>
2618         PR middle-end/47893
2619         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
2620         (assign_stack_local_1): Change last argument type to int.
2621         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
2622         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
2623         don't record padding space into frame_space_list nor use those areas.
2624         (assign_stack_local): Adjust caller.
2625         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
2626         of assign_stack_local, pass 0 as last argument.
2627         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
2628         callers.
2630 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
2632         PR debug/47283
2633         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
2634         Use target address_mode and pointer_mode hooks instead of hardcoded
2635         Pmode and ptr_mode.  Handle some simple cases of extending if
2636         POINTERS_EXTEND_UNSIGNED < 0.
2637         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
2638         Call convert_debug_memory_address.
2639         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
2640         convert_debug_memory_address.
2642         PR middle-end/46790
2643         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
2644         * configure: Regenerated.
2645         * config.in: Regenerated.
2646         * varasm.c (default_function_section): Return NULL
2647         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
2649 2011-02-28  Martin Jambor  <mjambor@suse.cz>
2651         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
2652         the description to match the printed values.
2654 2011-02-28  Richard Guenther  <rguenther@suse.de>
2656         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
2657         of the copied scope tree.
2659 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2661         * doc/extend.texi (Function Attributes): Avoid deeply (and
2662         wrongly) nested tables.
2664 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
2666         PR middle-end/47903
2667         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
2668         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
2669         r isn't op0 nor op1.
2671 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
2673         * config/avr/avr.md: Remove magic comment for emacs.
2675 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
2677         PR target/45261
2678         * config/avr/avr.c (avr_option_override): Use error on bad options.
2679         (avr_help): New function.
2680         (TARGET_HELP): Define.
2682 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
2684         PR target/42240
2685         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
2686         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
2688 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
2690         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
2691         (ARM Options): Ditto.
2692         (i386 and x86-64 Options): Ditto.
2693         (RX Options): Ditto.
2694         (SPARC Options): Ditto.
2696 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
2698         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
2699         FreeBSD 6 and later.  Generally use cpu generic.
2701 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
2703         * doc/cpp.texi: Update copyright years.
2705 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
2707         PR target/46898
2708         * config/lm32/lm32.md (ashrsi3): Added needed variable.
2710 2011-02-25  Jon Beniston  <jon@beniston.com>
2712         PR target/46898
2713         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
2714         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
2715         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
2716         (lm32_block_move_inline): Add type cast to remove warning.
2717         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
2718         (gen_int_relational): Move declarations to start of function.
2720 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
2722         PR tree-optimization/45470
2723         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
2724         can throw internally only.
2725         * tree-vect-stmts.c (vectorizable_call): Likewise.
2727 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
2729         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
2730         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2731         * config/stormy16/stormy16-protos.h
2732         (xstormy16_preferred_reload_class): Remove.
2733         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
2734         static. Change 'rclass' argument and return type to reg_class_t.
2735         (TARGET_PREFERRED_RELOAD_CLASS,
2736         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2738 2011-02-24  Richard Guenther  <rguenther@suse.de>
2740         * lto-streamer-in.c (input_bb): Do not find referenced vars
2741         in debug statements.
2743 2011-02-23  Jason Merrill  <jason@redhat.com>
2745         * common.opt (fabi-version): Document v5 and v6.
2747 2011-02-23  Richard Guenther  <rguenther@suse.de>
2749         PR tree-optimization/47849
2750         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
2752 2011-02-23  Jie Zhang  <jie@codesourcery.com>
2754         * opts-common.c (decode_cmdline_option): Print empty string
2755         argument as "" in decoded->orig_option_with_args_text.
2756         * gcc.c (execute): Print empty string argument as ""
2757         in the verbose output.
2758         (do_spec_1): Keep empty string argument.
2760 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
2762         * config.gcc: Declare score-* and crx-* obsolete.
2764 2011-02-23  Jie Zhang  <jie@codesourcery.com>
2766         PR rtl-optimization/47763
2767         * web.c (web_main): Ignore naked clobber when replacing register.
2769 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
2771         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2772         Remove.
2774 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
2776         PR doc/47848
2777         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
2779 2011-02-22  Mike Stump  <mikestump@comcast.net>
2781         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
2782         assembler.
2783         * configure: Regenerate.
2785 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
2787         PR rtl-optimization/46002
2788         * ira-color.c (update_copy_costs): Change class intersection
2789         test to reg_class_contents[] test of 'hard_regno'.
2791 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
2793         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
2794         than Driver option.
2795         * config/hpux11.opt (mt): Likewise.
2796         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
2797         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
2798         * config/vax/elf.opt (mno-asm-pic): Likewise.
2799         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
2801 2011-02-21  Mike Stump  <mikestump@comcast.net>
2803         PR target/47822
2804         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
2805         tree so we can get save the type.
2806         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
2807         for CFString instead of trying to use past the end of the builtins.
2808         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
2809         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
2810         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
2811         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
2812         Rename to darwin_builtin_cfstring.
2813         (darwin_init_cfstring_builtins): Return the built type.
2815 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
2817         PR target/47840
2818         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
2819         (_mm256_insert_epi64): Use _mm_insert_epi64.
2821 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
2823         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2824         * config/stormy16/stormy16-protos.h
2825         (xstormy16_mode_dependent_address_p): Remove.
2826         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
2827         Make static. Change return type to bool. Change argument type to
2828         const_rtx. Remove dead code.
2829         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2831 2011-02-21  Richard Guenther  <rguenther@suse.de>
2833         PR lto/47820
2834         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
2835         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
2836         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
2837         TUs context.
2838         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2839         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
2841 2011-02-20  Richard Guenther  <rguenther@suse.de>
2843         PR lto/47822
2844         * tree.c (free_lang_data_in_decl): Clean builtins from
2845         the TU decl BLOCK_VARS.
2847 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
2849         PR debug/47620
2850         PR debug/47630
2851         * haifa-sched.c (fix_tick_ready): Skip tick computation
2852         for debug insns.
2854 2011-02-19  Richard Guenther  <rguenther@suse.de>
2856         PR lto/47647
2857         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
2858         Remove lazy BLOCK_VARS streaming.
2859         (lto_input_ts_block_tree_pointers): Likewise.
2860         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
2862 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
2864         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
2866 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
2868         * config/i386/biarch32.h, config/i386/mach.h,
2869         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
2871 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
2873         PR target/47800
2874         * config/i386/i386.md (peephole2 for shift and plus): Use
2875         operands[1] original mode in the first insn.
2877 2011-02-18  Mike Stump  <mikestump@comcast.net>
2879         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
2881 2011-02-18  Jan Hubicka  <jh@suse.cz>
2883         PR middle-end/47788
2884         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
2885         to zero when the function is not inlinable at all.
2887 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2889         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
2890         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
2891         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
2892         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
2893         * config/pa/t-pa64: Likewise.
2894         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2896 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
2898         PR driver/47787
2899         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
2901 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2903         PR target/47792
2904         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
2906 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
2908         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2909         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
2910         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
2911         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2912         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
2913         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
2914         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
2915         m32r_load_postinc_p, m32r_store_preinc_predec_p,
2916         m32r_legitimate_address_p): New functions.
2917         * config/m32r/constraints.md (constraint "S"): Don't use
2918         STORE_PREINC_PREDEC_P.
2919         (constraint "U"): Don't use LOAD_POSTINC_P.
2921 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
2923         PR rtl-optimization/46178
2924         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
2925         compute ira_hard_regno_cover_class[].
2927 2011-02-18  Richard Guenther  <rguenther@suse.de>
2929         PR lto/47798
2930         * lto-streamer.h (lto_global_var_decls): Declare.
2931         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
2932         statics for global var processing.
2934 2011-02-18  Richard Guenther  <rguenther@suse.de>
2936         PR tree-optimization/47737
2937         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
2938         edge dominance check.
2940 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
2942         PR debug/47780
2943         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
2944         avoid invalid rtx sharing.
2946 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
2948         * doc/cpp.texi (Obsolete Features): Add background on the
2949         origin of assertions.
2951 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
2953         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
2954         objc_abi == 2.
2955         * config/darwin.c (output_objc_section_asm_op): Added support for
2956         ABI v1 and v2.
2957         (is_objc_metadata): New.
2958         (darwin_objc2_section): New.
2959         (darwin_objc1_section): New.
2960         (machopic_select_section): Added support for ABI v1 and v2.
2961         (darwin_emit_objc_zeroed): New.
2962         (darwin_output_aligned_bss): Detect objc metadata and treat it
2963         appropriately.
2964         (darwin_asm_output_aligned_decl_common): Same.
2965         (darwin_asm_output_aligned_decl_local): Same.
2966         * config/darwin-sections.def: Updated for ABI v1 and v2.
2967         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
2968         compiling Objective-C code for the NeXT runtime, default to using
2969         ABI version 0 for 32-bit, and version 2 for 64-bit.
2971 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
2973         * common.opt (optimize_fast): New Variable.
2974         * opts.c (default_options_optimization): Use opts->x_optimize_fast
2975         instead of local variable ofast.
2977 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
2979         * doc/invoke.texi (fobjc-abi-version): Documented.
2980         (fobjc-nilcheck): Documented.
2981         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
2982         version.
2984 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
2986         PR driver/47390
2987         * common.opt (export-dynamic): New Driver option.
2988         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
2990 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
2992         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
2994 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
2995             Jan Hubicka  <jh@suse.cz>
2997         PR debug/47106
2998         PR debug/47402
2999         * cfgexpand.c (account_used_vars_for_block): Remove.
3000         (estimated_stack_frame_size): Use referenced vars.
3001         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
3002         that were referenced in the original function.  Test src_fn
3003         rather than cfun.  Drop redundant get_var_ann.
3004         (setup_one_parameter): Drop redundant get_var_ann.
3005         (declare_return_variable): Likewise.
3006         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
3007         (copy_arguments_for_versioning): Drop redundant get_var_ann.
3008         * ipa-inline.c (compute_inline_parameters): Do not compute
3009         disregard_inline_limits here.
3010         (compute_inlinable_for_current, pass_inlinable): New.
3011         (pass_inline_parameters): Require PROP_referenced_vars.
3012         * cgraphunit.c (cgraph_process_new_functions): Don't run
3013         compute_inline_parameters explicitly unless function is in SSA form.
3014         (cgraph_analyze_function): Set .disregard_inline_limits.
3015         * tree-sra.c (convert_callers): Compute inliner parameters
3016         only for functions already in SSA form.
3018 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
3020         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
3021         -mlittle-endian-data.
3023 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
3025         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
3026         -mno-fpu, not -fpu and -no-fpu.
3027         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
3028         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
3030 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
3032         PR target/43653
3033         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
3034         input reload with PLUS RTX.
3036 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
3038         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
3039         of InverseVar(MDMX).
3041 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
3043         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
3044         --m4-340.
3046 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
3048         * config/mn10300/mn10300.opt (mno-crt0): New.
3050 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
3052         * config/m68k/uclinux.opt (static-libc): New Driver option.
3054 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
3056         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
3058 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
3060         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
3061         %{muser-extend-enabled}.
3063 2011-02-16  Richard Guenther  <rguenther@suse.de>
3065         PR tree-optimization/47738
3066         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
3067         the TODO from tree_predictive_commoning.
3069 2011-02-15  Jeff Law  <law@redhat.com>
3071         Revert
3072         2011-01-25  Jeff Law  <law@redhat.com>
3074         PR rtl-optimization/37273
3075         * ira-costs.c (scan_one_insn): Detect constants living in memory and
3076         handle them like argument loads from stack slots.  Do not double
3077         count memory for memory constants and argument loads from stack slots.
3079 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
3081         PR middle-end/47725
3082         * combine.c (cant_combine_insn_p): Revert the last change.
3084 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
3086         PR target/47755
3087         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
3088         mode for vector constants.  Remove code that checks for TImode.
3090 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
3092         PR debug/47106
3093         PR debug/47402
3094         * cgraph.h (compute_inline_parameters): Return void.
3095         * ipa-inline.c (compute_inline_parameters): Adjust.
3097 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
3099         PR debug/47106
3100         PR debug/47402
3101         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
3102         rather than decl.
3103         * cfgexpand.c (estimated_stack_frame_size): Likewise.
3104         * ipa-inline.c (compute_inline_parameters): Adjust.
3106 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
3108         PR debug/47106
3109         PR debug/47402
3110         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
3111         Adjust all users.  Pass FN to...
3112         * tree-flow-inline.h (first_referenced_var): ... this.  Add
3113         fn argument.
3114         * ipa-struct-reorg.c: Adjust.
3115         * tree-dfa.c: Adjust.
3116         * tree-into-ssa.c: Adjust.
3117         * tree-sra.c: Adjust.
3118         * tree-ssa-alias.c: Adjust.
3119         * tree-ssa-live.c: Adjust.
3120         * tree-ssa.c: Adjust.
3121         * tree-ssanames.c: Adjust.
3122         * tree-tailcall.c: Adjust.
3124 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
3126         PR debug/47106
3127         PR debug/47402
3128         * tree-flow.h (referenced_var_lookup): Add fn parameter.
3129         Adjust all callers.
3130         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
3131         * tree-flow-inline.h: Adjust.
3132         * gimple-pretty-print.c: Adjust.
3133         * tree-into-ssa.c: Adjust.
3134         * tree-ssa.c: Adjust.
3135         * cfgexpand.c: Adjust.
3137 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
3139         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
3140         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3141         (EXTRA_CONSTRAINT): Delete.
3142         * config/iq2000/constraints.md: New file.
3143         * config/iq2000/iq2000.md: Include it.
3144         (define_insn ""): Delete.
3145         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
3146         unsupported constraint letters from patterns.
3147         (call_value, call_value_internal1): Likewise.
3148         (call_value_multiple_internal1): Likewise.
3150 2011-02-15  Nick Clifton  <nickc@redhat.com>
3152         * config/mn10300/mn10300.c: Include tm-constrs.h.
3153         (struct liw_data): New data structure describing an LIW candidate
3154         instruction.
3155         (extract_bundle): Use struct liw_data.  Allow small integer
3156         operands for some instructions.
3157         (check_liw_constraints): Use struct liw_data.  Remove swapped
3158         parameter.  Add comments describing the checks.  Fix bug when
3159         assigning the source of liw1 to the source of liw2.
3160         (liw_candidate): Delete.  Code moved into extract_bundle.
3161         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
3162         before swapping.
3163         * config/mn10300/predicates.md (liw_operand): New predicate.
3164         Allows registers and small integer constants.
3165         * config/mn10300/constraints.md (O): New constraint.  Accetps
3166         integers in the range -8 to +7 inclusive.
3167         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
3168         for moving a small integer into a register.  Give this alternative
3169         LIW attributes.
3170         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
3171         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
3172         using the J,K,L and M constraints,
3173         (liw): Remove SI mode on second operands to allow for HI and QI
3174         mode values.
3175         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
3176         instruction.
3178 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
3180         PR middle-end/47725
3181         * combine.c (cant_combine_insn_p): Check zero/sign extended
3182         hard registers.
3184 2011-02-15  Richard Guenther  <rguenther@suse.de>
3186         PR tree-optimization/47743
3187         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
3188         for a non-type-compatible VN lookup bail out.
3190 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
3192         * config/fr30/constraints.md: New file.
3193         * config/fr30/fr30.md: Include it.
3194         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
3195         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3196         (EXTRA_CONSTRAINT): Delete.
3198 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
3200         * config/frv/constraints.md: New file.
3201         * config/frv/predicates.md: Include it.
3202         * config/frv/frv.c (reg_class_from_letter): Delete.
3203         (frv_option_override): Don't initialize it.
3204         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
3205         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
3206         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
3207         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
3208         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
3209         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3210         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
3211         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
3212         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
3213         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
3214         (REG_CLASS_FROM_CONSTRAINT): Delete.
3216 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
3218         PR middle-end/47581
3219         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
3220         if frame size is 0 in a leaf function.
3222 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3224         PR pch/14940
3225         * config/alpha/host-osf.c: New file.
3226         * config/alpha/x-osf: New file.
3227         * config.host (alpha*-dec-osf*): Use it.
3229 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
3231         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3232         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
3233         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
3234         (rx_mode_dependent_address_p): ...this. Make static. Change argument
3235         type to const_rtx.
3236         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3238 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
3240         * config/stormy16/constraints.md: New file.
3241         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
3242         Use satisfies_constraint_Q and satisfies_constraint_R.
3243         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
3244         Delete.
3245         (xstormy16_legitiamte_address_p): Declare.
3246         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
3247         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3248         (EXTRA_CONSTRAINT): Delete.
3249         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
3250         Un-staticize.
3251         (xstormy16_extra_constraint_p): Delete.
3253 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
3255         PR tree-optimization/46494
3256         * loop-unroll.c (split_edge_and_insert): Adjust comment.
3257         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
3258         (pass_rtl_loop_done): Add TODO_verify_flow.
3259         * fwprop.c (pass_rtl_fwprop): Likewise.
3260         * modulo-sched.c (pass_sms): Likewise.
3261         * tree-ssa-dom.c (pass_dominator): Likewise.
3262         * tree-ssa-loop-ch.c (pass_ch): Likewise.
3263         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
3264         (pass_tree_loop_done): Likewise.
3265         * tree-ssa-pre.c (execute_pre): Likewise.
3266         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
3267         * tree-ssa-sink.c (pass_sink_code): Likewise.
3268         * tree-vrp.c (pass_vrp): Likewise.
3270 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
3272         * config/v850/constraints.md: New file.
3273         * config/v850/v850.md: Include it.
3274         * config/v850/predicates.md (reg_or_0_operand): Use
3275         satisfies_constraint_G.
3276         (special_symbolref_operand): Use satisfies_constraint_K.
3277         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
3278         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
3279         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
3280         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
3281         (EXTRA_CONSTRAINT): Delete.
3282         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
3283         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
3284         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
3286 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
3288         PR target/47696
3289         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
3290         description.
3292 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
3294         * config/mcore/constraints.md: New file.
3295         * config/mcore/mcore.md: Include it.
3296         * config/mcore/mcore.c (reg_class_from_letter): Delete.
3297         * config/mcore/mcore.h (reg_class_from_letter): Delete.
3298         (REG_CLASS_FROM_LETTER): Delete.
3299         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
3300         insn_const_int_ok_for_constraint.
3301         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
3302         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
3303         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3304         (EXTRA_CONSTRAINT): Delete.
3306 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3308         PR ada/41929
3309         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
3310         (IS_SIGHANDLER): Define.
3311         (sparc64_is_sighandler): New function, split off from
3312         sparc64_fallback_frame_state.
3313         (sparc_is_sighandler): New function, split off from
3314         sparc_fallback_frame_state.
3315         (sparc64_fallback_frame_state): Merge with ...
3316         (sparc_fallback_frame_state): ... this into ...
3317         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
3318         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
3319         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
3320         stack instead of hardcoded offsets.
3322 2011-02-14  Andriy Gapon  <avg@freebsd.org>
3324         PR target/45808
3325         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
3327 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3329         * configure: Regenerate.
3331 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
3333         PR driver/45731
3334         * gcc.c (asm_options): Correct spec matching --target-help.
3336 2011-02-12  Martin Jambor  <mjambor@suse.cz>
3338         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
3339         to gimple call error.
3341 2011-02-12  Mike Stump  <mikestump@comcast.net>
3343         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
3344         comments in backslash regions.
3346 2011-02-12  Mike Stump  <mikestump@comcast.net>
3347             Jakub Jelinek  <jakub@redhat.com>
3348             Iain Sandoe  <iains@gcc.gnu.org>
3350         PR target/47324
3351         * dwarf2out.c (output_cfa_loc): When required, apply the
3352         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
3353         (output_loc_sequence): Likewise.
3354         (output_loc_operands_raw): Likewise.
3355         (output_loc_sequence_raw): Likewise.
3356         (output_cfa_loc): Likewise.
3357         (output_loc_list): Suppress register number adjustment when
3358         calling output_loc_sequence()
3359         (output_die): Likewise.
3361 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
3363         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3364         Remove macros.
3365         * config/xtensa/xtensa.c (xtensa_register_move_cost,
3366         xtensa_memory_move_cost): New functions.
3367         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
3369 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
3371         PR lto/47225
3372         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
3373         in the current directory.
3374         * configure: Rebuilt.
3376 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
3378         * config/darwin.c (darwin_override_options): Add a hunk missed
3379         from the commit of r168571.  Trim comment line lengths and
3380         correct indents of the preceding block.
3382 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
3384         * gcc.c (driver_handle_option): Concatenate the argument to -F with
3385         the switch.
3387 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
3389         * common.opt (nostartfiles): New Driver option.
3391 2011-02-11  Xinliang David Li  <davidxl@google.com>
3393         PR tree-optimization/47707
3394         * tree-chrec.c (convert_affine_scev): Keep type precision.
3396 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
3398         PR tree-optimization/47420
3399         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
3401 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
3403         PR rtl-optimization/47614
3404         * rtl.h (check_for_inc_dec): Declare.
3405         * dse.c (check_for_inc_dec): Externalize...
3406         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
3407         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
3409 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
3411         PR driver/47678
3412         * gcc.c (main): Do not compile inputs if there were errors in
3413         option handling.
3414         * opts-common.c (read_cmdline_option): Check for wrong language
3415         after other error checks.
3417 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
3419         * cgraph.c: Fix comment typos.
3420         * cgraph.h: Likewise.
3421         * cgraphunit.c: Likewise.
3422         * ipa-cp.c: Likewise.
3423         * ipa-inline.c: Likewise.
3424         * ipa-prop.c: Likewise.
3425         * ipa-pure-const.c: Likewise.
3426         * ipa-ref.c: Likewise.
3427         * ipa-reference.c: Likewise.
3429 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
3431         PR debug/47684
3432         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
3434 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3436         PR testsuite/47400
3437         * doc/sourcebuild.texi (Require Support): Document
3438         dg-require-ascii-locale.
3440 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
3442         * doc/lto.texi (Write summary): Fix missing parentheses.
3444 2011-02-10  DJ Delorie  <dj@redhat.com>
3446         * config/m32c/m32c.c (m32c_option_override): Disable
3447         -fcombine-stack-adjustments until flag value tracking and compare
3448         optimization can be rewritten.
3450 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
3452         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
3453         PROCESSOR_POWER7.
3454         (PROCESSOR_DEFAULT64): Likewise.
3456 2011-02-10  Richard Henderson  <rth@redhat.com>
3458         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
3459         change from 2011-02-03.
3460         * config/rx/rx.c (flags_from_code): Likewise.
3461         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
3462         is valid, n/pz otherwise.
3463         (rx_select_cc_mode): Return CCmode if Y is not zero.
3465 2011-02-10  Richard Guenther  <rguenther@suse.de>
3467         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
3469 2011-02-10  Richard Guenther  <rguenther@suse.de>
3471         PR tree-optimization/47677
3472         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
3474 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
3476         PR target/47665
3477         * combine.c (make_compound_operation): Only change shifts into
3478         multiplication for SCALAR_INT_MODE_P.
3480 2011-02-10  Jie Zhang  <jie@codesourcery.com>
3482         PR testsuite/47622
3483         Revert
3484         2011-02-05  Jie Zhang  <jie@codesourcery.com>
3485         PR debug/42631
3486         * web.c (entry_register): Don't clobber the number of the
3487         first uninitialized reference in used[].
3489 2011-02-09  Richard Guenther  <rguenther@suse.de>
3491         PR tree-optimization/47664
3492         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
3493         all edges again.
3495 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
3497         PR target/46481
3498         PR target/47032
3499         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
3500         PROCESSOR_POWER7.
3501         (PROCESSOR_DEFAULT64): Same.
3502         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
3504 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3506         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
3508 2011-02-09  Martin Jambor  <mjambor@suse.cz>
3510         PR middle-end/45505
3511         * tree-sra.c (struct access): New flags grp_scalar_read and
3512         grp_scalar_write.  Changed description of assignment read and write
3513         flags.
3514         (dump_access): Dump new flags, reorder all of them.
3515         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
3516         to detect multiple scalar reads.
3517         (analyze_access_subtree): Use the new scalar read write flags instead
3518         of the old flags.  Adjusted comments.
3520 2011-02-08  DJ Delorie  <dj@redhat.com>
3522         PR target/47548
3523         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
3524         patterns.
3526 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
3528         * config/m68k/uclinux.opt: New.
3529         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
3531 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
3533         * config/cris/elf.opt (sim): New Driver option.
3535 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
3537         * config/xtensa/elf.opt: New.
3538         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
3540 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
3542         * config/vax/elf.opt: New.
3543         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
3545 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
3547         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
3549 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
3551         * config/gnu-user.opt: New.
3552         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
3553         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
3554         *-*-uclinux*): Use gnu-user.opt.
3556 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
3558         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
3559         * config/i386/gnu.h (CPP_SPEC): Likewise.
3561 2011-02-08  Ian Lance Taylor  <iant@google.com>
3563         * common.opt (fcx-limited-range): Add SetByCombined flag.
3564         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
3565         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
3566         (fassociative-math, freciprocal-math): Likewise.
3567         (funsafe-math-optimizations): Likewise.
3568         * opth-gen.awk: Handle SetByCombined.
3569         * optc-gen.awk: Likewise.
3570         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
3571         (set_unsafe_math_optimizations_flags): Likewise.
3572         * doc/options.texi (Option properties): Document SetByCombined.
3574 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
3576         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
3577         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
3578         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
3579         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
3580         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
3582 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
3584         PR tree-optimization/46834
3585         PR tree-optimization/46994
3586         PR tree-optimization/46995
3587         * graphite-sese-to-poly.c (used_outside_reduction): New.
3588         (detect_commutative_reduction): Call used_outside_reduction.
3589         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
3590         translate_scalar_reduction_to_array only when at least one
3591         loop-phi/close-phi tuple has been detected.
3593 2011-02-08  Richard Guenther  <rguenther@suse.de>
3595         PR middle-end/47639
3596         * tree-vect-generic.c (expand_vector_operations_1): Update
3597         stmts here ...
3598         (expand_vector_operations): ... not here.  Cleanup EH info
3599         and the CFG if required.
3601 2011-02-08  Richard Guenther  <rguenther@suse.de>
3603         PR tree-optimization/47641
3604         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
3605         require type compatibility.
3607 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3609         * gimple-low.c (lower_function_body): Don't remove the location of
3610         the return statement here.
3611         (lower_gimple_return): Do it here instead but only if the return
3612         statement is actually used twice.
3614 2011-02-08  Richard Guenther  <rguenther@suse.de>
3616         PR tree-optimization/47632
3617         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
3618         unused up_to_stmt parameter, return whether cfg-cleanup is
3619         necessary, remove EH info properly.
3620         (forward_propagate_into_gimple_cond): Adjust caller.
3621         (forward_propagate_into_cond): Likewise.
3622         (forward_propagate_comparison): Likewise.
3623         (tree_ssa_forward_propagate_single_use_vars): Make
3624         forward_propagate_comparison case similar to the two others.
3626 2011-02-08  Nick Clifton  <nickc@redhat.com>
3628         * config/mn10300/mn10300.opt (mliw): New command line option.
3629         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
3630         (liw_bundling): New automaton.
3631         (liw): New attribute.
3632         (liw_op): New attribute.
3633         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
3634         (movsi_internal): Add LIW attributes.
3635         (andsi3): Likewise.
3636         (iorsi3): Likewise.
3637         (xorsi3): Likewise.
3638         (addsi3): Separate register and immediate alternatives.
3639         Add LIW attributes.
3640         (subsi3): Likewise.
3641         (cmpsi): Likewise.
3642         (aslsi3): Likewise.
3643         (lshrsi3): Likewise.
3644         (ashrsi3): Likewise.
3645         (liw): New pattern.
3646         * config/mn10300/mn10300.c (liw_op_names): New
3647         (mn10300_print_operand): Handle 'W' operand descriptor.
3648         (extract_bundle): New function.
3649         (check_liw_constraints): New function.
3650         (liw_candidate): New function.
3651         (mn10300_bundle_liw): New function.
3652         (mn10300_reorg): New function.
3653         (TARGET_MACHINE_DEPENDENT_REORG): Define.
3654         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
3655         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
3656         __LIW__ or __NO_LIW__.
3657         * doc/invoke.texi: Describe the -mliw command line option.
3659 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3661         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
3662         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
3663         pthread_mutex_unlock): Remove.
3664         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
3665         * config/pa/t-pa64: Likewise.
3666         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
3667         shared libc if not linking against libpthread.
3668         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3670 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
3672         PR target/47558
3673         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
3674         on 10.6 and later to ensure that we always use the unwinder from
3675         the system.  Only add -no_compact_unwind when tarteting darwin
3676         10.6 or later.
3678 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
3680         PR target/46997
3681         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
3682         (vec_interleave_lowv2sf): Ditto.
3683         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
3684         (vec_extract_oddv2sf): Ditto.
3686 2011-02-07  Mike Stump  <mikestump@comcast.net>
3688         PR target/42333
3689         Add __ieee_divdc3 entry point.
3690         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
3691         entry point.
3692         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
3693         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
3694         * config/darwin.c (darwin_rename_builtins): Add.
3695         * config/darwin-protos.h (darwin_rename_builtins): Add.
3697 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
3699         PR target/47636
3700         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
3701         for the condition.
3703 2011-02-07  Mike Stump  <mikestump@comcast.net>
3705         * config/darwin.opt (mmacosx-version-min): Update default OS version.
3707 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
3709         PR target/47534
3710         * config/avr/libgcc.S (exit): Move .endfunc
3712 2011-02-07  Richard Guenther  <rguenther@suse.de>
3714         PR tree-optimization/47615
3715         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
3716         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
3717         (run_scc_vn): Initialize it.
3718         (visit_reference_op_load): Use it.
3719         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
3721 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3723         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
3724         DImode trapping arithmetic libfuncs.
3726 2011-02-07  Richard Guenther  <rguenther@suse.de>
3728         PR tree-optimization/47621
3729         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
3730         two duplicates ...
3731         (execute_update_addresses_taken): ... here.  Make it more
3732         conservative in what we accept.
3734 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
3736         * config/sparc/freebsd.h (ASM_SPEC): Define.
3737         * config/sparc/vxworks.h (ASM_SPEC): Define.
3739 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
3741         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
3743 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
3745         * doc/invoke.texi: Remove reference to compiler internals from
3746         user documentation.
3748         * reg-notes.def: Remove REG_VALUE_PROFILE.
3749         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
3751 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
3753         PR middle-end/47610
3754         * varasm.c (default_section_type_flags): If decl is NULL,
3755         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
3757 2011-02-05  Jie Zhang  <jie@codesourcery.com>
3759         PR debug/42631
3760         * web.c (entry_register): Don't clobber the number of the
3761         first uninitialized reference in used[].
3763 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
3765         PR tree-optimization/46194
3766         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
3767         (build_classic_dist_vector_1): Do not represent classic distance
3768         vectors when the access functions are variating in different loops.
3770 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
3772         * config/mips/iris6.opt: New.
3773         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
3775 2011-02-04  Richard Henderson  <rth@redhat.com>
3776             Steve Ellcey  <sje@cup.hp.com>
3778         PR target/46997
3779         * config/ia64/predicates.md (mux1_brcst_element): New.
3780         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
3781         * config/ia64/ia64.c (ia64_unpack_assemble): New.
3782         (ia64_unpack_sign): New.
3783         (ia64_expand_unpack): Rewrite using new routines.
3784         (ia64_expand_widen_sum): Ditto.
3785         (ia64_expand_dot_prod_v8qi): Ditto.
3786         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
3787         routines, add endian check.
3788         (pmpy2_even): Rename from pmpy2_r, add endian check.
3789         (pmpy2_odd): Rename from pmpy2_l, add endian check.
3790         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
3791         (vec_widen_smult_hi_v4hi): Ditto.
3792         (vec_widen_umult_lo_v4hi): Ditto.
3793         (vec_widen_umult_hi_v4hi): Ditto.
3794         (mulv2si3): Change endian checks.
3795         (sdot_prodv4hi): Rewrite with new calls.
3796         (udot_prodv4hi): New.
3797         (vec_pack_ssat_v4hi): Add endian check.
3798         (vec_pack_usat_v4hi): Ditto.
3799         (vec_pack_ssat_v2si): Ditto.
3800         (max1_even): Rename from max1_r, add endian check.
3801         (max1_odd): Rename from max1_l, add endian check.
3802         (*mux1_rev): Format change.
3803         (*mux1_mix): Ditto.
3804         (*mux1_shuf): Ditto.
3805         (*mux1_alt): Ditto.
3806         (*mux1_brcst_v8qi): Use new predicate.
3807         (vec_extract_evenv8qi): Remove endian check.
3808         (vec_extract_oddv8qi): Ditto.
3809         (vec_interleave_lowv4hi): Format change.
3810         (vec_interleave_highv4hi): Ditto.
3811         (mix2_even): Rename from mix2_r, add endian check.
3812         (mix2_odd): Rename from mux2_l, add endian check.
3813         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
3814         (vec_extract_evenodd_helper): Format change.
3815         (vec_extract_evenv4hi): Remove endian check.
3816         (vec_extract_oddv4hi): Remove endian check.
3817         (vec_interleave_lowv2si): Format change.
3818         (vec_interleave_highv2si): Format change.
3819         (vec_initv2si): Remove endian check.
3820         (vecinit_v2si): Add endian check.
3821         (reduc_splus_v2sf): Add endian check.
3822         (reduc_smax_v2sf): Ditto.
3823         (reduc_smin_v2sf): Ditto.
3824         (vec_initv2sf): Remove endian check.
3825         (fpack): Add endian check.
3826         (fswap): Add endian check.
3827         (vec_interleave_highv2sf): Add endian check.
3828         (vec_interleave_lowv2sf): Add endian check.
3829         (fmix_lr): Add endian check.
3830         (vec_setv2sf): Format change.
3831         (*vec_extractv2sf_0_be): Use shift to extract operand.
3832         (*vec_extractv2sf_1_be): New.
3833         (vec_pack_trunc_v4hi): Add endian check.
3834         (vec_pack_trunc_v2si): Format change.
3836 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
3838         PR inline-asm/23200
3839         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
3840         do bb, locus and block comparison and disallow loads if it is not set.
3841         (stmt_is_replaceable_p): New function.
3842         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
3843         callers.
3844         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
3845         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
3846         SSA_NAME_DEF_STMT.
3847         * tree-flow.h (stmt_is_replaceable_p): New prototype.
3849 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
3851         * config/rs6000/xilinx.opt: New.
3852         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
3854 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
3856         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
3858 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
3860         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
3861         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3862         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
3863         secondary_reload_info, xtensa_secondary_reload): Remove.
3864         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
3865         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3866         (xtensa_preferred_reload_class): Make static. Change return and
3867         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
3868         Use CONST_DOUBLE_P predicate.
3869         (xtensa_preferred_output_reload_class): New function.
3870         (xtensa_secondary_reload): Make static.
3872 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
3874         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
3875         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
3876         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
3878 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
3880         PR middle-end/31490
3881         * output.h (SECTION_RELRO): Define.
3882         (SECTION_MACH_DEP): Adjust.
3883         (get_variable_section): New prototype.
3884         * varpool.c (varpool_finalize_named_section_flags): New function.
3885         (varpool_assemble_pending_decls): Call it.
3886         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
3887         * cgraphunit.c (cgraph_output_in_order): Call
3888         varpool_finalize_named_section_flags.
3889         * varasm.c (get_section): Allow section flags conflicts between
3890         relro and read-only sections if the section hasn't been declared yet.
3891         Set SECTION_OVERRIDE after diagnosing section type conflict.
3892         (get_variable_section): No longer static.
3893         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
3894         readonly sections that need relocations.
3895         (decl_readonly_section_1): New function.
3896         (decl_readonly_section): Use it.
3898         Revert:
3899         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
3900                     Steve Ellcey  <sje@cup.hp.com>
3902         PR middle-end/31490
3903         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
3904         if section attribute used.
3906 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
3908         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
3909         * config/darwin.c (SECTION_NO_ANCHOR): Define.
3910         (darwin_init_sections): Remove assertion.
3912 2011-02-03  Nick Clifton  <nickc@redhat.com>
3914         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
3915         lt and ge.
3916         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
3917         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
3918         instead of "n" and "pz".
3919         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
3920         CC_FLAG_S.
3922 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
3924         PR target/47312
3925         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
3926         fma, expand FMA_EXPR as fma{,f,l} call.
3928         PR lto/47274
3929         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
3930         copy them into a unsigned char variable and pass address of it to
3931         lto_output_data_stream.
3933         PR target/47564
3934         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
3935         around backend_init_target and lang_dependent_init_target calls.
3936         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
3937         (verify_cgraph_node): Don't call set_cfun here.  Use
3938         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
3939         Set error_found for incorrectly represented calls to thunks.
3941 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
3943         PR debug/43092
3944         PR rtl-optimization/43494
3945         * rtl.h (for_each_inc_dec_fn): New type.
3946         (for_each_inc_dec): Declare.
3947         * rtlanal.c (struct for_each_inc_dec_ops): New type.
3948         (for_each_inc_dec_find_inc_dec): New fn.
3949         (for_each_inc_dec_find_mem): New fn.
3950         (for_each_inc_dec): New fn.
3951         * dse.c (struct insn_size): Remove.
3952         (replace_inc_dec, replace_inc_dec_mem): Remove.
3953         (emit_inc_dec_insn_before): New fn.
3954         (check_for_inc_dec): Use it, along with for_each_inc_dec.
3955         (canon_address): Pass mem modes to cselib_lookup.
3956         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
3957         (cselib_lookup_from_insn): Likewise.
3958         (cselib_subst_to_values): Likewise.
3959         * cselib.c (find_slot_memmode): New var.
3960         (cselib_find_slot): New fn.  Use it instead of
3961         htab_find_slot_with_hash everywhere.
3962         (entry_and_rtx_equal_p): Use find_slot_memmode.
3963         (autoinc_split): New fn.
3964         (rtx_equal_for_cselib_p): Rename and implement in terms of...
3965         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
3966         Deal with autoinc.  Special-case recursion into MEMs.
3967         (cselib_hash_rtx): Likewise.
3968         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
3969         address and MEM modes.
3970         (cselib_subst_to_values): Add memmode, pass it on.
3971         Deal with autoinc.
3972         (cselib_lookup): Add memmode argument, pass it on.
3973         (cselib_lookup_from_insn): Add memmode.
3974         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
3975         (struct cselib_record_autoinc_data): New.
3976         (cselib_record_autoinc_cb): New fn.
3977         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
3978         mode to cselib_lookup.  Reset autoinced REGs here instead of...
3979         (cselib_process_insn): ... here.
3980         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
3981         to cselib_lookup.
3982         (add_uses): Likewise, also to cselib_subst_to_values.
3983         (add_stores): Likewise.
3984         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
3985         cselib_subst_to_values.
3986         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
3987         * gcse.c (do_local_cprop): Adjusted.
3988         * postreload.c (reload_cse_simplify_set): Adjusted.
3989         (reload_cse_simplify_operands): Adjusted.
3990         * sel-sched-dump (debug_mem_addr_value): Pass mode.
3992 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
3994         PR tree-optimization/45122
3995         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
3996         unsafe assumptions when there's more than one loop exit.
3998 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4000         PR target/47272
4001         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
4002         Document using vector double with the load/store builtins, and
4003         that the load/store builtins always use Altivec instructions.
4005         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
4006         to use altivec memory instructions, even on VSX.
4007         (vector_altivec_store_<mode>): Ditto.
4009         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
4010         function.
4012         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4013         V2DF, V2DI support to load/store overloaded builtins.
4015         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
4016         altivec load/store builtins for V2DF/V2DI types.
4018         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4019         set avoid indexed addresses on power6 if -maltivec.
4020         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
4021         vector_altivec_load/vector_altivec_store builtins.
4022         (altivec_expand_st_builtin): Ditto.
4023         (altivec_expand_builtin): Add VSX memory builtins.
4024         (rs6000_init_builtins): Add V2DI types to internal types.
4025         (altivec_init_builtins): Add support for V2DF/V2DI altivec
4026         load/store builtins.
4027         (rs6000_address_for_altivec): Insure memory address is appropriate
4028         for Altivec.
4030         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
4031         vec_vsx_ld and vec_vsx_st.
4032         (vsx_store_<mode>): Ditto.
4034         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
4035         variables to hold long long types for VSX vector memory builtins.
4036         (RS6000_BTI_unsigned_long_long): Ditto.
4037         (long_long_integer_type_internal_node): Ditti.
4038         (long_long_unsigned_type_internal_node): Ditti.
4040         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
4041         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
4042         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
4044         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
4045         short cuts.
4046         (vec_vsx_st): Ditto.
4048 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
4050         * config/pa/pa-hpux10.opt: New.
4051         * config/hpux11.opt (pthread): New Driver option.
4052         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
4053         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
4055 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
4057         * config/ia64/vms.opt: New.
4058         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
4060 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
4062         PR target/47580
4063         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
4064         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
4065         generator functions.
4066         (vsx_floatuns<VSi><mode>2): Ditto.
4067         (vsx_fix_trunc<mode><VSi>2): Ditto.
4068         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
4070 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
4072         * config/i386/djgpp.opt (posix): New Driver option.
4074 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
4076         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
4077         Move to the unsupported targets list.
4079 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
4081         PR rtl-optimization/47525
4082         * df-scan.c: Update copyright years.
4083         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
4084         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
4086 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4088         * config/i386/sysv4.h (TARGET_VERSION): Remove.
4089         (SUBTARGET_RETURN_IN_MEMORY): Remove.
4090         (ASM_OUTPUT_ASCII): Remove.
4091         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
4093 2011-02-02  Jeff Law  <law@redhat.com>
4095         PR middle-end/47543
4096         * reload.c (find_reloads_address): Handle reg+d address where both
4097         components are invalid by reloading the entire address.
4099 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
4100             Richard Guenther  <rguenther@suse.de>
4102         PR tree-optimization/40979
4103         PR bootstrap/47044
4104         * passes.c (init_optimization_passes): After LIM call copy_prop
4105         and DCE to clean up.
4106         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
4108 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
4110         PR tree-optimization/47576
4111         PR tree-optimization/47555
4112         * doc/invoke.texi (scev-max-expr-complexity): Documented.
4113         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
4114         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
4115         * tree-scalar-evolution.c (follow_ssa_edge): Use
4116         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
4118 2011-02-02  Richard Guenther  <rguenther@suse.de>
4120         PR tree-optimization/47566
4121         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
4123 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
4125         PR debug/47106
4126         PR debug/47402
4127         * tree-inline.c (declare_return_variable): Remove unused caller
4128         variable.
4130         PR debug/47106
4131         PR debug/47402
4132         * tree-flow-inline.h (clear_is_used, is_used_p): New.
4133         * cfgexpand.c (account_used_vars_for_block): Use them.
4134         * tree-nrv.c (tree_nrv): Likewise.
4135         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
4136         (dump_scope_block): Likewise.
4137         (remove_unused_locals): Likewise.
4139         PR debug/47106
4140         PR debug/47402
4141         * tree-inline.c (declare_return_variable): Add result decl to
4142         local decls only once.
4143         * gimple-low.c (record_vars_into): Mark newly-created variables
4144         as referenced.
4146 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
4148         PR debug/47498
4149         PR debug/47501
4150         PR debug/45136
4151         PR debug/45130
4152         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
4153         debug insns.
4154         (no_real_insns_p, schedule_block, set_priorities): Drop special
4155         treatment of boundary debug insns.
4156         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
4157         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
4158         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
4159         (BOUNDARY_DEBUG_INSN_P): Likewise.
4160         (SCHEDULE_DEBUG_INSN_P): Likewise.
4161         * sched-rgn.c (init_ready_list): Drop special treatment of
4162         boundary debug insns.
4163         * final.c (rest_of_clean_state): Clear notes' BB.
4165 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4167         * config/openbsd.opt (assert=): New Driver option.
4169 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4171         * config/i386/nto.opt: New.
4172         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
4174 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4176         * config/i386/netware.opt: New.
4177         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
4179 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4181         * config/interix.opt (posix): New Driver option.
4183 2011-02-01  DJ Delorie  <dj@redhat.com>
4185         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
4187         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
4188         class for A0/A1.
4190 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
4192         PR tree-optimization/47561
4193         * toplev.c (process_options): Print the Graphite flags.  Add
4194         flag_loop_flatten to the list of options requiring Graphite.
4196 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4198         * config/i386/cygming.opt (posix): New Driver option.
4200 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4202         * config/arm/vxworks.opt: New.
4203         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
4205 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
4207         * config/alpha/elf.opt: New.
4208         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
4209         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
4211 2011-02-01  Richard Guenther  <rguenther@suse.de>
4213         PR tree-optimization/47559
4214         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
4215         store-motion on references that can throw.
4217 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
4219         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
4220         * tree-pass.h (TDF_CSELIB): New macro.
4221         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
4222         cselib_lookup): Check for it rather than for TDF_DETAILS.
4224 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
4226         PR driver/47547
4227         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
4228         is HOST_BIT_BUCKET.
4230         * opts.c (finish_options): Don't add x_aux_base_name if it is
4231         HOST_BIT_BUCKET.
4233 2011-02-01  Richard Guenther  <rguenther@suse.de>
4235         PR tree-optimization/47555
4236         Revert
4237         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
4239         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
4241 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
4243         PR gcc/46692
4244         * config/lm32/t-lm32: Add multilib for all CPU options.
4246 2011-02-01  Richard Guenther  <rguenther@suse.de>
4248         PR tree-optimization/47541
4249         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
4250         sure to have a field at offset zero.
4252 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
4254         * config/arc/arc.opt (EB, EL): New Driver options.
4256 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
4258         * config/alpha/osf5.opt: New.
4259         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
4261 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
4263         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
4265 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
4267         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
4268         -floop-interchange.
4269         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
4270         is an alias of -floop-interchange and that it requires the
4271         Graphite infrastructure.
4272         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
4273         flag_loop_interchange based on the value of flag_tree_loop_linear.
4275 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
4276             Richard Guenther  <rguenther@suse.de>
4278         PR tree-optimization/47538
4279         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
4280         type instead of r1type, except for comparisons.  For right
4281         shifts and comparisons punt if there are mismatches in
4282         sizetype vs. non-sizetype types.
4284 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4286         * doc/sourcebuild.texi (Effective-Target Keywords): Document
4287         avx_runtime.
4289 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4291         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
4292         version number.
4293         * configure: Regenerate.
4295 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4297         * configure.ac (gcc_cv_ld_static_option): Define.
4298         (gcc_cv_ld_dynamic_option): Define.
4299         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
4300         instead.
4301         (HAVE_LD_STATIC_DYNAMIC): Update message.
4302         (LD_STATIC_OPTION): Define.
4303         (LD_DYNAMIC_OPTION): Define.
4304         * configure: Regenerate.
4305         * config.in: Regenerate.
4306         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
4307         HAVE_LD_STATIC_DYNAMIC]: Use them.
4309 2011-01-31  Nick Clifton  <nickc@redhat.com>
4311         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
4312         registers inside interrupt handlers if the handler is not a leaf
4313         function.
4315 2011-01-31  Nick Clifton  <nickc@redhat.com>
4317         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
4318         reg_renumber returning an INVALID_REGNUM.
4320 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
4322         PR libgcj/44341
4323         * doc/install.texi: Document host options discarded when cross
4324         configuring target libraries.
4326 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
4328         Reverted:
4329         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
4330         PR debug/45136
4331         PR debug/45130
4332         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
4333         debug insns.
4334         (no_real_insns_p, schedule_block, set_priorities): Drop special
4335         treatment of boundary debug insns.
4336         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
4337         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
4338         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
4339         (BOUNDARY_DEBUG_INSN_P): Likewise.
4340         (SCHEDULE_DEBUG_INSN_P): Likewise.
4341         * sched-rgn.c (init_ready_list): Drop special treatment of
4342         boundary debug insns.
4343         * final.c (rest_of_clean-state): Clear notes' BB.
4345 2011-01-31  Alan Modra  <amodra@gmail.com>
4347         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
4348         toc relative expressions as we do in print_operand_address.
4350 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
4352         * doc/extend.texi: Follow spelling conventions.
4353         * doc/invoke.texi: Fix a typo.
4355 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
4357         * config/hpux11.opt: New.
4358         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
4359         ia64*-*-hpux*): Use hpux11.opt.
4361 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
4363         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
4364         to tmake_file.
4366 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
4368         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
4369         support sites.
4371 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
4373         * doc/install.texi (Binaries): Remove outdated reference for
4374         Motorola 68HC11/68HC12 downloads.
4376 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
4378         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
4379         Drepper's paper.
4381 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
4383         PR bootstrap/47147
4384         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
4385         used by NetBSD.
4387 2011-01-28  Ahmad Sharif  <asharif@google.com>
4389         * value-prof.c (check_counter): Corrected error message.
4391 2011-01-29  Jie Zhang  <jie@codesourcery.com>
4393         * config/arm/arm.c (arm_legitimize_reload_address): New.
4394         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
4395         arm_legitimize_reload_address.
4396         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
4398 2011-01-28  Ian Lance Taylor  <iant@google.com>
4400         * godump.c (go_define): Ignore macros whose definitions include
4401         two adjacent operands.
4403 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
4405         PR target/42894
4406         * varasm.c (force_const_mem): Store copy of x in desc->constant
4407         instead of x itself.
4408         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
4409         itself into REG_EQUAL note.
4411 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
4413         * config/freebsd.opt (posix, rdynamic): New Driver options.
4415 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4417         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
4418         -Bstatic/-Bdynamic.
4419         * configure: Regenerate.
4421 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
4423         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
4424         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
4426 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
4428         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
4429         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
4430         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4431         (s390_preferred_reload_class): Make static. Change return and
4432         'rclass' argument type to reg_class_t.
4434 2011-01-27  Jan Hubicka  <jh@suse.cz>
4436         PR middle-end/46949
4437         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
4438         (process_function_and_variable_attributes): Check defined weakrefs.
4440 2011-01-27  Martin Jambor  <mjambor@suse.cz>
4442         PR tree-optimization/47228
4443         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
4444         build_ref_for_offset.
4446 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4448         * config/spu/spu-elf.h (ASM_SPEC): Remove.
4450 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
4452         PR rtl-optimization/46856
4453         * postreload.c (reload_combine_recognize_const_pattern): Do not
4454         separate cc0 setter and user on cc0 targets.
4456 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
4458         PR c/43082
4459         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
4460         passed a VOID_TYPE expression, immediately emit an error and
4461         return error_mark_node.
4463 2011-01-26  Jeff Law  <law@redhat.com>
4465         PR rtl-optimization/47464
4466         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
4467         rather than may_trap_p as needed.
4469 2011-01-26  DJ Delorie  <dj@redhat.com>
4471         PR rtl-optimization/46878
4472         * combine.c (insn_a_feeds_b): Check for the implicit cc0
4473         setter/user dependency as well.
4475 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
4477         PR rtl-optimization/44469
4478         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
4479         after removing trivially dead basic blocks.
4481 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
4483         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
4484         * config/frv/frv.h (LINK_SPEC): Likewise.
4485         * config/i386/netware.h (LINK_SPEC): Likewise.
4486         * config/m68k/linux.h (ASM_SPEC): Likewise.
4487         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
4488         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
4489         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
4490         * config/sparc/linux.h (ASM_SPEC): Likewise.
4491         * config/sparc/linux64.h (ASM_SPEC): Likewise.
4492         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
4494 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
4496         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
4497         * config/frv/frv.h (ASM_SPEC): Likewise.
4498         * config/m68k/linux.h (ASM_SPEC): Likewise.
4499         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
4500         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
4501         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
4502         * config/sparc/linux.h (ASM_SPEC): Likewise.
4503         * config/sparc/linux64.h (ASM_SPEC): Likewise.
4504         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
4506 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
4508         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
4509         * config/frv/frv.h (LINK_SPEC): Likewise.
4510         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
4512 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
4514         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
4515         * config/frv/frv.h (ASM_SPEC): Likewise.
4516         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
4517         * config/m68k/linux.h (ASM_SPEC): Likewise.
4518         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
4519         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
4520         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
4521         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
4522         * config/sparc/linux.h (ASM_SPEC): Likewise.
4523         * config/sparc/linux64.h (ASM_SPEC): Likewise.
4524         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
4525         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
4527 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
4529         PR target/46997
4530         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
4531         (*mux2): Ditto.
4532         (vec_extract_evenodd_help): Ditto.
4533         (vec_extract_evenv4hi): Ditto.
4534         (vec_extract_oddv4hi): Ditto.
4535         (vec_interleave_lowv2si): Ditto.
4536         (vec_interleave_highv2si): Ditto.
4537         (vec_extract_evenv2si): Ditto.
4538         (vec_extract_oddv2si: Ditto.
4539         (vec_pack_trunc_v2si): Ditto.
4541 2011-01-22  Jan Hubicka  <jh@suse.cz>
4543         PR target/47237
4544         * cgraph.h (cgraph_local_info): New field can_change_signature.
4545         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
4546         signature can change.
4547         (ipcp_estimate_growth): Call sequence simplify only if calle signature
4548         can change.
4549         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
4550         (cgraph_function_versioning): We can not change signature of functions
4551         that don't allow that.
4552         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
4553         (lto_input_node): Likewise.
4554         * ipa-inline.c (compute_inline_parameters): Compute
4555         local.can_change_signature.
4556         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
4557         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
4558         functions that can not change signature.
4559         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
4560         init_cumulative_args): Do not use local calling conventions
4561         for functions that can not change signature.
4563 2011-01-22  Jan Hubicka  <jh@suse.cz>
4565         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
4567 2011-01-26  Richard Guenther  <rguenther@suse.de>
4569         PR tree-optimization/47190
4570         * cgraphunit.c (process_common_attributes): New function.
4571         (process_function_and_variable_attributes): Use it.
4573 2011-01-26  Richard Guenther  <rguenther@suse.de>
4575         PR lto/47423
4576         * cgraphbuild.c (record_eh_tables): Record reference to personality
4577         function.
4579 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
4581         PR debug/45454
4582         * sel-sched.c (moveup_expr): Don't let debug insns prevent
4583         non-debug insns from moving up.
4585 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
4587         PR target/40125
4588         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
4589         t-dlldir{,-x} fragment for build and add it to tmake_file.
4590         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
4591         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
4592         * config/i386/t-dlldir: New file.
4593         (SHLIB_DLLDIR): Define.
4594         * config/i386/t-dlldir-x: New file.
4595         (SHLIB_DLLDIR): Define.
4596         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
4597         (SHLIB_INSTALL): Use it.
4599 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
4601         PR target/47246
4602         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
4603         lower bound of the allowed Thumb-2 coprocessor load/store
4604         index range to -256. Add explaining comment.
4606 2011-01-25  Ian Lance Taylor  <iant@google.com>
4608         * godump.c (go_define): Improve lexing of macro expansion to only
4609         accept expressions which match Go spec.
4611 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
4613         PR c++/43601
4614         * tree.c (handle_dll_attribute): Handle it.
4615         * doc/extend.texi (@item dllexport): Mention it.
4616         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
4618 2011-01-25  Ian Lance Taylor  <iant@google.com>
4620         PR tree-optimization/26854
4621         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
4622         (decl_jump_unsafe): Move higher in file, with no other change.
4623         (bind): Set has_jump_unsafe_decl if appropriate.
4624         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
4625         (check_earlier_gotos): Likewise.
4626         (c_check_switch_jump_warnings): Likewise.
4628 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
4630         * doc/invoke.texi (Warning Options): Add missing hyphen.
4631         (-fprofile-dir): Minor grammatical fixes.
4632         (-fbranch-probabilities): Likewise.
4634 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
4636         PR debug/45136
4637         PR debug/45130
4638         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
4639         debug insns.
4640         (no_real_insns_p, schedule_block, set_priorities): Drop special
4641         treatment of boundary debug insns.
4642         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
4643         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
4644         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
4645         (BOUNDARY_DEBUG_INSN_P): Likewise.
4646         (SCHEDULE_DEBUG_INSN_P): Likewise.
4647         * sched-rgn.c (init_ready_list): Drop special treatment of
4648         boundary debug insns.
4649         * final.c (rest_of_clean-state): Clear notes' BB.
4651 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4653         * Makefile.in (LAMBDA_H): Removed.
4654         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
4655         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
4656         lambda-trans.o, and tree-loop-linear.o.
4657         (lto-symtab.o): Remove dependence on LAMBDA_H.
4658         (tree-loop-linear.o): Remove rule.
4659         (lambda-mat.o): Same.
4660         (lambda-trans.o): Same.
4661         (lambda-code.o): Same.
4662         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
4663         (tree-vect-slp.o): Same.
4664         * hwint.h (gcd): Moved here.
4665         (least_common_multiple): Same.
4666         * lambda-code.c: Removed.
4667         * lambda-mat.c: Removed.
4668         * lambda-trans.c: Removed.
4669         * lambda.h: Removed.
4670         * tree-loop-linear.c: Removed.
4671         * lto-symtab.c: Do not include lambda.h.
4672         * omega.c (gcd): Removed.
4673         * passes.c (init_optimization_passes): Remove pass_linear_transform.
4674         * tree-data-ref.c (print_lambda_vector): Moved here.
4675         (lambda_vector_copy): Same.
4676         (lambda_matrix_copy): Same.
4677         (lambda_matrix_id): Same.
4678         (lambda_vector_first_nz): Same.
4679         (lambda_matrix_row_add): Same.
4680         (lambda_matrix_row_exchange): Same.
4681         (lambda_vector_mult_const): Same.
4682         (lambda_vector_negate): Same.
4683         (lambda_matrix_row_negate): Same.
4684         (lambda_vector_equal): Same.
4685         (lambda_matrix_right_hermite): Same.
4686         * tree-data-ref.h: Do not include lambda.h.
4687         (lambda_vector): Moved here.
4688         (lambda_matrix): Same.
4689         (dependence_level): Same.
4690         (lambda_transform_legal_p): Removed declaration.
4691         (lambda_collect_parameters): Same.
4692         (lambda_compute_access_matrices): Same.
4693         (lambda_vector_gcd): Same.
4694         (lambda_vector_new): Same.
4695         (lambda_vector_clear): Same.
4696         (lambda_vector_lexico_pos): Same.
4697         (lambda_vector_zerop): Same.
4698         (lambda_matrix_new): Same.
4699         * tree-flow.h (least_common_multiple): Removed declaration.
4700         * tree-parloops.c (lambda_trans_matrix): Moved here.
4701         (LTM_MATRIX): Same.
4702         (LTM_ROWSIZE): Same.
4703         (LTM_COLSIZE): Same.
4704         (LTM_DENOMINATOR): Same.
4705         (lambda_trans_matrix_new): Same.
4706         (lambda_matrix_vector_mult): Same.
4707         (lambda_transform_legal_p): Same.
4708         * tree-pass.h (pass_linear_transform): Removed declaration.
4709         * tree-ssa-loop.c (tree_linear_transform): Removed.
4710         (gate_tree_linear_transform): Removed.
4711         (pass_linear_transform): Removed.
4712         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
4713         flag_loop_interchange.
4715 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
4717         PR tree-optimization/47265
4718         PR tree-optimization/47443
4719         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
4720         if name still has some uses.
4722 2011-01-25  Martin Jambor  <mjambor@suse.cz>
4724         PR tree-optimization/47382
4725         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
4726         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
4728 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
4730         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
4731         sjlj_except_unwind_info.
4733 2011-01-25  Richard Guenther  <rguenther@suse.de>
4735         PR tree-optimization/47426
4736         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
4737         visible functions results escape.
4739 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
4741         PR target/45701
4742         * config/arm/arm.c (any_sibcall_uses_r3): New function.
4743         (arm_get_frame_offsets): Use it.
4745 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4746             Jakub Jelinek  <jakub@redhat.com>
4748         PR tree-optimization/47271
4749         * tree-if-conv.c (bb_postdominates_preds): New.
4750         (if_convertible_bb_p): Call bb_postdominates_preds.
4751         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
4752         (predicate_scalar_phi): Call bb_postdominates_preds.
4754 2011-01-25  Nick Clifton  <nickc@redhat.com>
4756         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
4757         * config/rx/rx.c (rx_function_value): Likewise.
4758         (rx_promote_function_mode): Likewise.
4759         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
4760         in order to make it legitimate.
4761         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
4762         make sure that the first operand is the same as the result register.
4763         (addsi3_unspec): Delete.
4764         (subdi3): Do not accept immediate operands.
4765         (subdi3_internal): Likewise.
4767 2011-01-25  Jeff Law  <law@redhat.com>
4769         PR rtl-optimization/37273
4770         * ira-costs.c (scan_one_insn): Detect constants living in memory and
4771         handle them like argument loads from stack slots.  Do not double
4772         count memory for memory constants and argument loads from stack slots.
4774 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
4776         PR tree-optimization/47427
4777         PR tree-optimization/47428
4778         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
4779         coalesce if the new root var would be TREE_READONLY.
4781 2011-01-25  Richard Guenther  <rguenther@suse.de>
4783         PR middle-end/47414
4784         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
4785         correct type for TBAA.
4787 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4789         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
4790         (close_phi_written_to_memory): Call for_each_index with
4791         dr_indices_valid_in_loop.
4793 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4795         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
4796         when it is initialized.
4798 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4800         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
4801         call to graphite_find_data_references_in_stmt.
4802         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
4803         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
4804         call to graphite_find_data_references_in_stmt.
4805         (analyze_drs_in_stmts): Same.
4806         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
4807         in which the scalar analysis of indices is performed.
4808         (create_data_ref): Same.  Update call to dr_analyze_indices.
4809         (find_data_references_in_stmt): Update call to create_data_ref.
4810         (graphite_find_data_references_in_stmt): Same.
4811         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
4812         declaration.
4813         (create_data_ref): Same.
4814         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
4815         call to create_data_ref.
4817 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4819         * graphite-sese-to-poly.c (build_poly_scop): Move
4820         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
4822 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4824         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
4825         VAR_DECL, PARM_DECL, and RESULT_DECL.
4827 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4829         * graphite-dependences.c (reduction_dr_1): Allow several reductions
4830         in a reduction PBB.
4831         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
4832         that have already been marked as PBB_IS_REDUCTION.
4834 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4836         * graphite-scop-detection.c (same_close_phi_node): New.
4837         (remove_duplicate_close_phi): New.
4838         (make_close_phi_nodes_unique): New.
4839         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
4841 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4843         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
4844         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
4845         of both data references to be the same.
4847 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4849         * graphite-dependences.c (build_lexicographical_constraint): Remove
4850         the gdim parameter.
4851         (build_lexicographical_constraint): Adjust call to
4852         ppl_powerset_is_empty.
4853         (dependence_polyhedron): Same.
4854         (graphite_legal_transform_dr): Same.
4855         (graphite_carried_dependence_level_k): Same.
4856         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
4857         parameter.
4858         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
4860 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4862         * graphite-sese-to-poly.c
4863         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
4864         (close_phi_written_to_memory): New.
4865         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
4866         and unshare_expr.
4868 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4870         * doc/install.texi: Update the expected version number of PPL to 0.11.
4871         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
4872         #if PPL_VERSION_MINOR < 11.
4874 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4876         * graphite-dependences.c: Include graphite-cloog-util.h.
4877         (new_poly_ddr): Inlined into dependence_polyhedron.
4878         (free_poly_ddr): Moved close by new_poly_ddr.
4879         (dependence_polyhedron_1): Renamed dependence_polyhedron.
4880         Early return NULL when ppl_powerset_is_empty returns true.
4881         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
4882         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
4883         (graphite_legal_transform_dr): Call new_poly_ddr.
4884         (graphite_carried_dependence_level_k): Same.
4885         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
4886         (dot_transformed_deps_stmt_1): Removed.
4887         (dot_deps_stmt_1): Call dot_deps_stmt_2.
4888         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
4889         (dot_deps_1): Call dot_deps_2.
4890         * Makefile.in (graphite-dependences.o): Add missing dependence on
4891         graphite-cloog-util.h.
4893 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4895         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
4896         (build_lexicographical_constraint): Same.
4897         (dependence_polyhedron_1): Same.
4898         (graphite_legal_transform_dr): Same.
4899         (graphite_carried_dependence_level_k): Same.
4900         * graphite-ppl.c (ppl_powerset_is_empty): New.
4901         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
4902         * tree-data-ref.c (dump_data_reference): Print the basic block index.
4904 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4906         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
4907         the "a followed by b" relation and document it.
4909 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4911         * graphite-dependences.c (build_lexicographical_constraint): Stop the
4912         iteration when the bag of constraints is empty.
4914 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4916         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
4918 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4920         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
4921         nest and two loop depths as parameters.
4922         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
4923         lst_perfect_nestify.
4925 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4927         * graphite-dependences.c (print_pddr): Call
4928         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
4930 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
4932         * graphite-ppl.c (debug_gmp_value): New.
4933         * graphite-ppl.h (debug_gmp_value): Declared.
4935 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
4937         * doc/install.texi: Document availability of cloog-0.16.
4939 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
4941         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
4942         invalid postdominance info.
4944 2011-01-24  Jan Hubicka  <jh@suse.cz>
4946         PR c/21659
4947         * doc/extend.texi (weak pragma): Drop claim that it must
4948         appear before definition.
4949         * varasm.c (merge_weak, declare_weak): Only sanity check
4950         that DECL is not output at a time it is declared weak.
4952 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
4954         * machmode.def: Fixed comments.
4956 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
4958         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
4960 2011-01-24  Paul Koning  <ni1d@arrl.net>
4962         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
4963         WORDS_BIG_ENDIAN.
4965 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
4967         PR target/46519
4968         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
4969         (block_info): Add scanned and prev.
4970         (move_or_delete_vzeroupper_2): Return if the basic block
4971         has been scanned and the upper 128bit state is unchanged
4972         from the last scan.
4973         (move_or_delete_vzeroupper_1): Return true if the exit
4974         state is changed.
4975         (move_or_delete_vzeroupper): Visit basic blocks using the
4976         work-list based algorithm based on vt_find_locations in
4977         var-tracking.c.
4979         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
4981 2011-01-24  Nick Clifton  <nickc@redhat.com>
4983         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
4984         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
4985         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
4986         then define __v850e1__.
4987         * doc/invoke.texi: Document -mv850es.
4989 2011-01-24  Richard Henderson  <rth@redhat.com>
4991         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
4992         compound unordered comparisons.
4993         * config/rx/rx.c (rx_split_fp_compare): Remove.
4994         * config/rx/rx-protos.h: Update.
4995         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
4996         (cbranchsf4): Don't call rx_split_fp_compare.
4997         (*cbranchsf4): Use rx_split_cbranch.
4998         (*cmpsf): Don't accept "i" constraint.
4999         (*conditional_branch): Only valid after reload.
5000         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
5002 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
5004         PR target/47385
5005         * config/rs6000/altivec.md (vector constant splitters): Add
5006         support for creating vector single precision constants if -mvsx is
5007         used and we would create the constant using Altivec primitives.
5009 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
5010             Richard Sandiford  <rdsandiford@googlemail.com>
5012         PR rtl-optimization/47166
5013         * reload1.c (emit_reload_insns): Disable the spill_reg_store
5014         mechanism for PRE_MODIFY and POST_MODIFY.
5015         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
5016         reloadreg.
5018 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
5020         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
5022 2011-01-22  Jan Hubicka  <jh@suse.cz>
5024         PR lto/47333
5025         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
5027 2011-01-22  Jan Hubicka  <jh@suse.cz>
5029         PR tree-optimization/43884
5030         PR lto/44334
5031         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
5032         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
5034 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
5036         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5037         * config/s390/s390.c (s390_register_move_cost,
5038         s390_memory_move_cost): New.
5039         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5041 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5043         PR middle-end/47401
5044         * except.c (sjlj_assign_call_site_values): Move setting the
5045         crtl->uses_eh_lsda flag to ...
5046         (sjlj_mark_call_sites): ... here.
5047         (sjlj_emit_function_enter): Support NULL dispatch label.
5048         (sjlj_build_landing_pads): In a function with no landing pads
5049         that still has must-not-throw regions, generate code to register
5050         a personality function with empty LSDA.
5052 2011-01-21  Richard Henderson  <rth@redhat.com>
5054         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
5056         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
5058         * compare-elim.c: New file.
5059         * Makefile.in (OBJS-common): Add it.
5060         (compare-elim.o): New.
5061         * common.opt (fcompare-elim): New.
5062         * opts.c (default_options_table): Add OPT_fcompare_elim.
5063         * tree-pass.h (pass_compare_elim_after_reload): New.
5064         * passes.c (init_optimization_passes): Add it.
5065         * recog.h: Protect against re-inclusion.
5066         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
5067         * doc/invoke.texi (-fcompare-elim): Document it.
5068         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
5069         * doc/tm.texi: Rebuild.
5071 2011-01-22  Nick Clifton  <nickc@redhat.com>
5073         * config/rx/rx.md (cstoresf4): Pass comparison operator to
5074         rx_split_fp_compare.
5076 2011-01-22  Nick Clifton  <nickc@redhat.com>
5078         * config/rx/rx.md (UNSPEC_CONST): New.
5079         (deallocate_and_return): Wrap the amount popped off the stack in
5080         an UNSPEC_CONST in order to stop it being rejected by
5081         -mmax-constant-size.
5082         (pop_and_return): Add a "(return)" rtx.
5083         (call): Drop the immediate operand.
5084         (call_internal): Likewise.
5085         (call_value): Likewise.
5086         (call_value_internal): Likewise.
5087         (sibcall_internal): Likewise.
5088         (sibcall_value_internal): Likewise.
5089         (sibcall): Likewise.  Generate an explicit call using
5090         sibcall_internal.
5091         (sibcall_value): Likewise.
5092         (mov<>): FAIL if a constant operand is not legitimate.
5093         (addsi3_unpsec): New pattern.
5095         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
5096         (ok_for_max_constant): New function.
5097         (gen_safe_add): New function.
5098         (rx_expand_prologue): Use gen_safe_add.
5099         (rx_expand_epilogue): Likewise.
5100         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
5101         UNSPEC CONSTs.
5103 2011-01-21  Jeff Law  <law@redhat.com>
5105         PR tree-optimization/47053
5106         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
5107         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
5108         statements are deleted.
5109         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
5110         is nonempty, then purge dead edges and cleanup the CFG.
5112 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
5114         PR debug/47402
5115         Temporarily revert:
5116         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
5117         PR debug/47106
5118         * tree-dfa.c (create_var_ann): Mark variable as used.
5120 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
5122         PR middle-end/45566
5123         * except.c (convert_to_eh_region_ranges): Emit queued no-region
5124         notes from other section in hot/cold partitioning even if
5125         last_action is -3.  Increment call_site_base.
5127         PR rtl-optimization/47366
5128         * fwprop.c (forward_propagate_into): Return bool.  If
5129         any changes are made, -fnon-call-exceptions is used and
5130         REG_EH_REGION note is present, call purge_dead_edges
5131         and return true if it purged anything.
5132         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
5133         any EH edges were purged.
5135 2011-01-21  Jeff Law  <law@redhat.com>
5137         PR rtl-optimization/41619
5138         * caller-save.c (setup_save_areas): Break out code to determine
5139         which hard regs are live across calls by examining the reload chains
5140         so that it is always used.
5141         Eliminate code which checked REG_N_CALLS_CROSSED.
5143 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
5145         PR tree-optimization/47355
5146         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
5147         NOP has non-debug uses beyond PHIs in new_bb.
5149 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
5151         PR debug/47106
5152         * cfgexpand.c (account_used_vars_for_block): Only account vars
5153         that are annotated as used.
5154         (estimated_stack_frame_size): Don't set TREE_USED.
5155         * tree-dfa.c (create_var_ann): Mark variable as used.
5157 2011-01-21  Richard Guenther  <rguenther@suse.de>
5159         PR middle-end/47395
5160         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
5162 2011-01-21  Richard Guenther  <rguenther@suse.de>
5164         PR tree-optimization/47365
5165         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
5166         (vn_reference_lookup_pieces): Adjust.
5167         (vn_reference_lookup): Likewise.
5168         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
5169         (vn_reference_lookup_3): Only look through kills if in
5170         VN_WALKREWRITE mode.
5171         (vn_reference_lookup_pieces): Adjust.
5172         (vn_reference_lookup): Likewise.
5173         (visit_reference_op_load): Likewise.
5174         (visit_reference_op_store): Likewise.
5175         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
5176         (compute_avail): Likewise.
5177         (eliminate): Likewise.
5179 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
5181         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
5182         DECL_IGNORED_P non-reg vars if they are used.
5184         PR tree-optimization/47391
5185         * varpool.c (const_value_known_p): Return false if
5186         decl is volatile.
5188 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
5190         PR bootstrap/47215
5191         * config/i386/i386.c (ix86_local_alignment): Handle
5192         case for va_list_type_node is nil.
5193         (ix86_canonical_va_list_type): Likewise.
5195 2011-01-21  Alan Modra  <amodra@gmail.com>
5197         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
5198         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
5200 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5202         * config/arm/arm.md (define_attr type): Rename f_load
5203         and f_store to f_fpa_load and f_fpa_store. Update.
5204         (write_conflict): Deal with rename fallout.
5205         (*push_fp_multi): Likewise.
5206         * config/arm/fpa.md (f_load): Use f_fpa_load.
5207         (f_store): Use f_fpa_store.
5208         (*movsf_fpa): Likewise.
5209         (*movdf_fpa): Likewise.
5210         (*movxf_fpa): Likewise.
5211         (*thumb2_movsf_fpa): Likewise.
5212         (*thumb2_movdf_fpa): Likewise.
5213         (*thumb2_movxf_fpa): Likewise.
5214         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
5215         f_loadd and f_stored.
5216         (*thumb2_movdi_vfp): Likewise.
5217         (*thumb2_movsf_vfp): Fix attribute to f_loads.
5218         (*thumb2_movsi_vfp): Likewise.
5219         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
5220         Use f_loads instead of f_load.
5221         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
5223 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
5225         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5226         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
5227         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5228         (xtensa_mode_dependent_address_p): New function.
5229         (constantpool_address_p): Make static. Change return type to bool.
5230         Change argument type to const_rtx. Use CONST_INT_P predicate.
5232 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
5234         PR debug/46583
5235         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
5237 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
5239         PR debug/47283
5240         * cfgexpand.c (expand_debug_expr): Instead of generating
5241         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
5242         etc. handling.
5244 2011-01-20  Richard Guenther  <rguenther@suse.de>
5246         PR middle-end/47370
5247         * tree-inline.c (remap_gimple_op_r): Recurse manually for
5248         the pointer operand of MEM_REFs.
5250 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
5252         PR tree-optimization/46130
5253         * ipa-split.c (consider_split): If return_bb contains non-virtual
5254         PHIs other than for retval or if split_function would not adjust it,
5255         refuse to split.
5257 2011-01-20  Richard Guenther  <rguenther@suse.de>
5259         PR tree-optimization/47167
5260         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
5261         Revert previous change, only avoid enumeral type changes.
5263 2011-01-19  Mike Stump  <mikestump@comcast.net>
5265         * doc/tm.texi.in (BRANCH_COST): Englishify.
5266         * doc/tm.texi (BRANCH_COST): Likewise.
5268 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
5270         PR c++/47291
5271         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
5272         (gen_scheduled_generic_parms_dies): New functions.
5273         (gen_struct_or_union_type_die): Schedule template parameters DIEs
5274         generation for the end of CU compilation.
5275         (dwarf2out_finish): Generate template parameters DIEs here.
5277 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
5279         PR debug/46240
5280         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
5281         debug bind stmt on merge edges.
5283 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
5285         PR debug/47079
5286         PR debug/46724
5287         * function.c (instantiate_expr): Instantiate incoming rtl of
5288         implicit arguments, and recurse on VALUE_EXPRs.
5289         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
5290         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
5292 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
5294         * c-parser.c (c_parser_for_statement): Initialize
5295         collection_expression.
5297 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
5299         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
5301 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
5303         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
5304         (LINK_SHLIB_SPEC): Don't use %(link_path).
5305         (SUBTARGET_EXTRA_SPECS): Remove link_path.
5307 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
5309         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
5310         (NO_SHARED_LIB_SUPPORT): Remove.
5311         (LINK_SHLIB_SPEC): Remove one conditional definition.
5313 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
5315         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
5316         %{call_shared}.
5317         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
5318         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
5319         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
5320         %{call_shared} and conditionals on these options not being passed.
5321         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
5322         %{call_shared}.
5324 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
5326         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
5327         simplify.
5329         * ipa-split.c: Spelling fixes.
5331 2011-01-19  Richard Henderson  <rth@redhat.com>
5333         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
5334         (*mulsi3): Likewise.
5336         * longlong.h [__mn10300__] (count_leading_zeros): New.
5337         [__mn10300__] (umul_ppmm, smul_ppmm): New.
5338         [__mn10300__] (add_ssaaaa, subddmmss): New.
5339         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
5340         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
5342 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5344         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
5346 2011-01-19  Richard Henderson  <rth@redhat.com>
5348         * config/mn10300/mn10300.md (addsi3_flags): New.
5349         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
5350         (subsi3_flags, subc_internal, subdi3): New.
5351         (subdi3_internal, *subdi3_degenerate): New.
5352         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
5354         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
5355         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
5356         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
5357         * config/mn10300/mn10300-protos.h: Update.
5358         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
5359         (return_ret): Likewise.  Rename from return_internal_regs.
5360         (return_internal): Remove.
5362         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
5363         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
5364         (mn10300_legitimate_constant_p): Likewise.
5365         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
5366         (mn10300_frame_size): New.
5367         (mn10300_expand_prologue): Use it.
5368         (mn10300_expand_epilogue): Likewise.
5369         (mn10300_initial_offset): Likewise.
5370         * config/mn10300/mn10300-protos.h: Update.
5371         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
5372         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
5373         (prologue, epilogue, return_internal): Tidy output code.
5374         (mn10300_store_multiple_operation, return): Likewise.
5375         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
5376         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
5377         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
5378         (load_pic, am33_load_pic): New.
5379         (mn10300_load_pic0, mn10300_load_pic1): New.
5381         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
5382         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
5383         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
5384         (cc_flags_for_mode, cc_flags_for_code): New.
5385         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
5386         overflow flag is not valid.  Validate that the flags we need
5387         for the comparison are valid.
5388         (mn10300_output_cmp): Remove.
5389         (mn10300_output_add): New.
5390         (mn10300_select_cc_mode): Use cc_flags_for_code.
5391         (mn10300_split_cbranch): New.
5392         (mn10300_match_ccmode): New.
5393         (mn10300_split_and_operand_count): New.
5394         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
5395         to the function.
5396         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
5397         (addsi3): ... here.  Use mn10300_output_add.
5398         (*addsi3_flags): New.
5399         (*am33_subsi3, *mn10300_subsi3): Merge...
5400         (subsi3): ... here.  Use attribute isa.
5401         (*subsi3_flags): New.
5402         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
5403         when possible.
5404         (*am33_andsi3, *mn10300_andsi3): Merge...
5405         (andsi3): ... here.
5406         (*andsi3_flags): New.
5407         (andsi3 splitters): New.
5408         (*am33_iorsi3, *mn10300_iorsi3): Merge...
5409         (iorsi3): ... here.
5410         (*iorsi3_flags): New.
5411         (*am33_xorsi3, *mn10300_xorsi3): Merge...
5412         (xorsi3): ... here.
5413         (*xorsi3_flags): New.
5414         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
5415         (one_cmplsi2): ... here.
5416         (*one_cmplsi2_flags): New.
5417         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
5418         instead of "dax" in constraints.  Use mn10300_split_cbranch.
5419         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
5420         use matching constraints to eliminate a self-comparison.
5421         (*integer_conditional_branch): Rename from integer_conditional_branch.
5422         Use int_mode_flags to match CC_REG.
5423         (*cbranchsi4_btst, *btstsi): New.
5424         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
5425         mn10300_split_cbranch.
5426         (*am33_cmpsf): Rename from am33_cmpsf.
5427         (*float_conditional_branch): Rename from float_conditional_branch.
5428         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
5429         (zero_extendqisi2): ... here.
5430         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
5431         (zero_extendhisi2): ... here.
5432         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
5433         (extendqisi2): ... here.
5434         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
5435         (extendhisi2): ... here.
5436         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
5437         (ashlsi3): ... here.
5438         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
5439         (lshrsi3): ... here.
5440         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
5441         (ashrsi3): ... here.
5442         (consecutive add peephole): Remove.
5443         * config/mn10300/predicates.md (label_ref_operand): New.
5444         (int_mode_flags): New.
5445         (CCZN_comparison_operator): New.
5447         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
5448         (throughput_42_latency_43): New reservation.
5449         (mulsidi3, umulsidi3): New expanders.
5450         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
5451         the MDR register to allocation; separately allocate the low and
5452         high parts of the DImode result.
5453         (umulsidi3_internal): Similarly.
5454         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
5455         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
5456         (udivsi3, umodsi3): Remove.
5457         (udivmodsi4, divmodsi4): New expanders.
5458         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
5459         (*divmodsi4): Simiarly.
5460         (ext_internal): New.
5462         * config/mn10300/constraints.md ("z"): New constraint.
5463         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
5464         (FIXED_REGISTERS): Don't fix MDR.
5465         (CALL_USED_REGSITERS): Reformat nicely.
5466         (REG_ALLOC_ORDER): Add MDR.
5467         (enum regclass): Add MDR_REGS.
5468         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
5469         (IRA_COVER_CLASSES): Add MDR_REGS.
5470         (REGNO_REG_CLASS): Handle MDR_REG.
5471         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
5472         (mn10300_register_move_cost): Likewise.
5473         * config/mn10300/mn10300.md (MDR_REG): New.
5474         (*movsi_internal): Handle moves to/from MDR_REGS.
5476         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
5477         POST_MODIFY.
5478         (mn10300_secondary_reload): Tidy combination reload classes.
5479         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
5480         addresses for AM33.  Allow symbolic offsets for reg+imm.
5481         (mn10300_regno_in_class_p): New.
5482         (mn10300_legitimize_reload_address): New.
5483         * config/mn10300/mn10300.h (enum reg_class): Remove
5484         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
5485         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
5486         SP_OR_GENERAL_REGS.
5487         (REG_CLASS_NAMES): Update to match.
5488         (REG_CLASS_CONTENTS): Likewise.
5489         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
5490         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
5491         (REGNO_IN_RANGE_P): Remove.
5492         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
5493         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
5494         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
5495         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
5496         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
5497         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
5498         (REGNO_GENERAL_P): New.
5499         (HAVE_POST_MODIFY_DISP): New.
5500         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
5501         (LEGITIMIZE_RELOAD_ADDRESS): New.
5502         * config/mn10300/mn10300-protos.h: Update.
5504         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
5505         DATA_REGS for AM33 stack-pointer destination.
5506         (mn10300_preferred_output_reload_class): Likewise.
5507         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
5508         into a form appropriate for ...
5509         (TARGET_SECONDARY_RELOAD): New.
5510         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
5511         * config/mn10300/mn10300-protos.h: Update.
5512         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
5513         reload_insi; use the "A" constraint for the scratch; handle AM33
5514         moves of sp to non-address registers.
5516         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
5517         (*movqi_internal): ... here.
5518         (*am33_movhi, *mn10300_movhi): Merge into...
5519         (*movhi_internal): ... here.
5520         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
5521         as the source/destination of moves from/to SP.
5522         (movsf): Only allow for AM33-2.
5523         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
5524         any integer constant constraint.  Only allow for AM33-2.  Tidy
5525         all of the alternative outputs.
5526         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
5527         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
5528         for MN103.
5529         (udivsi3, umodsi3): New patterns for MN103 only.
5531 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
5533         * doc/tm.texi.in: Spell out that a lack of register class unions
5534         can lead to ICEs.
5535         * doc/tm.texi: Regenerate.
5537 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
5539         PR rtl-optimization/47337
5540         * dce.c (check_argument_store): New function.
5541         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
5543         PR tree-optimization/47290
5544         * tree-eh.c (infinite_empty_loop_p): New function.
5545         (cleanup_empty_eh): Use it.
5547 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
5549         PR target/46997
5550         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
5551         (a64_expand_widen_sum): Ditto.
5552         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
5553         (vec_extract_evenodd_help): Ditto.
5554         (vec_extract_evenv4hi): Ditto.
5555         (vec_extract_oddv4hi): Ditto.
5556         (vec_extract_evenv2si): Ditto.
5557         (vec_extract_oddv2si): Ditto.
5558         (vec_extract_evenv2sf): Ditto.
5559         (vec_extract_oddv2sf): Ditto.
5560         (vec_pack_trunc_v4hi: Ditto.
5561         (vec_pack_trunc_v2si): Ditto.
5562         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
5563         (vec_interleave_highv8qi): Ditto.
5564         (mix1_r): Ditto.
5565         (vec_extract_oddv8qi): Ditto.
5566         (vec_interleave_lowv4hi): Ditto.
5567         (vec_interleave_highv4hi): Ditto.
5568         (vec_interleave_lowv2si): Ditto.
5569         (vec_interleave_highv2si): Ditto.
5571 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5573         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
5574         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
5575         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
5576         (pa_c_mode_for_suffix): New.
5577         (TARGET_EXPAND_BUILTIN): Define.
5578         (TARGET_C_MODE_FOR_SUFFIX): Define.
5579         (pa_builtins): Define.
5580         (pa_init_builtins): Register __float128 type and init new support
5581         builtins.
5582         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
5583         * config/pa/quadlib.c (_U_Qfcopysign): New.
5585 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
5587         PR middle-end/46894
5588         * explow.c (allocate_dynamic_stack_space): Do not assume more than
5589         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
5590         are defined.
5592 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5594         PR tree-optimization/47179
5595         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
5596         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
5598 2011-01-18  Richard Guenther  <rguenther@suse.de>
5600         PR rtl-optimization/47216
5601         * emit-rtl.c: Include tree-flow.h.
5602         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
5603         of replicating it with different semantics.
5604         * Makefile.in (emit-rtl.o): Adjust.
5606 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5608         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
5609         (cortex_a9_dp): Handle neon types correctly.
5611 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
5613         PR rtl-optimization/47299
5614         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
5615         subtarget.  Use normal multiplication if both operands are constants.
5616         * expmed.c (expand_widening_mult): Don't try to optimize constant
5617         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
5618         before using it.
5620 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5622         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
5623         spacing after 'e.g.', typos, comma, hyphenation.
5625 2011-01-17  Richard Henderson  <rth@redhat.com>
5627         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
5628         (rx_restricted_mem_operand): New.
5629         (rx_shift_operand): Use register_operand.
5630         (rx_source_operand, rx_compare_operand): Likewise.
5631         * config/rx/rx.md (addsi3_flags): New expander.
5632         (adddi3): Rewrite as expander.
5633         (adc_internal, *adc_flags, adddi3_internal): New patterns.
5634         (subsi3_flags): New expander.
5635         (subdi3): Rewrite as expander.
5636         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
5638         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
5639         (rx_init_builtins): Remove sat builtin.
5640         (rx_expand_builtin): Likewise.
5641         * config/rx/rx.md (ssaddsi3): New.
5642         (*sat): Rename from sat.  Represent the CC_REG input.
5644         * config/rx/predicates.md (rshift_operator): New.
5645         * config/rx/rx.c (rx_expand_insv): Remove.
5646         * config/rx/rx-protos.h: Update.
5647         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
5648         operand to the canonical position.
5649         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
5650         (*bitclr, *bitclr_in_memory): Similarly.
5651         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
5652         (insv): Retain the zero_extract in the expansion.
5654         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
5655         (bswaphi2, bitinvert, revw): Likewise.
5657         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
5658         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
5659         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
5660         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
5661         (bitset, bitset_in_memory): Likewise.
5662         (bitinvert, bitinvert_in_memory): Likewise.
5663         (bitclr, bitclr_in_memory): Likewise.
5664         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
5665         (rx_strend, rx_cmpstrn): Likewise.
5666         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
5667         (bitop peep2 patterns): Remove.
5669         * config/rx/rx.c (rx_match_ccmode): New.
5670         * config/rx/rx-protos.h: Update.
5671         * config/rx/rx.md (abssi2): Clobber, don't set flags.
5672         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
5673         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
5674         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
5675         (fix_truncsfsi2, floatsisf2): Likewise.
5676         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
5677         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
5678         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
5679         (*subsi3_flags, *xorsi3_flags): New.
5681         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
5683         * config/rx/rx.c (rx_print_operand): Remove workaround for
5684         unsplit comparison operations.
5686         * config/rx/rx.md (movsicc): Split after reload.
5687         (*movsicc): Merge *movsieq and *movsine via match_operator.
5688         (*stcc): New pattern.
5690         * config/rx/rx.c (rx_float_compare_mode): Remove.
5691         * config/rx/rx.h (rx_float_compare_mode): Remove.
5692         * config/rx/rx.md (cstoresi4): Split after reload.
5693         (*sccc): New pattern.
5695         * config/rx/predicates.md (label_ref_operand): New.
5696         (rx_z_comparison_operator): New.
5697         (rx_zs_comparison_operator): New.
5698         (rx_fp_comparison_operator): New.
5699         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
5700         Validate that the flags are set properly for the comparison.
5701         (rx_gen_cond_branch_template): Remove.
5702         (rx_cc_modes_compatible): Remove.
5703         (mode_from_flags): New.
5704         (flags_from_code): Rename from flags_needed_for_conditional.
5705         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
5706         (rx_select_cc_mode): Likewise.
5707         (rx_split_fp_compare): New.
5708         (rx_split_cbranch): New.
5709         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
5710         (*cbranchsi4): Use match_operator and rx_split_cbranch.
5711         (*cbranchsf4): Similarly.
5712         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
5713         match_operator and rx_split_cbranch.
5714         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
5715         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
5716         (*cmpsi): Rename from cmpsi.
5717         (*tstsi): Rename from tstsi.
5718         (*cmpsf): Rename from cmpsf; use CC_Fmode.
5719         (*conditional_branch): Rename from conditional_branch.
5720         (*reveresed_conditional_branch): Remove.
5721         (b<code>): Remove expander.
5722         * config/rx/rx-protos.h: Update.
5724         * config/rx/rx.c (rx_compare_redundant): Remove.
5725         * config/rx/rx.md (cmpsi): Don't use it.
5726         * config/rx/rx-protos.h: Update.
5728         * config/rx/rx-modes.def (CC_F): New mode.
5729         * config/rx/rx.c (rx_select_cc_mode): New.
5730         * config/rx/rx.h (SELECT_CC_MODE): Use it.
5731         * config/rx/rx-protos.h: Update.
5733 2011-01-17  Richard Henderson  <rth@redhat.com>
5735         * except.c (dump_eh_tree): Fix stray ; after for statement.
5737 2011-01-17  Richard Guenther  <rguenther@suse.de>
5739         PR tree-optimization/47313
5740         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
5741         handling before copying the body.  Properly deal with
5742         by-reference result in SSA form.
5744 2011-01-17  Ian Lance Taylor  <iant@google.com>
5746         PR target/47219
5747         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
5748         (struct_value_alias_set): Don't define.
5749         (sparc_option_override): Don't set sparc_sr_alias_set and
5750         struct_value_alias_set.
5751         (save_or_restore_regs): Use gen_frame_mem rather than calling
5752         set_mem_alias_set.
5753         (sparc_struct_value_rtx): Likewise.
5755 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
5757         PR target/47318
5758         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
5759         __m128i.
5760         (_mm_maskstore_pd): Likewise.
5761         (_mm_maskload_ps): Likewise.
5762         (_mm_maskstore_ps): Likewise.
5763         (_mm256_maskload_pd): Change mask to __m256i.
5764         (_mm256_maskstore_pd): Likewise.
5765         (_mm256_maskload_ps): Likewise.
5766         (_mm256_maskstore_ps): Likewise.
5768         * config/i386/i386-builtin-types.def: Updated.
5769         (ix86_expand_special_args_builtin): Likewise.
5771         * config/i386/i386.c (bdesc_special_args): Update
5772         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
5773         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
5774         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
5775         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
5777         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
5778         Use <avxpermvecmode> on mask register.
5779         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
5781 2011-01-17  Olivier Hainque  <hainque@adacore.com>
5782             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5783             Eric Botcazou  <ebotcazou@adacore.com>
5785         PR target/46655
5786         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
5787         if <= USHRT_MAX in 32-bit mode.
5789 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5791         * doc/install.texi (Configuration, Specific): Wrap long
5792         lines in examples.  Allow line wrapping in long options
5793         and URLs where beneficial for PDF output.
5795 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
5797         * config/mips/mips.c (mips_classify_symbol): Don't return
5798         SYMBOL_PC_RELATIVE for nonlocal labels.
5800 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
5802         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
5804 2011-01-15  Jan Hubicka  <jh@suse.cz>
5806         PR tree-optimization/47276
5807         * ipa.c (function_and_variable_visibility): Do not try to mark alias
5808         declarations as needed.
5810 2011-01-15  Martin Jambor  <mjambor@suse.cz>
5812         * common.opt (fdevirtualize): New flag.
5813         * doc/invoke.texi (Option Summary): Document it.
5814         * opts.c (default_options_table): Add devirtualize flag.
5815         * ipa-prop.c (detect_type_change): Return immediately if
5816         devirtualize flag is not set.
5817         (detect_type_change_ssa): Likewise.
5818         (compute_known_type_jump_func): Likewise.
5819         (ipa_analyze_virtual_call_uses): Likewise.
5821 2011-01-14  Martin Jambor  <mjambor@suse.cz>
5823         PR tree-optimization/45934
5824         PR tree-optimization/46302
5825         * ipa-prop.c (type_change_info): New type.
5826         (stmt_may_be_vtbl_ptr_store): New function.
5827         (check_stmt_for_type_change): Likewise.
5828         (detect_type_change): Likewise.
5829         (detect_type_change_ssa): Likewise.
5830         (compute_complex_assign_jump_func): Check for dynamic type change.
5831         (compute_complex_ancestor_jump_func): Likewise.
5832         (compute_known_type_jump_func): Likewise.
5833         (compute_scalar_jump_functions): Likewise.
5834         (ipa_analyze_virtual_call_uses): Likewise.
5835         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
5837 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5839         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
5840         * config/i386/i386.opt (msse5): New Alias.
5842 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5844         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
5845         * config/sparc/linux64.h (CC1_SPEC): Likewise.
5846         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
5847         * config/sparc/sparc.h (CC1_SPEC): Likewise.
5849 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5851         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
5852         -mcpu options.
5853         * config/sparc/linux64.h (CC1_SPEC): Likewise.
5854         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
5855         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
5856         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
5857         Likewise.
5858         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
5860 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5862         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
5864 2011-01-14  Mike Stump  <mikestump@comcast.net>
5866         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
5867         * config/fr30/fr30.md: Likweise
5868         (movsi_push): Likewise.
5869         (movsi_pop): Likewise.
5870         (enter_func): Likewise.
5871         * config/moxie/moxie.md (movsi_push): Likewise.
5872         (movsi_pop): Likewise.
5874 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5876         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
5877         %{no_archive} %{exact_version}.
5878         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
5879         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
5880         %{no_archive} %{exact_version}.
5881         * config/mips/openbsd.h (LINK_SPEC): Likewise.
5882         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
5883         * config/mips/vxworks.h: Likewise.
5885 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5887         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
5889 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5891         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
5892         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
5894 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5896         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
5897         -nodefaultlib.
5899 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5901         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
5902         for mcpu not cpu.
5903         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
5904         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
5905         not cpu.
5906         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
5907         Don't handle -shlib.
5909 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5911         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
5912         (CC1_SPEC): Don't handle -profile.
5914 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5916         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
5917         * config/mips/mips.h (CC1_SPEC): Likewise.
5919 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5921         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
5922         * config/mips/mips.h (CC1_SPEC): Likewise.
5924 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5926         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
5927         * config/m32r/linux.h (LINK_SPEC): Likewise.
5928         * config/mips/linux.h (LINK_SPEC): Likewise.
5929         * config/mips/linux64.h (LINK_SPEC): Likewise.
5930         * config/sparc/linux.h (LINK_SPEC): Likewise.
5931         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
5932         LINK_SPEC): Likewise.
5933         * config/xtensa/linux.h (LINK_SPEC): Likewise.
5935 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5937         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
5938         %{version:-v}.
5939         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
5941 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5943         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
5944         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5946 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
5948         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
5950 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5952         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
5953         supports -Bstatic/-Bdynamic.
5954         * configure: Regenerate.
5956 2011-01-14  Jan Hubicka  <jh@suse.cz>
5957             Jack Howarth  <howarth@bromo.med.uc.edu>
5959         PR target/46037
5960         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
5961         when checking debug_info_level. Test write_symbols instead of
5962         debug_hooks->var_location when setting flag_var_tracking_uninit.
5964 2011-01-14  Richard Guenther  <rguenther@suse.de>
5966         PR tree-optimization/47179
5967         * target.def (ref_may_alias_errno): New target hook.
5968         * targhooks.h (default_ref_may_alias_errno): Declare.
5969         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
5970         (default_ref_may_alias_errno): New function.
5971         * target.h (struct ao_ref_s): Declare.
5972         * tree-ssa-alias.c: Include target.h.
5973         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
5974         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
5975         (targhooks.o): Likewise.
5976         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
5977         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
5979 2011-01-14  Richard Guenther  <rguenther@suse.de>
5981         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
5983 2011-01-14  Richard Guenther  <rguenther@suse.de>
5985         PR tree-optimization/47280
5986         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
5987         return CFG changes.
5988         (tree_ssa_forward_propagate_single_use_vars): Deal with
5989         CFG changes from associate_plusminus.
5991 2011-01-14  Richard Guenther  <rguenther@suse.de>
5993         PR middle-end/47281
5994         Revert
5995         2011-01-11  Richard Guenther  <rguenther@suse.de>
5997         PR tree-optimization/46076
5998         * tree-ssa.c (useless_type_conversion_p): Conversions from
5999         unprototyped to empty argument list function types are useless.
6001 2011-01-14  Richard Guenther  <rguenther@suse.de>
6003         PR tree-optimization/47286
6004         * tree-ssa-structalias.c (new_var_info): Register variables are global.
6006 2011-01-14  Martin Jambor  <mjambor@suse.cz>
6008         PR middle-end/46823
6009         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
6011 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
6013         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
6014         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6015         * config/xtensa/xtensa.c (xtensa_libcall_value,
6016         xtensa_function_value_regno_p): New functions.
6017         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6019 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
6021         PR c++/47213
6022         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
6023         PE specific hook.
6024         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
6025         New function prototype.
6026         * config/i386/winnt.c (i386_pe_assemble_visibility):
6027         Warn only if attribute was specified by user.
6029 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
6031         PR target/47251
6032         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
6033         floating point.
6034         (floatunsdidf2_fcfidu): Ditto.
6036 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6038         * config/s390/s390.c (print_operand_address): Replace 'error' with
6039         'output_operand_lossage'.
6040         (print_operand): Likewise.
6042 2011-01-13  Jeff Law  <law@redhat.com>
6044         PR rtl-optimization/39077
6045         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
6046         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
6047         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
6048         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
6049         * gcse.c (prune_insertions_deletions): New function.
6050         (compute_pre_data): Use it.
6052 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
6054         PR debug/PR46973
6055         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
6056         static function.
6057         (prune_unused_types_mark): Use it.
6059 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
6061         PR rtl-optimization/45352
6062         * sel-sched.c: Update copyright years.
6063         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
6064         in the advancing loop when we have issued issue_rate insns.
6066 2011-01-12  Richard Henderson  <rth@redhat.com>
6068         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
6069         (TARGET_MD_ASM_CLOBBERS): New.
6071         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
6072         (TARGET_DELEGITIMIZE_ADDRESS): New.
6074         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
6075         (clzsi2, *bsch): New patterns.
6077         * config/mn10300/mn10300.md (INT): New mode iterator.
6078         (*mov<INT>_clr): New pattern, and peep2 to generate it.
6080         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
6081         flag_split_wide_types.
6083         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
6084         (mn10300_trampoline_init): Rewrite without a template, an immediate
6085         load and a direct branch.
6086         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
6088 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
6090         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6091         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
6092         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
6093         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6095 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
6097         PR debug/47209
6098         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
6099         of type.
6101 2011-01-12  Jan Hubicka  <jh@suse.cz>
6103         PR driver/47244
6104         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
6105         (PLUGIN_COND_CLOSE): New macro.
6106         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
6108 2011-01-12  Richard Guenther  <rguenther@suse.de>
6110         PR lto/47259
6111         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
6112         register variables in a MEM_REF.
6114 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
6116         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
6117         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
6118         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
6119         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6120         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6121         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
6122         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
6123         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
6124         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
6125         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
6126         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
6127         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
6128         * config/gnu-user.h: New.  Copied from linux.h.
6129         (LINUX_TARGET_STARTFILE_SPEC): Rename to
6130         GNU_USER_TARGET_STARTFILE_SPEC.
6131         (LINUX_TARGET_ENDFILE_SPEC): Rename to
6132         GNU_USER_TARGET_ENDFILE_SPEC.
6133         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
6134         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
6135         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
6136         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
6137         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
6138         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
6139         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
6140         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
6141         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
6142         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
6143         * config/arm/linux-eabi.h (CC1_SPEC): Use
6144         GNU_USER_TARGET_CC1_SPEC.
6145         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
6146         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
6147         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
6148         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
6149         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
6150         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
6151         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
6152         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
6154 2011-01-12  Richard Guenther  <rguenther@suse.de>
6156         PR other/46946
6157         * doc/invoke.texi (ffast-math): Document it is turned on
6158         with -Ofast.
6160 2011-01-12  Jan Hubicka  <jh@suse.cz>
6162         PR tree-optimization/47233
6163         * opts.c (common_handle_option): Disable ipa-reference with profile
6164         feedback.
6166 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
6168         * c-parser.c (c_parser_objc_at_property_declaration): Improved
6169         error message.
6171 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
6173         * c-parser.c (c_lex_one_token): Updated and reindented some
6174         comments.  No changes in code.
6176 2011-01-11  Ian Lance Taylor  <iant@google.com>
6178         * godump.c (go_output_var): Don't output the variable if there is
6179         already a type with the same name.
6181 2011-01-11  Ian Lance Taylor  <iant@google.com>
6183         * godump.c (go_format_type): Don't generate float80.
6185 2011-01-11  Richard Henderson  <rth@redhat.com>
6187         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
6188         declaration.  Rewrite for both speed and size.
6189         (mn10300_address_cost_1): Remove.
6190         (mn10300_register_move_cost): New.
6191         (mn10300_memory_move_cost): New.
6192         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
6193         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
6194         extensions, shifts, BSWAP, CLZ.
6195         (mn10300_wide_const_load_uses_clr): Remove.
6196         (TARGET_REGISTER_MOVE_COST): New.
6197         (TARGET_MEMORY_MOVE_COST): New.
6198         * config/mn10300/mn10300-protos.h: Update.
6199         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
6201         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
6202         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
6203         * config/mn10300/mn10300-protos.h: Update.
6204         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
6205         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
6206         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
6207         (*test_int_bitfield, *test_byte_bitfield): Remove.
6208         (*bit_test, *subreg_bit_test): Remove.
6209         * config/mn10300/predicates.md (const_8bit_operand): Remove.
6211         * config/mn10300/constraints.md ("c"): Rename from "A".
6212         ("A", "D"): New constraint letters.
6213         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
6214         (fmssf4, fnmasf4, fnmssf4): Likewise.
6216         * config/mn10300/mn10300.md (isa): New attribute.
6217         (enabled): New attribute.
6219         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
6220         (abssf2, negsf2): Define only for hardware fp.
6221         (sqrtsf2): Reformat.
6222         (addsf3, subsf3, mulsf3): Merge expander and insn.
6224         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
6225         (DEBUGGER_AUTO_OFFSET): Remove.
6226         (DEBUGGER_ARG_OFFSET): Remove.
6228         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
6229         Emit register stores with the same offsets as the hardware.
6230         (mn10300_store_multiple_operation): Don't check that the register
6231         save offsets are monotonic.
6232         * config/mn10300/mn10300-protos.h: Update.
6234         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
6236         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
6237         in terms of the value on the stack, not the MDR register.
6239 2011-01-11  Jan Hubicka  <jh@suse.cz>
6241         PR lto/45721
6242         PR lto/45375
6243         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
6244         (symbol_alias_set_destroy, symbol_alias_set_contains,
6245         propagate_aliases_backward): Declare.
6246         * lto-streamer-out.c (struct sets): New sturcture.
6247         (trivally_defined_alias): New function.
6248         (output_alias_pair_p): Rewrite.
6249         (output_unreferenced_globals): Fix output of alias pairs.
6250         (produce_symtab): Likewise.
6251         * ipa.c (function_and_variable_visibility): Set weak alias destination
6252         as needed in lto.
6253         * varasm.c (symbol_alias_set_t): Remove.
6254         (symbol_alias_set_destroy): Export.
6255         (propagate_aliases_forward, propagate_aliases_backward): New functions
6256         based on ...
6257         (compute_visible_aliases): ... this one; remove.
6258         (trivially_visible_alias): New
6259         (trivially_defined_alias): New.
6260         (remove_unreachable_alias_pairs): Rewrite.
6261         (finish_aliases_1): Reorganize code checking if alias is defined.
6262         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
6263         in LTO mode.
6265 2011-01-11  Richard Guenther  <rguenther@suse.de>
6267         PR tree-optimization/46076
6268         * tree-ssa.c (useless_type_conversion_p): Conversions from
6269         unprototyped to empty argument list function types are useless.
6271 2011-01-11  Richard Guenther  <rguenther@suse.de>
6273         PR middle-end/45235
6274         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
6275         volatile MEMs as MEM_READONLY_P.
6277 2011-01-11  Richard Guenther  <rguenther@suse.de>
6279         PR tree-optimization/47239
6280         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
6282 2011-01-11  Jeff Law  <law@redhat.com>
6284         PR tree-optimization/47086
6285         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
6286         IVs from statements that might throw.
6288 2011-01-10  Jan Hubicka  <jh@suse.cz>
6290         PR lto/45375
6291         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
6293 2011-01-10  Jan Hubicka  <jh@suse.cz>
6295         PR lto/45375
6296         * profile.c (read_profile_edge_counts): Ignore profile inconistency
6297         when correcting profile.
6299 2011-01-10  Jan Hubicka  <jh@suse.cz>
6301         PR lto/46083
6302         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
6303         DECL_FINI_PRIORITY.
6304         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
6305         Restore DECL_FINI_PRIORITY.
6307 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6309         * doc/gimple.texi: Fix quoting of multi-word return values in
6310         @deftypefn statements.  Ensure presence of return value.  Wrap
6311         overlong @deftypefn lines.
6312         (is_gimple_operand, is_gimple_min_invariant_address): Remove
6313         descriptions of removed functions.
6314         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
6315         of multi-word return value in @deftypefn statement.
6317 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6319         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
6320         (Conditional Expressions, Logical Operators)
6321         (Statement and operand traversals): Do not indent smallexample
6322         code.  Fix duplicate function argument in example.
6324 2011-01-10  Jeff Law  <law@redhat.com>
6326         PR tree-optimization/47141
6327         * ipa-split.c (split_function): Handle case where we are
6328         returning a value and the return block has a virtual operand phi.
6330 2011-01-10  Jan Hubicka  <jh@suse.cz>
6332         PR tree-optimization/47234
6333         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
6334         (pass_feedback_split_functions): Declare.
6335         * passes.c (init_optimization_passes): Add ipa-split as subpass of
6336         tree-profile.
6337         * ipa-split.c (gate_split_functions): Update comments; disable
6338         split-functions for profile_arc_flag and branch_probabilities.
6339         (gate_feedback_split_functions): New function.
6340         (execute_feedback_split_functions): New function.
6341         (pass_feedback_split_functions): New global var.
6343 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
6345         PR lto/46760
6346         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
6347         calling gimple_call_set_cannot_inline.
6349 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
6351         * config/darwin-sections.def: Remove unused section.
6353 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
6355         PR c++/47218
6356         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
6358 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
6360         PR objc/47232
6361         * c-parser.c (c_parser_declaration_or_fndef): Improved
6362         error message.
6364 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
6366         * config/i386/winnt.c (i386_pe_start_function): Make sure
6367         to switch back to function's section.
6369 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
6371         PR gcc/46902
6372         PR testsuite/46912
6373         * plugin.c: Move include of dlfcn.h from here...
6374         * system.h: ... to here.
6376 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6378         * doc/cpp.texi (C++ Named Operators): Fix markup for header
6379         file name.
6380         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
6381         two extra empty pages in PDF output.
6383 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
6385         PR objc/47078
6386         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
6387         for error recovery purposes behave as if it was not specified so
6388         that the default type is usd.
6390 2011-01-07  Jan Hubicka  <jh@suse.cz>
6392         PR tree-optmization/46469
6393         * ipa.c (function_and_variable_visibility): Clear needed flags on
6394         nodes with external decls; handle weakrefs merging correctly.
6396 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
6398         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
6399         not false.
6401 2011-01-07  Jan Hubicka  <jh@suse.cz>
6403         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
6404         and no longer claim that gold is required for linker plugin.
6405         * configure: Regenerate.
6406         * gcc.c (PLUGIN_COND): New macro.
6407         (LINK_COMMAND_SPEC): Use it.
6408         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
6409         * config.in (HAVE_LTO_PLUGIN): New.
6410         * configure.ac (--with-lto-plugin): New parameter; autodetect
6411         HAVE_LTO_PLUGIN.
6413 2011-01-07  Jan Hubicka  <jh@suse.cz>
6415         PR tree-optimization/46367
6416         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
6417         when we can update original.
6418         (cgraph_mark_inline_edge): Sanity check.
6419         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
6421 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6423         * config/spu/spu.h (ASM_COMMENT_START): Define.
6425 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
6427         PR driver/42445
6428         * gcc.c (%>S): New.
6429         (SWITCH_KEEP_FOR_GCC): Likewise.
6430         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
6431         (do_spec_1): Handle "%>".
6433         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
6435 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
6437         PR target/47201
6438         * config/i386/i386.c (ix86_delegitimize_address): If
6439         simplify_gen_subreg fails, return orig_x.
6441         PR bootstrap/47187
6442         * value-prof.c (gimple_stringop_fixed_value): Handle
6443         lhs of the call properly.
6445 2011-01-07  Jan Hubicka  <jh@suse.cz>
6447         PR lto/45375
6448         * lto-opt.c (lto_reissue_options): Set flag_shlib.
6450 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
6452         * target.def (function_switched_text_sections): New hook.
6453         * doc/tm.texi: Regenerated.
6454         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
6455         * final.c (default_function_switched_text_sections): New.
6456         (final_scan_insn): Call function_switched_text_sections when a
6457         mid-function section change occurs.
6458         * output.h (default_function_switched_text_sections): Declare.
6459         * config/darwin-protos.h (darwin_function_switched_text_sections):
6460         Likewise.
6461         * config/darwin.c (darwin_function_switched_text_sections): New.
6462         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
6464 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
6466         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
6467         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
6468         the secondary code fragment when outputting for DWARF == 2.
6470 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
6472         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6473         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
6474         Remove.
6475         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
6476         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6478 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
6480         PR debug/46704
6481         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
6482         when it is not empty.
6484 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
6486         Bobcat Enablement
6487         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
6488         (case ${target}): Add btver1.
6489         * config/i386/driver-i386.c (host_detect_local_cpu): Let
6490         -march=native recognize btver1 processors.
6491         * config/i386/i386-c.c (ix86_target_macros_internal): Add
6492         btver1 def_and_undef
6493         * config/i386/i386.c (struct processor_costs btver1_cost): New
6494         btver1 cost table.
6495         (m_BTVER1): New definition.
6496         (m_AMD_MULTIPLE): Includes m_BTVER1.
6497         (initial_ix86_tune_features): Add btver1 tune.
6498         (processor_target_table): Add btver1 entry.
6499         (static const char *const cpu_names): Add btver1 entry.
6500         (software_prefetching_beneficial_p): Add btver1.
6501         (ix86_option_override_internal): Add btver1 instruction sets.
6502         (ix86_issue_rate): Add btver1.
6503         (ix86_adjust_cost): Add btver1.
6504         * config/i386/i386.h (TARGET_BTVER1): New definition.
6505         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
6506         (enum processor_type): Add PROCESSOR_BTVER1.
6507         * config/i386/i386.md (define_attr "cpu"): Add btver1.
6509 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6511         PR target/43309
6512         * config/i386/i386.c (legitimize_tls_address)
6513         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
6514         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
6515         (tls_initial_exec_64_sun): New pattern.
6517 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
6519         * doc/invoke.texi (Overall Options): Improve wording and markup
6520         of the description of -wrapper.
6522 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
6524         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
6525         rdynamic, threads): New Driver options.
6527 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6529         PR target/38118
6530         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
6531         if coming from .tdata.
6532         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
6534 2011-01-06  Jan Hubicka  <jh@suse.cz>
6536         PR lto/47188
6537         * collect2.c (main): Do not enable LTOmode when plugin is active.
6539 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6541         PR other/45915
6542         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
6543         --version output if supported.
6544         * configure: Regenerate.
6546 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
6548         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
6549         Driver options.
6551 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
6553         PR c/47150
6554         * c-convert.c (convert): When converting a complex expression
6555         other than COMPLEX_EXPR to a different complex type, ensure
6556         c_save_expr is called instead of save_expr, unless in_late_binary_op.
6557         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
6558         when converting COMPLEX_TYPE.
6560 2011-01-06  Ira Rosen  <irar@il.ibm.com>
6562         PR tree-optimization/47139
6563         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
6564         only the last reduction value is used outside the loop.  Update
6565         documentation.
6567 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
6569         * config/rtems.opt: New.
6570         * config.gcc (*-*-rtems*): Use rtems.opt.
6572 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
6574         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
6575         processors do not support 3DNow instructions.
6577 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6579         * config/spu/spu.c (spu_option_override): Set parameter
6580         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
6582 2011-01-05  Jan Hubicka  <jh@suse.cz>
6584         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
6585         at the command line.
6587 2011-01-05  Martin Jambor  <mjambor@suse.cz>
6589         PR lto/47162
6590         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
6591         deltas on streamed outgoing edges.
6592         (output_node_opt_summary): Output info for outgoing edges only when
6593         the node is in new parameter set.
6594         (output_cgraph_opt_summary): New parameter set, passed to the two
6595         aforementioned functions.  Update its forward declaration and its
6596         callee too.
6598 2011-01-05  Tom Tromey  <tromey@redhat.com>
6600         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
6601         operator to c_finish_omp_atomic.
6602         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
6603         (build_unary_op): Update.
6604         (build_modify_expr): Update.
6605         (build_asm_expr): Update.
6607 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6609         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
6610         newly inserted insns.
6611         (pad_bb): Likewise.
6612         (spu_emit_branch_hint): Likewise.
6613         (insert_hbrp_for_ilb_runout): Likewise.
6614         (spu_machine_dependent_reorg): Call df_finish_pass after
6615         schedule_insns returns.
6617 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6619         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
6621 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
6623         PR tree-optimization/47005
6624         * tree-sra.c (struct access): Add 'non_addressable' bit.
6625         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
6626         (decide_one_param_reduction): Return 0 if the parameter is passed by
6627         reference and one of the accesses in the group is non_addressable.
6629 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
6631         PR tree-optimization/47056
6632         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
6633         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
6634         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
6636 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
6638         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
6639         initializer.  Skip view conversions from aggregate types.
6641 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
6643         PR bootstrap/47055
6644         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
6646 2011-01-04  Philipp Thomas  <pth@suse.de>
6648         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
6649         obvious typo.
6651 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6653         * function.c (thread_prologue_and_epilogue_insns): Do not crash
6654         on empty epilogue sequences.
6656 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
6658         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
6659         non-static): New Driver options.
6661 2011-01-04  Jie Zhang  <jie@codesourcery.com>
6663         PR driver/47137
6664         * gcc.c (default_compilers[]): Set combinable field to 0
6665         for all assembly languages.
6667 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
6669         * config/mips/loongson3a.md: New file.
6670         * config/mips/mips.md: Include loongson3a.md.
6671         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
6672         TUNE_LOONGSON_3A.
6674 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
6676         PR middle-end/47017
6677         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
6678         instead of convert_memory_address_addr_space on the base expression.
6680 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6682         * config/spu/spu.c (spu_option_override): Update error text
6683         for bad -march= / -mtune= values.
6685 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6687         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
6688         if branch-hint optimization will be performed.
6690 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
6692         PR tree-optimization/47148
6693         * ipa-split.c (split_function): Convert arguments to
6694         DECL_ARG_TYPE if possible.
6696         PR tree-optimization/47155
6697         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
6698         when computing uns.
6700         PR rtl-optimization/47157
6701         * combine.c (try_combine): If undobuf.other_insn becomes
6702         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
6703         and set *new_direct_jump_p too.
6705 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
6707         PR tree-optimization/47021
6708         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
6710 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
6712         * gcc.c (process_command): Update copyright notice dates.
6713         * gcov.c (print_version): Likewise.
6714         * gcov-dump.c (print_version): Likewise.
6715         * mips-tfile.c (main): Likewise.
6716         * mips-tdump.c (main): Likewise.
6718 2011-01-03  Martin Jambor  <mjambor@suse.cz>
6720         PR tree-optimization/46801
6721         * tree-sra.c (type_internals_preclude_sra_p): Check whether
6722         aggregate fields start at byte boundary instead of the bit-field flag.
6724 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
6726         PR driver/47137
6727         * gcc.c (main): Revert revision 168407.
6729 2011-01-03  Martin Jambor  <mjambor@suse.cz>
6731         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
6733 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6735         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
6736         vector optab to expand vector/scalar shift, update gimple to vector.
6738 2011-01-03  Martin Jambor  <mjambor@suse.cz>
6740         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
6741         a thunk.
6743 2011-01-03  Martin Jambor  <mjambor@suse.cz>
6745         PR tree-optimization/46984
6746         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
6747         HOST_WIDE_INT.
6748         (cgraph_create_indirect_edge): Fixed line length.
6749         (cgraph_indirect_call_info): Declare.
6750         (cgraph_make_edge_direct) Update declaration.
6751         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
6752         (cgraph_create_indirect_edge): Use it.
6753         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
6754         callees.
6755         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
6756         the new thunk_delta representation.
6757         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
6758         HOST_WIDE_INT.
6759         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
6760         (ipa_read_indirect_edge_info): Likewise.
6761         * lto-cgraph.c (output_edge_opt_summary): New function.
6762         (output_node_opt_summary): Call it on all outgoing edges.
6763         (input_edge_opt_summary): New function.
6764         (input_node_opt_summary): Call it on all outgoing edges.
6766 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
6768         PR driver/47137
6769         * gcc.c (main): Don't check have_o when settting combine_inputs.
6771 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
6773         * regrename.c: Add general comment describing the pass.
6774         (struct du_head): Remove 'length' field.
6775         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
6776         (regrename_optimize): Do not sort chains.  Rework comments, add others.
6777         Force renaming to the preferred class (if any) in the first pass and do
6778         not consider registers that belong to it in the second pass.
6779         (create_new_chain): Do not set 'length' field.
6780         (scan_rtx_reg): Likewise.
6782 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
6784         PR tree-optimization/47140
6785         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
6786         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
6787         to bit_value_binop.
6789         PR rtl-optimization/47028
6790         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
6791         parm_birth_insn instead of at the beginning of first bb.
6793 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
6795         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
6796         Remove the word "see" before "@pxref".
6797         * doc/rtl.texi: Remove the word "see" before "@pxref".
6799 2011-01-01  Jan Hubicka  <jh@suse.cz>
6801         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
6802         memory.
6804 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
6806         PR target/38662
6807         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
6810 Copyright (C) 2011 Free Software Foundation, Inc.
6812 Copying and distribution of this file, with or without modification,
6813 are permitted in any medium without royalty provided the copyright
6814 notice and this notice are preserved.