OSDN Git Service

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