OSDN Git Service

* config/rx/rx.md (mov expander): Fix use of
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-13  Nick Clifton  <nickc@redhat.com>
2
3         * config/rx/rx.md (mov expander): Fix use of
4         rx_legitimate_constant_p.
5         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename
6         prototype.
7
8 2011-05-13  Kai Tietz  <ktietz@redhat.com>
9
10         PR middle-end/48984
11         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
12         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
13         (gimple_boolify): Check for cast for boolean_type_node instead for
14         BOOLEAN_TYPE.
15
16 2011-05-13  Richard Guenther  <rguenther@suse.de>
17
18         PR tree-optimization/48172
19         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
20         multiplying by number of iterations for equal step.
21         (vect_create_cond_for_alias_checks): Likewise.
22
23 2011-05-13  Andreas Schwab  <schwab@redhat.com>
24
25         * configure.ac: Use AS_HELP_STRING throughout.
26         * configure: Regenerate.
27
28 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
29
30         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return
31         to bool.
32         (ix86_emit_restore_regs_using_mov): Likewise.
33         (ix86_emit_restore_sse_regs_using_mov): Likewise.
34
35 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
36
37         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
38         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
39         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
40         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
41         RTX_OK_FOR_OLO10_P): ...here.
42         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
43         SYMBOLIC_CONST.
44
45 2011-05-12  Kai Tietz  <ktietz@redhat.com>
46
47         * gimplify.c (gimple_boolify): Re-boolify expression
48         arguments even if expression type is of kind BOOLEAN_TYPE.
49         (gimplify_boolean_expr): Removed.
50         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
51         and XOR. Additional take care that we keep expression's type.
52         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
53         of TRUTH_AND|OR|XOR_EXPR.
54
55 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
56
57         PR tree-optimization/48975
58         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
59         on all bbs here and free and clear ifc_bbs at the end.
60
61 2011-05-12  Richard Guenther  <rguenther@suse.de>
62
63         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
64         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
65         until after simple checks.
66         (gimple_types_compatible_p): Likewise.
67         (iterative_hash_gimple_type): Always hash pointer targets
68         and function return and argument types.
69         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
70         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
71         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
72         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
73         completely in the simple compare section.
74         (gimple_register_canonical_type): Query the cache again after
75         registering.
76
77 2011-05-12  Richard Guenther  <rguenther@suse.de>
78
79         PR tree-optimization/48172
80         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
81         the number of iterations from the segment size calculation.
82         (vect_create_cond_for_alias_checks): Adjust.
83
84 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
85
86         PR debug/48967
87         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
88         if validate_subreg fails.
89
90 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
91
92         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
93         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
94         early.
95
96 2011-05-12  DJ Delorie  <dj@redhat.com>
97
98         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
99         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
100         created builtin into rx_builtins array.
101         (rx_builtin_decl): New function.
102         (TARGET_BUITLIN_DECL): Define.
103         Include gt-rx.h.
104
105 2011-05-12  DJ Delorie  <dj@redhat.com>
106             Nick Clifton  <nickc@redhat.com>
107
108         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
109         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
110         (rx_is_legitimate_address): Add pre-decrement and post-increment
111         addressing in HImode and QImode.  Fix test for out of range
112         REG+INT addressing.
113         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
114         (rx_align_for_label): Test label before extracting its usage
115         count.
116         (rx_adjust_insn_lengths): Fix selection of insn codes.
117         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
118
119 2011-05-11  Jason Merrill  <jason@redhat.com>
120
121         * tree.c (type_hash_canon): Use struct tree_type_non_common.
122
123 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
124
125         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
126         reindent the subsequent block.
127
128 2011-05-11  Satoru Takabayashi  <satorux@google.com>
129             Paul Pluzhnikov  <ppluzhnikov@google.com>
130
131         * doc/install.texi (Configuration): Document
132         --with-linker-hash-style.
133         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
134         * config.in: Add LINKER_HASH_STYLE.
135         * configure.ac: Add --with-linker-hash-style.
136         * configure: Regenerate.
137
138 2011-05-11  Richard Guenther  <rguenther@suse.de>
139
140         PR middle-end/48964
141         * gimple.c (iterative_hash_canonical_type): Fix typo.
142
143 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
144
145         * config/i386/i386.c (legitimize_tls_address)
146         <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
147         expanders directly for TARGET_GNU2_TLS.  Determine pic and
148         __tls_get_addr symbol reference here.  Update call to
149         gen_tls_global_dynamic_{32,64} for added arguments.
150         <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
151         expanders directly for TARGET_GNU2_TLS.  Determine
152         __tls_get_addr symbol reference here.  Update call to
153         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
154         unique UNSPEC REG_EQUIV to libcall block.
155         (ix86_tls_get_addr): Declare static.
156         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
157         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
158         Do not determine pic and __tls_get_addr symbol reference here. Do not
159         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
160         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
161         (tls_global_dynamic_64): Add operand 2.  Do not determine
162         __tls_get_addr symbol reference here.  Do not call
163         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
164         (tls_local_dynamic_base64): Ditto for operand 1.
165
166 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
167
168         * function.c (expand_function_start): Initialize stack_check_probe_note
169         only if the generic stack checking mechanism is used.
170
171 2011-05-11  Richard Guenther  <rguenther@suse.de>
172
173         PR tree-optimization/15256
174         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
175         (A & B) | C, combine (A op CST1) op CST2.
176         (tree_ssa_forward_propagate_single_use_vars): Only bother to
177         visit assigns that have uses.
178
179 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
180
181         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
182         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
183         (unpack_ts_type_common_value_fields): ...this.  Update comment.
184         (unpack_value_fields): Adjust for renaming.
185         (lto_input_ts_type_tree_pointers): Split into...
186         (lto_input_ts_type_common_tree_pointer): ...this and...
187         (lto_input_ts_type_non_common_tree_pointers): ...this.
188         (lto_input_tree_pointers): Adjust for above split.
189         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
190         (pack_ts_type_common_value_fields): ...this.  Update comment.
191         (lto_output_ts_type_tree_pointers): Split into...
192         (lto_output_ts_type_common_tree_pointers): ...this and...
193         (lto_output_ts_type_non_common_tree_pointers): ...this.
194         (lto_output_tree_pointers): Adjust for above split.
195         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
196         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
197         * stor-layout.c (vector_type_mode): Adjust location of mode field.
198         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
199         Define.
200         (struct tree_type): Split into...
201         (struct tree_type_common: ...this and...
202         (struct tree_type_with_lang_specific): ...this and...
203         (struct tree_type_non_common): ...this.  Adjust accessor macros
204         accordingly.
205         (TYPE_VALUES_RAW): Define.
206         (union tree_node): Update for above changes.
207         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
208         TS_TYPE_NON_COMMON.
209         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
210         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
211         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
212         * treestructu.def (TS_TYPE): Remove.
213         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
214         Define.
215
216 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
217
218         PR debug/48159
219         * tree-ssa.c (reset_debug_uses): New function.
220         * tree-flow.h (reset_debug_uses): New prototype.
221         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
222         * tree-loop-distribution.c (generate_loops_for_partition): Call
223         reset_debug_uses on the stmts that will be removed.  Keep around
224         all debug stmts, don't count them as bits in partition bitmap.
225         (generate_builtin): Don't count debug stmts or labels as bits in
226         partition bitmap.
227
228 2011-05-11  Richard Guenther  <rguenther@suse.de>
229
230         * gimple.c (gimple_type_hash_1): Merge with ...
231         (gimple_type_hash): ... this.
232         (gtc_visit): Remove mode parameter and simplify accordingly.
233         (gimple_types_compatible_p_1): Likewise.
234         (gimple_types_compatible_p): Likewise.
235         (iterative_hash_gimple_type): Likewise.
236         (visit): Likewise.
237         (gimple_type_eq): Adjust.
238
239 2011-05-11  Revital Eres  <revital.eres@linaro.org>
240
241         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
242         enters the branch create an anti edge in the opposite direction
243         to prevent the creation of reg-moves.
244         * modulo-sched.c: Adjust comment to reflect the fact we are
245         scheduling closing branch.
246         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
247         (stage_count): New field in struct partial_schedule.
248         (calculate_stage_count): New function.
249         (normalize_sched_times): Rename to reset_sched_times and handle
250         incrementing the sched time of the nodes by a constant value
251         passed as parameter.
252         (duplicate_insns_of_cycles): Skip closing branch.
253         (sms_schedule_by_order): Schedule closing branch.
254         (ps_insn_find_column): Handle closing branch.
255         (sms_schedule): Call reset_sched_times and adjust the code to
256         support scheduling of the closing branch.
257         (ps_insert_empty_row): Update calls to normalize_sched_times
258         and rotate_partial_schedule functions.
259
260 2011-05-11  Richard Guenther  <rguenther@suse.de>
261
262         PR middle-end/48953
263         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
264
265 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
266
267         * opts.c (finish_options): Move warning settings from process_options.
268         * toplev.c (process_options): Move warning settings to finish_options.
269
270 2011-05-11  Richard Guenther  <rguenther@suse.de>
271
272         PR tree-optimization/18041
273         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
274         (simplify_bitwise_binary): ... this.  Handle operand conversions
275         by applying them to the result instead.
276         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
277
278 2011-05-11  Richard Guenther  <rguenther@suse.de>
279
280         * gimple.c (gimple_canonical_types_compatible_p): Split out
281         from gimple_types_compatible_p and friends.  Do not recurse
282         to pointed-to types.
283         (gimple_canonical_type_eq): Use it.
284         (iterative_hash_canonical_type): Split out from
285         iterative_hash_gimple_type and friends.  Do not recurse
286         to pointed-to types.
287         (gimple_canonical_type_hash): Use it, allocate the hash here.
288
289 2011-05-11  Revital Eres  <revital.eres@linaro.org>
290
291         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
292         recognizing doloop.
293
294 2011-05-11  Revital Eres  <revital.eres@linaro.org>
295
296         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
297         instead of PREV_INSN.
298
299 2011-05-11  Revital Eres  <revital.eres@linaro.org>
300
301         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
302         * loop-doloop.c (doloop_condition_get): Likewise.
303         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
304         (doloop_end): New.
305         * config/arm/arm.md (*addsi3_compare0): Remove "*".
306
307 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
308
309         * tree.def (CASE_LABEL_EXPR): Add an operand.
310         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
311
312 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
313
314         * c-decl.c (c_override_global_bindings_to_false): Remove.
315         (global_bindings_p): Don't check
316         c_override_global_bindings_to_false.
317         * c-tree.h (c_override_global_bindings_to_false): Remove.
318         * c-typeck.c (composite_type): Don't set
319         c_override_global_bindings_to_false.
320
321 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
322
323         PR target/48857, 48495
324         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
325         (VSX_MODE): Ditto.
326         (VSX_MOVE_MODE): Ditto.
327         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
328         VSX vector types.  Add V2DImode.
329         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
330         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
331         (MODES_TIEABLE_P): Ditto.
332
333         * config/rs6000/rs6000.c (rs6000_emit_move): Use
334         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
335         VSX_VECTOR_MODE.
336         (init_cumulative_args): Ditto.
337         (rs6000_function_arg_boundary): Ditto.
338         (rs6000_function_arg_advance_1): Ditto.
339         (rs6000_function_arg): Ditto.
340         (rs6000_function_ok_for_sibcall): Ditto.
341         (emit_frame_save): Ditto.
342         (rs6000_function_value): Ditto.
343         (rs6000_libcall_value): Ditto.
344
345 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
346
347         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
348         i386/darwin-lib.h to $libgcc_tm_file.
349         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
350
351 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
352
353         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
354
355 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
356
357         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
358         * config/rs6000/rs6000-tables.opt: New file (generated).
359         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
360         rs6000/rs6000-tables.opt to extra_options.
361         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
362         * config/rs6000/rs6000.c (rs6000_select): Remove.
363         (processor_target_table): Move contents to rs6000-cpus.def.
364         (darwin_rs6000_override_options): Check
365         global_options_set.x_rs6000_cpu_index instead of
366         rs6000_select[1].string.
367         (rs6000_option_override_internal): Likewise.
368         (rs6000_handle_option): Don't assert that global structures are in
369         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
370         (rs6000_default_cpu): New variable.
371         (rs6000_file_start): Set it instead of local default_cpu.  Check
372         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
373         global_options_set.x_rs6000_tune_index instead of rs6000_select.
374         (rs6000_darwin_file_start): Check rs6000_default_cpu and
375         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
376         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
377         rs6000_select): Remove.
378         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
379         Remove.
380         (mcpu=, mtune=): Use Var, Init, Enum and Save.
381         * config/rs6000/t-rs6000
382         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
383         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
384         global_options_set.x_rs6000_cpu_index instead of
385         rs6000_select[1].string.
386         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
387         global_options_set.x_rs6000_cpu_index instead of
388         rs6000_select[1].string.
389
390 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
391
392         * config.gcc (libgcc_tm_file): Define instead of including files
393         from ../../libgcc/config/ in tm_file.
394         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
395         * configure: Regenerate.
396         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
397         libgcc_tm.h, cs-libgcc_tm.h): New.
398         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
399         (clean): Remove libgcc_tm.h.
400         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
401         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
402         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
403
404 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
405
406         PR target/48896
407         * config/avr/avr.c (avr_ret_register): Return unsigned int
408         instead of int.
409         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
410         it to avr_libcall_value.
411         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
412         expand_expr.
413         (avr_expand_binop_builtin): Ditto.
414         (avr_expand_unop_builtin): Ditto.
415
416 2011-05-10  DJ Delorie  <dj@redhat.com>
417
418         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
419         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
420         * config/rx/rx.c (rx_align_for_label): Add label and
421         uses_threshold parameters.  Do not align when the label is not
422         used enough.
423         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
424
425 2011-05-10  Richard Guenther  <rguenther@suse.de>
426
427         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
428         a series of conversions and apply foldings similar to what
429         fold-const does.
430         (tree_ssa_forward_propagate_single_use_vars): Call it.
431
432 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
433
434         PR tree-optimization/48611
435         PR tree-optimization/48794
436         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
437         referenced from RESX or EH_DISPATCH arguments.
438
439         PR debug/48928
440         * dfp.c (decimal_to_decnumber): Handle conversion from
441         dconst{1,2,m1,half}.
442
443 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
444
445         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
446         for !flag_prefer_avx128.
447         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
448
449 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
450
451         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
452         (fold_ternary_loc): Use expr_location_or.
453
454 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
455
456         PR debug/48853
457         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
458         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
459         Pmode and mem_mode is not VOIDmode.
460
461 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
462
463         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
464         TYPE_QUAL_RESTRICT): Convert to enum.
465
466 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
467
468         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
469         (const_pow2_1_to_8_operand): Ditto.
470         (const_pow2_1_to_128_operand): Ditto.
471         (const_pow2_1_to_32768_operand): Ditto.
472         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
473         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
474         in insn constraint to check integer value of operand 3.
475         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
476
477         (PINSR_MODE): New mode iterator.
478         (sse2p4_1): New mode attribute.
479         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
480         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
481         iterator.  Use const_int_operand instead of
482         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
483         exact_log2 in insn constraint to check integer value of operand 3.
484
485 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
486
487         * config/i386/sse.md (blendbits): Remove mode attribute.
488         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
489         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
490         Check integer value of operand 3 in insn constraint.
491
492 2011-05-09  Richard Guenther  <rguenther@suse.de>
493
494         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
495         for diagnostics.
496         (lto_symtab_merge): Likewise.  Do not register types here.
497         (lto_symtab_merge_decls_2): Likewise.
498         (lto_symtab_merge_decls_1): Likewise.
499         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
500         * gimple.c (enum gtc_mode): Declare.
501         (gimple_types_compatible_p): Make static.
502
503 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
504
505         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
506         temporary register to match Pmode.
507
508 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
509
510         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
511         and *vec_concatv4si_1_avx.
512
513 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
514
515         PR rtl-optimization/48927
516         * ira-conflicts.c (commutative_constraint_p): Use
517         recog_data.alternative_enabled_p to disable alternatives where
518         "enabled" attribute is false.
519         (get_dup_num): Ditto.
520         * ira-lives.c (single_reg_class): Ditto.
521         (ira_implicitly_set_insn_hard_regs): Ditto.
522
523 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
524
525         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
526         (dataflow_set_preserve_mem_locs): Likewise.
527
528 2011-05-09  Philipp Thomas  <pth@suse.de>
529
530         * config/mep/mep.c (mep_validate_vliw): Syntax description
531         should not be translated.
532
533 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
534
535         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
536         * config/mips/mips-tables.opt: New file (generated).
537         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
538         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
539         MIPS_ARCH_OPTION_NATIVE): Define.
540         * config/mips/mips.c (mips_cpu_info_table): Move contents to
541         mips-cpus.def.
542         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
543         mips_parse_cpu): Remove.
544         (mips_cpu_info_from_opt, mips_default_arch): New.
545         (mips_handle_option): Don't assert that global structures are in
546         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
547         (mips_option_override): Use new variables and functions to set
548         state of these options.  Use strcmp to check for individual CPU names.
549         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
550         definition.
551         * config/mips/mips.opt (march=): Use ToLower and Enum.
552         (mips): Use ToLower, Enum and Var.
553         (mtune=): Use ToLower and Enum.
554         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
555
556 2011-05-08  Jan Hubicka  <jh@suse.cz>
557
558         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
559         Arrange type pairs to be UID ordered.
560         (gimple_lookup_type_leader): Make inline.
561
562 2011-05-09  Nick Clifton  <nickc@redhat.com>
563
564         PR target/48899
565         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
566         PROCESSOR_DEFAULT.
567
568         PR target/48897
569         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
570         variable 's'.
571
572 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
573
574         * combine.c (simplify_comparison): Abstract out parts into...
575         (simplify_compare_const): ... new function.
576         (try_combine): Generalize parallel arithmetic/compare combining
577         to call simplify_compare_const() and CANONICALIZE_COMPARE().
578
579 2011-05-08  Jan Hubicka  <jh@suse.cz>
580
581         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
582         (cgraph_create_virtual_clone): Call hooks once virtual clone
583         is finished.
584         * cgraph.h (cgraph_clone_node): Update prototype.
585         * ipa-cp.c (ipcp_estimate_growth): Use
586         estimate_ipcp_clone_size_and_time.
587         * ipa-inline-transform.c (clone_inlined_nodes): Update.
588         * lto-cgraph.c (input_node): Update.
589         * ipa-inline.c (recursive_inlining): Update.
590         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
591         (evaluate_conditions_for_known_args): Break out from ...
592         (evaluate_conditions_for_edge): ... here.
593         (evaluate_conditions_for_ipcp_clone): New function.
594         (inline_node_duplication_hook): Update clone summary based
595         on parameter map.
596         (estimate_callee_size_and_time): Rename to ...
597         (estimate_node_size_and_time): take NODE instead of EDGE;
598         take POSSIBLE_TRUTHS as argument.
599         (estimate_callee_size_and_time): Update.
600         (estimate_ipcp_clone_size_and_time): New function.
601         (do_estimate_edge_time): Update.
602
603 2011-05-08  Richard Guenther  <rguenther@suse.de>
604
605         PR middle-end/48908
606         PR middle-end/48905
607         * expmed.c (expand_shift_1): Compute adjusted constant shift
608         amount manually.
609
610 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
611
612         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
613
614 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
615
616         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
617
618 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
619
620         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
621
622 2011-05-07  Jan Hubicka  <jh@suse.cz>
623
624         * ipa-inline-transform.c (inline_call): Account when program size
625         decreases.
626         * ipa-inline.c (relative_time_benefit): New function.
627         (edge_badness): Reorganize to be power 2 based; fix thinko when
628         computing badness for negative growth; update comments to match
629         reality; better dumps.
630
631 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
632
633         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
634         type to bool and adjust comment.
635         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
636         (fold_mathfn_compare): Remove calls to global_bindings_p.
637         (fold_inf_compare): Likewise.
638         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
639         * c-tree.h (global_bindings_p): Adjust prototype.
640         * c-decl.c (global_bindings_p): Return bool and simplify.
641
642 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
643
644         PR tree-optimization/48837
645         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
646         when accumulator transformation is performed.
647
648 2011-05-06  Jan Hubicka  <jh@suse.cz>
649
650         * i386.h (ix86_tune_indices): Add
651         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
652         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
653         * i386.c (initial_ix86_tune_features): Add
654         X86_SOFTARE_PREFETCHING_BENEFICIAL.
655         (software_prefetching_beneficial_p): Remove predicate.
656         (ix86_option_override_internal): Use new macro.
657
658 2011-05-06  Jan Hubicka  <jh@suse.cz>
659
660         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
661
662 2011-05-06  Jan Hubicka  <jh@suse.cz>
663
664         * cgraph.c (cgraph_add_thunk): Create real function node instead
665         of alias node; finalize it and mark needed/reachale; arrange visibility
666         to be right and add it into the corresponding same comdat group list.
667         (dump_cgraph_node): Dump thunks.
668         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
669         cgraph_function_with_gimple_body_p,
670         cgraph_first_function_with_gimple_body,
671         cgraph_next_function_with_gimple_body): New functions.
672         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
673         New macros.
674         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
675         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
676         * cgraphunit.c (cgraph_finalize_function): Only look into possible
677         devirtualization when optimizing.
678         (verify_cgraph_node): Verify thunks.
679         (cgraph_analyze_function): Analyze thunks.
680         (cgraph_mark_functions_to_output): Output thunks only in combination
681         with function they are assigned to.
682         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
683         alias into normal node.
684         (assemble_thunks): New functoin.
685         (cgraph_expand_function): Use it.
686         * lto-cgraph.c (lto_output_node): Stream thunks.
687         (input_overwrite_node): Stream in thunks.
688         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
689         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
690         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
691         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
692         (inline_analyze_function): Do not care about thunk jump functions.
693         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
694         * ipa-prop.c (ipa_prop_write_jump_functions): Use
695         cgraph_function_with_gimple_body_p.
696         * passes.c (do_per_function_toporder): Use
697         cgraph_function_with_gimple_body_p.
698         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
699         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
700         (function_called_by_processed_nodes_p): Likewise.
701
702 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
703
704         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
705         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
706         entries.
707         (mabi=): Replace with separate entries for mabi=altivec,
708         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
709         mabi=ieeelongdouble and mabi=ibmlongdouble.
710         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
711         check for -mabi=spe without SPE ABI support here.
712         (rs6000_handle_option): Replace OPT_mabi_ handling with
713         OPT_mabi_altivec and OPT_mabi_spe handling.
714
715 2011-05-06  Cary Coutant  <ccoutant@google.com>
716
717         * dwarf2out.c (contains_subprogram_definition): New function.
718         (should_move_die_to_comdat): Call it.
719
720 2011-05-06  Jeff Law  <law@redhat.com>
721
722         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
723         remove_ctrl_stmt_and_useless_edges.
724         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
725         (fixup_template_block, thread_single_edge): Likewise.
726         (mark_threaded_blocks): Use THREAD_TARGET.
727
728 2011-05-06  Alan Modra  <amodra@gmail.com>
729
730         PR target/48900
731         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
732         const0_rtx as the arg to the dummy __tls_get_addr libcall.
733
734 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
735
736         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
737         constraint modifier to "r".
738
739 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
740
741         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
742         fall through for OPT_mcmodel_.
743
744 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
745
746         * config/s390/s390.c (s390_asm_trampoline_template): Comment
747         instruction sizes.
748         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
749
750 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
751
752         PR target/47930
753         * config/arm/arm.opt (marm): Document it.
754         (mthumb): Reject negative variant.
755
756 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
757
758         PR target/48898
759         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
760         Fix typo in "ccvt" variable name.
761
762 2011-05-06  Tristan Gingold  <gingold@adacore.com>
763
764         PR target/48895
765         * config/vms/vms-ar.c (main): Remove cwd variable.
766
767 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
768
769         PR debug/48902
770         * var-tracking.c (prepare_call_arguments): Move else before #endif.
771
772 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
773
774         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
775         * gimplify.c (gimplify_switch_expr): Likewise.
776         * omp-low.c (expand_omp_sections): Likewise.
777         * tree-eh.c (lower_try_finally_switch): Likewise.
778         (lower_eh_dispatch): Likewise.
779         * tree.h (build_case_label): Declare.
780         * tree.c (build_case_label): Define.
781
782 2011-05-05  Jason Merrill  <jason@redhat.com>
783
784         PR c++/40975
785         * tree-inline.c (copy_tree_r): Use copy_statement_list.
786         (copy_statement_list): Don't recurse.
787         * stor-layout.c (copy_self_referential_tree_r): Don't allow
788         STATEMENT_LIST.
789
790 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
791
792         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
793         through from -mfpu= handling.
794         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
795
796 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
797
798         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
799         POST_MODIFY.
800
801 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
802
803         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
804         for 11.31.
805         (hppa[12]*-*-hpux11*): Ditto.
806         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
807         * config/ia64/hpux-unix2003.h: New.
808         * config/pa/pa-hpux1131.opt: New.
809         * config/pa/pa-hpux1131.h: New.
810         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
811         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
812         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
813
814 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
815
816         PR debug/48853
817         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
818         instead of mode as 3rd argument to recursive call.
819         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
820         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
821         VOIDmode.
822         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
823         don't give up if mode is Pmode and mem_mode is not VOIDmode.
824         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
825         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
826
827 2011-05-05  Julian Brown  <julian@codesourcery.com>
828
829         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
830         parenthesis in D-register case.
831
832 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
833
834         * opt-functions.awk (var_type_struct): Handle Enum options.
835         * optc-gen.awk: Don't check range of variables of character type.
836         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
837         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
838         rs6000_sdata_name, rs6000_explicit_options): Remove.
839         (rs6000_option_override_internal): Check for -malign-power here.
840         Use global_options_set instead of rs6000_explicit_options.
841         (rs6000_parse_fpu_option): Remove.
842         (rs6000_handle_option): Access variables via opts and opts_set
843         pointers.  Use error_at and warning_at.  Add fall-through
844         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
845         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
846         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
847         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
848         here.  Don't use rs6000_parse_fpu_option.
849         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
850         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
851         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
852         (mrecip=): Use Var.
853         (mspe): Use Var and Save.
854         (mtraceback=): Use Enum and Var.
855         (rs6000_traceback_type): New Enum and EnumValue entries.
856         (mfloat-gprs=): Use Enum, Var and Save.
857         (rs6000_float_gprs): New Enum and EnumValue entries.
858         (mlong-double-): use Var and Save.
859         (msched-costly-dep=, minsert-sched-nops=): Use Var.
860         (malign-): Use Enum and Var.
861         (rs6000_alignment_flags): New Enum and EnumValue entries.
862         (mfpu=): Use Enum.
863         (fpu_type_t): New Enum and EnumValue entries.
864         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
865         global_options_set instead of rs6000_explicit_options.
866         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
867         global_options_set instead of rs6000_explicit_options.
868         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
869         global_options_set instead of rs6000_explicit_options.
870         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
871         global_options_set instead of rs6000_explicit_options.
872         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
873         global_options_set instead of rs6000_explicit_options.
874         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
875         global_options_set instead of rs6000_explicit_options.
876         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
877         definition.
878         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
879         global_options_set instead of rs6000_explicit_options.
880         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
881         (rs6000_cmodel): New Enum and EnumValue entries.
882         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
883         global_options_set instead of rs6000_explicit_options.
884         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
885         (mtls-size=): Use Enum and Var.
886         (rs6000_tls_size): New Enum and EnumValue entries.
887
888 2011-05-05  Michael Matz  <matz@suse.de>
889
890         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
891         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
892         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
893         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
894         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
895         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
896         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
897         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
898         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
899         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
900         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
901         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
902         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
903         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
904         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
905         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
906
907 2011-05-05  Richard Guenther  <rguenther@suse.de>
908
909         * expmed.c (expand_variable_shift): Rename to ...
910         (expand_shift_1): ... this.  Take an expanded shift amount.
911         For rotates recurse directly not building trees for the shift amount.
912         (expand_variable_shift): Wrap around expand_shift_1.
913         (expand_shift): Adjust.
914
915 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
916
917         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
918
919 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
920
921         * tree.h (get_pending_sizes): Remove prototype.
922         (put_pending_size): Likewise.
923         (put_pending_sizes): Likewise.
924         * stor-layout.c (pending_sizes): Delete.
925         (get_pending_sizes): Likewise.
926         (put_pending_size): Likewise.
927         (put_pending_sizes): Likewise.
928         (variable_size): Do not call put_pending_size and tidy up.
929         * function.h (struct function): Remove dont_save_pending_sizes_p.
930         * lto-streamer-in.c (input_function): Do not stream it.
931         * lto-streamer-out.c (output_function): Likewise.
932         * tree-inline.c (initialize_cfun): Do not copy it.
933         * c-decl.c (store_parm_decls): Do not set it.
934         * omp-low.c (create_task_copyfn): Likewise.
935         * tree-optimize.c (tree_rest_of_compilation): Likewise.
936
937 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
938
939         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
940         conditions.
941         (*movdf_internal): Ditto.
942         (*movdf_internal_nointeger): Ditto.
943         (*movsf_internal): Ditto.
944
945 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
946
947         * c-decl.c (finish_decl): Don't call get_pending_sizes.
948         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
949         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
950         (c_variable_size): Remove.
951         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
952         call put_pending_sizes.
953         (get_parm_info): Add parameter expr.  Use it to set
954         arg_info->pending_sizes.
955         (store_parm_decls): Use arg_info->pending_sizes instead or calling
956         get_pending_sizes.
957         * c-parser.c (c_parser_parms_declarator): Update call to
958         c_parser_parms_list_declarator.
959         (c_parser_parms_list_declarator): Take parameter expr.  Update
960         call to push_parm_decl.  Update recursive call.  Don't call
961         get_pending_sizes.  Update calls to get_parm_info.
962         (c_parser_objc_method_definition): Update calls to
963         c_parser_objc_method_decl and objc_start_method_definition.
964         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
965         (c_parser_objc_method_decl): Add parameter expr.  Update call to
966         grokparm.
967         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
968         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
969         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
970
971 2011-05-05  Michael Hope  <michael.hope@linaro.org>
972
973         PR pch/45979
974         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
975         __ARM_EABI__ hosts.
976
977 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
978
979         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
980         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
981         (spu_output_mi_thunk): New function.
982
983 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
984
985         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
986         targetm.asm_out.print_operand.
987         * config/sol2.c: Include target.h.
988
989 2011-05-04  Jan Hubicka  <jh@suse.cz>
990
991         * ipa-inline.c (reset_edge_caches): New function.
992         (update_caller_keys): Add check_inlinablity_for; do not
993         reset edge caches; remove now unnecesary loop.
994         (update_callee_keys): Add comments; reset node_growth_cache of callee.
995         (update_all_callee_keys): Likewise.
996         (inline_small_functions): Sanity check cache; update code
997         recomputing it.
998
999 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1000
1001         PR rtl-optimization/47612
1002         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1003         as the last insn of the sequence to be moved.
1004
1005 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1006
1007         PR fortran/48864
1008         * doc/invoke.texi (Ofast): Document that it
1009         enables Fortran's -fno-protect-parens.
1010
1011 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1012
1013         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1014
1015 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1016
1017         * stor-layout.c (variable_size): Do not issue errors.
1018
1019 2011-05-04  Richard Guenther  <rguenther@suse.de>
1020
1021         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1022         for array-ref indices.
1023         (tree_coverage_counter_addr): Likewise.
1024         (build_fn_info_type): Use size_int for index types.
1025         (build_gcov_info): Likewise.
1026
1027 2011-05-04  Richard Guenther  <rguenther@suse.de>
1028
1029         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1030         to build_int_cst.
1031         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1032         for constructor indices.
1033         (push_init_level): Likewise.
1034
1035 2011-05-04  Richard Guenther  <rguenther@suse.de>
1036
1037         * explow.c (promote_mode): Move variable declarations before code.
1038
1039 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1040
1041         * tree.h (build_function_type_array): Declare.
1042         (build_varargs_function_type_array): Declare.
1043         (build_function_type_vec, build_varargs_function_type_vec): Define.
1044         * tree.c (build_function_type_array_1): New function.
1045         (build_function_type_array): New function.
1046         (build_varargs_function_type_array): New function.
1047
1048 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1049
1050         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1051         before setting STMT_VINFO_TYPE.
1052
1053 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1054
1055         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1056         instead of spu_pass_by_reference.
1057
1058 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1059
1060         * calls.c (emit_library_call_value_1): Invoke
1061         promote_function_mode hook on libcall arguments.
1062         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1063         argument being NULL.
1064         * targhooks.c (default_promote_function_mode): Lisewise.
1065         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1066         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1067
1068         * doc/tm.texi: Document that TYPE argument might be NULL.
1069
1070 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1071
1072         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1073
1074 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1075
1076         From Bernd Schmidt
1077         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1078
1079 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1080
1081         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1082         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1083         Move ...
1084         * mips-tfile.c: ... here.
1085         Don't include coretypes.h, tm.h, filenames.h.
1086         (saber_stop): Remove definition and all calls.
1087         [__SABER__]: Remove.
1088         (__LINE__): Remove default.
1089         (Size_t, Ptrdiff_t): Remove definitions.
1090         Replace by size_t, ptrdiff_t.
1091         [!MIPS_DEBUGGING_INFO]: Remove.
1092         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1093         (progname): Add const.
1094         (STATIC): Remove.
1095         Replace all uses by static.
1096         (ALIGN_SYMTABLE_OFFSET): Remove default.
1097         * mips-tdump.c: Don't include coretypes.h, tm.h.
1098         Remove !MIPS_IS_STAB guard.
1099         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1100         $(TM_H), filenames.h dependencies.
1101         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1102
1103 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1104
1105         From Jie Zhang
1106         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1107         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1108
1109 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1110
1111         From Bernd Schmidt
1112         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1113         account and save/restore RETS.
1114         (PROFILE_BEFORE_PROLOGUE): Define.
1115         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1116         the push insn to use predecrement.
1117
1118 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1119
1120         From Jie Zhang
1121         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1122
1123 2011-05-04  Nick Clifton  <nickc@redhat.com>
1124
1125         * config/mn10300/mn10300.c: Include cfgloop.h.
1126         (DUMP): New macro.
1127         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1128         Lcc or a FLcc insn into the instruction stream.
1129         (mn10300_block_contains_call): New function.  Returns true if the
1130         given basic block contains a CALL insn.
1131         (mn10300_loop_contains_call_insn): New function.  Returns true if
1132         the given loop contains a CALL insn.
1133         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1134         to use the SETLB and Lcc or FLcc insns.
1135         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1136         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1137         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1138         disable the SETLB optimization.
1139         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1140         __SETLB__ or __NO_SETLB__.
1141         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1142         (movsf_internal): Handle MDR register.
1143         (cmpsi): Make visible.
1144         (setlb): New pattern.
1145         (Lcc): New pattern.
1146         (FLcc): New pattern.
1147
1148 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1149
1150         PR target/48860
1151         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1152         for reg<->xmm moves.
1153         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1154         (vec_concatv2di_rex64_sse): Ditto.
1155         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1156         (*vec_extractv2di_1_rex64): Ditto.
1157
1158         Revert:
1159         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1160
1161         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1162         reg<->xmm moves.
1163         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1164
1165 2011-05-04  Richard Guenther  <rguenther@suse.de>
1166
1167         * tree.h (int_const_binop): Remove notrunc argument.
1168         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1169         create integer constants that are properly truncated.
1170         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1171         (const_binop): Remove zero notrunc argument to int_const_binop.
1172         (size_binop_loc): Likewise.
1173         (fold_div_compare): Likewise.
1174         (maybe_canonicalize_comparison_1): Likewise.
1175         (fold_comparison): Likewise.
1176         (fold_binary_loc): Likewise.
1177         (multiple_of_p): Likewise.
1178         * expr.c (store_constructor): Likewise.
1179         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1180         (maybe_fold_stmt_addition): Likewise.
1181         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1182         * stor-layout.c (layout_type): Likewise.
1183         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1184         * tree-sra.c (build_ref_for_offset): Likewise.
1185         (build_user_friendly_ref_for_offset): Likewise.
1186         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1187         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1188         * tree-ssa-loop-niter.c (inverse): Likewise.
1189         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1190         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1191         * tree-switch-conversion.c (check_range): Likewise.
1192         (build_constructors): Likewise.
1193         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1194         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1195         (extract_range_from_assert): Likewise.
1196         (vrp_int_const_binop): Likewise.
1197         (extract_range_from_binary_expr): Likewise.
1198         (extract_range_from_unary_expr): Likewise.
1199         (check_array_ref): Likewise.
1200         (find_case_label_range): Likewise.
1201         (simplify_div_or_mod_using_ranges): Likewise.
1202         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1203         comparing case labels for merging.
1204
1205 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1206
1207         * dwarf2out.c (debug_str_hash_forced): Removed.
1208         (gen_label_for_indirect_string): Removed.
1209         (get_debug_string_label): Removed.
1210         (AT_string_form): Generate label directly.
1211         (output_indirect_string): Test indirect_string_node for
1212         DW_FORM_strp instead of checking label and refcount.
1213         (prune_indirect_string): Removed.
1214         (prune_unused_types): Don't check debug_str_hash_forced or
1215         call prune_indirect_string.
1216
1217 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1218
1219         PR other/48093
1220         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1221
1222 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1223
1224         PR debug/47994
1225         PR debug/47919
1226         * combine.c (try_combine): Skip debug insns at m_split tests.
1227
1228 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1229
1230         PR42288
1231         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1232         when info_section_emitted.
1233
1234 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1235
1236         * config/mips/mips-opts.h: New.
1237         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1238         to mips-opts.h.
1239         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1240         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1241         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1242         via opts pointer.
1243         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1244         mips-opts.h.
1245         (mips_abi, mips_code_readable): Don't declare.
1246         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1247         (mabi=): Use Enum and Var.
1248         (mips_abi): New Enum and EnumValue entries.
1249         (mcode-readable=): Use Enum and Var.
1250         (mips_code_readable_setting): New Enum and EnumValue entries.
1251         (mr10k-cache-barrier=): Use Enum and Var.
1252         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1253
1254 2011-05-03  Jan Hubicka  <jh@suse.cz>
1255
1256         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1257         replace hash by pointer map.
1258         (cgraph_node_set_element_def, cgraph_node_set_element,
1259         const_cgraph_node_set_element, varpool_node_set_element_def,
1260         varpool_node_set_element, const_varpool_node_set_element): Remove.
1261         (free_cgraph_node_set, free_varpool_node_set): New function.
1262         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1263         * tree-emutls.c: Free varpool node set.
1264         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1265         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1266         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1267         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1268         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1269         Move here from ipa.c; implement using pointer_map
1270         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1271         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1272         debug_cgraph_node_set, varpool_node_set_new,
1273         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1274         dump_varpool_node_set, debug_varpool_node_set):
1275         Move to ipa-uitls.c.
1276         * passes.c (ipa_write_summaries): Update.
1277
1278 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1279
1280         From Mike Frysinger:
1281         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1282         bf542/bf544/bf547/bf548/bf549.
1283
1284 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1285
1286         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1287
1288 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1289
1290         From Bernd Schmidt:
1291         * config/bfin/bfin.md (MOVCC): New mode_macro.
1292         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1293         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1294         comments from generated assembly.
1295
1296 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1297
1298         From Bernd Schmidt
1299         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1300         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1301         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1302         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1303         * config/bfin/lib1funcs.asm (___muldi3): New function.
1304
1305 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1306
1307         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1308         build_function_type_list instead of build_function_type.
1309         Rearrange initialization of `args' to do so.
1310
1311 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1312
1313         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1314         instead of build_function_type.
1315
1316 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1317
1318         * config/rs6000/rs6000.c (spe_init_builtins): Call
1319         build_function_type_list instead of build_function_type.
1320         (paired_init_builtins, altivec_init_builtins): Likewise.
1321         (builtin_function_type): Likewise.
1322
1323 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1324
1325         * config/sh/sh.c (sh_media_init_builtins): Call
1326         build_function_type_list instead of build_function_type.
1327
1328 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1329
1330         * config/sparc/sparc.c (sparc_file_end): Call
1331         build_function_type_list instead of build_function_type.
1332
1333 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1334
1335         * config/alpha/alpha.c (alpha_init_builtins): Call
1336         build_function_type_list instead of build_function_type.
1337
1338 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1339
1340         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1341         build_function_type_list instead of build_function_type.
1342
1343 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1344
1345         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1346         build_function_type_list instead of build_function_type.
1347         Delete `endlink' variable.
1348
1349 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1350
1351         * config/avr/avr.c (avr_init_builtins): Call
1352         build_function_type_list instead of build_function_type.
1353
1354 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1355
1356         * config/picochip/picochip.c (picochip_init_builtins): Call
1357         build_function_type_list instead of build_function_type.
1358         Delete `endlink' variable.
1359
1360 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1361
1362         * config/bfin/bfin.c (bfin_init_builtins): Call
1363         build_function_type_list instead of build_function_type.
1364
1365 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1366
1367         From Bernd Schmidt
1368         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1369         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1370
1371 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1372
1373         From Jie Zhang:
1374         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1375         libbffastfp overrides libgcc when -mfast-fp.
1376
1377 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
1378
1379         Originally from Bernd Schmidt
1380         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1381         * config/bfin/bfin.c (override_options): Test it and error if
1382         TARGET_FDPIC.
1383
1384 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1385
1386         Originally From Bernd Schmidt
1387         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1388         FD-PIC.
1389
1390 2011-05-03  Jeff Law  <law@redhat.com>
1391
1392         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1393         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1394         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1395         than accessing AUX field directly.  Free the AUX field before
1396         clearing it.
1397         (thread_block, thread_through_loop_header): Likewise.
1398         (thread_single_edge, mark_threaded_blocks): Likewise.
1399         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1400         (register_jump_thread): Do not attempt to thread to a NULL edge.
1401
1402 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1403
1404         * function.c (init_function_start): Call decide_function_section.
1405         * varasm.c (decide_function_section): New function.
1406         (assemble_start_function): When not using
1407         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1408         or first_function_block_is_cold.
1409         * rtl.h (decide_function_section): Declare.
1410
1411 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1412             Jakub Jelinek  <jakub@redhat.com>
1413
1414         PR target/48774
1415         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1416         only succeed if req_mode is the same as set_mode.
1417
1418 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1419
1420         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1421         * genemit.c (gen_exp): Handle RETURN.
1422         * emit-rtl.c (verify_rtx_sharing): Likewise.
1423         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1424         * rtl.c (copy_rtx): RETURN is shared.
1425         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1426         (ret_rtx): New.
1427         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1428         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1429         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1430         * config/cris/cris.c (cris_expand_return): Likewise.
1431         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1432         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1433         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1434         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1435         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1436         Likewise.
1437         * config/v850/v850.c (expand_epilogue): Likewise.
1438         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1439         * config/arm/arm.md (epilogue): Likewise.
1440         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1441         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1442         variable to ret_reg.
1443
1444 2011-05-03  Richard Guenther  <rguenther@suse.de>
1445
1446         PR lto/48846
1447         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1448         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1449         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1450
1451 2011-05-03  Richard Guenther  <rguenther@suse.de>
1452
1453         * c-decl.c (grokdeclarator): Instead of looking at
1454         TREE_OVERFLOW check if the constant fits in the index type.
1455
1456 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1457
1458         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1459         (vec_store_lanes<mode><mode>): Likewise.
1460
1461 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1462
1463         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1464         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1465         convert_optab_index values.
1466         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1467         * genopinit.c (optabs): Initialize the new optabs.
1468         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1469         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1470         (expand_STORE_LANES): New functions.
1471         * tree.h (build_array_type_nelts): Declare.
1472         * tree.c (build_array_type_nelts): New function.
1473         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1474         (vect_model_load_cost): Likewise.
1475         (vect_store_lanes_supported, vect_load_lanes_supported)
1476         (vect_record_strided_load_vectors): Declare.
1477         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1478         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1479         (vect_transform_strided_load): Split out statement recording into...
1480         (vect_record_strided_load_vectors): ...this new function.
1481         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1482         (write_vector_array, create_array_ref): New functions.
1483         (vect_model_store_cost): Add store_lanes_p argument.
1484         (vect_model_load_cost): Add load_lanes_p argument.
1485         (vectorizable_store): Try to use store-lanes functions for
1486         interleaved stores.
1487         (vectorizable_load): Likewise load-lanes and loads.
1488         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1489         to vect_model_store_cost.
1490         (vect_build_slp_tree): Likewise vect_model_load_cost.
1491
1492 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1493
1494         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1495         * hooks.c (hook_bool_mode_uhwi_false): New function.
1496         * target.def (array_mode_supported_p): New hook.
1497         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1498         * doc/tm.texi: Regenerate.
1499         * stor-layout.c (mode_for_array): New function.
1500         (layout_type): Use it.
1501         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1502         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1503
1504 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1505
1506         PR target/48723
1507         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1508         for -fstack-check if the size to allocate is negative.
1509
1510 2011-05-02  Lawrence Crowl  <crowl@google.com>
1511
1512         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1513         (timevar_cond_start): New for starting a timer only when it is not
1514         already running.
1515         (timevar_cond_stop): New for stopping a timer when it was not already
1516         running.
1517
1518         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1519         (timevar_cond_start): New as above.
1520         (timevar_cond_stop): New as above.
1521
1522         * timevar.def: Add start/stop timers for compiler phases,
1523         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1524         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1525         and TV_PHASE_FINALIZE.
1526         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1527         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1528         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1529         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1530         Make unused TV_OVERLOAD into a start/stop timer.
1531
1532         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1533         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1534         to indicate that they are start/stop timers.
1535
1536         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1537         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1538         Move initialization to do_compile.
1539         (do_compile): Add initialization from above.
1540         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1541
1542         * c-decl.c (c_write_global_declarations): Add start/stop of
1543         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1544
1545         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1546         or TV_PARSE_INLINE, as appropriate.
1547         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1548         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1549
1550 2011-05-02  Jason Merrill  <jason@redhat.com>
1551
1552         PR c++/40975
1553         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1554
1555 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1556
1557         PR c/35445
1558         * c-decl.c (finish_decl): Only create a composite if the types are
1559         compatible.
1560
1561 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1562
1563         * config/fr30/fr30-protos.h (Mmode): Don't define.
1564         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1565         definition where used.
1566         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1567         define.  Expand definitions where used.
1568         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1569         Expand definitions where used.
1570         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1571         rx_function_arg, rx_function_arg_advance,
1572         rx_function_arg_boundary): Expand definitions of those macros.
1573         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1574         definition where used.
1575
1576 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1577
1578         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1579         reg<->xmm moves.
1580         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1581         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1582         with *movv2sf_internal_rex64_avx.
1583         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1584         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1585         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1586         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1587         "vex" in "prefix" attribute calculation.
1588         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1589
1590 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1591
1592         PR target/47951
1593         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1594         inputs match the output.
1595
1596 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1597
1598         PR target/47955
1599         * config/m68k/m68k.c (m68k_expand_prologue): Set
1600         current_function_static_stack_size.
1601
1602 2011-05-02   Jan Hubicka  <jh@suse.cz>
1603
1604         * lto-streamer.c (lto_streamer_cache_insert_1,
1605         lto_streamer_cache_lookup, lto_streamer_cache_create,
1606         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1607         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1608
1609 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1610
1611         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1612         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1613         config/m68k/t-opts: New files.
1614         * config/m68k/m68k-tables.opt: New file (generated).
1615         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1616         extra_options and m68k/t-opts to tmake_file.
1617         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1618         (all_isas): Initialize using m68k-isas.def.
1619         (all_microarchs): Initialize using m68k-microarchs.def.
1620         (m68k_find_selection): Remove.
1621         (m68k_handle_option): Don't assert that global structures are in
1622         use.  Use error_at.  Access variables via opts pointer.  Don't
1623         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1624         directly for -m68020-40 and -m68020-60.
1625         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1626         m68k_tune_entry here.
1627         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1628         to m68k-opts.h.
1629         (m68k_library_id_string): Remove declaration.
1630         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1631         (m68k_library_id_string): New Variable.
1632         (march=, mcpu=, mtune=): Use Enum and Var.
1633
1634 2011-05-02  Richard Guenther  <rguenther@suse.de>
1635
1636         * varasm.c (output_constructor_regular_field): Compute zero-based
1637         index with double-ints.  Make sure to ICE instead of producing
1638         wrong code.
1639         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1640         in asserts.  Properly use a signed type.
1641
1642 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1643
1644         * config/i386/sse.md (V): New mode iterator.
1645         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1646         TARGET_SSE2.
1647         (V_256): Rename from AVX256MODE.
1648         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1649         condition to all users.
1650         (VF1): Ditto.
1651         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1652         condition to all users.
1653         (VF_128): Make V4SF mode unconditional.
1654         (VF_256): Rename from AVX256MODEF2P.
1655         (VI4F_128): Rename from SSEMODE4S.
1656         (VI8F_128): Rename from SSEMODE2D.
1657         (VI4F_256): Rename from AVX256MODE8P.
1658         (VI8F_256): Rename from AVX256MODE4P.
1659         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1660         (ssescalarmodesuffix): Remove SF and DF modes.
1661         (SSEMODE124): Remove.
1662         (SSEMODE1248): Ditto.
1663         (SSEMODEF2P): Ditto.
1664         (AVXMODEF2P): Ditto.
1665         (AVXMODEFDP): Ditto.
1666         (AVXMODEFSP): Ditto.
1667         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1668         unconditional.
1669         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1670         unconditional.
1671         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1672         xop_pcmov_<mode>256.  Use V mode iterator.
1673
1674         Adjust RTX patterns globally for renamed mode attributes.
1675
1676 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1677
1678         * haifa-sched.c (sched_emit_insn): Emit insn before first
1679         non-scheduled insn.  Inform back-end about new insn.  Add
1680         new insn to scheduled_insns list.
1681
1682 2011-05-02  Richard Guenther  <rguenther@suse.de>
1683
1684         PR tree-optimization/48822
1685         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1686         (process_scc): Indicate which iteration we start.
1687
1688 2011-05-02  Jan Hubicka  <jh@suse.cz>
1689
1690         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1691         (lto_section_overrun): New.
1692         * lto-section-out.c (append_block): Rename to ...
1693         (lto_append_block): ... this one; export.
1694         (lto_output_1_stream): Move lto lto-streamer.h
1695         (lto_output_data_stream): Update.
1696         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1697         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1698         functions.
1699
1700 2011-05-02  Richard Guenther  <rguenther@suse.de>
1701
1702         * tree.c (tree_code_counts): New global array.
1703         (record_node_allocation_statistics): Count individual tree codes.
1704         (dump_tree_statistics): Dump individual code stats.
1705
1706 2011-05-01  Jan Hubicka  <jh@suse.cz>
1707
1708         * ipa-inline.c (caller_growth_limits): Fix thinko when
1709         looking for largest stack frame.
1710         * ipa-inline.h (dump_inline_summary): Declare.
1711         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1712         on stack usage.
1713         (dump_inline_summary): Export.
1714         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1715
1716 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1717
1718         * reginfo.c (memory_move_cost): Change rclass argument type form
1719         'enum reg_class' to reg_class_t.
1720         * reload.h (memory_move_cost): Update prototype.
1721         * postreload.c reload_cse_simplify_set): Change type dclass var to
1722         reg_class_t.
1723         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1724         Update prototype.
1725         (ira_allocate_and_set_costs): Change aclass argument type form
1726         'enum reg_class' to reg_class_t.
1727         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1728         Change aclass argument type to reg_class_t.
1729         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1730         to reg_class_t.
1731         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1732         memory_move_cost call.
1733
1734         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1735         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1736         Change type tmp var to reg_class_t.
1737
1738 2011-04-30  Jan Hubicka  <jh@suse.cz>
1739
1740         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1741         inlining into function with flatten attribute.
1742         (want_inline_small_function_p): Be more realistic about inlining
1743         cold calls where callee size grows.
1744
1745 2011-04-30  Jan Hubicka  <jh@suse.cz>
1746
1747         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1748         flags.
1749
1750 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1751
1752         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1753         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1754         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1755         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1756         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1757         (print_operand): Rename to...
1758         (sparc_print_operand): ...this. Make static. Adjust
1759         sparc_print_operand function call.
1760         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1761         functions.
1762
1763 2011-04-30  Jan Hubicka  <jh@suse.cz>
1764
1765         PR middle-end/48752
1766         * ipa-inline.c (early_inliner): Disable when doing late
1767         addition of function.
1768
1769 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1770
1771         * dwarf2out.c (get_address_mode): New inline.
1772         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1773         if not dwarf_strict emit
1774         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1775         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1776         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1777         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1778         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1779         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1780         mem_loc_descriptor callers.
1781         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1782         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1783         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1784         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1785         (base_types): New variable.
1786         (get_base_type_offset, calc_base_type_die_sizes,
1787         base_type_for_mode, mark_base_types, base_type_cmp,
1788         move_marked_base_types): New functions.
1789         (calc_die_sizes): Assert that die_offset is 0 or equal to
1790         next_die_offset.
1791         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1792         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1793         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1794         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1795         (gen_subprogram_die): Don't give up on call site parameters
1796         with non-integral or large integral modes.  Adjust
1797         mem_loc_descriptor callers.
1798         (prune_unused_types): Call prune_unused_types_mark on base_types
1799         vector entries.
1800         (resolve_addr): Call mark_base_types.
1801         (dwarf2out_finish): Call move_marked_base_types.
1802
1803         PR tree-optimization/48809
1804         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1805         type.
1806         (gen_inbound_check): Don't compute index_expr - range_min in utype
1807         again, instead reuse SSA_NAME initialized in build_arrays.
1808         Remove two useless gsi_for_stmt calls.
1809
1810 2011-04-29  Jeff Law  <law@redhat.com>
1811
1812         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1813
1814 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1815
1816         * cgraph.h (cgraph_postorder): Remove declaration.
1817         * ipa-utils.h (ipa_free_postorder_info): Declare.
1818         (ipa_reverse_postorder): Likewise.
1819         * cgraphunit.c: Include ipa-utils.h.
1820         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1821         * ipa-inline.c: Include ipa-utils.h.
1822         (ipa_inline): Update call to ipa_reverse_postorder.
1823         * ipa-pure-const.c (propagate_pure_const): Update call to
1824         ipa_reduced_postorder and ipa_print_order.  Call
1825         ipa_free_postorder_info to clean up.
1826         (propagate_nothrow): Likewise.
1827         * ipa-reference.c (propagate): Removed a useless call to
1828         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1829         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1830         * ipa.c: Include ipa-utils.h.
1831         (ipa_profile): Update call to ipa_reverse_postorder.
1832         (cgraph_postorder): Moved to...
1833         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1834         (ipa_utils_print_order): Renamed to ipa_print_order.
1835         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1836         comments.
1837         (ipa_free_postorder_info): New function.
1838         * passes.c: Include ipa-utils.h.
1839         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1840         (ipa_write_summaries): Likewise.
1841         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1842         (cgraphunit.o): Likewise.
1843         (ipa.o): Likewise.
1844         (ipa-inline.o): Likewise.
1845
1846 2011-04-29  Jan Hubicka  <jh@suse.cz>
1847
1848         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1849         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1850         * ipa-inline.h (clause_t): Turn into unsigned int.
1851         * ipa-inline-analysis.c (add_clause): Do more simplification.
1852         (and_predicates): Shortcut more cases.
1853         (predicates_equal_p): Move forward; check that clauses are properly
1854         ordered.
1855         (or_predicates): Shortcut more cases.
1856         (edge_execution_predicate): Rewrite as...
1857         (set_cond_stmt_execution_predicate): ... this function; handle
1858         __builtin_constant_p.
1859         (set_switch_stmt_execution_predicate): New .
1860         (compute_bb_predicates): New.
1861         (will_be_nonconstant_predicate): Update TODO.
1862         (estimate_function_body_sizes): Use compute_bb_predicates
1863         and free them later, always try to estimate if stmt is constant.
1864         (estimate_time_after_inlining, estimate_size_after_inlining):
1865         Gracefully handle optimized out edges.
1866         (read_predicate): Fix off by one error.
1867
1868 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1869
1870         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1871
1872 2011-04-27  Xinliang David Li  <davidxl@google.com>
1873
1874         * tree-profile.c (init_ic_make_global_vars): Set
1875         tls attribute on ic vars.
1876         * coverage.c (coverage_end_function): Initialize
1877         function_list with zero.
1878
1879 2011-04-29  Richard Guenther  <rguenther@suse.de>
1880
1881         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1882         for the type of the result.
1883         (fold_builtin_isascii): Likewise.
1884         (fold_builtin_toascii): Use integer_type_node where appropriate.
1885         (fold_builtin_logb): Likewise.
1886         (fold_builtin_frexp): Likewise.
1887         (fold_builtin_strstr): Likewise.
1888         (fold_builtin_strpbrk): Likewise.
1889         (fold_builtin_fputs): Likewise.
1890         (fold_builtin_sprintf): Likewise.
1891         (fold_builtin_snprintf): Likewise.
1892         (fold_builtin_printf): Likewise.
1893         (do_mpfr_remquo): Use a proper type for the assigned constant.
1894         (do_mpfr_lgamma_r): Likewise.
1895         * dwarf2out.c (resolve_one_addr): Use size_int.
1896         * except.c (init_eh): Likewise.
1897         (assign_filter_values): Use integer_type_node for filter values.
1898         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1899         indices.
1900         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1901         for EH region numbers.
1902         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1903         for the shift amount.
1904
1905 2011-04-29  Richard Guenther  <rguenther@suse.de>
1906
1907         * expr.h (expand_shift): Rename to ...
1908         (expand_variable_shift): ... this.
1909         (expand_shift): Take a constant shift amount.
1910         * expmed.c (expand_shift): Rename to ...
1911         (expand_variable_shift): ... this.
1912         (expand_shift): New wrapper around expand_variable_shift.
1913         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1914         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1915         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1916         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1917         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1918         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1919         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1920         emit_store_flag_1, emit_store_flag): Likewise.
1921         * builtins.c (expand_builtin_signbit): Likewise.
1922         * calls.c (load_register_parameters): Likewise.
1923         * function.c (assign_parm_setup_block): Likewise.
1924         * lower-subreg.c (resolve_shift_zext): Likewise.
1925         * optabs.c (widen_bswap, expand_abs_nojump,
1926         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1927         * spu/spu.c (spu_expand_extv): Likewise.
1928         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1929
1930 2011-04-29  Richard Guenther  <rguenther@suse.de>
1931
1932         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1933         for the remapped region number.
1934         * predict.c (build_predict_expr): Use integer_type_node for the
1935         predict kind.
1936         * fold-const.c (fold_binary_loc): Use integer_type_node for
1937         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1938
1939 2011-04-29  Michael Matz  <matz@suse.de>
1940
1941         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1942         other trees that just builtins.
1943         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1944
1945 2011-04-29  Richard Guenther  <rguenther@suse.de>
1946
1947         * tree-nested.c (get_trampoline_type): Use size_int.
1948         (get_nl_goto_field): Likewise.
1949         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1950         for all indexes.
1951         (lower_eh_constructs_2): Likewise.
1952         (lower_resx): Likewise.
1953         (lower_eh_dispatch): Likewise.
1954         * tree-mudflap.c (mf_build_string): Use size_int.
1955         (mudflap_register_call): Use integer_type_node for the flag.
1956         (mudflap_enqueue_constant): Use size_int.
1957         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1958         instead of rebuilding it.
1959
1960 2011-04-29  Richard Guenther  <rguenther@suse.de>
1961
1962         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1963         Handle OBJ_TYPE_REF.
1964         (find_func_aliases_for_call): Use it more consistently.
1965
1966 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1967
1968         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1969         (rank_for_schedule): Use it.
1970         (schedule_block): Set it.
1971
1972 2011-04-28  David Li  <davidxl@google.com>
1973
1974         * tree.c (crc32_string): Use crc32_byte.
1975         (crc32_byte): New function.
1976         * tree.h (crc32_byte): New function.
1977         * gcov.c (read_graph_file): Handle new cfg_cksum.
1978         (read_count_file): Ditto.
1979         * profile.c (instrument_values): Ditto.
1980         (get_exec_counts): Ditto.
1981         (read_profile_edge_counts): Ditto.
1982         (compute_branch_probabilities): Ditto.
1983         (compute_value_histograms): Ditto.
1984         (branch_prob): Ditto.
1985         (end_branch_prob): Ditto.
1986         * coverage.c (read_counts_file): Ditto.
1987         (get_coverage_counts): Ditto.
1988         (tree_coverage_counter_addr): Ditto.
1989         (coverage_checksum_string): Ditto.
1990         (coverage_begin_output): Ditto.
1991         (coverage_end_function): Ditto.
1992         (build_fn_info_type): Ditto.
1993         (build_fn_info_value): Ditto.
1994         * libgcov.c (gcov_exit): Ditto.
1995         * gcov-dump.c (tag_function): Ditto.
1996         (compute_checksum): Remove.
1997
1998 2011-04-29  Alan Modra  <amodra@gmail.com>
1999
2000         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2001         unspec plus offset.  Tidy macho code.
2002
2003 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2004
2005         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2006         node instead of a decl.  Update all callers.
2007         * cgraph.h: Update declaration.
2008
2009 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2010
2011         PR tree-optimization/48765
2012         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2013         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2014         to indicate if loop aware SLP is being used.  Scan the statements
2015         and update the vectorization factor according to the type of
2016         vectorization before statement analysis.
2017         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2018         pass it to vect_analyze_loop_operations.
2019         (vectorizable_reduction): Set number of copies to 1 in case of pure
2020         SLP statement.
2021         * tree-vect-stmts.c (vectorizable_conversion,
2022         vectorizable_assignment, vectorizable_shift,
2023         vectorizable_operation, vectorizable_type_demotion,
2024         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2025         Likewise.
2026         (vectorizable_condition): Move the check that it is not SLP
2027         vectorization before the number of copies check.
2028         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2029         to vectorize the loop using SLP.
2030
2031 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2032
2033         PR middle-end/48597
2034         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2035         inline asm.
2036
2037 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2038
2039         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2040         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2041         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2042         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2043         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2044         linux*.h headers.
2045         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2046         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2047         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2048         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2049         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2050         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2051         REG_NAME.
2052         * config/i386/linux.h (REG_NAME): Don't define.
2053         * config/i386/linux64.h (REG_NAME): Don't define.
2054         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2055         Undefine before defining.
2056
2057 2011-04-28  Jan Hubicka  <jh@suse.cz>
2058
2059         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2060         nonconstant_names array.
2061         (estimate_function_body_sizes): Build nonconstant_names array; handle
2062         BUILT_IN_CONSTANT_P.
2063
2064 2011-04-28  Richard Guenther  <rguenther@suse.de>
2065
2066         PR bootstrap/48804
2067         Revert
2068         2011-04-28  Richard Guenther  <rguenther@suse.de>
2069
2070         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2071         as late as possible.
2072
2073 2011-04-28  Richard Guenther  <rguenther@suse.de>
2074
2075         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2076         (debug_constraint): Do it here.
2077         (dump_constraints): And here.
2078         (rewrite_constraints): And here.
2079         (dump_constraint_edge): Remove.
2080         (dump_constraint_graph): Rewrite to produce DOT output.
2081         (solve_constraints): Build succ graph as late as possible.
2082         Dump constraint graphs before and after solving.
2083
2084 2011-04-28  Richard Guenther  <rguenther@suse.de>
2085
2086         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2087         New function split out from ...
2088         (find_func_aliases): ... here.  Call it.
2089         (find_func_aliases_for_call): Likewise.
2090
2091 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2092
2093         * internal-fn.h (internal_fn_name_array): Declare.
2094         (internal_fn_flags_array): Likewise.
2095
2096 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2097
2098         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2099         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2100         Move from sse.md.
2101         (ssemodefsuffix): Remove.
2102         (ssevecmodesuffix): New mode attribute.
2103         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2104         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2105         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2106         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2107         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2108         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2109         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2110         ssemodesuffix mode attribute.
2111         (float splitters): Use ssevecmodesuffix mode attribute.
2112         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2113         (sseinsmode): Rename from avxvecmode.
2114         (avxsizesuffix): Rename from avxmodesuffix.
2115         (sseintvecmode): Rename from avxpermvecmode.
2116         (ssedoublevecmode): Rename from ssedoublesizemode.
2117         (ssehalfvecmode): Rename from avxhalfvecmode.
2118         (ssescalarmode): Rename from avxscalarmode.
2119         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2120         templates for ssemodesuffix mode attribute.
2121         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2122         mode attribute.
2123
2124         Adjust RTX patterns globally for renamed mode attributes.
2125
2126 2011-04-27  Jan Hubcika  <jh@suse.cz>
2127
2128         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2129         * ipa-inline-analysis.c: Include alloc-pool.h.
2130         (edge_predicate_pool): New.
2131         (trye_predicate_p): New function
2132         (false_predicate_p): New function.
2133         (add_clause): Sanity check that false clauses are "optimized";
2134         never add clauses to predicate that is already known to be false.
2135         (and_predicate): Use flase_predicate_p.
2136         (evaulate_predicate): Rename to ...
2137         (evaluate_predicate): ... this one; update all callers; assert
2138         that false is not listed among possible truths.
2139         (dump_predicate): Use true_predicate_p.
2140         (account_size_time): Use false_predicate_p.
2141         (evaulate_conditions_for_edge): Rename to ...
2142         (evaluate_conditions_for_edge) ... this one.
2143         (edge_set_predicate): New function.
2144         (inline_edge_duplication_hook): Duplicate edge predicates.
2145         (inline_edge_removal_hook): Free edge predicates.
2146         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2147         (dump_inline_summary): Update.
2148         (estimate_function_body_sizes): Set edge predicates.
2149         (estimate_calls_size_and_time): Handle predicates.
2150         (estimate_callee_size_and_time): Update.
2151         (remap_predicate): Add toplev_predicate; update comment.
2152         (remap_edge_predicates): New function.
2153         (inline_merge_summary): Compute toplev predicate; update.
2154         (read_predicate): New function.
2155         (read_inline_edge_summary): Use it.
2156         (inline_read_section): Likewise.
2157         (write_predicate): New function.
2158         (write_inline_edge_summary): Use it.
2159         (inline_write_summary): Likewise.
2160         (inline_free_summary): Free alloc pool and edge summary vec.
2161
2162 2011-04-27  Richard Guenther  <rguenther@suse.de>
2163
2164         * tree-ssa-structalias.c (changed_count): Remove.
2165         (changed): Use a bitmap.
2166         (unify_nodes): Adjust.
2167         (do_sd_constraint): Likewise.
2168         (do_ds_constraint): Likewise.
2169         (do_complex_constraint): Likewise.
2170         (solve_graph): Likewise.
2171
2172 2011-04-27  Jan Hubicka  <jh@suse.cz>
2173
2174         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2175
2176 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2177
2178         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2179         (avx_vperm2f128_*_operand): Ditto.
2180         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2181         Use avx_vpermilp_parallel in insn condition.
2182         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2183         Use avx_vperm2f128_parallel in insn condition.
2184
2185 2011-04-27  Richard Guenther  <rguenther@suse.de>
2186
2187         * Makefile.in (tree-ssa-structalias.o): Remove
2188         gt-tree-ssa-structalias.h dependency.
2189         (GTFILES): Remove tree-ssa-structalias.c.
2190         * tree.c (allocate_decl_uid): New function.
2191         (make_node_stat): Use it.
2192         (copy_node_stat): Likewise.
2193         * tree.h (allocate_decl_uid): Declare.
2194         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2195         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2196         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2197         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2198         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2199         (struct heapvar_map): Likewise.
2200         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2201         heapvar_insert): Likewise.
2202         (make_heapvar_for): Rename to ...
2203         (make_heapvar): ... this.  Simplify.
2204         (fake_var_decl_obstack): New global var.
2205         (build_fake_var_decl): New function.
2206         (make_constraint_from_heapvar): Adjust.
2207         (handle_lhs_call): Likewise.
2208         (create_function_info_for): Likewise.
2209         (intra_create_variable_infos): Likewise.
2210         (init_alias_vars): Allocate fake_var_decl_obstack.
2211         (init_alias_heapvars, delete_alias_heapvars): Remove.
2212         (compute_points_to_sets): Do not call init_alias_heapvars.
2213         (ipa_pta_execute): Likewise.
2214         (delete_points_to_sets): Free fake_var_decl_obstack.
2215
2216 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2217
2218         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2219         (si_from_UTItype, si_to_UTItype): New functions.
2220         (__udivmodti4): Use them to implement type-punning.
2221         * config/spu/multi3.c (union qword_TItype): New data type.
2222         (si_from_TItype, si_to_TItype): New functions.
2223         (__multi3): Use them to implement type-punning.
2224
2225 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2226
2227         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2228
2229 2011-04-27  Jan Hubicka  <jh@suse.cz>
2230
2231         * ipa-prop.c (function_insertion_hook_holder): New holder.
2232         (ipa_add_new_function): New function.
2233         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2234         Register/deregister holder.
2235
2236 2011-04-27  Richard Guenther  <rguenther@suse.de>
2237
2238         PR tree-optimization/48772
2239         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2240
2241 2011-04-27  Richard Guenther  <rguenther@suse.de>
2242
2243         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2244         TARGET_MEM_REF handling.
2245
2246 2011-04-27  Nick Clifton  <nickc@redhat.com>
2247
2248         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2249         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2250         (REG_CLASS_NAMES): Likewise.
2251         (REG_CLASS_CONTENTS): Likewise.
2252         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2253         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2254         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2255         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2256         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2257         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2258         duplicate register classes.
2259         (frv_class_likely_spilled_p): Likewise.
2260         (frv_register_move_cost): Likewise.
2261
2262         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2263         end of the regno_reg_class array.
2264
2265 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2266
2267         PR c/48742
2268         * c-typeck.c (build_binary_op): Don't wrap arguments if
2269         int_operands is true.
2270
2271 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2272
2273         PR target/48767
2274         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2275         targetm.calls.must_pass_in_stack for void type.
2276
2277 2011-04-26  Jan Hubicka  <jh@suse.cz>
2278
2279         * cgraphbuild.c (build_cgraph_edges): Update call
2280         of cgraph_create_edge and cgraph_create_indirect_edge.
2281         * cgraph.c (cgraph_create_edge_including_clones,
2282         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2283         cgraph_update_edges_for_call_stmt_node): Do not take nest
2284         argument; do not initialize call_stmt_size/time.
2285         (dump_cgraph_node): Do not dump nest.
2286         (cgraph_clone_edge): Do not take loop_nest argument;
2287         do not propagate it; do not clone call_stmt_size/time.
2288         (cgraph_clone_node): Likewise.
2289         (cgraph_create_virtual_clone): Update.
2290         * cgraph.h (struct cgraph_edge): Remove
2291         call_stmt_size/call_stmt_time/loop_nest.
2292         (cgraph_create_edge, cgraph_create_indirect_edge,
2293         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2294         prototype.
2295         * tree-emutls.c (gen_emutls_addr): Update.
2296         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2297         loop_nest; handle indirect calls, too.
2298         (clone_inlined_nodes): Do not care about updating inline summaries.
2299         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2300         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2301         stream call_stmt_size/call_stmt_time/loop_nest.
2302         * ipa-inline.c (edge_badness): Update.
2303         (ipa_inline): dump summaries after inlining.
2304         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2305         New.
2306         (inline_edge_summary): New function.
2307         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2308         (inline_edge_removal_hook): Handle edge summaries.
2309         (inline_edge_duplication_hook): New hook.
2310         (inline_summary_alloc): Alloc hooks.
2311         (initialize_growth_caches): Do not register removal hooks.
2312         (free_growth_caches); Do not free removal hook.
2313         (dump_inline_edge_summary): New function.
2314         (dump_inline_summary): Use it.
2315         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2316         (inline_update_callee_summaries): New function.
2317         (inline_merge_summary): Use it.
2318         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2319         (read_inline_edge_summary): New function.
2320         (inline_read_section): Use it.
2321         (write_inline_edge_summary): New function.
2322         (inline_write_summary): Use it.
2323         (inline_free_summary): Free edge new holders.
2324         * tree-inline.c (copy_bb): Update.
2325
2326 2011-04-26  Jason Merrill  <jason@redhat.com>
2327
2328         * tree-eh.c (lower_try_finally_switch): Create the label along with
2329         the CASE_LABEL_EXPR.
2330
2331 2011-04-26  David S. Miller  <davem@davemloft.net>
2332             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2333
2334         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2335         * configure: Regenerate.
2336
2337 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2338
2339         PR target/48258
2340         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2341         reduction.
2342         (VEC_reduc): New code iterator and splitters for vector reduction.
2343         (VEC_reduc_name): Ditto.
2344         (VEC_reduc_rtx): Ditto.
2345         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2346         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2347
2348         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2349         support for extracting SF on VSX.
2350
2351         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2352         generating xscvspdp.
2353         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2354         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2355         double add, minimum, maximum vector reduction.
2356         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2357         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2358         optimize double vector reduction.
2359         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2360
2361 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2362
2363         * config/fr30/fr30.h (inhibit_libc): Don't define.
2364         * config/m32r/m32r-protos.h: Correct comment.
2365         * config/v850/v850.h (GHS_default_section_names,
2366         GHS_current_section_names): Use tree, not union tree_node *.
2367
2368 2011-04-26  Xinliang David Li  <davidxl@google.com>
2369
2370         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2371         * c-family/c-opts.c (c_common_handle_option): Set
2372         warn_maybe_uninitialized.
2373         * opts.c (common_handle_option): Ditto.
2374         * common.opt:  New option.
2375         * tree-ssa.c (warn_uninit): Add one more parameter.
2376         (warn_uninitialized_var): Pass warning code.
2377         * tree-flow.h: Interface change.
2378
2379
2380 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2381
2382         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2383         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2384         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2385
2386 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2387
2388         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2389         * config/mips/mips.opt (mmips-tfile): Remove.
2390
2391         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2392         mips-tdump reference to ...
2393         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2394         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2395         reference by Tru64 UNIX.
2396
2397 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2398
2399         PR debug/48768
2400         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2401         is error_mark_node, set value to NULL.
2402
2403         PR tree-optimization/48734
2404         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2405         if return value from maybe_fold_*_comparsions isn't something
2406         the code is prepared to handle.
2407
2408 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2409
2410         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2411         mode check.
2412         (ext_QIreg_nomode_operands): Remove.
2413         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2414         (*andsi_1): Ditto.
2415         (*andhi_1): Ditto.
2416
2417 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2418
2419         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2420
2421 2011-04-26  Richard Guenther  <rguenther@suse.de>
2422
2423         * c-typeck.c (build_unary_op): Do not expand array-refs via
2424         pointer arithmetic.  Only adjust qualifiers for function types.
2425
2426 2011-04-26  Richard Guenther  <rguenther@suse.de>
2427
2428         PR middle-end/48694
2429         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2430         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2431         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2432         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2433
2434 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2435
2436         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2437         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2438         * doc/extend.texi: Document __underlying_type.
2439
2440 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2441
2442         * config/rs6000/titan.md (automata_option "progress"): Remove.
2443
2444 2011-04-25  Jeff Law  <law@redhat.com>
2445
2446         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2447
2448 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2449
2450         * system.h (ENUM_BITFIELD): Remove.
2451
2452 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2453             Eric Botcazou  <ebotcazou@adacore.com>
2454
2455         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2456         for STORE_FLAG_VALUE==-1 case.
2457
2458 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2459
2460         PR target/43804
2461         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2462         LEGITIMATE_PIC_OPERAND_P.
2463
2464 2011-04-24  Jan Hubicka  <jh@suse.cz>
2465
2466         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2467         WPA hack.
2468         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2469         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2470         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2471         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2472         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2473         Sanity check predicate length.
2474         (remap_predicate): Likewise; sanity check jump functions.
2475         (inline_read_section, inline_write_summary): Sanity check
2476         predicate length.
2477
2478 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2479
2480         PR other/48748
2481         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2482         __is_literal_type, and __is_trivial; update throughout about
2483         possibly cv-qualified void types.
2484
2485 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2486
2487         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2488         testsuite and make it version agnostic.
2489
2490 2011-04-22  Jan Hubicka  <jh@suse.cz>
2491
2492         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2493
2494 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2495
2496         PR c/48685
2497         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2498         to VOID_TYPE even around MODIFY_EXPR.
2499
2500 2011-04-22  Mike Stump  <mikestump@comcast.net>
2501
2502         * gensupport.c (read_md_rtx): Fix typo in comment.
2503         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2504         comment.
2505
2506 2011-04-22  Jan Hubicka  <jh@suse.cz>
2507
2508         * gengtype.c (open_base_files): Add ipa-inline.h include.
2509         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2510         ipa-prop.c; update all uses.
2511         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2512         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2513         merge summary of inlined function into former caller.
2514         * ipa-inline.c (max_benefit): Remove.
2515         (edge_badness): Compensate for removal of benefits.
2516         (update_caller_keys): Use
2517         reset_node_growth_cache/reset_edge_growth_cache.
2518         (update_callee_keys): Likewise.
2519         (update_all_callee_keys): Likewise.
2520         (inline_small_functions): Do not collect max_benefit; do not reset
2521         estimated_growth; call free_growth_caches and initialize_growth_caches.
2522         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2523         struct size_time_entry): New structures.
2524         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2525         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2526         and estimated_growth.
2527         (edge_growth_cache_entry): New structure.
2528         (node_growth_cache, edge_growth_cache): New global vars.
2529         (estimate_growth): Turn into inline.
2530         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2531         initialize_growth_caches, free_growth_caches): Declare.
2532         (estimate_edge_growth): Rewrite.
2533         (estimate_edge_time): Implement as inline cache lookup.
2534         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2535         functions.
2536         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2537         (NUM_CONDITIONS): New constant.
2538         (predicate_conditions): New enum.
2539         (IS_NOT_CONSTANT): New constant.
2540         (edge_removal_hook_holder): New var.
2541         (node_growth_cache, edge_growth_cache): New global vars.
2542         (true_predicate, single_cond_predicate, false_predicate,
2543         not_inlined_predicate, add_condition, add_clause, and_predicates,
2544         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2545         dump_clause, dump_predicate, account_size_time,
2546         evaulate_conditions_for_edge): New functions.
2547         (inline_summary_alloc): Move to heap.
2548         (inline_node_removal_hook): Clear condition and entry vectors.
2549         (inline_edge_removal_hook): New function.
2550         (initialize_growth_caches, free_growth_caches): New function.
2551         (dump_inline_summary): Update.
2552         (edge_execution_predicate): New function.
2553         (will_be_nonconstant_predicate): New function.
2554         (estimate_function_body_sizes): Compute BB and constantness predicates.
2555         (compute_inline_parameters): Do not clear estimated_growth.
2556         (estimate_edge_size_and_time): New function.
2557         (estimate_calls_size_and_time): New function.
2558         (estimate_callee_size_and_time): New function.
2559         (remap_predicate): New function.
2560         (inline_merge_summary): New function.
2561         (do_estimate_edge_time): New function based on...
2562         (estimate_edge_time): ... this one.
2563         (do_estimate_edge_growth): New function.
2564         (do_estimate_growth): New function based on....
2565         (estimate_growth): ... this one.
2566         (inline_analyze_function): Analyze after deciding on jump functions.
2567         (inline_read_section): New function.
2568         (inline_read_summary): Use it.
2569         (inline_write_summary): Write all the new data.
2570         * ipa-prop.c (ipa_get_param_decl_index): Export.
2571         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2572         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2573         Declare.
2574         (ipa_get_lattice): Move here from ipa-cp.c
2575         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2576         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2577         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2578         cgraph_edge_inlinable_p): Remove.
2579         * cgraphunit.c: Include ipainline.h
2580         (cgraph_process_new_functions): Update call of
2581         compute_inline_parameters.
2582
2583 2011-04-22  Richard Guenther  <rguenther@suse.de>
2584
2585         * tree.c (build_int_cst): Properly create canonicalized integer
2586         constants.
2587         (build_int_cst_type): Remove scary comments.
2588
2589 2011-04-22  Xinliang David Li  <davidxl@google.com>
2590
2591         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2592         by default when -Wno-error is not specified.
2593         * opts-global.c (decode_options): Remove call to
2594         control_warning_options.
2595
2596 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2597
2598         PR tree-optimization/48717
2599         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2600         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2601
2602 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2603
2604         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2605         definition where used.
2606
2607 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2608
2609         PR c/48716
2610         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2611         TREE_STATIC variables declared inside of some OpenMP construct.
2612
2613 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2614
2615         PR middle-end/48585
2616         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2617
2618 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2619
2620         PR c/36750
2621         * c-typeck.c (pop_init_level): Do not warn about initializing
2622         with ` = {0}'.
2623
2624 2011-04-22  Alan Modra  <amodra@gmail.com>
2625
2626         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2627         when returning call_cookie.
2628         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2629         pointers, to functions with no more vector args than the current
2630         function, and some non-local calls for ABI_V4.
2631         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2632         sibcall_nonlocal_aix64): Combine to ..
2633         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2634         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2635         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2636         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2637         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2638         operand.
2639         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2640         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2641         sibcall_value_symbolic_64): Delete.
2642
2643 2011-04-21  Xinliang David Li  <davidxl@google.com>
2644
2645         * cgraph.h: Remove pid.
2646         * cgraph.c: Remove pid.
2647         * value-prof.c (init_node_map): New function.
2648         (del_node_map): New function.
2649         (find_func_by_funcdef_no): New function.
2650         (gimple_ic_transform): Call new function.
2651         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2652         * function.c (get_last_funcdef_no): New function.
2653         * function.h (get_last_funcdef_no): New function.
2654         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2655         to libgcov function.
2656         (tree-profiling): Call node map init and delete function.
2657
2658 2011-04-21  Ian Lance Taylor  <iant@google.com>
2659
2660         * godump.c (go_format_type): Use exported Go name for anonymous
2661         field name.
2662
2663 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2664
2665         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2666         Call builtin_function_type_list instead of builtin_function_type.
2667         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2668
2669 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2670
2671         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2672         build_function_type_list instead of build_function_type.
2673         Delete variable `endlink'.
2674
2675 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2676
2677         * config/s390/s390.c (s390_init_builtins): Call
2678         build_function_type_list instead of build_function_type.
2679
2680 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2681
2682         * config/ia64/ia64.c (ia64_init_builtins): Call
2683         build_function_type_list instead of builtin_function_type.
2684
2685 2011-04-21  Easwaran Raman  <eraman@google.com>
2686
2687         * cfgexpand.c (stack_var): Remove OFFSET...
2688         (add_stack_var): ...and its reference here...
2689         (expand_stack_vars): ...and here.
2690         (stack_var_cmp): Sort by descending order of size.
2691         (partition_stack_vars): Change heuristic.
2692         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2693         (dump_stack_var_partition): Add newline after each partition.
2694
2695 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2696             Jeff Law  <law@redhat.com>
2697
2698         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2699         * gengtype.c (matching_file_name_substitute): Likewise.
2700
2701 2011-04-21  Richard Guenther  <rguenther@suse.de>
2702
2703         PR lto/48703
2704         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2705
2706 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2707
2708         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2709
2710 2011-04-21  Richard Guenther  <rguenther@suse.de>
2711
2712         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2713         file name.
2714
2715 2011-04-21  Richard Guenther  <rguenther@suse.de>
2716
2717         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2718         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2719         Use DECL_P, not SSA_VAR_P.
2720         (ptr_derefs_may_alias_p): Likewise.
2721         (ptr_deref_may_alias_ref_p_1): Likewise.
2722         (decl_refs_may_alias_p): Likewise.
2723         (refs_may_alias_p_1): Likewise.
2724         (ref_maybe_used_by_call_p_1): Likewise.
2725         (call_may_clobber_ref_p_1): Likewise.
2726         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2727         are either MEM_REF or TARGET_MEM_REF.
2728         (indirect_refs_may_alias_p): Likewise.
2729         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2730         for MEM_EXPR of indirect calls.
2731
2732 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2733
2734         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2735         (dst_file_info_struct): Remove flen field.
2736         (lookup_filename): Remove code that set flen field.
2737
2738 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2739
2740         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2741
2742 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2743
2744         PR target/48708
2745         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2746         vec_extract and vec_concat for non-SSE4_1 targets.
2747
2748 2011-04-21  Richard Guenther  <rguenther@suse.de>
2749
2750         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2751         return statements.
2752
2753 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2754
2755         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2756         undefine.
2757         (FILE): Don't undefine.
2758
2759 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2760
2761         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2762         struct rtx_def *.
2763         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2764         struct rtx_def *.
2765         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2766         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2767         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2768         rtx_def *.
2769         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2770         definitions where used.
2771         * config/microblaze/microblaze.h (struct microblaze_args): Use
2772         rtx, not struct rtx_def *.
2773         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2774         rtx_def *.
2775         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2776         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2777         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2778         not struct rtx_def *.
2779         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2780         struct rtx_def *.
2781         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2782         rtx_def *.
2783         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2784
2785 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2786
2787         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2788         operand_equal_p to compare DR_BASE_ADDRESSes.
2789         (vect_check_interleaving): Likewise.
2790
2791 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2792
2793         PR target/46329
2794         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2795         for all Neon struct constants.
2796
2797 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2798
2799         * target.def (legitimate_constant_p): New hook.
2800         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2801         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2802         * doc/tm.texi: Regenerate.
2803         * hooks.h (hook_bool_mode_rtx_true): Declare.
2804         * hooks.c (hook_bool_mode_rtx_true): Define.
2805         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2806         * calls.c (precompute_register_parameters): Replace uses of
2807         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2808         (emit_library_call_value_1): Likewise.
2809         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2810         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2811         * ira-costs.c (scan_one_insn): Likewise.
2812         * recog.c (general_operand, immediate_operand): Likewise.
2813         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2814         * reload1.c (init_eliminable_invariants): Likewise.
2815
2816         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2817         mode argument.
2818         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2819         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2820         argument.
2821         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2822         * config/alpha/predicates.md (input_operand): Update call to
2823         alpha_legitimate_constant_p.
2824
2825         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2826         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2827         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2828         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2829         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2830         (arm_legitimate_constant_p): New functions.
2831         (arm_cannot_force_const_mem): Make static.
2832
2833         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2834
2835         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2836         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2837         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2838         instead of bfin_legitimate_constant_p.
2839         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2840         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2841
2842         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2843
2844         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2845
2846         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2847         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2848         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2849         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2850
2851         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2852         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2853         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2854
2855         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2856         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2857         * config/i386/i386.c (legitimate_constant_p): Rename to...
2858         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2859         argument.
2860         (ix86_cannot_force_const_mem): Update accordingly.
2861         (ix86_legitimate_address_p): Likewise.
2862         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2863         * config/i386/i386.md: Update commentary.
2864
2865         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2866         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2867         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2868         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2869
2870         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2871
2872         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2873         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2874         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2875         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2876
2877         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2878         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2879         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2880
2881         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2882         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2883         (m32r_legitimate_constant_p): New function.
2884
2885         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2886         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2887         LEGITIMATE_CONSTANT_P.
2888         (LEGITIMATE_CONSTANT_P): Delete.
2889         * config/m68k/m68k.c (m68k_expand_prologue): Call
2890         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2891         (m68k_legitimate_constant_p): New function.
2892         * config/m68k/m68k.md: Update comments.
2893
2894         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2895         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2896         (mcore_legitimate_constant_p): New function.
2897
2898         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2899         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2900         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2901         Add a mode argument.
2902         (mep_legitimate_address): Update accordingly.
2903         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2904
2905         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2906         Delete.
2907         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2908         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2909         static.  Check OP's mode for VOIDmode.
2910         (microblaze_legitimate_constant_p): New function.
2911         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2912
2913         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2914         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2915         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2916         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2917         * config/mips/predicates.md: Update comments.
2918
2919         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2920         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2921         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2922         (mmix_legitimate_constant_p): Make static, return a bool, and take
2923         a mode argument.
2924         (mmix_print_operand_address): Update accordingly.
2925
2926         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2927         Delete.
2928         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2929         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2930         static.  Add a mode argument.
2931         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2932
2933         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2934
2935         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2936         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2937         (pa_legitimate_constant_p): New function.
2938
2939         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2940
2941         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2942         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2943         (pdp11_legitimate_constant_p): New function.
2944
2945         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2946         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2947         (rs6000_legitimate_constant_p): New function.
2948
2949         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2950         (rx_legitimate_constant_p): ...this.
2951         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2952         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2953         (rx_legitimate_constant_p): ...this.
2954         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2955         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2956
2957         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2958         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2959         * config/s390/s390.c (legitimate_constant_p): Rename to...
2960         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2961         and add a mode argument.
2962         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2963
2964         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2965
2966         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2967         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2968         (sh_legitimate_constant_p): New function.
2969
2970         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2971         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2972         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2973         (legitimate_constant_p): Rename to...
2974         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2975         argument.
2976         (constant_address_p): Update accordingly.
2977
2978         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2979         argument and return a bool.
2980         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2981         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2982         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2983         (spu_rtx_costs): Update accordingly.
2984         * config/spu/predicates.md (vec_imm_operand): Likewise.
2985
2986         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2987
2988         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2989         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2990         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2991
2992         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2993         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2994         * config/vax/vax.c (legitimate_constant_p): Likewise.
2995
2996         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2997         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2998         (xtensa_legitimate_constant_p): New function.
2999
3000 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3001
3002         * target.def (cannot_force_const_mem): Add a mode argument.
3003         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3004         * doc/tm.texi: Regenerate.
3005         * hooks.h (hook_bool_mode_rtx_false): Declare.
3006         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3007         (hook_bool_mode_const_rtx_true): Likewise.
3008         (hook_bool_mode_rtx_false): New function.
3009         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3010         to be non-VOID.  Update call to cannot_force_const_mem.
3011         (find_reloads): Update accordingly.
3012         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3013         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3014         argument.
3015         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3016         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3017         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3018         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3019         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3020         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3021         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3022         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3023         (m68k_cannot_force_const_mem): ...this new function.
3024         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3025         argument.
3026         (mips_const_insns, mips_legitimize_const_move): Update calls.
3027         (mips_secondary_reload_class): Likewise.
3028         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3029         (pa_cannot_force_const_mem): ...this new function.
3030         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3031         (rs6000_cannot_force_const_mem): ...this new function.
3032         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3033         argument.
3034         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3035         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3036         to...
3037         (xtensa_cannot_force_const_mem): ...this new function.
3038
3039 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3040
3041         * config/mips/mips.c (mips16_build_function_stub): Call
3042         build_function_type_list instead of build_function_type.
3043         (mips16_build_call_stub): Likewise.
3044
3045 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3046
3047         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3048         instead of build_function_type.
3049
3050 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3051
3052         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3053         instead of build_function_type.
3054
3055 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3056
3057         PR target/48678
3058         * config/i386/i386.md (insv): Change operand 0 constraint to
3059         "register_operand".  Change operand 1 and 2 constraint to
3060         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3061         * config/i386/sse.md (sse4_1_pinsrb): Export.
3062         (sse2_pinsrw): Ditto.
3063         (sse4_1_pinsrd): Ditto.
3064         (sse4_1_pinsrq): Ditto.
3065         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3066         * config/i386/i386.c (ix86_expand_pinsr): New.
3067
3068 2011-04-20  Easwaran Raman  <eraman@google.com>
3069
3070         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3071         containing union type only with -fstrict-aliasing.
3072
3073 2011-04-20  Jim Meyering  <meyering@redhat.com>
3074
3075         Remove useless if-before-free tests.
3076         * calls.c (expand_call, save_area): Likewise.
3077         * cfgcleanup.c (try_forward_edges): Likewise.
3078         * collect2.c (collect_execute): Likewise.
3079         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3080         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3081         * coverage.c (coverage_checksum_string): Likewise.
3082         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3083         * cselib.c (cselib_init): Likewise.
3084         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3085         (df_set_clean_cfg): Likewise.
3086         * function.c (free_after_compilation): Likewise.
3087         * gcc.c (do_spec_1, main): Likewise.
3088         * gcov.c (create_file_names): Likewise.
3089         * gensupport.c (identify_predicable_attribute): Likewise.
3090         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3091         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3092         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3093         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3094         * ipa-pure-const.c (local_pure_const): Likewise.
3095         * ipa-reference.c (propagate): Likewise.
3096         * ira-costs.c (free_ira_costs): Likewise.
3097         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3098         * matrix-reorg.c (mat_free): Likewise.
3099         * prefix.c (get_key_value): Likewise.
3100         * profile.c (compute_value_histograms): Likewise.
3101         * reload1.c (free_reg_equiv): Likewise.
3102         * sched-deps.c (free_deps): Likewise.
3103         * sel-sched-ir.c (fence_clear): Likewise.
3104         * sese.c (set_rename, if_region_set_false_region): Likewise.
3105         * tree-data-ref.c (free_rdg): Likewise.
3106         * tree-eh.c (lower_try_finally): Likewise.
3107         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3108         * tree-ssa-live.c (delete_var_map): Likewise.
3109         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3110         * tree-ssa-pre.c (phi_trans_add): Likewise.
3111
3112 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3113
3114         PR tree-optimization/48611
3115         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3116         beyond ERT_MUST_NOT_THROW region.
3117
3118 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3119
3120         * config/mips/mips.opt (mfix-24k): New.
3121         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3122         * config/mips/mips.md (length): Increase by 4 for stores if
3123         fixing 24K errata.
3124         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3125         all noreorder if fixing 24K errata.
3126         * doc/invoke.texi: Document mfix-24k.
3127
3128 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3129
3130         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3131         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3132
3133 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3134
3135         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3136         (const_ok_for_op): ... to here.
3137
3138 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3139
3140         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3141         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3142
3143 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3144
3145         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3146
3147 2011-04-20  Richard Guenther  <rguenther@suse.de>
3148
3149         PR tree-optimization/47892
3150         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3151         are if-convertible.
3152
3153 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3154
3155         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3156
3157 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3158
3159         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3160
3161 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3162
3163         PR target/18145
3164
3165         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3166         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3167         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3168         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3169         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3170
3171         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3172         New prototype.
3173
3174         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3175         (avr_asm_named_section, avr_asm_output_aligned_common,
3176         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3177         New functions to update...
3178         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3179         (avr_asm_init_sections): Overwrite section callbacks for
3180         data_section, bss_section.
3181         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3182         from here to...
3183         (avr_file_end): ...here.
3184
3185 2011-04-20  Richard Guenther  <rguenther@suse.de>
3186
3187         PR middle-end/48695
3188         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3189         objects and types here.  Adjust for their offset before comparing.
3190
3191 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3192
3193         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3194         statement per copy.
3195
3196 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3197
3198         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3199         (GIMPLE_H): Include $(INTERNAL_FN_H).
3200         (OBJS-common): Add internal-fn.o.
3201         (internal-fn.o): New rule.
3202         * internal-fn.def: New file.
3203         * internal-fn.h: Likewise.
3204         * internal-fn.c: Likewise.
3205         * gimple.h: Include internal-fn.h.
3206         (GF_CALL_INTERNAL): New gf_mask.
3207         (gimple_statement_call): Put fntype into a union with a new
3208         internal_fn field.
3209         (gimple_build_call_internal): Declare.
3210         (gimple_build_call_internal_vec): Likewise.
3211         (gimple_call_same_target_p): Likewise.
3212         (gimple_call_internal_p): New function.
3213         (gimple_call_internal_fn): Likewise.
3214         (gimple_call_fntype): Return null for internal calls.
3215         (gimple_call_set_fntype): Assert that the function is not internal.
3216         (gimple_call_set_fn): Likewise.
3217         (gimple_call_set_fndecl): Likewise.
3218         (gimple_call_set_internal_fn): New function.
3219         (gimple_call_addr_fndecl): Handle null functions.
3220         (gimple_call_return_type): Likewise null types.
3221         * gimple.c (gimple_build_call_internal_1): New function.
3222         (gimple_build_call_internal): Likewise.
3223         (gimple_build_call_internal_vec): Likewise.
3224         (gimple_call_same_target_p): Likewise.
3225         (gimple_call_flags): Handle calls to internal functions.
3226         (gimple_call_fnspec): New function.
3227         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3228         (gimple_has_side_effects): Handle null functions.
3229         (gimple_rhs_has_side_effects): Likewise.
3230         (gimple_call_copy_skip_args): Handle calls to internal functions.
3231         * cfgexpand.c (expand_call_stmt): Likewise.
3232         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3233         * gimple-fold.c (gimple_fold_call): Handle null functions.
3234         (gimple_fold_stmt_to_constant_1): Don't fold
3235         calls to internal functions.
3236         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3237         functions.
3238         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3239         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3240         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3241         (do_warn_unused_result): Likewise.
3242         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3243         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3244         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3245         the target of a call.
3246         (initialize_hash_element): Update accordingly.
3247         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3248         (iterative_hash_hashable_expr): Handle calls to internal functions.
3249         (print_expr_hash_elt): Likewise.
3250         * tree-ssa-pre.c (can_value_number_call): Likewise.
3251         (eliminate): Handle null functions.
3252         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3253         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3254         (find_func_aliases): Likewise.
3255         * value-prof.c (gimple_ic_transform): Likewise.
3256         (gimple_indirect_call_to_profile): Likewise.
3257         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3258         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3259
3260 2011-04-19  Jan Hubicka  <jh@suse.cz>
3261
3262         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3263         * ipa-inline.c (inline_small_functions): Compute summaries first,
3264         populate heap later.
3265
3266 2011-04-19  Jan Hubicka  <jh@suse.cz>
3267
3268         * cgraph.h (save_inline_function_body): Remove.
3269         * ipa-inline-transform.c: New file, broke out of...
3270         * ipa-inline.c: ... this one; Update toplevel comment.
3271         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3272         make global.
3273         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3274         (cgraph_mark_inline_edge): Rename to inline_call; move to
3275         ipa-inline-transform.c.
3276         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3277         move to ipa-inline-transform.c
3278         (recursive_inlining, inline_small_functions, flatten_function,
3279         ipa_inline, inline_always_inline_functions,
3280         early_inline_small_functions): Update.
3281         (inline_transform): Move to ipa-inline-transform.c.
3282         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3283         Declare.
3284         * Makefile.in (ipa-inline-transform.o): New file.
3285         * cgraphunit.c (save_inline_function_body): Move to
3286         ipa-inline-transform.c
3287
3288 2011-04-19  DJ Delorie  <dj@redhat.com>
3289
3290         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3291         registers if we already know there aren't any.
3292         (m32c_emit_epilogue): Don't emit a barrier here.
3293         (m32c_emit_eh_epilogue): Likewise.
3294         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3295         operands at expand time.
3296         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3297         int" wchar type.
3298         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3299         duplicates.  Provide aliases instead.
3300         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3301         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3302         the compiler.
3303
3304 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3305
3306         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3307         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3308         (general_or_i64_p, sparc_register_move_cost): New function.
3309
3310 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3311
3312         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3313         Add lynx, mipssde.  Sort table.
3314
3315 2011-04-19  Xinliang David Li  <davidxl@google.com>
3316
3317         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3318         not negative.
3319
3320 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3321
3322         PR target/48678
3323         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3324         is a SUBREG with non-MODE_INT mode inside of it.
3325
3326 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3327
3328         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3329         also according to actual contants.
3330         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3331         (gimple_fold_call): Use it.
3332         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3333
3334 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3335
3336         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3337         non-pointer assignments.
3338
3339 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3340
3341         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3342         account anc_offset and otr_type from the indirect edge info.
3343         * ipa-prop.c (get_ancestor_addr_info): New function.
3344         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3345         get_ancestor_addr_info, call it.
3346         (ipa_note_param_call): Do not initialize information about polymorphic
3347         calls, return the indirect call graph edge.  Remove the last
3348         parameter, adjust all callers.
3349         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3350         parameters.  Initialize polymorphic information in the indirect edge.
3351
3352 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3353
3354         PR lto/48148
3355         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3356         the types if they have different enumeration identifiers.
3357
3358 2011-04-19  Jan Hubicka  <jh@suse.cz>
3359
3360         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3361         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3362         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3363         (optimize_function_for_size_p) ... here.
3364
3365 2011-04-19  Richard Guenther  <rguenther@suse.de>
3366
3367         PR lto/48207
3368         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3369         langhook.
3370
3371 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3372
3373         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3374         if DECL_NO_INLINE_WARNING_P is set on the function.
3375
3376 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3377
3378         PR fortran/47976
3379         * reload1.c (inc_for_reload): Return void. All callers changed.
3380         (emit_input_reload_insns): Don't try to delete previous output
3381         reloads to a register, or record spill_reg_store for autoincs.
3382
3383 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3384
3385         * gengtype.h: Updated copyright year.
3386         (struct input_file_st): Add inpisplugin field.
3387         (type_fileloc): New function.
3388         * gengtype.c
3389         (write_typed_struct_alloc_def): Add gcc_assert.
3390         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3391         (write_typed_alloc_defns): Don't output for plugin files.
3392         (input_file_by_name): Clear inpisplugin field.
3393         (main): Set inpisplugin field for plugin files.
3394
3395 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3396
3397         * gengtype-state.c (string_eq): New.
3398         (read_state): Use string_eq instead of strcmp when creating the
3399         state_ident_tab.
3400
3401 2011-04-19  Wei Guozhi  <carrot@google.com>
3402
3403         PR target/47855
3404         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3405         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3406         linkage.
3407         * config/arm/constraints.md (Uu): New constraint.
3408         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3409
3410 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3411
3412         * config.gcc (-*-*-*vms): Added.
3413         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3414         definitions moved.
3415         * config/vms/vms-ld.c: New file.
3416         * config/vms/vms-ar.c: New file.
3417         * config/vms/t-vmsnative: New file.
3418
3419 2011-04-18  Xinliang David Li  <davidxl@google.com>
3420
3421         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3422
3423 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3424
3425         PR middle-end/48661
3426         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3427         if TREE_TYPE (v) is non-NULL.
3428
3429         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3430         gimple_get_virt_mehtod_for_binfo.
3431         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3432         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3433         callers.
3434         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3435
3436 2011-04-18  Michael Matz  <matz@suse.de>
3437             Steve Ellcey  <sje@cup.hp.com>
3438
3439         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3440         use its mode as source mode if it isn't VOIDmode.
3441
3442 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3443
3444         * doc/passes.texi: Fill crossref nodes.
3445
3446 2011-04-18  Jim Meyering  <meyering@redhat.com>
3447
3448         Fix doubled-word typos in comments and strings
3449         * config/alpha/vms-unwind.h: s/for for/for/
3450         * config/arm/unwind-arm.h: Likewise.
3451         * config/microblaze/microblaze.c: Likewise.
3452         * config/sh/constraints.md: s/in in/in/
3453         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3454
3455 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3456
3457         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3458         (AVX_FLOAT_MODE_P): Ditto.
3459         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3460         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3461         (AVX_VEC_FLOAT_MODE_P): Ditto.
3462         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3463         (UNSPEC_MASKSTORE): Ditto.
3464         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3465         Merge from <sse>_movmsk<ssemodesuffix> and
3466         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3467         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3468         iterator.
3469         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3470         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3471         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3472
3473 2011-04-18  Jan Hubicka  <jh@suse.cz>
3474
3475         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3476
3477         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3478         (want_inline_function_called_once_p): Break out the logic from
3479         ipa_inline.
3480         (edge_badness): Ensure that profile is not misupdated.
3481         (lookup_recursive_calls): Prioritize by call frequencies.
3482         (inline_small_functions): Move program size estimates here;
3483         actually process whole queue even when unit growth has been
3484         met. (to properly compute inline_failed reasons and for the
3485         case unit size decrease.) Revisit comments on recursive inlining.
3486         (ipa_inline): Remove unit summary code; first inline hot calls
3487         of functions called once, cold calls next.
3488         (order, nnodes): Remove unused variables.
3489         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3490         (GTFILES): Remove ipa-inline.c
3491         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3492
3493 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3494
3495         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3496
3497 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3498             Richard Earnshaw  <rearnsha@arm.com>
3499
3500         * arm.c (neon_builtin_type_bits): Remove.
3501         (typedef enum neon_builtin_mode): New.
3502         (T_MAX): Don't define.
3503         (typedef enum neon_builtin_datum): Remove bits, codes[],
3504         num_vars and base_fcode.  Add mode, code and fcode.
3505         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3506         VAR10): Change accordingly.
3507         (neon_builtin_data[]): Change accordingly
3508         (arm_init_neon_builtins): Change accordingly.
3509         (neon_builtin_compare): Remove.
3510         (locate_neon_builtin_icode): Remove.
3511         (arm_expand_neon_builtin): Change accordingly.
3512
3513         * arm.h (enum arm_builtins): Move to ...
3514         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3515
3516         * arm.c (arm_builtin_decl): Declare.
3517         (TARGET_BUILTIN_DECL): Define.
3518         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3519         (arm_builtin_decls[]): New.
3520         (arm_init_neon_builtins): Store builtin declarations in
3521         arm_builtin_decls[].
3522         (arm_init_tls_builtins): Likewise.
3523         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3524         (arm_builtin_decl): New.
3525
3526 2011-04-18  Richard Guenther  <rguenther@suse.de>
3527
3528         * tree.c (upper_bound_in_type): Build properly canonicalized
3529         INTEGER_CSTs.
3530         (lower_bound_in_type): Likewise.
3531
3532 2011-04-18  Richard Guenther  <rguenther@suse.de>
3533
3534         * gimple.h (gimple_call_addr_fndecl): New function.
3535         (gimple_call_fndecl): Use it.
3536         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3537         for direct calls.
3538         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3539         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3540
3541 2011-04-18  Richard Guenther  <rguenther@suse.de>
3542
3543         PR middle-end/48650
3544         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3545
3546 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3547
3548         PR lto/48492
3549         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3550         DECL_IN_CONSTANT_POOL without RTL.
3551
3552 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3553             Ira Rosen  <ira.rosen@linaro.org>
3554
3555         PR target/48252
3556         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3557         to match neon_vzip/vuzp/vtrn_internal.
3558         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3559         outputs explicitly dependent on both inputs.
3560         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3561
3562 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3563
3564         PR tree-optimization/48616
3565         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3566         whether the shift is by scalar or vector based on whether all SLP
3567         scalar stmts have the same rhs.
3568
3569 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3570
3571         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3572         memory operands.
3573
3574 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3575
3576         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3577         registers.
3578
3579 2011-04-17  Jan Hubicka  <jh@suse.cz>
3580
3581         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3582         * cgrpahunit.c (cgraph_finalize_function): Do not set
3583         finalized_by_frontend.
3584         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3585         finalized_by_frontend.
3586
3587 2011-04-17  Jan Hubicka  <jh@suse.cz>
3588
3589         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3590         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3591         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3592         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3593         method.
3594         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3595         gimple-fold.c
3596         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3597
3598 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3599
3600         PR lto/48538
3601         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3602         is non-null before accessing it.
3603         (input_cgraph): Remove trailing spaces.
3604
3605 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3606
3607         * params.def (sms-min-sc): New param flag.
3608         * modulo-sched.c (sms_schedule): Use it.
3609         * doc/invoke.texi (sms-min-sc): Document it.
3610
3611 2011-04-17  Jan Hubicka  <jh@suse.cz>
3612
3613         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3614         present, also set gimple_call_set_cannot_inline.
3615         * ipa-inline.c: Update toplevel comment.
3616         (MAX_TIME): Remove.
3617         (cgraph_clone_inlined_nodes): Fix linebreaks.
3618         (cgraph_check_inline_limits): Restructure to ...
3619         (caller_growth_limits): ... this one; be more tolerant
3620         on growth in nested inline chains; add explanatory comment;
3621         fix stack accounting thinko introduced by previous patch.
3622         (cgraph_default_inline_p): Remove.
3623         (report_inline_failed_reason): New function.
3624         (can_inline_edge_p): New function.
3625         (can_early_inline_edge_p): New function.
3626         (leaf_node_p): Move upwards in file.
3627         (want_early_inline_function_p): New function.
3628         (want_inline_small_function_p): New function.
3629         (want_inline_self_recursive_call_p): New function.
3630         (cgraph_edge_badness): Rename to ...
3631         (edge_badness) ... this one; fix linebreaks.
3632         (update_edge_key): Update call of edge_baddness; add
3633         detailed dump about queue updates.
3634         (update_caller_keys): Use can_inline_edge_p and
3635         want_inline_small_function_p.
3636         (cgraph_decide_recursive_inlining): Rename to...
3637         (recursive_inlining): Use can_inline_edge_p and
3638         want_inline_self_recursive_call_p; simplify and remove no longer
3639         valid FIXME.
3640         (cgraph_set_inline_failed): Remove.
3641         (add_new_edges_to_heap): Use can_inline_edge_p and
3642         want_inline_small_function_p.
3643         (cgraph_decide_inlining_of_small_functions): Rename to ...
3644         (inline_small_functions): ... this one; cleanup; use
3645         can/want predicates; cleanup debug ouput; work edges till fibheap
3646         is exhausted and do not stop once unit growth is reached; remove
3647         later loop processing remaining edges.
3648         (cgraph_flatten): Rename to ...
3649         (flatten_function): ... this one; use can_inline_edge_p
3650         and can_early_inline_edge_p predicates.
3651         (cgraph_decide_inlining): Rename to ...
3652         (ipa_inline): ... this one; remove unreachable nodes before
3653         inlining functions called once; simplify the pass.
3654         (cgraph_perform_always_inlining): Rename to ...
3655         (inline_always_inline_functions): ... this one; use
3656         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3657         (cgraph_decide_inlining_incrementally): Rename to ...
3658         (early_inline_small_functions): ... this one; simplify
3659         using new predicates; cleanup; make dumps prettier.
3660         (cgraph_early_inlining): Rename to ...
3661         (early_inliner): newer inline regular functions into always-inlines;
3662         fix updating of call stmt summaries.
3663         (pass_early_inline): Update for new names.
3664         (inline_transform): Fix formating.
3665         (gate_cgraph_decide_inlining): Rename to ...
3666         (pass_ipa_inline): ... this one.
3667         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3668         * ipa-inline-analysis.c (dump_inline_summary): Update.
3669         (compute_inline_parameters): Do not compute disregard_inline_limits;
3670         look for mismatching arguments.
3671         (estimate_growth): Fix handlig of non-trivial self recursion.
3672         (inline_read_summary): Do not read info->disregard_inline_limits.
3673         (inline_write_summary): Do not write info->disregard_inline_limits.
3674         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3675         and move all checks into can_inline_edge_p predicate; re-enable code
3676         comparing optimization levels.
3677         (expand_call_inline): Do not test inline_forbidden_into_p.
3678         * Makefile.in (ipa-inline.o): Update arguments.
3679
3680 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3681
3682         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3683
3684 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3685
3686         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3687
3688 2011-04-17  Michael Matz  <matz@suse.de>
3689
3690         PR tree-optimization/48622
3691         PR lto/48645
3692         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3693         in same order as they're written.
3694
3695 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3696
3697         * config/pa/predicates.md: Reorganize and simplify predicates.
3698         Eliminate duplicate code checks.
3699         (arith_operand): Rename to arith14_operand
3700         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3701         * config/pa/pa.md: Use renamed operands.
3702         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3703         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3704         arith11_operand, adddi3_operand, indexed_memory_operand,
3705         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3706         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3707         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3708         move_dest_operand, move_src_operand, prefetch_cc_operand,
3709         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3710         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3711         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3712         div_operand, int5_operand, movb_comparison_operator,
3713         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3714         arith_double_operand, ireg_operand, lhs_lshift_operand,
3715         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3716         integer_store_memory_operand): Likewise.
3717         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3718         (integer_store_memory_operand, read_only_operand,
3719         function_label_operand, borx_reg_operand,
3720         non_hard_reg_operand): Likewise.
3721         (eq_neq_comparison_operator): Delete unused operator.
3722         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3723         function_label_operand.
3724         (emit_move_sequence): Likewise.
3725
3726 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3727
3728         * config/i386/sse.md (sseunpackmode): New mode attribute.
3729         (ssepackmode): Ditto.
3730         (vec_pack_trunc_<mode>): Macroize expander from
3731         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3732         (vec_unpacks_lo_<mode>): Macroize expander from
3733         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3734         (vec_unpacks_hi_<mode>): Macroize expander from
3735         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3736         (vec_unpacku_lo_<mode>): Macroize expander from
3737         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3738         (vec_unpacku_hi_<mode>): Macroize expander from
3739         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3740         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3741         ix86_expand_sse4_unpack.
3742         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3743
3744 2011-04-16  Jan Hubicka  <jh@suse.cz>
3745
3746         * cgraphbuild.c: Include ipa-inline.h.
3747         (reset_inline_failed): Use initialize_inline_failed.
3748         * cgraph.c: Include ipa-inline.h.
3749         (cgraph_create_node_1): Do not initialize estimated_growth.
3750         (initialize_inline_failed): More to ipa-inline-analysis.c
3751         (dump_cgraph_node): Do not dump inline flags.
3752         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3753         and disregard_inline_limits flags.
3754         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3755         time, size, estimated_growth.
3756         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3757         Update.
3758         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3759         DECL_DISREGARD_INLINE_LIMITS.
3760         (cgraph_analyze_function): Do not initialize
3761         node->local.disregard_inline_limits.
3762         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3763         inlinable, versionable and disregard_inline_limits.
3764         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3765         cgraph_check_inline_limits, cgraph_default_inline_p,
3766         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3767         add_new_edges_to_heap): Update.
3768         (cgraph_decide_inlining_of_small_function): Update; set
3769         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3770         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3771         cgraph_decide_inlining_incrementally): Update.
3772         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3773         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3774         time, size and estimated_growth parameters.
3775         (estimate_edge_growth): Update.
3776         (initialize_inline_failed): Declare.
3777         * ipa-split.c: Include ipa-inline.h
3778         (execute_split_functions): Update.
3779         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3780         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3781         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3782         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3783         estimated_growth to INT_MIN.
3784         (inline_node_duplication_hook): Likewise.
3785         (dump_inline_summary): Dump new fields.
3786         (compute_inline_parameters): Update.
3787         (estimate_edge_time, estimate_time_after_inlining,
3788         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3789         inline_write_summary):
3790         (initialize_inline_failed): Move here from cgraph.c.
3791         * tree-sra.c: Include ipa-inline.h.
3792         (ipa_sra_preliminary_function_checks): Update.
3793         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3794         ipa-inline.h.
3795
3796 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3797
3798         * config/i386/sse.md (V16): New mode iterator.
3799         (VI1, VI8): Ditto.
3800         (AVXMODEQI, AVXMODEDI): Remove.
3801         (sse2, sse3): New mode attribute.
3802         (mov<mode>): Use V16 mode iterator.
3803         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3804         (push<mode>1): Use V16 mode iterator.
3805         (movmisalign<mode>): Ditto.
3806         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3807         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3808         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3809         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3810         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3811         avx_movdqu<avxmodesuffix>.
3812         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3813         *avx_movdqu<avxmodesuffix>.
3814         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3815         avx_lddqu<avxmodesuffix>.
3816         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3817         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3818         avx_movnt<AVXMODEDI:mode>.
3819         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3820         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3821
3822 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3823
3824         PR target/48629
3825         * haifa-sched.c (prune_ready_list, schedule_block): Use
3826         sched_pressure_p rather than flag_sched_pressure.
3827
3828 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3829
3830         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3831         cgraph_get_node instead of cgraph_get_create_node.
3832
3833 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3834
3835         * cfgexpand.c (expand_debug_expr): Use
3836         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3837
3838 2011-04-15  Michael Matz  <matz@suse.de>
3839
3840         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3841         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3842         * function.c (gimplify_parameters): Ditto.
3843         * gimplify.c (gimplify_vla_decl): Ditto.
3844
3845         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3846         (gimple_call_set_alloca_for_var): New inline function.
3847         (gimple_call_alloca_for_var_p): Ditto.
3848         * gimple.c (gimple_build_call_from_tree): Remember
3849         CALL_ALLOCA_FOR_VAR_P state.
3850         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3851
3852         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3853         calls if they were for VLA objects.
3854
3855 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3856
3857         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3858         of ADR_EXPRs.
3859
3860 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3861
3862         PR middle-end/48601
3863         * tree-emutls.c (lower_emutls_function_body): Call
3864         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3865         result is non-NULL.
3866
3867 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3868
3869         * c-decl.c (detect_field_duplicates): Call
3870         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3871
3872 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3873
3874         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3875         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3876         * ipa-pure-const.c (check_stmt): Call it.
3877         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3878
3879 2011-04-15  Richard Guenther  <rguenther@suse.de>
3880
3881         PR tree-optimization/48290
3882         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3883         Properly decide inhibiting propagation based on the valueized
3884         operand.  Do loop-closed SSA form preserving here ...
3885         (init_copy_prop): ... not here.
3886
3887 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3888
3889         PR target/48612
3890         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3891         (*ieee_smax<mode>3): Likewise.
3892
3893 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3894
3895         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3896         Replace match_operand with match_dup for the third operand in
3897         these expanders.
3898
3899 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3900
3901         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3902         to track processing of conditionals.  Update all callers.
3903         (try_combine, simplify_if_then_else): Update.
3904
3905 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3906
3907         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3908         -fsched-pressure.
3909
3910 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3911
3912         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3913         instead of match_operand for operand 3.
3914
3915 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3916
3917         * recog.h (insn_operand_data): Add an "allows_mem" field.
3918         * genoutput.c (output_operand_data): Initialize it.
3919         * optabs.c (maybe_legitimize_operand_same_code): New function.
3920         (maybe_legitimize_operand): Use it when matching the original
3921         op->value.
3922
3923 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3924
3925         * gimplify.c: Fix issues in comments throughout.
3926         (voidify_wrapper_expr): Fix long line.
3927         (build_stack_save_restore): Likewise.
3928         (gimplify_loop_expr): Likewise.
3929         (gimplify_compound_lval): Likewise.
3930         (gimplify_init_ctor_eval): Likewise.
3931         (gimplify_modify_expr_rhs): Likewise.
3932         (omp_notice_threadprivate_variable): Likewise.
3933
3934 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3935
3936         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3937         original one if this is not a builtin function.
3938
3939 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3940
3941         PR target/48605
3942         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3943         offset it as needed based on top 2 bits in operands[3], change
3944         MEM mode to SFmode and mask those 2 bits away from operands[3].
3945
3946 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3947
3948         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3949         change from objc_declare_protocols() to objc_declare_protocol().
3950
3951 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3952
3953         * config/i386/sse.md (sse4_1): New mode attribute.
3954         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3955         avx_blend<ssemodesuffix><avxmodesuffix> and
3956         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3957         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3958         avx_blendv<ssemodesuffix><avxmodesuffix> and
3959         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3960         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3961         avx_dp<ssemodesuffix><avxmodesuffix> and
3962         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3963         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3964         (sse4_1_packusdw): Merge with *avx_packusdw.
3965         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3966         (sse4_1_pblendw): Merge with *avx_pblendw.
3967         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3968         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3969         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3970         VF mode iterator.
3971         (sse4_1_round<ssescalarmodesuffix>): Merge with
3972         *avx_round<ssescalarmodesuffix>.
3973         (aesenc): Merge with *avx_aesenc.
3974         (aesenclast): Merge with *avx_aesenclast.
3975         (aesdec): Merge with *avx_aesdec.
3976         (aesdeclast): Merge with *avx_aesdeclast.
3977         (pclmulqdq): Merge with *pclmulqdq.
3978         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3979         New predicate.
3980         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3981
3982 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3983
3984         PR middle-end/48608
3985         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3986         (align_local_variable): This.  Update DECL_ALIGN.
3987         (add_stack_var): Updated.
3988         (expand_one_stack_var): Likewise.
3989
3990 2011-04-14  Richard Guenther  <rguenther@suse.de>
3991
3992         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3993         Remove.
3994         (dse_initialize_block_local_data, dse_leave_block,
3995         record_voperand_set, get_stmt_uid): Likewise.
3996         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3997         (dse_optimize_stmt): Remove voperand set handling code.
3998         Simplify and improve to handle any kind of killing stmt.
3999         (dse_record_phi): Remove.
4000         (dse_enter_block): Simplify.
4001         (tree_ssa_dse): Likewise.
4002         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4003
4004 2011-04-14  Jan Hubicka  <jh@suse.cz>
4005
4006         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4007         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4008         (cgraph_local_info): Remove inline_summary.
4009         * ipa-cp.c: Include ipa-inline.h.
4010         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4011         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4012         accesor.
4013         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4014         (input_overwrite_node): Do not set inline summary.
4015         (input_node): Do not stream inline summary.
4016         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4017         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4018         growth; we do not have inline parameters computed for that anyway.
4019         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4020         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4021         (inline_summary_t): New type and VECtor.
4022         (debug_inline_summary, dump_inline_summaries): Declare.
4023         (inline_summary): Use VOCtor.
4024         (estimate_edge_growth): Kill hack computing call stmt size directly.
4025         * lto-section-in.c (lto_section_name): Add inline section.
4026         * ipa-inline-analysis.c: Include lto-streamer.h
4027         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4028         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4029         (inline_summary_vec): Define.
4030         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4031         dump_inline_summaries): New functions.
4032         (estimate_function_body_sizes): Properly compute size/time of outgoing
4033         calls.
4034         (compute_inline_parameters): Alloc inline_summary; do not compute
4035         size/time of incomming calls.
4036         (estimate_edge_time): Avoid missing time summary hack.
4037         (inline_read_summary): Read inline summary info.
4038         (inline_write_summary): Write inline summary info.
4039         (inline_free_summary): Free all hooks and inline summary vector.
4040         * lto-streamer.h: Add LTO_section_inline_summary section.
4041         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4042         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4043
4044 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4045
4046         * tree-vectorizer.h (vect_strided_store_supported): Add a
4047         HOST_WIDE_INT argument.
4048         (vect_strided_load_supported): Likewise.
4049         (vect_permute_store_chain): Return void.
4050         (vect_transform_strided_load): Likewise.
4051         (vect_permute_load_chain): Delete.
4052         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4053         count argument.  Check that the count is a power of two.
4054         (vect_strided_load_supported): Likewise.
4055         (vect_permute_store_chain): Return void.  Update after above changes.
4056         Assert that the access is supported.
4057         (vect_permute_load_chain): Likewise.
4058         (vect_transform_strided_load): Return void.
4059         * tree-vect-stmts.c (vectorizable_store): Update calls after
4060         above interface changes.
4061         (vectorizable_load): Likewise.
4062         (vect_analyze_stmt): Don't check for strided powers of two here.
4063
4064 2011-04-14  Richard Guenther  <rguenther@suse.de>
4065
4066         PR tree-optimization/48590
4067         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4068         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4069         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4070         BUILT_IN_STACK_SAVE.
4071         * tree-ssa-dce.c (propagate_necessity): Handle
4072         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4073
4074 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4075
4076         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4077         objc_declare_class.
4078
4079 2011-04-14  Richard Guenther  <rguenther@suse.de>
4080
4081         * tree.h (get_object_alignment_1): Declare.
4082         * builtins.c (get_object_alignment_1): Split out worker from ...
4083         (get_object_alignment): ... here.
4084         * fold-const.c (get_pointer_modulus_and_residue): Use
4085         get_object_alignment_1.
4086
4087 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4088
4089         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4090         type parameter.
4091         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4092         parameter.  Generalise code to handle arrays as well as vectors.
4093         (vect_setup_realignment): Update accordingly.
4094         * tree-vect-stmts.c (vectorizable_store): Likewise.
4095         (vectorizable_load): Likewise.
4096
4097 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4098
4099         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4100         within the per-copy loop.
4101
4102 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4103
4104         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4105         in the dump file.
4106
4107 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4108
4109         * doc/options.texi (Negative): Explicitly mention that the
4110         Negative chain must be circular.
4111
4112 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4113
4114         * function.h (block_chainon): Declare.
4115         * function.c (block_chainon): Define.
4116
4117 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4118             Eric Weddington  <eric.weddington@atmel.com>
4119             Georg-Johann Lay <avr@gjlay.de>
4120
4121         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4122         New Includes
4123         (avr_init_builtins, avr_expand_builtin,
4124         avr_expand_delay_cycles, avr_expand_unop_builtin,
4125         avr_expand_binop_builtin ): New functions.
4126         (avr_builtin_id): New enum
4127         (struct avr_builtin_description): New struct
4128         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4129         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4130
4131         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4132         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4133         UNSPECV_DELAY_CYCLES): new enumeration values
4134         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4135         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4136         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4137         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4138         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4139         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4140         "fmulsu"): New insns
4141
4142         * config/avr/avr-c.c: fix line endings
4143         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4144         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4145         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4146         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4147         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4148
4149         * doc/extend.texi (AVR Built-in Functions): New node
4150         (Target Builtins): Add documentation of AVR
4151         built-in functions.
4152
4153 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4154
4155         PR target/44643
4156         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4157         alone. Error if non-const data has attribute progmem.
4158
4159 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4160
4161         * tree.h (struct tree_constructor): Include tree_typed instead of
4162         tree_common.
4163         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4164         TS_TYPED instead of TS_COMMON.
4165
4166 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4167
4168         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4169         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4170         (sse2_psadbw): Merge with *avx_psadbw.
4171         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4172         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4173         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4174         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4175         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4176         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4177         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4178         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4179         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4180         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4181         (ssse3_palignrti): Merge with *avx_palignrti.
4182
4183 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4184
4185         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4186         * tree-ssanames.c (fini_ssanames): VEC_free it.
4187         (make_ssa_name_fn): Update for VECness of free_ssanames.
4188         (release_ssa_name, release_dead_ssa_names): Likewise.
4189         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4190         tree_common.
4191         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4192         TS_TYPED instead of TS_COMMON.
4193
4194 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4195
4196         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4197         statistics_counter_event.
4198         * tree-ssa-copyrename.c (stats): Define.
4199         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4200         statistics_counter_event.
4201         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4202         (bswap_stats, widen_mul_stats): Define.
4203         (insert_reciprocals): Increment rdivs_inserted.
4204         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4205         rfuncs_inserted.  Add calls to statistics_counter_event.
4206         (execute_cse_sincos_1): Increment inserted.
4207         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4208         statistics_counter_event.
4209         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4210         of bswap_stats.  Add calls to statistics_counter_event.
4211         (convert_mult_to_widen): Increment widen_mults_inserted.
4212         (convert_plusminus_to_widen): Increment maccs_inserted.
4213         (convert_mult_to_fma): Increment fmas_inserted.
4214         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4215         calls to statistics_counter_event.
4216
4217 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4218
4219         PR rtl-optimization/48455
4220         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4221         `temp_costs->mem_cost'.
4222
4223 2011-04-13  Jan Hubicka  <jh@suse.cz>
4224
4225         * ipa-inline.h: New file.
4226         * ipa-inline-analysis.c: New file. Broken out of ...
4227         * ipa-inline.c: ... this file; update toplevel comment;
4228         include ipa-inline.h
4229         (inline_summary): Move to ipa-inline.h
4230         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4231         ipa-inline-analysis.c.
4232         (cgraph_estimate_time_after_inlining): Rename to
4233         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4234         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4235         to estimate_edge_growth.
4236         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4237         rename to estimate_size_after_inlining.
4238         (cgraph_mark_inline_edge): Update for new naming convention.
4239         (cgraph_check_inline_limits): Likewise.
4240         (cgraph_edge_badness): Likewise.
4241         (cgraph_decide_recursive_inlining): Likewise.
4242         (cgraph_decide_inlining_of_small_functions): Likewise.
4243         (cgraph_decide_inlining_incrementally): Likewise.
4244         (cgraph_estimate_growth): Rename to estimate_growth; move to
4245         ipa-inline-analysis.c.
4246         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4247         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4248         (compute_inline_parameters): Likewise.
4249         (compute_inline_parameters_for_current): Likewise.
4250         (pass_inline_parameters): Likewise.
4251         (inline_indirect_intraprocedural_analysis): Likewise.
4252         (analyze_function): Rename to inline_analyze_function; likewise.
4253         (add_new_function): Move to ipa-inline-analysis.c.
4254         (inline_generate_summary): Likewise.
4255         (inline_read_summary): Likewise.
4256         (inline_write_summary): Likewise.
4257         * Makefile.in (ipa-inline-analysis.c): New file.
4258
4259 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4260
4261         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4262         * configure: Regenerate.
4263
4264 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4265
4266         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4267         instead of tree_common.
4268         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4269         Likewise.
4270         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4271         TS_TYPED rather than TS_COMMON.
4272         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4273
4274 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4275
4276         PR target/45263
4277         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4278         r20 around calls of __tablejump_elpm__
4279
4280 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4281
4282         PR middle-end/48591
4283         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4284         NULL.
4285         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4286
4287 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4288
4289         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4290         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4291         (cfi_vec): New typedef.
4292         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4293         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4294         (cie_cfi_vec): New static variable.
4295         (cie_cfi_head): Delete.
4296         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4297         declaration changed. Use vector rather than list operations.
4298         (new_cfi): Don't initialize the dw_cfi_next field.
4299         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4300         rather than list operations.
4301         (lookup_cfa): Use vector rather than list operations.
4302         (output_cfis): New argument upto. Accept a cfi_vec rather than
4303         a dw_cfi_ref list head as argument. All callers changed.
4304         Iterate over the vector using upto as a maximum index.
4305         (output_all_cfis): New static function.
4306         (output_fde): Use vector rather than list operations. Use the
4307         new upto argument for output_cfis rather than manipulating a
4308         list.
4309         (dwarf2out_begin_prologue): Change initializations to match
4310         new struct members.
4311         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4312         from the vector length rather than searching for the end of a list.
4313         Use output_all_cfis.
4314         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4315
4316 2011-04-13  Nick Clifton  <nickc@redhat.com>
4317
4318         * config/rx/rx.md (movmemsi): Do not use this pattern when
4319         volatile pointers are involved.
4320
4321 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4322
4323         * config/i386/sse.md (pinsrbits): Remove.
4324         (sse2_packsswb): Merge with *avx_packsswb.
4325         (sse2_packssdw): Merge with *avx_packssdw.
4326         (sse2_packuswb): Merge with *avx_packuswb.
4327         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4328         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4329         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4330         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4331         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4332         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4333         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4334         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4335         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4336         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4337         (sse2_loadld): Merge with *avx_loadld.
4338         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4339         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4340         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4341         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4342         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4343
4344 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4345
4346         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4347         calling TREE_CHAIN.
4348         * print-tree.c (print_node): Likewise.
4349         * tree-inline.c (copy_tree_r): Likewise.
4350         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4351         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4352         instead of TS_COMMON.
4353         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4354         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4355         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4356         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4357         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4358         ...and these...
4359         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4360         * tree.h: ...here.
4361         (TREE_CHAIN): Check for a TS_COMMON structure.
4362         (TREE_TYPE): Check for a TS_TYPED structure.
4363
4364 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
4365
4366         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4367         cgraph_get_create_node instead of cgraph_node.
4368
4369 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4370
4371         * c-parser.c (c_parser_initelt): Updated call to
4372         objc_build_message_expr.
4373         (c_parser_postfix_expression): Likewise.
4374
4375 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4376
4377         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4378         MASK_MS_BITFIELD_LAYOUT bit.
4379
4380 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4381
4382         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4383         assert it is always true.
4384         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4385         moves.
4386
4387 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4388
4389         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4390         compiling Objective-C to be more efficient.
4391
4392 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4393
4394         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4395         argv_copied.
4396
4397 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4398
4399         * recog.h, genoutput.c, optabs.c: Revert last patch.
4400
4401 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4402
4403         PR target/48090
4404         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4405
4406 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4407
4408         * recog.h (insn_operand_data): Add an "allows_mem" field.
4409         * genoutput.c (output_operand_data): Initialize it.
4410         * optabs.c (maybe_legitimize_operand_same_code): New function.
4411         (maybe_legitimize_operand): Use it when matching the original
4412         op->value.
4413
4414 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4415
4416         * genpreds.c (process_define_predicate): Move most processing
4417         to gensupport.c.  Continue to validate the expression.
4418         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4419         (process_define_predicate): Move processing to gensupport.c.
4420         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4421         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4422         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4423         argument.
4424         (valid_predicate_name_p): New function, split out from old
4425         genpreds.c:process_define_predicate.
4426         (process_define_predicate): New function, combining code from
4427         old genpreds.c and genrecog.c functions.
4428         (process_rtx): Call it for DEFINE_PREDICATE and
4429         DEFINE_SPECIAL_PREDICATE.
4430
4431 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4432
4433         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4434         size of a '%A' memory reference.
4435         (T_DREG, T_QREG): New neon_builtin_type_bits.
4436         (arm_init_neon_builtins): Assert that the load and store operands
4437         are neon_struct_operands.
4438         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4439         (NEON_ARG_MEMORY): New builtin_arg.
4440         (neon_dereference_pointer): New function.
4441         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4442         Handle NEON_ARG_MEMORY.
4443         (arm_expand_neon_builtin): Update after above interface changes.
4444         Use NEON_ARG_MEMORY for loads and stores.
4445         * config/arm/predicates.md (neon_struct_operand): New predicate.
4446         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4447         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4448         (V_four_elem): Tweak formatting.
4449         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4450         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4451         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4452         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4453         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4454         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4455         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4456         Use %A in the output template.
4457         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4458         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4459         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4460         the width of the memory access.  Remove post-increment.
4461         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4462
4463 2011-04-12  Nick Clifton  <nickc@redhat.com>
4464
4465         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4466         instruction for interrupt handlers if the target is the basic V850
4467         architecture.
4468         (expand_epilogue): Likewise.
4469
4470 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4471
4472         PR rtl-optimization/48549
4473         * combine.c (propagate_for_debug): Also stop after BB_END of
4474         this_basic_block.  Process LAST and just stop processing after it.
4475         (combine_instructions): If last_combined_insn has been deleted,
4476         set last_combined_insn to its PREV_INSN.
4477
4478 2011-04-12  Richard Guenther  <rguenther@suse.de>
4479
4480         PR tree-optimization/46076
4481         * gimple.h (struct gimple_statement_call): Add fntype field.
4482         (gimple_call_fntype): Adjust.
4483         (gimple_call_set_fntype): New function.
4484         * gimple.c (gimple_build_call_1): Set the call function type.
4485         * gimplify.c (gimplify_call_expr): Preserve the function
4486         type the frontend used for the call.
4487         (gimplify_modify_expr): Likewise.
4488         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4489         function type.
4490         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4491         function type.
4492         * tree-ssa.c (useless_type_conversion_p): Function pointer
4493         conversions are useless.
4494
4495 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4496
4497         * cgraph.h (cgraph_node): Remove function declaration.
4498         (cgraph_create_node): Declare.
4499         (cgraph_get_create_node): Likewise.
4500         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4501         Updated all callers.
4502         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4503         the decl does not already exist.  Call cgraph_get_create_node instead
4504         of cgraph_node.
4505         (cgraph_get_create_node): New function.
4506         (cgraph_same_body_alias): Update comment.
4507         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4508         assert it does not return NULL.
4509         (cgraph_update_edges_for_call_stmt): Likewise.
4510         (cgraph_clone_edge): Likewise.
4511         (cgraph_create_virtual_clone): Likewise.
4512         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4513         instead of cgraph_node.
4514         (cgraph_add_new_function): Call cgraph_create_node or
4515         cgraph_get_create_node instead of cgraph_node.
4516         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4517         instead of cgraph_node.
4518         (record_eh_tables): Likewise.
4519         (mark_address): Likewise.
4520         (mark_load): Likewise.
4521         (build_cgraph_edges): Call cgraph_get_create_node instead
4522         of cgraph_node.
4523         (rebuild_cgraph_edges): Likewise.
4524         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4525         instead of cgraph_node.
4526         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4527         cgraph_node.
4528         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4529         cgraph_create_node instead of cgraph_node.
4530         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4531         of cgraph_node.
4532         * lto-cgraph.c (input_node): Likewise.
4533         * lto-streamer-in.c (input_function): Likewise.
4534         * varasm.c (mark_decl_referenced): Likewise.
4535         (assemble_alias): Likewise.
4536
4537 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4538
4539         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4540         instead of cgraph_node and assert it does not return NULL.
4541         * lto-streamer-in.c (lto_read_body): Likewise.
4542         * omp-low.c (new_omp_context): Likewise.
4543         (create_task_copyfn): Likewise.
4544         * tree-emutls.c (lower_emutls_function_body): Likewise.
4545         * matrix-reorg.c (transform_allocation_sites): Likewise.
4546
4547 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4548
4549         PR c/48552
4550         * c-typeck.c (build_asm_expr): Error out on attempts to use
4551         void type outputs or inputs for constraints that allow reg or
4552         don't allow memory.
4553
4554 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4555             Richard Earnshaw  <rearnsha@arm.com>
4556
4557         PR target/48250
4558         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4559         to use sign-magnitude offsets. Reject unsupported unaligned
4560         cases. Add detailed description in comments.
4561         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4562         condition from TARGET_32BIT to TARGET_ARM.
4563
4564 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4565
4566         * tree.h (struct typed_tree): New.
4567         (struct tree_common): Include it instead of tree_base.
4568         (TREE_TYPE): Update for new location of type field.
4569         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4570         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4571         (union tree_node): Add typed field.
4572         * treestruct.def (TS_TYPED): New.
4573         * lto-streamer.c (check_handled_ts_structures): Handle it.
4574         * tree.c (MARK_TS_TYPED): New macro.
4575         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4576
4577 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4578
4579         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4580         (force_nonfallthru): Do not alter the loop nest if no basic block
4581         was created.
4582
4583 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4584
4585         * config/i386/sse.md (VI): New mode iterator.
4586         (SSEMODEI): Remove.
4587         (AVX256MODEI): Ditto.
4588         (AVXMODEF4P): Ditto.
4589         (avxvecpsmode): Ditto.
4590         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4591         (sse2_andnot<mode>3): New expander.
4592         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4593         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4594         (<any_logic:code><mode>3): Use VI mode iterator.
4595         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4596         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4597         (*andnottf3): Handle AVX three-operand constraints.
4598         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4599
4600 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4601             Robert Millan  <rmh@gnu.org>
4602
4603         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4604         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4605         GNU_USER_DYNAMIC_LINKER64): Define.
4606         (REG_NAME): Don't undefine.
4607         (MD_UNWIND_SUPPORT): Undefine.
4608         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4609         (REG_NAME): Don't undefine.
4610         (MD_UNWIND_SUPPORT): Undefine.
4611         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4612
4613 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4614
4615         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4616         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4617
4618 2011-04-11  Xinliang David Li  <davidxl@google.com>
4619
4620         * value-profile.c (check_ic_target): New function.
4621         (gimple_ic_transform): Sanity check indirect call target.
4622         * gimple-low.c (gimple_check_call_args): Interface change.
4623         (gimple_check_call_matching_types): New function.
4624         * tree-inline.c (tree_can_inline_p): Call new function.
4625
4626 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4627
4628         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4629         tree-pretty-print.h & realmpfr.h.
4630
4631 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4632
4633         PR middle-end/48464
4634         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4635         (setup_allocno_and_important_classes): Ditto.
4636
4637 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4638
4639         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4640         GNU_USER_DYNAMIC_LINKER.
4641         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4642         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4643         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4644         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4645         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4646         GNU_USER_TARGET_OS_CPP_BUILTINS.
4647         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4648         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4649         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4650         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4651         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4652         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4653         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4654         GNU_USER_TARGET_OS_CPP_BUILTINS.
4655         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4656         GNU_USER_DYNAMIC_LINKER.
4657         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4658         GNU_USER_TARGET_OS_CPP_BUILTINS.
4659         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4660         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4661         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4662         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4663         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4664         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4665         GNU_USER_DYNAMIC_LINKER64): Remove.
4666         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4667         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4668         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4669         GNU_USER_DYNAMIC_LINKER.
4670         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4671         GNU_USER_TARGET_OS_CPP_BUILTINS.
4672         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4673         GNU_USER_TARGET_OS_CPP_BUILTINS.
4674         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4675         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4676         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4677         GNU_USER_TARGET_OS_CPP_BUILTINS.
4678         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4679         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4680         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4681         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4682         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4683         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4684         GNU_USER_DYNAMIC_LINKER.
4685         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4686         GNU_USER_TARGET_OS_CPP_BUILTINS.
4687         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4688         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4689         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4690         GNU_USER_DYNAMIC_LINKER.
4691         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4692         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4693         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4694         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4695         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4696         GNU_USER_DYNAMIC_LINKER.
4697         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4698         GNU_USER_DYNAMIC_LINKERN32.
4699         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4700         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4701         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4702         GNU_USER_DYNAMIC_LINKER32.
4703         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4704         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4705         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4706         GNU_USER_DYNAMIC_LINKER.
4707         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4708         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4709         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4710         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4711         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4712         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4713         GNU_USER_DYNAMIC_LINKER32.
4714         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4715         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4716         GNU_USER_DYNAMIC_LINKER.
4717         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4718         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4719         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4720         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4721         GNU_USER_DYNAMIC_LINKER64.
4722         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4723         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4724         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4725         GNU_USER_DYNAMIC_LINKER.
4726         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4727         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4728         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4729         GNU_USER_DYNAMIC_LINKER.
4730         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4731         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4732         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4733         GNU_USER_DYNAMIC_LINKER32.
4734         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4735         GNU_USER_DYNAMIC_LINKER64.
4736         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4737         GNU_USER_DYNAMIC_LINKER64.
4738         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4739         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4740         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4741         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4742         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4743
4744 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4745
4746         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4747         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4748         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4749         GNU_USER_DYNAMIC_LINKER.
4750         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4751         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4752         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4753         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4754         GNU_USER_DYNAMIC_LINKER64.
4755         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4756         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4757         GNU_USER_LINK_EMULATION.
4758         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4759         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4760         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4761         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4762         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4763         CPP_SPEC, CC1_SPEC): Remove.
4764         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4765         (GNU_USER_DYNAMIC_LINKER): Define.
4766         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4767         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4768         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4769         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4770         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4771         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4772         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4773         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4774         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4775         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4776         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4777         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4778         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4779         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4780         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4781         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4782         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4783         GNU_USER_DYNAMIC_LINKER.
4784         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4785         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4786         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4787         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4788         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4789         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4790         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4791         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4792         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4793         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4794
4795 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4796
4797         PR target/9601
4798         PR target/11772
4799         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4800         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4801         comment.
4802         (ix86_is_msabi_thiscall): Removed.
4803         (ix86_is_type_thiscall): Likewise.
4804         (ix86_get_callcvt): New function.
4805         (ix86_comp_type_attributes): Simplify check.
4806         (ix86_function_regparm): Use ix86_get_callcvt for calling
4807         convention attribute checks.
4808         (ix86_return_pops_args): Likewise.
4809         (ix86_static_chain): Likewise.
4810         (x86_this_parameter): Likewise.
4811         (x86_output_mi_thunk): Likewise.
4812         (ix86_function_type_abi): Optimize check for types without attributes.
4813         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4814         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4815         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4816         by flag-values.
4817         (IX86_BASE_CALLCVT): Helper macro.
4818         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4819         Use ix86_get_callcvt for calling convention attribute checks and avoid
4820         symbol-decoration for stdcall in TARGET_RTD case.
4821         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4822         Likewise.
4823         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4824         for declaration.
4825
4826 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4827
4828         * config/i386/sse.md (VI_128): New mode iterator.
4829         (VI12_128): Rename from SSEMODE12.
4830         (VI14_128): Rename from SSEMODE14.
4831         (VI124_128): New mode iterator.
4832         (VI24_128): Rename from SSEMODE248.
4833         (VI248_128): Rename from SSEMODE248.
4834         (SSEMODE124C8): Remove.
4835         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4836         (*sse2_<plusminus_insn><mode>3): Merge with
4837         *avx_<plusminus_insn><mode>3.
4838         (*mulv8hi3): Merge with *avx_mulv8hi3.
4839         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4840         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4841         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4842         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4843         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4844         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4845         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4846         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4847         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4848         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4849         (*<smaxmin:code>v8hi3): Ditto.
4850         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4851         (*<smaxmin:code>v16qi3): Ditto.
4852         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4853         (*sse2_eq<mode>3): Ditto.
4854         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4855         (*sse2_gt<mode>3): Ditto.
4856         (vcondv2di): Split out of vcond<mode>.
4857         (vconduv2di): Split out of vcondu<mode>.
4858
4859 2011-04-11  Richard Guenther  <rguenther@suse.de>
4860
4861         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4862         before calling tree_low_cst.
4863
4864 2011-04-11  Richard Guenther  <rguenther@suse.de>
4865
4866         * stor-layout.c (layout_type): Compute all array index size operations
4867         in the original type.
4868         (initialize_sizetypes): Add comment.
4869         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4870
4871 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4872
4873         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4874
4875 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4876
4877         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4878         of cgraph_node, handle NULL return value.
4879         (cgraph_global_info): Likewise.
4880         (cgraph_rtl_info): Likewise.
4881         * tree-inline.c (estimate_num_insns): Likewise.
4882         * gimplify.c (unshare_body): Likewise.
4883         (unvisit_body): Likewise.
4884         (gimplify_body): Likewise.
4885         * predict.c (optimize_function_for_size_p): Likewise.
4886         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4887         (call_may_clobber_ref_p_1): Likewise.
4888         * varasm.c (function_section_1): Likewise.
4889         (assemble_start_function): Likewise.
4890
4891 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4892
4893         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4894         of cgraph_node.
4895         * final.c (rest_of_clean_state): Likewise.
4896         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4897         * passes.c (pass_init_dump_file): Likewise.
4898         (execute_all_ipa_transforms): Likewise.
4899         (function_called_by_processed_nodes_p): Likewise.
4900         * predict.c (maybe_hot_frequency_p): Likewise.
4901         (probably_never_executed_bb_p): Likewise.
4902         (compute_function_frequency): Likewise.
4903         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4904         (unnest_nesting_tree_1): Likewise.
4905         (lower_nested_functions): Likewise.
4906         * tree-optimize.c (execute_fixup_cfg): Likewise.
4907         (tree_rest_of_compilation): Likewise.
4908         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4909         * tree-sra.c (ipa_early_sra): Likewise.
4910         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4911         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4912         * ipa.c (record_cdtor_fn): Likewise.
4913         * ipa-inline.c (cgraph_early_inlining): Likewise.
4914         (compute_inline_parameters_for_current): Likewise.
4915         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4916         * ipa-pure-const.c (local_pure_const): Likewise.
4917         * ipa-split.c (split_function): Likewise.
4918         (execute_split_functions): Likewise.
4919         * cgraphbuild.c (build_cgraph_edges): Likewise.
4920         (rebuild_cgraph_edges): Likewise.
4921         (cgraph_rebuild_references): Likewise.
4922         (remove_cgraph_callee_edges): Likewise.
4923         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4924         (verify_cgraph_node): Likewise.
4925         (cgraph_analyze_functions): Likewise.
4926         (cgraph_preserve_function_body_p): Likewise.
4927         (save_inline_function_body): Likewise.
4928         (save_inline_function_body): Likewise.
4929         * tree-inline.c (copy_bb): Likewise.
4930         (optimize_inline_calls): Likewise.
4931
4932 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4933
4934         PR tree-optimization/48195
4935         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4936         ipa_check_create_edge_args.
4937         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4938         ipa_check_create_edge_args.
4939         * ipa-inline.c (inline_generate_summary): Do not call
4940         ipa_check_create_node_params and ipa_check_create_edge_args.
4941         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4942         ipa_check_create_edge_args.
4943
4944 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4945
4946         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4947         instead of loop.
4948         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4949         * function.c (record_hard_reg_sets): Likewise.
4950         * ira.c (compute_regs_asm_clobbered): Likewise.
4951         * sched-deps.c (sched_analyze_1): Likewise.
4952         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4953
4954 2011-04-09  Xinliang David Li  <davidxl@google.com>
4955
4956         PR tree-optimization/PR48484
4957         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4958         has_valid_pred lazily
4959
4960 2011-04-09  Duncan Sands  <baldrick@free.fr>
4961
4962         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4963
4964 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4965
4966         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4967         cost of I0 to zero at the end, if any.
4968
4969 2011-04-08  Xinliang David Li  <davidxl@google.com>
4970
4971         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4972         to insane profile data.
4973
4974 2011-04-08  Xinliang David Li  <davidxl@google.com>
4975
4976         * ipa-cp.c (ipcp_update_profiling): Correct
4977          negative scale factor due to insane profile data.
4978
4979 2011-04-08  Xinliang David Li  <davidxl@google.com>
4980
4981         * final.c (dump_basic_block_info): New function.
4982         (final): Dump basic block.
4983         (final_scan_insn): Remove old dump.
4984
4985 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4986
4987         PR target/47829
4988         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4989         crtbegin/crtend.
4990
4991 2011-04-08  Michael Matz  <matz@suse.de>
4992
4993         PR middle-end/48389
4994         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4995         functions.
4996         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4997         * rtl.h (rebuild_jump_labels_chain): Declare.
4998         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4999         insns inserted on edges.
5000
5001 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5002
5003         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5004         * config/arm/arm-arches.def: New.
5005         * config/arm/arm-opts.h: New.
5006         * config/arm/genopt.sh: New.
5007         * config/arm/arm-tables.opt: New (generated).
5008         * config/arm/arm.c (arm_handle_option, arm_target_help,
5009         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5010         (all_architectures): Get most table contents from arm-arches.def.
5011         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5012         arm_selected_tune here.
5013         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5014         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5015         (march=, mcpu=, mtune=): Use Enum and Var.
5016         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5017         (arm.o): Update dependencies.
5018
5019 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5020
5021         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5022         of header_file.
5023         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5024         (write_typed_alloc_defns): Likewise.
5025         (main): Calls write_typed_alloc_defns with output_header.
5026
5027 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5028
5029         PR inline-asm/48435
5030         * ira-color.c (setup_profitable_hard_regs): Add comments.
5031         Don't take prohibited hard regs into account.
5032         (setup_conflict_profitable_regs): Rename to
5033         get_conflict_profitable_regs.
5034         (check_hard_reg_p): Check prohibited hard regs.
5035
5036 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5037
5038         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5039         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5040         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5041
5042 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5043
5044         PR target/48366
5045         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5046         move from floating point to shift amount register.
5047         (emit_move_sequence): Remove secondary reload support for floating
5048         point to shift amount amount register copies.
5049         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5050         amount register copies.
5051         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5052         register, return false if mode isn't a scalar integer mode.
5053         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5054
5055 2011-04-08  Richard Guenther  <rguenther@suse.de>
5056
5057         * gimple.c (gimple_call_flags): Remove kludge.
5058
5059 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5060
5061         * sel-sched.c (sel_region_init): Move call to
5062         sel_setup_region_sched_flags after setup_current_loop_nest.
5063
5064 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5065
5066         PR rtl-optimization/48272
5067         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5068         init_insn_reg_pressure_info.  Adjust a caller.
5069         * sched-int.h (init_insn_reg_pressure_info): Declare.
5070         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5071         when sched-pressure is enabled.
5072
5073 2011-04-08  Richard Guenther  <rguenther@suse.de>
5074
5075         * gimple.c (gimple_set_modified): Do not queue calls to
5076         MODIFIED_NORETURN_CALLS here ...
5077         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5078
5079 2011-04-08  Richard Guenther  <rguenther@suse.de>
5080
5081         PR lto/48467
5082         * toplev.c (lang_dependent_init): Do not open asm_out_file
5083         in WPA mode, nor perform debug machinery initialization.
5084         (finalize): Do not unlink asm_out_file in WPA mode.
5085
5086 2011-04-08  Richard Guenther  <rguenther@suse.de>
5087
5088         * gimple.h (gimple_call_fntype): New function.
5089         (gimple_call_return_type): Use it.
5090         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5091         * gimple-low.c (gimple_check_call_args): Likewise.
5092         * gimple.c (gimple_call_flags): Likewise.
5093         (gimple_call_arg_flags): Likewise.
5094         (gimple_call_return_flags): Likewise.
5095         * tree-cfg.c (verify_gimple_call): Likewise.
5096         (do_warn_unused_result): Likewise.
5097         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5098         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5099
5100 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5101
5102         PR rtl-optimization/48235
5103         * sel-sched.c (code_motion_process_successors): Recompute the last
5104         insn in basic block if control flow changed.
5105         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5106         Update condition for ilist_remove.
5107
5108 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5109
5110         PR rtl-optimization/48302
5111         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5112         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5113         it to record added preheader blocks.
5114         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5115         on to sel_add_loop_preheaders.
5116         (sel_region_init): Move call to setup_current_loop_nest after
5117         sel_init_bbs.
5118
5119 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5120
5121         PR target/48273
5122         * cfgloop.h (loop_has_exit_edges): New helper.
5123         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5124         non-clonable.
5125         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5126         that have no exit edges.
5127
5128 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5129
5130         PR rtl-optimization/48442
5131         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5132         all callers.  Adjust assert.
5133
5134 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5135
5136         PR tree-optimization/48377
5137         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5138         is_packed to true even for types with smaller TYPE_ALIGN than
5139         TYPE_SIZE.
5140
5141 2011-04-08  Richard Guenther  <rguenther@suse.de>
5142
5143         PR bootstrap/48513
5144         * doc/tm.texi: Re-generate.
5145
5146 2011-04-08  Wei Guozhi  <carrot@google.com>
5147
5148         PR target/47855
5149         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5150         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5151         * config/arm/arm.md (*push_multi): Change the length computation to
5152         call a C function.
5153
5154 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5155
5156         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5157         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5158         * doc/tm.texi: Regenerate.
5159         * system.h (ASM_OUTPUT_BSS): Poison.
5160         * varasm.c (asm_output_bss): Remove function.
5161         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5162
5163         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5164         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5165         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5166         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5167         Likewise.
5168         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5169         Likewise.
5170         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5171         Likewise.
5172         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5173
5174 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5175
5176         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5177         EnumValue lines.
5178
5179 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5180
5181         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5182         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5183         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5184         OPT_mcpu32.
5185         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5186         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5187         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5188         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5189         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5190         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5191         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5192         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5193         options.  Don't map other m68k options manually.  Don't handle
5194         old-style options as canonical.
5195         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5196         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5197
5198 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5199
5200         * basic-block.h (force_nonfallthru): Move to...
5201         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5202         (force_nonfallthru): ...here.
5203         * cfghooks.c (force_nonfallthru): New function.
5204         * cfgrtl.c (force_nonfallthru): Rename into...
5205         (rtl_force_nonfallthru): ...this.
5206         (commit_one_edge_insertion): Do not set AUX field.
5207         (commit_edge_insertions): Do not discover new basic blocks.
5208         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5209         (cfg_layout_rtl_cfg_hooks): Likewise.
5210         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5211         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5212         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5213
5214 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5215
5216         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5217         Remove macros.
5218
5219 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5220
5221         * config/i386/sse.md: Update copyright year.
5222         (avxcvtvecmode): Remove.
5223         (sse_movhlps): Merge with *avx_movhlps.
5224         (sse_movlhps): Merge with *avx_movlhps.
5225         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5226         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5227         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5228         (sse_loadhps): Merge with *avx_loadhps.
5229         (sse_storelps): Merge with *avx_storelps.
5230         (sse_loadlps): Merge with *avx_loadlps.
5231         (sse_movss): Merge with *avx_movss.
5232         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5233         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5234         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5235         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5236         (vec_set<mode>_0): Ditto.
5237         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5238         (sse4_1_insertps): Merge with *avx_insertps.
5239         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5240         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5241         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5242         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5243         (sse2_storehpd): Merge with *avx_storehpd.
5244         (sse2_loadhpd): Merge with *avx_loadhpd.
5245         (sse2_loadlpd): Merge with *avx_loadlpd.
5246         (sse2_movsd): Merge with *avx_movsd.
5247         (*vec_concatv2df): Merge with *vec_concatv2df.
5248
5249 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5250
5251         PR debug/48343
5252         * combine.c (combine_instructions): Add last_combined_insn,
5253         update it if insn is after it, pass it to all try_combine calls.
5254         (try_combine): Add last_combined_insn parameter, pass it instead of
5255         i3 to propagate_for_debug.
5256
5257 2011-04-07  Nick Clifton  <nickc@redhat.com>
5258
5259         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5260         to handle MDR <-> data register transfers.
5261         (movhi_internal): Likewise.
5262
5263 2011-04-07  Alan Modra  <amodra@gmail.com>
5264
5265         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5266         previous stack info.
5267
5268 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5269
5270         PR target/43920
5271         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5272         flow_find_cross_jump.  Swap variables to implement backward replacement.
5273         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5274
5275 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5276
5277         PR target/43920
5278         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5279         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5280         and bb2.
5281         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5282         src1 or src2.  Redirect edges to the last basic block.  Update
5283         frequency and count on multiple basic blocks in case of fallthru.
5284
5285 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5286
5287         PR target/43920
5288         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5289         function.
5290         (old_insns_match_p): Change return type.  Replace return false/true
5291         with return dir_none/dir_both.  Use can_replace_by.
5292         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5293         direction from dir_p.  Register replacement direction in dir, last_dir
5294         and afterlast_dir.  Handle new return type of old_insns_match_p using
5295         merge_dir.  Return replacement direction in dir_p.
5296         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5297         return type of old_insns_match_p.
5298         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5299         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5300         flow_find_cross_jump.
5301         * basic-block.h (enum replace_direction): New type.
5302         (flow_find_cross_jump): Add parameter to declaration.
5303
5304 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5305
5306         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5307         (AVXMODEDCVTPS2DQ): Ditto.
5308         (VEC_FLOAT_MODE): Ditto.
5309         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5310         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5311         (<any_logic:code><mode>3): Use VF mode iterator.
5312         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5313         Use VF mode iterator.
5314         (copysign<mode>3): Use VF mode iterator.
5315         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5316         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5317         (*<any_logic:code><MODEF:mode>3): Merge with
5318         *avx_<any_logic:code><MODEF:mode>3.
5319         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5320         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5321         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5322         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5323         (sse2_cvtdq2ps): Use %v modifier.
5324         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5325         (avx_cvtps2dq<avxmodesuffix>): Remove.
5326         (sse2_cvtps2dq): Use %v modifier.
5327         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5328         (avx_cvttps2dq<avxmodesuffix>): Remove.
5329         (sse2_cvttps2dq): Use %v modifier.
5330         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5331         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5332         (sse2_cvtsd2siq): Fix insn template.
5333         (sse2_cvtsd2siq_2): Ditto.
5334         (sse2_cvttsd2siq): Ditto.
5335         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5336         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5337
5338 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5339
5340         * gcov-io.c: Use GCC Runtime Library Exception.
5341
5342 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5343
5344         PR debug/48466
5345         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5346         as base_reg whatever register reg has been eliminated to, instead
5347         of hardcoding STACK_POINTER_REGNUM.
5348
5349 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5350
5351         * doc/tm.texi.in: Document C target hooks as separate from general
5352         target hooks.
5353         * doc/tm.texi: Regenerate.
5354         * genhooks.c (struct hook_desc): Add docname field.
5355         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5356         docname field.
5357         (hook_array): Include c-target.def.
5358         (emit_documentation): Use docname field in output.
5359         (emit_init_macros): Take docname argument.  Only emit definitions
5360         for hooks matching docname.
5361         (main): Expect additional arguments in all cases.  Pass argument
5362         to emit_init_macros.
5363         * target.def: Move initial macro definitions and comments to
5364         target-hooks-macros.h.
5365         (gcc_targetcm): Move to c-family/c-target.def.
5366         * target.h (targetcm): Move declaration to c-family/c-target.h.
5367         * targhooks.c (default_handle_c_option): Move to
5368         c-family/c-opts.c.
5369         * targhooks.h (default_handle_c_option): Move declaration to
5370         c-family/c-common.h.
5371         * target-hooks-macros.h: New file.
5372         * config.gcc (target_has_targetcm): Define and use to add to
5373         c_target_objs and cxx_target_objs.
5374         * config/default-c.c: New file.
5375         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5376         of target.h and target-def.h.
5377         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5378         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5379         darwin_check_cfstring_format_arg): Make static.
5380         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5381         TARGET_STRING_OBJECT_REF_TYPE_P,
5382         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5383         * config/darwin-protos.h (darwin_objc_construct_string,
5384         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5385         declare.
5386         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5387         TARGET_STRING_OBJECT_REF_TYPE_P,
5388         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5389         * config/t-darwin (darwin-c.o): Update dependencies.
5390         * system.h (TARGET_HAS_TARGETCM): Poison.
5391         * Makefile.in (TARGET_H): Update.
5392         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5393         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5394         (default-c.o): New target.
5395         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5396         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5397         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5398         c-target.def.
5399         (build/genhooks.o): Update dependencies.
5400
5401 2011-04-06  Richard Guenther  <rguenther@suse.de>
5402
5403         * ipa-inline.c (enum inlining_mode): Remove.
5404         (cgraph_flatten): Use some other token.
5405         (cgraph_edge_early_inlinable_p): New function, split out from ...
5406         (cgraph_perform_always_inlining): New function, split out from ...
5407         (cgraph_decide_inlining_incrementally): ... here.
5408         (cgraph_mark_inline_edge): Adjust.
5409         (cgraph_early_inlining): Re-structure.
5410         (pass_early_inline): Require SSA form.
5411
5412 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5413             Julian Brown  <julian@codesourcery.com>
5414             Mark Shinwell  <shinwell@codesourcery.com>
5415
5416         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5417         LO_REGS only for Thumb-1.
5418         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5419         be used in short instructions when optimising for size on Thumb-2.
5420
5421 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5422
5423         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5424         associated with user returns to be preserved.
5425
5426 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5427
5428         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5429         symbol_queue_size, DBXOUT_DECR_NESTING,
5430         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5431         if XCOFF_DEBUGGING_INFO.
5432
5433 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5434
5435         * config/i386/i386.md (attribute isa): New.
5436         (attribute enabled): New.
5437         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5438         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5439         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5440         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5441         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5442         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5443         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5444         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5445
5446         * config/i386/sse.md (VF): New mode iterator.
5447         (VF1): Ditto.
5448         (VF2): Ditto.
5449         (VF_128): Ditto.
5450         (SSEMODEF4): Remove.
5451         (attribute sse): Handle V8SF and V4DF modes.
5452         (<absneg:code><mode>2): Use VF mode iterator.
5453         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5454         mode iterator.
5455         (<plusminus_insn><mode>3): Use VF mode iterator.
5456         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5457         Use VF mode iterator.
5458         (<sse>_vm<plusminus_insn><mode>3): Merge with
5459         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5460         (mul<mode>3): Use VF mode iterator.
5461         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5462         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5463         mode iterator.
5464         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5465         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5466         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5467         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5468         mode iterator.
5469         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5470         Use VF1 mode iterator.
5471         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5472         (sqrt<VF2:mode>2): New expander.
5473         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5474         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5475         and sqrtv2df2.  Use VF mode iterator.
5476         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5477         mode iterator.
5478         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5479         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5480         Use VF1 mode iterator.
5481         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5482         (<smaxmin:code><mode>3): Use VF mode iterator.
5483         (*<smaxmin:code><mode>3_finite): Merge with
5484         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5485         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5486         (<sse>_vm<smaxmin:code><mode>2): Merge with
5487         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5488         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5489         mode iterator.
5490         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5491         mode iterator.
5492         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5493         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5494         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5495         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5496         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5497         VF mode iterator.
5498         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5499         Use VF_128 mode iterator.
5500         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5501         mode iterator.
5502         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5503         VF_128 mode iterator.
5504         (vcond<mode>): Use VF mode iterator.
5505         * config/i386/predicates.md (sse_comparison_operator): Merge with
5506         avx_comparison_float_operator.  Do not declare as special_predicate.
5507         * config/i386/i386.c (struct builtin_description): Update for renamed
5508         compare patterns.
5509         (ix86_expand_args_builtin): Ditto.
5510         (ix86_expand_sse_compare_mask): Ditto.
5511
5512 2011-04-06  Richard Guenther  <rguenther@suse.de>
5513
5514         * tree-inline.c (estimate_num_insns): For calls simply account
5515         for all passed arguments and a used return value.
5516
5517 2011-04-06  Richard Guenther  <rguenther@suse.de>
5518
5519         PR tree-optimization/47663
5520         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5521         call_stmt_time fields.
5522         (cgraph_edge_inlinable_p): Declare.
5523         (cgraph_edge_recursive_p): New inline function.
5524         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5525         (cgraph_clone_edge): Copy it.
5526         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5527         Account for call stmt time.
5528         (cgraph_estimate_time_after_inlining): Take edge argument.
5529         (cgraph_estimate_edge_growth): Account call stmt size.
5530         (cgraph_estimate_size_after_inlining): Take edge argument.
5531         (cgraph_mark_inline_edge): Adjust.
5532         (cgraph_check_inline_limits): Likewise.
5533         (cgraph_recursive_inlining_p): Remove.
5534         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5535         (cgraph_decide_recursive_inlining): Take edge argument and
5536         adjust.
5537         (cgraph_decide_inlining_of_small_functions): Do not avoid
5538         diags for recursive inlining here.
5539         (cgraph_flatten): Adjust.
5540         (cgraph_decide_inlining_incrementally): Likewise.
5541         (estimate_function_body_sizes): Remove call cost handling.
5542         (compute_inline_parameters): Initialize caller edge call costs.
5543         (cgraph_estimate_edge_growth): New function.
5544         (cgraph_estimate_growth): Use it.
5545         (cgraph_edge_badness): Likewise.
5546         (cgraph_check_inline_limits): Take an edge argument.
5547         (cgraph_decide_inlining_of_small_functions): Adjust.
5548         (cgraph_decide_inlining): Likewise.
5549         * tree-inline.c (estimate_num_insns): Only account for call
5550         return value if it is used.
5551         (expand_call_inline): Avoid diagnostics on recursive inline
5552         functions here.
5553         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5554         (input_edge): Input edge call costs.
5555
5556 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5557
5558         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5559
5560 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5561
5562         * doc/invoke.texi (Spec Files): Fix typo.
5563
5564 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5565
5566         * profile.c (branch_prob): Move declaration of local variable.  Remove
5567         obsolete ??? comment.  Expand the location explicitly instead of using
5568         the LOCATION_FILE and LOCATION_LINE macros.
5569
5570 2011-04-06  Wei Guozhi  <carrot@google.com>
5571
5572         PR target/47855
5573         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5574         (arm_cond_branch): Likewise.
5575         (arm_cond_branch_reversed): Likewise.
5576         (arm_jump): Likewise.
5577         (push_multi): Likewise.
5578         * config/arm/constraints.md (Py): New constraint.
5579
5580 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5581
5582         PR bootstrap/48471
5583         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5584         Move these...
5585         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5586         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5587         #ifdef DBX_DEBUGGING_INFO.
5588
5589 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5590
5591         PR bootstrap/48403
5592         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5593         if old and new states differ.
5594
5595 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5596
5597         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5598         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5599         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5600         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5601         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5602         mcfv4e): Use Alias.
5603         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5604         ColdFire options to -mcpu= options.
5605
5606 2011-04-05  Jeff Law  <law@redhat.com>
5607
5608         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5609         check if BB is a successor of LOOP->header and return
5610         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5611
5612 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5613
5614         * cprop.c (struct reg_use): Remove.
5615         (reg_use_table): Make an array of RTX.
5616         (find_used_regs, constprop_register, local_cprop_pass,
5617         bypass_block): Simplify users of reg_use_table.
5618         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5619         on one of the uses found by find_used_regs.
5620
5621 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5622
5623         PR bootstrap/48469
5624         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5625         declaration.
5626
5627 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5628
5629         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5630         as an rtx.
5631         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5632
5633 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5634
5635         PR middle-end/48441
5636         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5637
5638 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5639
5640         * combine.c: Include obstack.h.
5641         (struct insn_link): Define.
5642         (uid_log_links): Adjust type.
5643         (FOR_EACH_LOG_LINK): New macro.
5644         (insn_link_obstack): Declare.
5645         (alloc_insn_link): Define.
5646         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5647         type of link variables.
5648         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5649         (try_combine, record_promoted_values, distribute_notes): Likewise.
5650         (distribute_links): Likewise.  Tweak prototype.
5651         (clear_log_links): Delete.
5652         (adjust_for_new_dest): Call alloc_insn_link.
5653         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5654
5655 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5656
5657         * gcse.c (modify_mem_list): Convert to an array of VECs.
5658         (canon_modify_mem_list, compute_transp): Tweak formatting.
5659         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5660         (load_killed_in_block_p): Likewise.
5661         (record_last_mem_set_info): Likewise.
5662         (clear_modify_mem_tables): Likewise.
5663
5664 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5665
5666         PR middle-end/48461
5667         * function.c (emit_use_return_register_into_block): Only define if
5668         HAVE_return.
5669
5670 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5671
5672         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5673
5674 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5675
5676         * config/rx/rx-opts.h: New.
5677         * config/rx/rx.c (rx_cpu_type): Remove.
5678         (rx_handle_option): Don't assert that global structures are in
5679         use.  Access variables via opts pointer.  Defer most handling of
5680         OPT_mint_register_.  Use error_at.
5681         (rx_option_override): Handle deferred OPT_mint_register_ here.
5682         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5683         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5684         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5685         (rx_cpu_types): New Enum and EnumValue entries.
5686         (mint-register=): Use Defer and use Var accordingly.
5687
5688 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5689
5690         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5691         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5692         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5693         Move these...
5694         (debug_free_queue, debug_nesting, symbol_queue_index):
5695         ...and these...
5696         * dbxout.c: ...to here.  Make static.
5697
5698 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5699
5700         * gcse.c (modify_pair): Define.  Define a VEC of it.
5701         (canon_modify_mem_list): Convert to an array of VECs.
5702         (free_insn_expr_list_list): Delete.
5703         (clear_modify_mem_tables): Call VEC_free instead.
5704         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5705         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5706         (canon_list_insert, compute_transp): Likewise.
5707
5708 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5709
5710         PR target/43920
5711         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5712         for size.
5713
5714 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5715
5716         PR target/43920
5717         * function.c (emit_use_return_register_into_block): New function.
5718         (thread_prologue_and_epilogue_insns): Use
5719         emit_use_return_register_into_block.
5720
5721 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5722
5723         PR target/43920
5724         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5725         insn.
5726
5727 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5728
5729         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5730
5731 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5732
5733         * config/arm/arm.md (define_constants for unspec): Replace with
5734         define_c_enum.
5735         (define_constants for unspecv): Replace with define_c_enum.
5736         * config/arm/neon.md (define_constants for unspec): Replace with
5737         define_c_enum.
5738
5739 2011-04-04  Richard Henderson  <rth@redhat.com>
5740
5741         PR bootstrap/48400
5742         * dwarf2out.c (output_line_info): Always emit line info from
5743         at least one section.
5744         (dwarf2out_init): Create text_section_line_info here ...
5745         (set_cur_line_info_table): ... not here.
5746
5747 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5748
5749         PR target/48380
5750         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5751         not called.
5752
5753         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5754
5755 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5756
5757         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5758         (expr_equiv_p): Remove.
5759         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5760         (hash_scan_set): Update call to insert_set_in_table.
5761         (dump_hash_table): Dump <dest, src> pair.
5762         (lookup_set): Simplify.  Lookup <dest, src> pair.
5763         (compute_transp): Remove, fold heavily simplified code into...
5764         (compute_local_properties): ...here.  Expect COMP and TRANSP
5765         unconditionally.
5766         (find_avail_set): Take set directly from struct expr.
5767         (find_bypass-set): Likewise.
5768         (bypass_block): Likewise.
5769         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5770
5771         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5772         checks on form of COND from find_implicit_sets to here.
5773         (find_implicit_sets): Cleanup control flow. Split critical edges
5774         if it exposes implicit sets.  Allocate/resize implicit_sets as
5775         necessary.
5776         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5777         changed something.  Run df_analyze after find_implicit_sets if any
5778         edges were split.  Do not allocate implicit_sets here.
5779
5780         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5781         (gcse_obstack): Renamed to cprop_obstack.
5782         (GNEW, GNEWVEC, GNEWVAR): Remove.
5783         (gmalloc): Remove.
5784         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5785         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5786         (gcse_alloc): Likewise, and rename to cprop_alloc.
5787         (alloc_gcse_men, free_gcse_mem): Remove.
5788         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5789         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5790         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5791
5792         * cprop.c (oprs_not_set_p): Remove.
5793         (mark_set, mark_clobber): Remove.
5794         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5795         (reg_not_set_p): New function.
5796         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5797         (cprop_insn): Likewise.
5798         (cprop_jump): Use FOR_EACH_EDGE.
5799
5800 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5801
5802         PR bootstrap/48403
5803         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5804         (rank_for_schedule): Use scheduled_insns vector instead of
5805         last_scheduled_insn.
5806         (ok_for_early_queue_removal): Likewise.
5807         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5808         we have a dbg_cnt.
5809         (choose_ready): Likewise.
5810         (commit_schedule): Use VEC_iterate.
5811         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5812         a dbg_cnt, use it and ensure the first insn is in the ready list.
5813         (haifa_sched_init): Allocate scheduled_insns.
5814         (sched_extend_ready_list): Don't allocate it; reserve space.
5815         (haifa_sched_finish): Free it.
5816
5817 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5818
5819         * optc-gen.awk: Always remove type from Variable entry before
5820         recording in var_seen.
5821
5822 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5823
5824         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5825         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5826         call to tidy_fallthru_edges.
5827
5828 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5829
5830         * doc/options.texi (ToLower): Document.
5831         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5832         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5833         * opts.h (cl_option): Add cl_tolower field.
5834         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5835         arguments with lowercase strings.
5836         * config/rx/rx.opt (mcpu=): Add ToLower.
5837         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5838         argument.
5839
5840 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5841
5842         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5843
5844 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5845
5846         * config/vax/vax.c: Include reload.h.
5847
5848 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5849
5850         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5851         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5852         (sparc_preferred_reload_class): New function.
5853
5854 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5855
5856         PR debug/48401
5857         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5858         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5859
5860 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5861
5862         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5863         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5864
5865 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5866
5867         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5868         (ASM_OUTPUT_ALIGNED_BSS): Define.
5869
5870 2011-04-03  Michael Matz  <matz@suse.de>
5871
5872         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5873         and next_slot members.
5874         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5875         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5876         (lto_streamer_cache_append): Declare.
5877         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5878         unsigned index, remove offset parameter, ensure that we append
5879         or update existing entries.
5880         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5881         parameter, update next_slot for append.
5882         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5883         parameter.
5884         (lto_streamer_cache_insert_at): Likewise.
5885         (lto_streamer_cache_append): New function.
5886         (lto_streamer_cache_lookup): Use unsigned index.
5887         (lto_streamer_cache_get): Likewise.
5888         (lto_record_common_node): Don't test tree_node_can_be_shared.
5889         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5890         (lto_streamer_cache_delete): Don't free offsets member.
5891         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5892         (lto_output_string_with_length): Use lto_output_data_stream.
5893         (lto_output_tree_header): Remove ix parameter, don't write it.
5894         (lto_output_builtin_tree): Likewise.
5895         (lto_write_tree): Adjust callers to above, don't track and write
5896         offset, write unsigned index.
5897         (output_unreferenced_globals): Don't emit all global vars.
5898         (write_global_references): Use unsigned indices.
5899         (lto_output_decl_state_refs): Likewise.
5900         (write_symbol): Likewise.
5901         * lto-streamer-in.c (lto_input_chain): Move earlier.
5902         (input_function): Use unsigned index.
5903         (input_alias_pairs): Don't read and then ignore all global vars.
5904         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5905         don't pass it back, use lto_streamer_cache_append.
5906         (lto_register_var_decl_in_symtab): Use unsigned index.
5907         (lto_register_function_decl_in_symtab): Likewise.
5908         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5909         index.
5910         (lto_get_builtin_tree): Don't read index, use
5911         lto_streamer_cache_append.
5912         (lto_read_tree): Adjust call to lto_materialize_tree.
5913
5914         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5915         don't use function calls in arguments to MIN.
5916
5917         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5918         twice.
5919
5920         * gimple.c (gimple_type_leader_entry): Mark deletable.
5921
5922 2011-04-03  Alan Modra  <amodra@gmail.com>
5923
5924         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5925
5926 2011-04-03  Michael Matz  <matz@suse.de>
5927
5928         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5929         an integer.
5930         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5931
5932 2011-04-03  Michael Matz  <matz@suse.de>
5933
5934         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5935         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5936         without function context.
5937         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5938         current_function_decl and cfun.
5939
5940 2011-04-03  Michael Matz  <matz@suse.de>
5941
5942         * tree.c (decl_init_priority_insert): Don't create entry for
5943         default priority.
5944         (decl_fini_priority_insert): Ditto.
5945         (fields_compatible_p, find_compatible_field): Remove.
5946         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5947         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5948
5949 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5950
5951         * combine.c (try_combine): Remove useless local variable.
5952
5953 2011-04-03  Richard Guenther  <rguenther@suse.de>
5954             Ira Rosen  <ira.rosen@linaro.org>
5955
5956         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5957         non-variable offsets and compare the remaining bases of the two
5958         accesses instead of looking for exact same data-ref.
5959
5960 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5961
5962         PR target/48416
5963         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5964
5965         * i386.c (ix86_is_msabi_thiscall): New helper function.
5966         (ix86_is_type_thiscall): New helper function.
5967         (ix86_comp_type_attributes): Handle thiscall for method-functions
5968         special.
5969         (init_cumulative_args): Likewise.
5970         (find_drap_reg): Likewise.
5971         (ix86_static_chain): Likewise.
5972         (x86_this_parameter): Likewise.
5973         (x86_output_mi_thunk): Likewise.
5974
5975 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5976             Nicolas Setton  <setton@adacore.com>
5977             Eric Botcazou  <ebotcazou@adacore.com>
5978
5979         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5980         (add_gnat_descriptive_type_attribute): New function.
5981         (gen_array_type_die): Call it.
5982         (gen_enumeration_type_die): Likewise.
5983         (gen_struct_or_union_type_die): Likewise.
5984         (modified_type_die): Likewise.
5985         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5986         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5987         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5988
5989 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5990
5991         PR bootstrap/48148
5992         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5993         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5994
5995         Revert:
5996         2011-03-17  Richard Guenther  <rguenther@suse.de>
5997
5998         PR bootstrap/48148
5999         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6000         origin for decls in other ltrans units.
6001         (input_varpool_node): Likewise.
6002
6003 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6004
6005         PR middle-end/48335
6006         * expr.c (expand_assignment): Handle all possibilities
6007         if TO_RTX is CONCAT.
6008         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6009         (store_split_bit_field): If SUBREG_REG (op0) or
6010         op0 itself has smaller mode than word, return it
6011         for offset 0 and const0_rtx for out-of-bounds stores.
6012         If word is const0_rtx, skip it.
6013
6014 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6015
6016         * config/h8300/h8300.c (print_operand_address): Rename to...
6017         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6018         Call h8300_print_operand and h8300_print_operand_address instead of
6019         print_operand and print_operand_address. Declare.
6020         (print_operand): Renake to...
6021         (h8300_print_operand): ...this. Make static. Adjust comments.
6022         Call h8300_print_operand instead of print_operand. Declare.
6023         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6024         (h8300_register_move_cost): Likewise.
6025         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6026         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6027         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6028         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6029         * config/h8300/h8300-protos.h (print_operand): Delete.
6030         (print_operand_address): Delete.
6031
6032 2011-04-01  Richard Henderson  <rth@redhat.com>
6033
6034         PR 48400
6035         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6036         in strict mode before dwarf4.  Re-order tests to early out
6037         before switching sections.
6038
6039 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6040
6041         * config/h8300/constraints.md: New file.
6042         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6043         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6044         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6045         * config/h8300/predicates.md (bit_operand): Likewise.
6046         (incdec_operand): Use satisfies_constraint_M and
6047         satisfies_constraint_O.  Don't use C code block.
6048         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6049         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6050         (compute_mov_length): Use satisfies_constraint_G.
6051         (fix_bit_operand): Use satisfies_constraint_U.
6052         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6053         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6054         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6055         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6056         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6057         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6058         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6059         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6060         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6061         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6062         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6063         (EXTRA_MEMORY_CONSTRAINT): Delete.
6064
6065 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6066             Michael Meissner  <meissner@linux.vnet.ibm.com>
6067
6068         PR target/48262
6069         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6070         operands, as per the specifications.
6071
6072         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6073         (vec_extract_evenv4sf): Ditto.
6074         (vec_extract_evenv8hi): Ditto.
6075         (vec_extract_evenv16qi): Ditto.
6076         (vec_extract_oddv4si): Ditto.
6077
6078 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6079
6080         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6081         high_pc attribute if the CU has no associated code. Only output
6082         DW_AT_entry_pc for CU if not generating strict dwarf and
6083         dwarf_version < 4.
6084
6085 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6086
6087         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6088         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6089         out of ...
6090         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6091         * final.c (final_start_function): Call the new function rather
6092         than using a NULL argument for dwarf2out_frame_debug.
6093
6094         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6095         that contains the prologue.
6096
6097         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6098         changed.  Print it in debugging output.
6099
6100         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6101
6102         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6103         Split most of the code into...
6104         (begin_move_insn): ... here.  New function.
6105         (ebb_sched_info): Add a pointer to it.
6106         * haifa-sched.c (scheduled_insns): New static variable.
6107         (sched_extend_ready_list): Allocate it.
6108         (schedule_block): Use it to record the order of scheduled insns.
6109         Perform RTL changes to move insns only after all scheduling
6110         decisions have been made.
6111         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6112         begin_move_insn field.
6113         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6114         * sched-int.h (struct haifa_sched_info): Remove second argument
6115         from begin_schedule_ready hook.  Add new member begin_move_insn.
6116         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6117         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6118
6119         * haifa-sched.c (prune_ready_list): New function, broken out of
6120         schedule_block.
6121         (schedule_block): Use it.
6122
6123 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6124
6125         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6126
6127 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6128
6129         * config.gcc (*-*-mingw*): Allow as option the
6130         posix threading model.
6131         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6132         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6133         definition.
6134         (CPP_SPEC): Add pthread/no-pthread handling.
6135         (LIB_SPEC): Likewise.
6136         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6137         (LIB_SPEC): Likewise.
6138         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6139         flag to pass -pthread option for shared libgcc build.
6140         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6141         for shared libgcc build.
6142         * config/i386/t-mingw-pthread: New file.
6143         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6144         New define to enable use of library pthread by default.
6145         * config/i386/mingw.opt (pthread): New driver option.
6146         (no-pthread): New driver option.
6147         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6148         * config/i386/mingw-w64.opt: Likewise.
6149
6150 2011-04-01  Gary Funck <gary@intrepid.com>
6151
6152         * c-decl.c (grokdeclarator): Fix formatting.
6153
6154 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6155
6156         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6157         instead of n_operands.
6158         (set_storage_via_setmem): Likewise.
6159         * optabs.c (maybe_gen_insn): Likewise.
6160         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6161         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6162         (mips_expand_builtin_direct): Likewise.
6163         * config/spu/spu.c (expand_builtin_args): Likewise.
6164
6165 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6166
6167         * recog.h (insn_data_d): Add n_generator_args.
6168         * genoutput.c (data): Likewise.
6169         (output_insn_data): Print it.
6170         (max_opno, num_dups): Delete.
6171         (scan_operands): Just fill in "d->operand[...]".
6172         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6173
6174 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6175
6176         * gensupport.h (pattern_stats): New structure.
6177         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6178         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6179         (max_operand_1, max_operand_vec): Delete.
6180         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6181
6182 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6183
6184         * emit-rtl.c (emit_pattern_after_setloc): New function.
6185         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6186         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6187         (emit_pattern_after): New function.
6188         (emit_insn_after, emit_jump_insn_after): Call it.
6189         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6190         (emit_pattern_before_setloc): New function.
6191         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6192         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6193         Likewise.
6194         (emit_pattern_before): New function.
6195         (emit_insn_before, emit_jump_insn_before): Call it.
6196         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6197
6198 2011-03-31  Richard Henderson  <rth@redhat.com>
6199
6200         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6201         (dw_separate_line_info_entry): Remove.
6202         (enum dw_line_info_opcode): New.
6203         (dw_line_info_entry): Use it.
6204         (dw_line_info_table, dw_line_info_table_p): New.
6205         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6206         (line_info_table, line_info_label_num): Remove.
6207         (line_info_table_in_use): Remove.
6208         (separate_line_info_table): Remove.
6209         (separate_line_info_table_allocated): Remove.
6210         (separate_line_info_table_in_use): Remove.
6211         (LINE_INFO_TABLE_INCREMENT): Remove.
6212         (line_info_label_num): New.
6213         (cur_line_info_table): New.
6214         (text_section_line_info, cold_text_section_line_info): New.
6215         (separate_line_info): New.
6216         (SEPARATE_LINE_CODE_LABEL): Remove.
6217         (print_dwarf_line_table): Remove.
6218         (debug_dwarf): Don't dump it.
6219         (output_one_line_info_table): New.
6220         (output_line_info): Use it.
6221         (new_line_info_table): New.
6222         (set_cur_line_info_table): New.
6223         (dwarf2out_switch_text_section): Use it.
6224         (dwarf2out_begin_function): Likewise.
6225         (push_dw_line_info_entry): New.
6226         (dwarf2out_source_line): Rewrite for new line info tables.
6227         (dwarf2out_init): Remove dead initailizations.
6228
6229 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6230
6231         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6232         various flags.
6233         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6234         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6235         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6236         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6237         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6238         * opt-functions.awk (flag_init, switch_bit_fields): New.
6239         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6240         generate CL_MISSING_OK or CL_SAVE.
6241         * optc-gen.awk: Update to generate bit-field output as well as
6242         flags field.
6243         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6244         bit-field instead of CL_REJECT_DRIVER flag.
6245         * opts-common.c (generate_canonical_option,
6246         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6247         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6248         instead of CL_REJECT_NEGATIVE flag.
6249         * toplev.c (print_switch_values): Use cl_report bit-field instead
6250         of CL_REPORT flag.
6251
6252 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6253
6254         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6255         a zero minimum index only if it is redundant.
6256
6257 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6258
6259         PR rtl-optimization/48381
6260         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6261         instead of ira_class_hard_reg_index for calculating conflicting
6262         hard registers.
6263
6264 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6265
6266         * cprop.c: Clean up hash table building.
6267         (reg_avail_info): Remove.
6268         (oprs_available_p): Remove.
6269         (record_last_reg_set_info): Remove.
6270         (record_last_set_info): Remove.
6271         (reg_available_p): New function.
6272         (gcse_constant_p): Do not treat unfolded conditions as constants.
6273         (make_set_regs_unavailable): New function.
6274         (hash_scan_set): Simplify with new reg_available_p.
6275         (compute_hash_table_work): Traverse insns stream only once.
6276         Do not compute reg_avail_info. Traverse insns in reverse order.
6277         Record implicit sets after recording explicit sets from the block.
6278
6279 2011-03-31  Michael Matz  <matz@suse.de>
6280
6281         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6282
6283 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6284
6285         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6286         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6287         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6288         (h8300_mode_dependent_address_p): New function.
6289         (h8300_get_index): Make static.
6290
6291 2011-03-31  Jeff Law  <law@redhat.com>
6292
6293         * reload1.c (elimination_effects): Fix typo in recent change.
6294
6295         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6296         typo potentially leading to null pointer dereference.
6297
6298         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6299         (setup_save_areas): Corresponding changes to avoid useless
6300         assignments.
6301
6302         * jump.c (reversed_comparison_code_parts): Avoid successive return
6303         statements when REVERSE_CONDITION is defined.
6304
6305         * expr.c (expand_assignment): Avoid useless assignments.
6306         (expand_expr_real_1): Likewise.
6307         (expand_expr_real_2): Avoid useless statements.
6308
6309         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6310
6311         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6312
6313         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6314         statements.
6315
6316         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6317
6318 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6319
6320         PR target/47109
6321         * doc/tm.texi.in (TARGET_VERSION): Remove.
6322         * doc/tm.texi: Regenerate.
6323         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6324         * collect2.c (main): Don't use TARGET_VERSION.
6325         * mips-tdump.c (main): Don't use TARGET_VERSION.
6326         * mips-tfile.c (main): Don't use TARGET_VERSION.
6327         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6328         * config/rs6000/vxworksae.h: Remove.
6329         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6330         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6331         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6332         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6333         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6334         * config/arm/arm.h (TARGET_VERSION): Remove.
6335         * config/arm/coff.h (TARGET_VERSION): Remove.
6336         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6337         * config/arm/elf.h (TARGET_VERSION): Remove.
6338         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6339         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6340         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6341         * config/arm/pe.h (TARGET_VERSION): Remove.
6342         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6343         * config/arm/semi.h (TARGET_VERSION): Remove.
6344         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6345         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6346         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6347         * config/avr/avr.h (TARGET_VERSION): Remove.
6348         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6349         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6350         * config/frv/frv.h (TARGET_VERSION): Remove.
6351         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6352         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6353         * config/i386/darwin.h (TARGET_VERSION): Remove.
6354         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6355         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6356         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6357         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6358         * config/i386/gnu.h (TARGET_VERSION): Remove.
6359         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6360         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6361         * config/i386/linux.h (TARGET_VERSION): Remove.
6362         * config/i386/linux64.h (TARGET_VERSION): Remove.
6363         * config/i386/lynx.h (TARGET_VERSION): Remove.
6364         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6365         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6366         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6367         * config/i386/netware.h (TARGET_VERSION): Remove.
6368         * config/i386/nto.h (TARGET_VERSION): Remove.
6369         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6370         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6371         * config/ia64/elf.h (TARGET_VERSION): Remove.
6372         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6373         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6374         * config/ia64/linux.h (TARGET_VERSION): Remove.
6375         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6376         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6377         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6378         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6379         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6380         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6381         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6382         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6383         * config/m68k/linux.h (TARGET_VERSION): Remove.
6384         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6385         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6386         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6387         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6388         * config/mep/mep.h (TARGET_VERSION): Remove.
6389         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6390         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6391         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6392         * config/mips/linux.h (TARGET_VERSION): Remove.
6393         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6394         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6395         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6396         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6397         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6398         * config/pa/pa.h (TARGET_VERSION): Remove.
6399         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6400         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6401         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6402         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6403         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6404         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6405         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6406         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6407         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6408         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6409         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6410         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6411         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6412         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6413         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6414         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6415         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6416         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6417         * config/s390/linux.h (TARGET_VERSION): Remove.
6418         * config/s390/s390.h (TARGET_VERSION): Remove.
6419         * config/s390/tpf.h (TARGET_VERSION): Remove.
6420         * config/score/score.h (TARGET_VERSION): Remove.
6421         * config/sh/linux.h (TARGET_VERSION): Remove.
6422         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6423         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6424         * config/sh/sh.h (TARGET_VERSION): Remove.
6425         * config/sh/sh64.h (TARGET_VERSION): Remove.
6426         * config/sh/superh.h (TARGET_VERSION): Remove.
6427         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6428         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6429         * config/sparc/linux.h (TARGET_VERSION): Remove.
6430         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6431         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6432         TARGET_NAME32, TARGET_NAME): Remove.
6433         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6434         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6435         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6436         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6437         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6438         * config/spu/spu.h (TARGET_VERSION): Remove.
6439         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6440         * config/v850/v850.h (TARGET_VERSION): Remove.
6441         * config/vax/linux.h (TARGET_VERSION): Remove.
6442         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6443         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6444         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6445
6446 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6447
6448         PR target/48142
6449         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6450         frame-related from frame-unrelated adjustments to the stack pointer.
6451
6452 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6453
6454         * common.opt (fdebug-types-section): Move earlier.
6455         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6456
6457 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6458
6459         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6460         var.
6461
6462 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6463
6464         * tree.h (CASE_CHAIN): Define.
6465         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6466         (gimple_redirect_edge_and_branch): Likewise.
6467
6468 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6469
6470         PR middle-end/48367
6471         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6472         calculation.
6473
6474 2011-03-30  Jeff Law  <law@redhat.com>
6475
6476         * PR bootstrap/48371
6477         * reload1.c (reload): Fix botch in last change.
6478
6479         * reload.h (struct reload): Fix typo introduced in last change.
6480
6481 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6482
6483         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6484         Undocumented.  Remove help text.
6485         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6486         -mhard-float.
6487
6488 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6489
6490         * doc/options.texi (NegativeAlias): Document.
6491         (Alias): Mention NegativeAlias.
6492         * opt-functions.awk: Handle NegativeAlias.
6493         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6494         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6495         * opts.h (CL_NEGATIVE_ALIAS): Define.
6496         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6497         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6498         OPT_mspe_.
6499         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6500         Alias entries.
6501         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6502         mno-spe and mno-isel instead of mspe=no and -misel=no.
6503
6504 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6505
6506         * common.opt (fdebug-types-section): New flag.
6507         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6508         * dwarf2out.c (use_debug_types): New define.
6509         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6510         (print_die): Guard output of type unit signatures using
6511         use_debug_types.
6512         (build_abbrev_table): Replace assert of dwarf_version >= 4
6513         with assert on use_debug_types.
6514         (size_of_die): Likewise.
6515         (unmark_dies): Likewise.
6516         (value_format): Decide AT_ref_external form on use_debug_types.
6517         (output_die): Replace dwarf_version version check guard with
6518         use_debug_types where appropriate.
6519         (modified_type_die): Likewise.
6520         (gen_reference_type_die): Likewise.
6521         (dwarf2out_start_source_file): Likewise.
6522         (dwarf2out_end_source_file): Likewise.
6523         (prune_unused_types_walk_attribs): Likewise.
6524         (dwarf2out_finish): Likewise.
6525
6526 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6527
6528         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6529
6530 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6531
6532         PR rtl-optimization/48332
6533         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6534         mode of input operand N and modeN to its actual mode.
6535
6536 2011-03-30  Jeff Law  <law@redhat.com>
6537
6538         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6539         define accessor macro.
6540         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6541         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6542         (reg_equiv_init): Likewise.
6543         (reg_equivs_size): New variable.
6544         (reg_equiv_init_size): Remove.
6545         (allocate_initial_values): Move prototype to here from....
6546         * integrate.h (allocate_initial_values): Remove prototype.
6547         * integrate.c: Include reload.h.
6548         (allocate_initial_values): Corresponding changes.
6549         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6550         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6551         (update_equiv_regs): Corresponding changes.
6552         (ira): Corresponding changes.
6553         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6554         (push_secondary_reload): Corresponding changes.
6555         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6556         (make_memloc, find_reloads_address): Corresponding changes.
6557         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6558         (find_reloads_address_1): Corresponding changes.
6559         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6560         (refers_to_regno_for_reload_p): Corresponding changes.
6561         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6562         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6563         * reload1.c: Include ggc.h.
6564         (grow_reg_equivs): New function.
6565         (replace_pseudos_in, reload): Corresponding changes.
6566         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6567         (eliminate_regs_1, elimination_effects): Corresponding changes.
6568         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6569         (delete_output_reload): Likewise.
6570         * caller-save.c (mark_referenced_regs): Corresponding changes.
6571         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6572         * frv/predicates.md (frv_load_operand): Corresponding changes.
6573         * microblaze/microblaze.c (double_memory_operand): Corresponding
6574         changes.
6575         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6576         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6577         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6578         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6579         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6580         changes.
6581         * pa/pa.c (emit_move_sequence): Corresponding changes.
6582         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6583
6584 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6585
6586         PR target/47551
6587         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6588         structure modes.  Don't check neon_vector_mem_operand for
6589         vector or structure modes.
6590
6591 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6592             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6593
6594         PR target/43590
6595         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6596         operand 1 and reshuffle the operands to match.
6597         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6598
6599 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6600
6601         PR driver/48208
6602         * config/c.opt (F): Added 'Driver' to -F option.
6603
6604         PR driver/48260
6605         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6606           handler function.
6607         * config/darwin.opt: Added '-arch' option.
6608
6609 2011-03-30  Nick Clifton  <nickc@redhat.com>
6610
6611         * config/rx/rx.md: Add peepholes and patterns to combine
6612         extending loads and simple arithmetic instructions.
6613         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6614         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6615         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6616         modes to use pre-decrement and post-increment addressing.
6617         (rx_is_restricted_memory_address): Add range checking of REG+INT
6618         addresses.
6619         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6620         (rx_memory_move_cost): Adjust cost of stores.
6621         (rx_adjust_insn_length): New function.
6622
6623 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6624
6625         PR c/48305
6626         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6627         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6628         matching arg00/arg01 types.
6629
6630 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6631
6632         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6633         last_location to UNKNOWN_LOCATION.
6634
6635 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6636
6637         PR target/48349
6638         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6639         FLOAT_SSE_REGS.
6640
6641 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6642             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6643
6644         PR bootstrap/48337
6645         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6646         Init(PROCESSOR_V7).
6647         (sparc_cpu): Likewise.
6648         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6649         PROCESSOR_V7.
6650
6651 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6652
6653         PR target/48336
6654         PR middle-end/48342
6655         PR rtl-optimization/48345
6656         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6657         hard regs for given mode from profitable regs when doing secondary
6658         allocation.
6659
6660 2011-03-29  Jeff Law  <law@redhat.com>
6661
6662         PR bootstrap/48327
6663         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6664         do_not_duplicate field.
6665         (lookup_redirection_data): Corresponding changes.
6666         (create_duplicates): Always create a template block.
6667         (redirect_edges): Remove code which reused the original block
6668         when it was going to become unreachable code.
6669         (thread_block): Don't set do_not_duplicate field.
6670
6671 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6672
6673         * lto-opts.c (register_user_option_p, lto_register_user_option):
6674         Make type argument unsigned.
6675         * lto-streamer.h (lto_register_user_option): Make type argument
6676         unsigned.
6677         * opth-gen.awk: Make CL_* macros unsigned.
6678         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6679         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6680         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6681         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6682         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6683         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6684         (find_opt): Make lang_mask argument unsigned.
6685
6686 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6687
6688         PR rtl-optimization/48331
6689         PR rtl-optimization/48334
6690         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6691         for any used algorithm.
6692
6693 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6694
6695         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6696         to parent_max.
6697
6698 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6699
6700         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6701         (alpha_option_override): Don't set alpha_sr_alias_set.
6702         (emit_frame_store_1): Use gen_frame_mem rather than calling
6703         set_mem_alias_set.
6704         (alpha_expand_epilogue): Ditto.
6705
6706 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6707
6708         PR tree-optimization/48290
6709         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6710         vectorization, check that relevant phis in the basic block after
6711         the inner loop are really inner loop's exit phis.
6712
6713 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6714
6715         PR debug/48190
6716         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6717         (cached_dw_loc_list_def): New structure.
6718         (cached_dw_loc_list): New typedef.
6719         (cached_dw_loc_list_table): New variable.
6720         (cached_dw_loc_list_table_hash): New function.
6721         (cached_dw_loc_list_table_eq): Likewise.
6722         (add_location_or_const_value_attribute): Take a bool cache_p.
6723         Cache the list when the parameter is true.
6724         (gen_formal_parameter_die): Update caller.
6725         (gen_variable_die): Likewise.
6726         (dwarf2out_finish): Likewise.
6727         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6728         while generating debug info for the decl.
6729         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6730         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6731         (resolve_addr): Cache the result of resolving a chain of
6732         location lists.
6733
6734 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6735
6736         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6737         conflict object hard regset nodes have intersecting hard reg sets.
6738
6739         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6740         after regstat_init_n_sets_and_refs.
6741
6742         * ira.c: Add more comments at the top.
6743         (setup_stack_reg_pressure_class, setup_pressure_classes):
6744         Add comments how we compute the register pressure classes.
6745         (setup_allocno_and_important_classes): Add more comments.
6746         (setup_class_translate_array, reorder_important_classes)
6747         (setup_reg_class_relations): Add comments.
6748
6749         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6750         start of the file.
6751
6752         * ira-color.c: Add 2011 to the Copyright line.
6753         (assign_hard_reg):  Add more comments.
6754         (improve_allocation): Ditto.
6755
6756         * ira-costs.c: Add 2011 to the Copyright line.
6757         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6758         comments.
6759         (setup_regno_cost_classes_by_mode): Ditto.
6760
6761         Initial patches from ira-improv branch:
6762
6763         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6764
6765         * ira-build.c (ira_create_object): Remove initialization of
6766         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6767         (ira_create_allocno): Remove initialization of
6768         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6769         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6770         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6771         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6772         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6773         Initialize ALLOCNO_ADD_DATA.
6774         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6775         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6776         ALLOCNO_REG.
6777         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6778         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6779
6780         * ira.c (ira_reallocate): Remove.
6781         (setup_pressure_classes): Call
6782         ira_init_register_move_cost_if_necessary.  Use
6783         ira_register_move_cost instead of ira_get_register_move_cost.
6784         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6785         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6786
6787         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6788         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6789         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6790         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6791         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6792         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6793         Fix formatting.
6794         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6795         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6796         (struct allocno_color_data): New.
6797         (allocno_color_data_t): New typedef.
6798         (allocno_color_data): New definition.
6799         (ALLOCNO_COLOR_DATA): New macro.
6800         (struct object_color_data): New.
6801         (object_color_data_t): New typedef.
6802         (object_color_data): New definition.
6803         (OBJECT_COLOR_DATA): New macro.
6804         (update_copy_costs, calculate_allocno_spill_cost): Call
6805         ira_init_register_move_cost_if_necessary.  Use
6806         ira_register_move_cost instead of ira_get_register_move_cost.
6807         (move_spill_restore, update_curr_costs): Ditto.
6808         (allocno_spill_priority): Make it inline.
6809         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6810         (struct coalesce_data, coalesce_data_t): New.
6811         (allocno_coalesce_data): New definition.
6812         (ALLOCNO_COALESCE_DATA): New macro.
6813         (merge_allocnos, coalesced_allocno_conflict_p): Use
6814         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6815         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6816         (coalesce_allocnos): Ditto.
6817         (setup_coalesced_allocno_costs_and_nums): Ditto.
6818         (collect_spilled_coalesced_allocnos): Ditto.
6819         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6820         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6821         (coalesce_spill_slots): Ditto.
6822         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6823         free allocno_coalesce_data.
6824
6825         * ira-conflicts.c: Fix formatting.
6826         (process_regs_for_copy): Call
6827         ira_init_register_move_cost_if_necessary.  Use
6828         ira_register_move_cost instead of ira_get_register_move_cost.
6829         (build_object_conflicts): Optimize.
6830
6831         * ira-costs.c (record_reg_classes): Optimize.  Call
6832         ira_init_register_move_cost_if_necessary.  Use
6833         ira_register_move_cost, ira_may_move_in_cost, and
6834         ira_may_move_out_cost instead of ira_get_register_move_cost and
6835         ira_get_may_move_cost.
6836         (record_address_regs): Ditto.
6837         (scan_one_insn): Optimize.
6838         (find_costs_and_classes): Optimize.
6839         (process_bb_node_for_hard_reg_moves): Call
6840         ira_init_register_move_cost_if_necessary.  Use
6841         ira_register_move_cost instead of ira_get_register_move_cost.
6842
6843         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6844         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6845         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6846         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6847         definitions.
6848         (ira_initiate_emit_data, ira_finish_emit_data)
6849         (create_new_allocno): New functions.
6850         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6851         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6852         Use ira_register_move_cost instead of ira_get_register_move_cost.
6853
6854         * ira-int.h: Fix some comments.
6855         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6856         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6857         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6858         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6859         add_data.
6860         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6861         bitfield after mode.  Make hard_regno a short int.  Make
6862         hard_regno short.  Remove first_coalesced_allocno and
6863         next_coalesced_allocno.  Move mem_optimized_dest_p,
6864         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6865         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6866         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6867         temp, colorable_p.  Add new member add_data.
6868         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6869         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6870         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6871         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6872         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6873         (ALLOCNO_ADD_DATA): New macro.
6874         (ira_emit_data_t): New typedef.
6875         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6876         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6877         from struct ira_allocno.
6878         (ALLOCNO_EMIT_DATA): New macro.
6879         (ira_allocno_emit_data, allocno_emit_reg): New.
6880         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6881         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6882         (OBJECT_ADD_DATA): New macro.
6883         (ira_reallocate): Remove.
6884         (ira_initiate_emit_data, ira_finish_emit_data): New.
6885         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6886         (ira_init_register_move_cost_if_necessary): New.
6887         (ira_object_conflict_iter_next): Merge into
6888         ira_object_conflict_iter_cond.
6889         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6890
6891         * ira-live.c (process_single_reg_class_operands): Call
6892         ira_init_register_move_cost_if_necessary.  Use
6893         ira_register_move_cost instead of ira_get_register_move_cost.
6894
6895         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6896
6897         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6898
6899         * ira-costs.c: Fix formatting.
6900         (cost_classes, cost_classes_num): Remove.
6901         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6902         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6903         (cost_classes_del, cost_classes_htab): New.
6904         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6905         (initiate_regno_cost_classes, setup_cost_classes): New.
6906         (setup_regno_cost_classes_by_aclass): New.
6907         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6908         (record_reg_classes): Use regno_cost_classes instead of
6909         cost_classes.  Move checking opposite operand up.
6910         (record_address_regs): Use regno_cost_classes
6911         instead of cost_classes.
6912         (scan_one_insn): Ditto.  Use always general register.
6913         (print_allocno_costs): Use regno_cost_classes instead of
6914         cost_classes.
6915         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6916         (find_costs_and_classes): Set up cost classes for each registers.
6917         Use also their mode for this.  Use regno_cost_classes instead of
6918         cost_classes.
6919         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6920         cost_classes.
6921         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6922         (ira_costs, ira_set_pseudo_classes): Call
6923         initiate_regno_cost_classes and finish_regno_cost_classes.
6924
6925         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6926
6927         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6928
6929         * target.def (ira_cover_classes): Remove.
6930
6931         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6932
6933         * doc/tm.texi.in: Ditto.
6934
6935         * ira-conflicts.c: Remove mentioning cover classes from the file.
6936         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6937         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6938
6939         * targhooks.c (default_ira_cover_classes): Remove.
6940
6941         * targhooks.h (default_ira_cover_classes): Ditto.
6942
6943         * haifa-sched.c: Remove mentioning cover classes from the file.
6944         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6945         ira_pressure_classes and ira_pressure_classes_num instead of
6946         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6947         sched_regno_pressure_class instead of sched_regno_cover_class.
6948         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6949         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6950
6951         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6952         classes from the file.
6953         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6954         (struct object_hard_regs, struct object_hard_regs_node): New.
6955         (struct ira_object): New members profitable_hard_regs,
6956         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6957         (struct ira_allocno): Rename cover_class to aclass.  Rename
6958         cover_class_cost and updated_cover_class_cost to class_cost and
6959         updated_class_cost.  Remove splay_removed_p and
6960         left_conflict_size.  Add new members colorable_p.
6961         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6962         (ALLOCNO_COLORABLE_P): New macro.
6963         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6964         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6965         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6966         (OBJECT_...): Rename parameter C to O.
6967         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6968         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6969         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6970         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6971         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6972         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6973         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6974         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6975         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6976         x_ira_reg_class_subunion.
6977         (ira_max_memory_move_cost, ira_max_register_move_cost)
6978         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6979         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6980         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6981         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6982         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6983         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6984         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6985         (ira_tune_allocno_costs_and_cover_classes): Rename to
6986         ira_tune_allocno_costs.
6987         (ira_debug_hard_regs_forest): New.
6988         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6989         (ira_object_conflict_iter_next): Fix comments.
6990         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6991         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6992         cover_class to aclass.
6993         (ira_allocate_and_accumulate_costs): Ditto.
6994         (ira_allocate_and_set_or_copy_costs): Ditto.
6995
6996         * opts.c (decode_options): Remove ira_cover_class check.
6997
6998         * ira-color.c: Remove mentioning cover classes from the file.  Use
6999         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7000         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7001         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7002         (splay-tree.h): Remove include.
7003         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7004         before copy_freq_compare_func.
7005         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7006         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7007         New definitions.
7008         (hard_regs_roots, hard_regs_node_vec): Ditto.
7009         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7010         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7011         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7012         (create_new_object_hard_regs_node): Ditto.
7013         (add_new_object_hard_regs_node_to_forest): Ditto.
7014         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7015         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7016         Ditto.
7017         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7018         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7019         (remove_unused_object_hard_regs_nodes): Ditto.
7020         (enumerate_object_hard_regs_nodes): Ditto.
7021         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7022         (object_hard_regs_subnode_t): Ditto.
7023         (struct object_hard_regs_subnode): Ditto.
7024         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7025         (setup_object_hard_regs_subnode_index): Ditto.
7026         (get_object_hard_regs_subnodes_num): Ditto.
7027         (form_object_hard_regs_nodes_forest): Ditto.
7028         (finish_object_hard_regs_nodes_tree): Ditto.
7029         (finish_object_hard_regs_nodes_forest): Ditto.
7030         (allocnos_have_intersected_live_ranges_p): Rename to
7031         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7032         (pseudos_have_intersected_live_ranges_p): Rename to
7033         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7034         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7035         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7036         (update_copy_costs): Remove assert.  Skip cost update if the hard
7037         reg does not belong the class.
7038         (assign_hard_reg): Process only profitable hard regs.
7039         (uncolorable_allocnos_num): Make it scalar.
7040         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7041         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7042         and ira_reg_class_max_nregs.
7043         (bucket_allocno_compare_func): Check frequency first.
7044         (sort_bucket): Add compare function as a parameter.
7045         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7046         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7047         (push_allocno_to_stack): Rewrite for checking new allocno
7048         colorability.
7049         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7050         (push_only_colorable): Pass new parameter to sort_bucket.
7051         (push_allocno_to_spill): Remove.
7052         (allocno_spill_priority_compare): Make it inline and rewrite.
7053         (splay_tree_allocate, splay_tree_free): Remove.
7054         (allocno_spill_sort_compare): New function.
7055         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7056         build and use splay tree.  Choose first allocno in uncolorable
7057         allocno bucket to spill.  Remove setting spill cost.
7058         (all_conflicting_hard_regs): Remove.
7059         (setup_allocno_available_regs_num): Check only profitable hard
7060         regs.  Print info about hard regs nodes.
7061         (setup_allocno_left_conflicts_size): Remove.
7062         (put_allocno_into_bucket): Don't call
7063         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7064         (improve_allocation): New.
7065         (color_allocnos): Call setup_profitable_hard_regs,
7066         form_object_hard_regs_nodes_forest, improve_allocation,
7067         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7068         (print_loop_title): Use pressure classes.
7069         (color_allocnso): Ditto.
7070         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7071         and allocnos_for_spilling.
7072         (ira_sort_regnos_for_alter_reg): Don't setup members
7073         {first,next}_coalesced_allocno.
7074         (color): Remove allocating and freeing removed_splay_allocno_vec.
7075         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7076         prohibited_class_mode_regs.
7077
7078         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7079         formatting.
7080         (update_allocno_pressure_excess_length): Use pressure classes.
7081         (inc_register_pressure, dec_register_pressure): Check for pressure
7082         class.
7083         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7084         pressure class.  Use ira_reg_class_nregs instead of
7085         ira_reg_class_max_nregs.
7086         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7087         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7088         (single_reg_class): Use ira_reg_class_nregs instead of
7089         ira_reg_class_max_nregs.
7090         (process_bb_node_lives): Use pressure classes.
7091
7092         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7093         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7094         (change_loop): Use pressure classes.
7095         (modify_move_list): Call ira_set_allocno_class instead of
7096         ira_set_allocno_cover_class.
7097
7098         * ira-build.c: Remove mentioning cover classes from the file.  Use
7099         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7100         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7101         ALLOCNO_UPDATED_CLASS_COST instead of
7102         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7103         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7104         (ira_create_allocno): Remove initialization of
7105         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7106         ALLOCNO_COLORABLE_P.
7107         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7108         Update conflict regs for the objects.
7109         (create_cap_allocno): Remove assert.  Don't propagate
7110         ALLOCNO_AVAILABLE_REGS_NUM.
7111         (ira_free_allocno_costs): New function.
7112         (finish_allocno): Change a part of code into call of
7113         ira_free_allocno_costs.
7114         (low_pressure_loop_node_p): Use pressure classes.
7115         (object_range_compare_func): Don't compare classes.
7116         (setup_min_max_conflict_allocno_ids): Ditto.
7117
7118         * loop-invariant.c: Remove mentioning cover classes from the file.
7119         Use ira_pressure_classes and ira_pressure_classes_num instead of
7120         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7121         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7122         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7123         Use reg_allocno_class instead of reg_cover_class.
7124         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7125         STACK_REG_COVER_CLASS.
7126         (get_regno_cover_class): Rename to get_regno_pressure_class.
7127         (move_loop_invariants): Initialize and finalize regstat.
7128
7129         * ira.c: Remove mentioning cover classes from the file.  Add
7130         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7131         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7132         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7133         setup_class_subset_and_memory_move_costs.
7134         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7135         (setup_cover_and_important_classes): Rename to
7136         setup_allocno_and_important_classes.
7137         (setup_class_translate_array): New.
7138         (setup_class_translate): Call it for allocno and pressure classes.
7139         (cover_class_order): Rename to allocno_class_order.
7140         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7141         of ira_class_translate.
7142         (reorder_important_classes): Set up ira_important_class_nums.
7143         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7144         (print_class_cover): Rename to print_classes.  Add parameter.
7145         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7146         Print pressure classes too.
7147         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7148         setup_reg_subclasses.
7149         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7150         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7151         (setup_prohibited_class_mode_regs): Use
7152         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7153         (clarify_prohibited_class_mode_regs): New function.
7154         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7155         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7156         (ira_init_once): Initialize them.
7157         (free_register_move_costs): Process them.
7158         (ira_init): Move calls of find_reg_classes and
7159         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7160         Call clarify_prohibited_class_mode_regs.
7161         (ira_no_alloc_reg): Remove.
7162         (too_high_register_pressure_p): Use pressure classes.
7163
7164         * sched-deps.c: Remove mentioning cover classes from the file.
7165         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7166         ira_pressure_classes and ira_pressure_classes_num instead of
7167         ira_reg_class_cover_size and ira_reg_class_cover.
7168         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7169         sched_regno_pressure_class instead of sched_regno_cover_class.
7170         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7171         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7172
7173         * ira.h: Add 2010 to Copyright.
7174         (ira_no_alloc_reg): Remove external.
7175         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7176         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7177         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7178         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7179         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7180         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7181         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7182         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7183         x_ira_no_alloc_regs.
7184         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7185         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7186         ira_allocno_classes_num and ira_allocno_classes.
7187         (ira_class_translate): Rename to ira_allocno_class_translate.
7188         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7189         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7190         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7191         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7192         (ira_no_alloc_regs): New.
7193
7194         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7195         classes from the file.  Use ALLOCNO_CLASS instead of
7196         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7197         ALLOCNO_COVER_CLASS_COST.
7198         (regno_cover_class): Rename to regno_aclass.
7199         (record_reg_classes): Use ira_reg_class_subunion instead of
7200         ira_reg_class_union.
7201         (record_address_regs): Check overflow.
7202         (scan_one_insn): Ditto.
7203         (print_allocno_costs): Print total mem cost fore regional allocation.
7204         (print_pseudo_costs): Use REG_N_REFS.
7205         (find_costs_and_classes): Use classes intersected with them on the
7206         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7207         ira_reg_class_union.  Use ira_allocno_class_translate and
7208         regno_aclass instead of ira_class_translate and regno_cover_class.
7209         Modify code for finding regno_aclass.  Setup preferred classes for
7210         the next pass.
7211         (setup_allocno_cover_class_and_costs): Rename to
7212         setup_allocno_class_and_costs.  Use regno_aclass instead of
7213         regno_cover_class.  Use ira_set_allocno_class instead of
7214         ira_set_allocno_cover_class.
7215         (init_costs, finish_costs): Use regno_aclass instead of
7216         regno_cover_class.
7217         (ira_costs): Use setup_allocno_class_and_costs instead of
7218         setup_allocno_cover_class_and_costs.
7219         (ira_tune_allocno_costs_and_cover_classes): Rename to
7220         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7221         by processing objects.  Use ira_reg_class_max_nregs instead of
7222         ira_reg_class_nregs.
7223
7224         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7225
7226         * sched-int.h: Remove mentioning cover classes from the file.
7227         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7228
7229         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7230         classes from the file.
7231         (struct reg_pref): Rename coverclass into allocnoclass.
7232         (reg_cover_class): Rename to reg_allocno_class.
7233
7234         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7235
7236         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7237
7238         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7239
7240         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7241
7242         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7243
7244         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7245
7246         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7247
7248         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7249
7250         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7251
7252         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7253
7254         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7255         (i386_ira_cover_classes): Ditto.
7256
7257         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7258
7259         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7260
7261         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7262
7263         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7264
7265         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7266
7267         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7268
7269         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7270         (mips_ira_cover_classes): Ditto.
7271
7272         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7273
7274         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7275
7276         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7277
7278         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7279
7280         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7281
7282         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7283         (IRA_COVER_CLASSES_VSX): Ditto.
7284
7285         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7286         (rs6000_ira_cover_classes): Ditto.
7287
7288         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7289
7290         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7291
7292         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7293
7294         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7295
7296         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7297
7298         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7299
7300         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7301
7302         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7303
7304         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7305
7306         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7307
7308 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7309
7310         PR debug/48253
7311         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7312         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7313         dw_fde_unlikely_section_end_label, cold_in_std_section,
7314         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7315         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7316         fields.
7317         (output_fde): Use dw_fde_second_{begin,end} if second is
7318         true, otherwise dw_fde_{begin,end}.
7319         (output_call_frame_info): Test dw_fde_second_begin != NULL
7320         instead of dw_fde_switched_sections.
7321         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7322         fields, initialize new fields.  Initialize in_std_section
7323         unconditionally from the first partition.
7324         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7325         dw_fde_second_begin is non-NULL.
7326         (dwarf2out_switch_text_section): Stop initializing removed
7327         dw_fde_struct fields, initialize new fields, initialize
7328         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7329         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7330         (struct var_loc_list_def): Add last_before_switch field.
7331         (arange_table, arange_table_allocated, arange_table_in_use,
7332         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7333         (size_of_aranges): Count !in_std_section and !second_in_std_section
7334         hunks in fdes, instead of looking at arange_table_in_use.
7335         (output_aranges): Add aranges_length argument, don't call
7336         size_of_aranges here.  Instead of using aranges_table*
7337         emit ranges for fdes when !in_std_section resp.
7338         !second_in_std_section.
7339         (dw_loc_list): Break ranges crossing section switch.
7340         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7341         use dw_fde_second_end instead of dw_fde_end as end of last range.
7342         (gen_subprogram_die): Don't call add_arange.  Use
7343         dw_fde_{begin,end} for first partition and if switched
7344         section dw_fde_second_{begin,end} for the second.
7345         (var_location_switch_text_section_1,
7346         var_location_switch_text_section): New functions.
7347         (dwarf2out_begin_function): Initialize cold_text_section even
7348         when function_section () isn't text_section.
7349         (prune_unused_types): Don't walk arange_table.
7350         (dwarf2out_finish): Don't needlessly test
7351         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7352         If info_section_emitted, call size_of_aranges and if it indicates
7353         non-empty .debug_aranges, call output_aranges with the computed
7354         size.  Stop using removed dw_fde_struct fields, use
7355         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7356         for second.
7357
7358         PR debug/48203
7359         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7360         create ENTRY_VALUE if incoming or address of incoming's MEM
7361         is a hard REG.
7362         * dwarf2out.c (mem_loc_descriptor): Don't emit
7363         DW_OP_GNU_entry_value of DW_OP_fbreg.
7364         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7365         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7366         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7367         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7368         ENTRY_VALUE_EXPs.
7369         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7370         is a REG_P or MEM_P with REG_P address, compute hash directly
7371         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7372         (preserve_only_constants): Don't clear VALUES forwaring
7373         ENTRY_VALUE to some other VALUE.
7374
7375 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7376
7377         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7378         instead of GEN_INT.
7379
7380 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7381
7382         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7383         block before expanding the statement.
7384         (expand_gimple_stmt_1): Likewise.  Set them here...
7385         (expand_gimple_stmt): ...and not here.  Tidy.
7386         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7387         unknown.
7388
7389 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7390
7391         * Makefile.in: New rule for cprop.o.
7392         * gcse.c: Move constant/copy propagation to cprop.c.
7393         (compute_local_properties): Only handle expression tables.
7394         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7395         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7396         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7397         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7398         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7399         compute_cprop_data, find_used_regs, try_replace_reg,
7400         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7401         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7402         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7403         find_bypass_set, reg_killed_on_edge, bypass_block,
7404         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7405         execute_rtl_cprop, pass_rtl_cprop): Move to...
7406         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7407         moved from gcse.c to here with minor cleanups in duplicated code.
7408
7409 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7410
7411         * config/i386/i386.c (flag_opts): Fix a typo in
7412         -mavx256-split-unaligned-store.
7413
7414 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7415
7416         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7417         LIBCALL_VALUE): Remove macros.
7418         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7419         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7420         (h8300_function_value, h8300_libcall_value,
7421         h8300_function_value_regno_p): New functions.
7422
7423 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7424
7425         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7426
7427 2011-03-28  Jeff Law  <law@redhat.com>
7428
7429         * tree-ssa-threadupdate.c (redirect_edges): Call
7430         create_edge_and_update_destination_phis as needed.
7431         (create_edge_and_update_destination_phis): Accept new BB argument.
7432         All callers updated.
7433         (thread_block): Do not update the profile when threading around
7434         intermediate blocks.
7435         (thread_single_edge): Likewise.
7436         (determine_bb_domination_status): If BB is not a successor of the
7437         loop header, return NONDOMINATING.
7438         (register_jump_thread): Note when we register a jump thread around
7439         an intermediate block.
7440         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7441         (thread_across_edge): Use it.
7442
7443 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7444
7445         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7446         when for_return is 2.
7447
7448 2011-03-28  Jeff Law  <law@redhat.com>
7449
7450         * var-tracking.c (canonicalize_values_mark): Delete unused
7451         lhs assignment.
7452         (canonicalize_values_star, set_variable_part): Likewise.
7453         (clobber_variable_part, delete_variable_part): Likewise.
7454
7455 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7456
7457         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7458
7459 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7460
7461         * tree-inline.c (expand_call_inline): Do not check that destination
7462         node is analyzed.
7463         (optimize_inline_calls): Assert that destination node is analyzed.
7464         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7465         not call tree_lowering_passes.
7466         * cgraph.h (cgraph_analyze_function): Declare.
7467         * cgraphunit.c (cgraph_analyze_function): Make public.
7468
7469 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7470
7471         * config/sparc/sparc-opts.h: New.
7472         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7473         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7474         (sparc_option_override): Store processor_type enumeration rather
7475         than string in cpu_default.  Remove name and enumeration from
7476         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7477         without using sparc_select.  Use target_flags_explicit instead of
7478         fpu_option_set.
7479         * config/sparc/sparc.h (enum processor_type): Move to
7480         sparc-opts.h.
7481         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7482         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7483         HeaderInclude entry.
7484         (mcpu=, mtune=): Use Var and Enum.
7485         (sparc_processor_type): New Enum and EnumValue entries.
7486
7487 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7488             Iain Sandoe  <iains@gcc.gnu.org>
7489
7490         PR target/48245
7491         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7492
7493 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7494
7495         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7496         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7497         Insert new statements at it in lieu of STMT.
7498         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7499         * tree-vect-stmts.c (vectorizable_store): Likewise.
7500         (vectorizable_load): Likewise.
7501
7502 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7503
7504         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7505         (divtf3): Ditto.
7506         (multf3): Ditto.
7507         (subtf3): Ditto.
7508
7509 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7510
7511         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7512         unaligned 256bit load/store.
7513         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7514         (*avx_movdqu<avxmodesuffix>): Likewise.
7515
7516 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7517
7518         PR target/48288
7519         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7520         * config/pa/pa.md (iordi3): Use new predicate in expander.
7521         (iorsi3): Likewise.
7522
7523 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7524
7525         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7526         FUNCTION_VALUE_REGNO_P): Remove macros.
7527         * config/mips/mips-protos.h (mips_function_value): Remove.
7528         * config/mips/mips.c (mips_function_value): Rename to...
7529         (mips_function_value_1): ... this. Make static.  Handle receiving
7530         the function type in 'fn_decl_or_type' argument.
7531         (mips_function_value, mips_libcall_value,
7532         mips_function_value_regno_p): New function.
7533         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7534         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7535
7536 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7537
7538         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7539         and -mavx256-split-unaligned-store.
7540         (ix86_option_override_internal): Split 32-byte AVX unaligned
7541         load/store by default.
7542         (ix86_avx256_split_vector_move_misalign): New.
7543         (ix86_expand_vector_move_misalign): Use it.
7544
7545         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7546         -mavx256-split-unaligned-store.
7547
7548         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7549         256bit load/store.  Generate unaligned store on misaligned memory
7550         operand.
7551         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7552         256bit load/store.
7553         (*avx_movdqu<avxmodesuffix>): Likewise.
7554
7555         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7556         -mavx256-split-unaligned-store.
7557
7558 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7559
7560         PR target/38598
7561         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7562         Update commentary.
7563
7564 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7565
7566         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7567         opno arguments with an expand_operand.  Use create_input_operand.
7568         (mips_prepare_builtin_target): Delete.
7569         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7570         functions.
7571         (mips_expand_builtin_direct): Use create_output_operand and
7572         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7573         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7574         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7575
7576 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7577
7578         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7579         function.
7580         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7581
7582 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7583
7584         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7585         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7586         basic blocks and call commit_edge_insertions directly.
7587         (fixup_abnormal_edges): Move from here to...
7588         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7589         on the edges and return whether some have actually been inserted.
7590         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7591         compensation code.
7592
7593 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7594
7595         PR rtl-optimization/48144
7596         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7597         (merge_expr_data): ... here.
7598         (av_set_intersect): Rename to av_set_code_motion_filter.
7599         Update all callers.  Call merge_history_vect when an expression
7600         is found in both sets.
7601         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7602
7603 2011-03-26  Alan Modra  <amodra@gmail.com>
7604
7605         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7606         cmodel medium addresses.
7607         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7608         64-bit gpr loads and stores.
7609         (rs6000_secondary_reload_ppc64): New function.
7610         * config/rs6000/rs6000-protos.h: Declare it.
7611         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7612
7613 2011-03-26  Alan Modra  <amodra@gmail.com>
7614
7615         PR target/47487
7616         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7617         GNU Go in traceback table.
7618
7619 2011-03-25  Richard Henderson  <rth@redhat.com>
7620
7621         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7622         if there are exactly 6 operands.
7623         (set_storage_via_setmem): Similarly.
7624
7625 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7626
7627         * collect2.c (write_c_file_stat): Handle backslash
7628         as right-hand directory separator.
7629         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7630         checking just for slash.
7631         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7632         instead of checking for trailing slash.
7633         * gcc.c (record_temp_file): Use filename_cmp instead
7634         of strcmp.
7635         (do_spec_1): Likewise.
7636         (replace_outfile_spec_function): Likewise.
7637         (is_directory): Use filename_ncmp instead of strncmp.
7638         (print_multilib_info): Likewise.
7639         * gcov.c (find_source): Use filename_cmp instead
7640         instead of strcmp.
7641         (make_gcov_file_name): Fix order of slash/backslash
7642         checks.
7643         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7644         (add_standard_paths): Likewise.
7645         * mips-tfile.c (saber_stop): Handle backslash.
7646         * prefix.c (update_path): Use filename_ncmp instead of
7647         strncmp.
7648         * profile.c (output_location): Use filename_cmp instead
7649         of strcmp.
7650         * read-md.c (handle_toplevel_file): Handle backslash.
7651         * tlink.c (frob_extension):  Likewise.
7652         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7653         strcmp.
7654         * tree-dump.c (dequeue_and_dump): Handle backslash.
7655         * tree.c (get_file_function_name): Likewise.
7656         * gengtype.c (read_input_list): Likewise.
7657         (get_file_realbasename): Likewise.
7658         (get_output_file_with_visibility): Use filename_cmp
7659         instead of strcmp.
7660
7661 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7662
7663         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7664         case to VFPv1.
7665
7666 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7667
7668         * fold-const.c (expr_location_or): New function.
7669         (fold_truth_not_expr): Call it.
7670
7671 2011-03-25  Jeff Law  <law@redhat.com>
7672
7673         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7674         va_end.
7675         * c-family/c-common.c (def_fn_type): Likewise.
7676         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7677         * emit-rtl.c (gen_rtvec): Likewise.
7678         * lto/lto-lang.c (def_fn_type): Likewise.
7679
7680 2011-03-25  Richard Guenther  <rguenther@suse.de>
7681
7682         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7683         also generate copies.
7684         (fini_copy_prop): Handle constant values properly.
7685
7686 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7687
7688         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7689         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7690         (hash_loc_operands, compare_loc_operands): Handle
7691         DW_OP_GNU_entry_value.
7692
7693 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7694
7695         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7696         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7697         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7698         comment and use macro TARGET_64BIT_MS_ABI instead.
7699         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7700         and change default behavior for 32-bit MS_ABI.
7701         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7702         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7703         32-bit, too.
7704         (ix86_cfun_abi): Likewise.
7705         (ix86_maybe_switch_abi): Adjust comment.
7706         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7707         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7708         instead of checking for SYSV_ABI.
7709         (ix86_nsaved_sseregs): Likewise.
7710         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7711         to 16 bytes.
7712         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7713         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7714         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7715         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7716         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7717
7718 2011-03-25  Richard Guenther  <rguenther@suse.de>
7719
7720         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7721         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7722         (verify_gimple): Remove.
7723         * tree-cfg.c (verify_gimple_call): Merge verification
7724         from verify_stmts.
7725         (verify_gimple_phi): Merge verification from verify_stmts.
7726         (verify_gimple_label): New function.
7727         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7728         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7729         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7730         (verify_stmts): Rename to verify_gimple_in_cfg.
7731         (verify_gimple_in_cfg): New function.
7732         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7733         * tree-ssa.c (verify_ssa): Likewise.
7734         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7735
7736 2011-03-25  Richard Guenther  <rguenther@suse.de>
7737
7738         * passes.c (init_optimization_passes): Add FRE pass after
7739         early SRA.
7740
7741 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7742             Andrew Stubbs  <ams@codesourcery.com>
7743
7744         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7745         for Cortex-A8.
7746         (arm_movdi_vfp_cortexa8): New pattern.
7747         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7748         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7749         instructions when tuning for Cortex-A8.  Set attribute "arch".
7750         * config/arm/arm.md: Move include arm-tune.md up a bit.
7751         (define_attr "arch"): Add "onlya8" and "nota8" values.
7752         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7753
7754 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7755
7756         PR bootstrap/48282
7757         Revert:
7758         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7759
7760         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7761         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7762         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7763         * passes.c (init_optimization_passes): Move
7764         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7765
7766 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7767
7768         * c-typeck.c (comptypes_internal): Replace target
7769         hook call of comp_type_attributes by version in tree.c file.
7770         * gimple.c (gimple_types_compatible_p_1): Likewise.
7771         * tree-ssa.c (useless_type_conversion_p): Likewise.
7772         * tree.c (build_type_attribute_qual_variant): Likewise.
7773         (attribute_value_equal): New static helper function.
7774         (comp_type_attributes): New function.
7775         (merge_attributes): Use attribute_value_equal for comparison.
7776         (attribute_list_contained): Likewise.
7777         * tree.h (comp_type_attributes): New prototype.
7778
7779 2011-03-25  Richard Guenther  <rguenther@suse.de>
7780
7781         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7782         of complex types at -O0.
7783         (verify_gimple_assign_binary): Likewise.
7784         (verify_gimple_assign_ternary): Likewise.
7785
7786 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7787
7788         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7789         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7790
7791 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7792
7793         PR debug/48041
7794         * dwarf2out.c (output_abbrev_section): Only write table when
7795         abbrev_die_table_in_use > 1.
7796
7797 2011-02-24  Richard Henderson  <rth@redhat.com>
7798
7799         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7800         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7801         (alpha_expand_unaligned_load_words): Use extql.
7802         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7803         (emit_insxl): Handle all modes for consistency.
7804
7805 2011-02-24  Richard Henderson  <rth@redhat.com>
7806
7807         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7808         (alpha_expand_unaligned_load): Likewise.
7809         (alpha_expand_unaligned_store): Likewise.
7810         (alpha_expand_unaligned_load_words): Likewise.
7811         (alpha_expand_unaligned_store_words): Likewise.
7812         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7813         (alpha_split_lock_test_and_set_12): Likewise.
7814         (print_operand, alpha_fold_builtin_extxx): Likewise.
7815         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7816         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7817         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7818         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7819         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7820         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7821         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7822         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7823         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7824         (extwl, extll, extql): Similarly.
7825         (inswh, inslh, insqh): Similarly.
7826         (mskbl, mskwl, mskll, mskql): Similarly.
7827         (mskwh, msklh, mskqh): Similarly.
7828
7829 2011-02-24  Richard Henderson  <rth@redhat.com>
7830
7831         * config/alpha/alpha.md (attribute isa): Add er, ner.
7832         (attribute enabled): Handle them.
7833         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7834
7835 2011-02-24  Richard Henderson  <rth@redhat.com>
7836
7837         * config/alpha/alpha.md (attribute isa): Add vms.
7838         (attribute enabled): Handle it.
7839         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7840         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7841         (*movtf): Rename from *movtf_internal for consistency.
7842         (*movsi): Merge with *movsi_nt_vms.
7843         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7844         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7845         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7846         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7847
7848 2011-02-24  Richard Henderson  <rth@redhat.com>
7849
7850         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7851         (extendqisi2, extendhisi2): Likewise.
7852         (extendqidi2): Simplify BWX/non-BWX expansions.
7853         (extendhidi2): Similarly.
7854
7855 2011-02-24  Richard Henderson  <rth@redhat.com>
7856
7857         * config/alpha/alpha.md (attribute isa): New.
7858         (attribute enabled): New.
7859         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7860         (zero_extendqisi2, zero_extendqidi2): Similarly.
7861         (zero_extendhisi2, zero_extendhidi2): Similarly.
7862         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7863
7864 2011-02-24  Richard Henderson  <rth@redhat.com>
7865
7866         * config/alpha/predicates.md (input_operand): Revert last change;
7867         update comment to mention 32-bit VMS rather than Windows.
7868
7869 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7870
7871         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7872         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7873         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7874         * passes.c (init_optimization_passes): Move
7875         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7876
7877 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7878
7879         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7880
7881 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7882
7883         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7884         correctly.
7885
7886 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7887
7888         PR debug/48204
7889         * simplify-rtx.c (simplify_const_unary_operation): Call
7890         real_convert when changing mode class with FLOAT_EXTEND.
7891
7892 2011-03-24  Nick Clifton  <nickc@redhat.com>
7893
7894         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7895         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7896         * config/rx/rx.c (rx_option_override): Set align_jumps,
7897         align_loops and align_labels if not set by the user.
7898         (rx_align_for_label): New function.
7899         (rx_max_skip_for_label): New function.
7900         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7901         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7902         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7903         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7904         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7905
7906 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7907
7908         PR rtl-optimization/48263
7909         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7910         and original commutative_p handling.  Use maybe_gen_insn.
7911
7912 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7913
7914         * reload.c (find_reloads_subreg_address): Add address_reloaded
7915         parameter and return true there if the full address has been
7916         reloaded.
7917         (find_reloads_toplev): Pass address_reloaded flag.
7918         (find_reloads_address_1): Don't use address_reloaded parameter.
7919
7920 2011-03-24  Jeff Law  <law@redhat.com>
7921
7922         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7923         unused variable "ann".
7924         (remove_unused_locals): Likewise.
7925
7926         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7927         statement.
7928
7929         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7930         after it is freed.
7931
7932 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7933
7934         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7935         for invalid symbolic addresses.
7936         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7937         larl operands.
7938
7939 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7940
7941         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7942         the argument in calls to fold_truth_not_expr.
7943
7944 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7945
7946         * tree.c (record_node_allocation_statistics): New function.
7947         (make_node_stat, copy_node_stat, build_string): Call it.
7948         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7949         (build1_stat, build_omp_clause): Likewise.
7950
7951 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7952
7953         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7954         last commit.
7955
7956 2011-03-24  Richard Guenther  <rguenther@suse.de>
7957
7958         PR tree-optimization/48271
7959         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7960         blocks that still exist.
7961
7962 2011-03-24  Richard Guenther  <rguenther@suse.de>
7963
7964         PR tree-optimization/48270
7965         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7966         not free datarefs before ddrs.
7967
7968 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7969
7970         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7971         from the address built for a reference with variable offset.
7972
7973 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7974
7975         PR target/48237
7976         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7977         alternatives that can be handled with movq or movabsq insn.
7978         (*movdf_internal): Disable for !TARGET_64BIT.
7979         (*movdf_internal_nointeger): Ditto.
7980         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7981
7982 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7983
7984         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7985         (FUNCTION_ARG_ADVANCE): Likewise.
7986         * tm.texi.in: Change references to them to hook references.
7987         * tm.texi: Regenerate.
7988         * targhooks.c (default_function_arg): Eliminate check for target macro.
7989         (default_function_incoming_arg): Likewise.
7990         (default_function_arg_advance): Likewise.
7991         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7992         (function_arg_advance): Likewise.
7993         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7994
7995 2011-03-24  Richard Guenther  <rguenther@suse.de>
7996
7997         PR middle-end/48269
7998         * tree-object-size.c (addr_object_size): Do not double-account
7999         for MEM_REF offsets.
8000
8001 2011-03-24  Diego Novillo  <dnovillo@google.com>
8002
8003         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8004         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8005         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8006         Update all users.
8007         (lto_input_string): Rename from input_string.  Make extern.
8008         Update all users.
8009         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8010         output_string_with_length.
8011         Output 0 to indicate a non-NULL string.  Update all callers to
8012         not emit 0.
8013         (lto_output_string): Rename from output_string.  Make extern.
8014         Update all users.
8015         (lto_output_decl_state_streams): Make extern.
8016         (lto_output_decl_state_refs): Make extern.
8017         * lto-streamer.h (lto_input_string): Declare.
8018         (lto_input_data_block): Declare.
8019         (lto_output_string): Declare.
8020         (lto_output_string_with_length): Declare.
8021         (lto_output_decl_state_streams): Declare.
8022         (lto_output_decl_state_refs): Declare.
8023
8024 2011-03-24  Richard Guenther  <rguenther@suse.de>
8025
8026         PR tree-optimization/46562
8027         * tree.c (build_invariant_address): New function.
8028         * tree.h (build_invariant_address): Declare.
8029         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8030         a renamed function moved ...
8031         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8032         Take valueization callback parameter.
8033         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8034         * gimple-fold.h: New file.
8035         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8036         (ccp_fold, fold_const_aggregate_ref,
8037         fold_ctor_reference, fold_nonarray_ctor_reference,
8038         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8039         get_base_constructor): Move ...
8040         * gimple-fold.c: ... here.
8041         (gimple_fold_stmt_to_constant_1): New function
8042         split out from ccp_fold.  Take a valueization callback parameter.
8043         Valueize all operands.
8044         (gimple_fold_stmt_to_constant): New wrapper function.
8045         (fold_const_aggregate_ref_1): New function split out from
8046         fold_const_aggregate_ref.  Take a valueization callback parameter.
8047         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8048         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8049         invariant POINTER_PLUS_EXPRs to invariant form.
8050         (vn_valueize): New function.
8051         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8052         * tree-vrp.c (vrp_valueize): New function.
8053         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8054         to fold statements to constants.
8055         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8056         function declarations.
8057         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8058         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8059
8060 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8061
8062         * config/h8300/predicates.md (jump_address_operand): Fix register
8063         mode check.
8064
8065 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8066
8067         * doc/invoke.texi (max-stores-to-sink): Document.
8068         * params.h (MAX_STORES_TO_SINK): Define.
8069         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8070         if either vectorization or if-conversion is disabled.
8071         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8072         tree-vect-data-refs.c vect_equal_offsets.
8073         (dr_equal_offsets_p): New function.
8074         (find_data_references_in_bb): Remove static.
8075         * tree-data-ref.h (find_data_references_in_bb): Declare.
8076         (dr_equal_offsets_p): Likewise.
8077         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8078         (vect_drs_dependent_in_basic_block): Update calls to
8079         vect_equal_offsets.
8080         (vect_check_interleaving): Likewise.
8081         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8082         (cond_if_else_store_replacement): Rename to...
8083         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8084         documentation.
8085         (cond_if_else_store_replacement): New function.
8086         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8087         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8088
8089 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8090
8091         PR target/46934
8092         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8093         to subtract lower bound instead of GEN_INT().
8094
8095 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8096
8097         PR other/48179
8098         PR other/48221
8099         PR other/48234
8100         * doc/extend.texi (Alignment): Move section to match order in TOC.
8101         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8102         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8103
8104 2011-03-23  Jeff Law  <law@redhat.com>
8105
8106         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8107         before removing the edge.
8108
8109         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8110         it may have been freed by redirect_branch_edge or
8111         redirect_edge_succ_nodup.
8112
8113 2011-03-23  Richard Guenther  <rguenther@suse.de>
8114
8115         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8116         (check_va_list_escapes): Likewise.
8117         (check_all_va_list_escapes): Likewise.
8118
8119 2011-03-23  Richard Guenther  <rguenther@suse.de>
8120
8121         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8122         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8123         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8124         (alias.o): Likewise.
8125         (ipa-type-escape.o): Remove.
8126         (ipa-struct-reorg.o): Likewise.
8127         (GTFILES): Remove ipa-struct-reorg.c.
8128         * alias.c: Do not include ipa-type-escape.h.
8129         * tree-ssa-alias.c: Likewise.
8130         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8131         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8132         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8133         and ipa-type-escape passes.
8134         * tree-pass.h (pass_ipa_type_escape): Remove.
8135         (pass_ipa_struct_reorg): Likewise.
8136         * ipa-struct-reorg.h: Remove.
8137         * ipa-struct-reorg.c: Likewise.
8138         * ipa-type-escape.h: Likewise.
8139         * ipa-type-escape.c: Likewise.
8140         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8141         (--param struct-reorg-cold-struct-ratio): Likewise.
8142         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8143         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8144         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8145
8146 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8147
8148         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8149         cpu attribute value.
8150         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8151         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8152         * config/s390/s390.c (processor_flags_table): New constant array.
8153         (s390_handle_arch_option): Remove.
8154         (s390_handle_option): Remove s390_handle_arch_option invocations
8155         and OPT_mwarn_framesize_ handling.
8156         (s390_option_override): Remove s390_handle_arch_option invocation.
8157         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8158         warnings.
8159         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8160         * config/s390/s390.opt (s390_tune, s390_arch)
8161         (march=): Replace s390_arch_option enum and values with
8162         processor_type.  Set variable name to s390_arch.  Set
8163         initialization value.
8164         (mtune=): Replace s390_arch_option with processor_type.  Set
8165         variable name to s390_tune.  Set initialization value.
8166
8167 2011-03-23  Julian Brown  <julian@codesourcery.com>
8168
8169         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8170         accesses which are not naturally aligned.
8171
8172 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8173
8174         PR target/47553
8175         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8176
8177 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8178
8179         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8180         parameter from "int" to "enum insn_code".
8181         (expand_operand_type): New enum.
8182         (expand_operand): New structure.
8183         (create_expand_operand): New function.
8184         (create_fixed_operand, create_output_operand): Likewise
8185         (create_input_operand, create_convert_operand_to): Likewise.
8186         (create_convert_operand_from, create_address_operand): Likewise.
8187         (create_integer_operand): Likewise.
8188         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8189         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8190         (expand_insn, expand_jump_insn): Likewise.
8191         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8192         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8193         (expand_movstr, expand_builtin___clear_cache): Likewise.
8194         (expand_builtin_lock_release): Likewise.
8195         * explow.c (allocate_dynamic_stack_space): Likewise.
8196         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8197         and use the default handling in that case.
8198         * expmed.c (check_predicate_volatile_ok): Delete.
8199         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8200         (emit_cstore): Likewise.
8201         * expr.c (emit_block_move_via_movmem): Likewise.
8202         (set_storage_via_setmem, expand_assignment): Likewise.
8203         (emit_storent_insn, try_casesi): Likewise.
8204         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8205         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8206         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8207         (expand_twoval_unop, expand_twoval_binop): Likewise.
8208         (expand_unop_direct, emit_indirect_jump): Likewise.
8209         (emit_conditional_move, vector_compare_rtx): Likewise.
8210         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8211         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8212         (expand_sync_lock_test_and_set): Likewise.
8213         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8214         (emit_unop_insn): Likewise.
8215         (expand_copysign_absneg): Change icode to an insn_code.
8216         (create_convert_operand_from_type): New function.
8217         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8218         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8219         (expand_insn, expand_jump_insn): Likewise.
8220         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8221         than const_int_operand for operand 2.
8222
8223 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8224
8225         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8226         if possible.
8227
8228 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8229
8230         * emit-rtl.c (emit_pattern_before_noloc): New function.
8231         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8232         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8233         (emit_pattern_after_noloc): New function.
8234         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8235         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8236
8237 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8238
8239         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8240         (__ffsDI2): Likewise.
8241
8242 2011-03-22  Richard Henderson  <rth@redhat.com>
8243
8244         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8245         of !TARGET_ABI_OPEN_VMS.
8246         (alpha_trampoline_init, alpha_start_function): Likewise.
8247         (alpha_expand_epilogue, alpha_file_start): Likewise.
8248         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8249         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8250         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8251         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8252         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8253
8254 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8255
8256         * config/s390/s390-opts.h: New.
8257         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8258         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8259         s390_stack_guard): Remove.
8260         (s390_handle_arch_option): Return void.  Take enum
8261         s390_arch_option value instead of string and searching array.
8262         (s390_handle_option): Don't assert that global structures are in
8263         use.  Access variables via opts pointer.  Use error_at.  Don't use
8264         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8265         s390_handle_arch_option.
8266         (s390_option_override): Update call to s390_handle_arch_option.
8267         (s390_emit_prologue): Use %d format for s390_stack_size in
8268         diagnostic.  Use %wd for HOST_WIDE_INT.
8269         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8270         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8271         * config/s390/s390.opt (config/s390/s390-opts.h): New
8272         HeaderInclude entry.
8273         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8274         s390_arch_flags, s390_warn_framesize): New Variable entries.
8275         (s390_arch_option): New Enum and EnumValue entries.
8276         (march=): Use Enum instead of Var.
8277         (mstack-guard=, mstack-size=): Use UInteger and Var.
8278         (mtune=): Use Enum.
8279
8280 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8281
8282         * config/score/score.c (score_handle_option): Don't assert that
8283         global structures are in use.  Access target_flags via opts
8284         pointer.  Use value of -march= option to determine target_flags
8285         settings.
8286         * config/score/score.opt (march=): Use Enum.
8287         (score_arch): New Enum and EnumValue entries.
8288
8289 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8290
8291         * config/mep/mep.c (option_mtiny_specified): Remove.
8292         (mep_option_override): Move register handling for -mivc2 from
8293         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8294         instead of option_mtiny_specified.
8295         (mep_handle_option): Access target_flags via opts pointer.  Don't
8296         assert that global structures are in use.  Defer part of -mivc2
8297         handling and move it to mep_option_override.
8298         * config/mep/mep.opt (IVC2): New Mask entry.
8299         (mivc2): Use Var and Defer instead of Mask.
8300
8301 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8302
8303         * config/v850/v850-opts.h: New.
8304         * config/v850/v850.c (small_memory): Replace with
8305         small_memory_physical_max array.  Make that array static const.
8306         (v850_handle_memory_option): Take integer value of argument.  Take
8307         gcc_options pointer, option text and location.  Return void.
8308         Update for changes to small memory structures.
8309         (v850_handle_option): Access target_flags via opts pointer.  Don't
8310         assert that global structures are in use.  Update calls to
8311         v850_handle_memory_option.
8312         (v850_encode_data_area): Update references to small memory settings.
8313         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8314         (enum small_memory_type): Move to v850-opts.h.
8315         * config/v850/v850.opt (config/v850/v850-opts.h): New
8316         HeaderInclude entry.
8317         (small_memory_max): New Variable entry.
8318         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8319         (mtda, mzda): Likewise.
8320
8321 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8322
8323         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8324         pointer.  Don't assert that global structures are in use.
8325
8326 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8327
8328         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8329         via opts pointer.  Don't assert that global structures are in use.
8330
8331 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8332
8333         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8334         (munix=93): Use Var.
8335         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8336         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8337         * config/pa/pa-opts.h: New.
8338         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8339         (pa_handle_option): Don't assert that global structures are in
8340         use.  Access target_flags via opts pointer.  Don't handle
8341         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8342         OPT_munix_98 here.
8343         (pa_option_override): Handle deferred OPT_mfixed_range_.
8344
8345 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8346
8347         * config/mn10300/mn10300-opts.h: New.
8348         * config/mn10300/mn10300.c (mn10300_processor,
8349         mn10300_tune_string): Remove.
8350         (mn10300_handle_option): Don't assert that global structures are
8351         in use.  Access mn10300_processor via opts pointer.  Don't handle
8352         OPT_mtune_ here.
8353         * config/mn10300/mn10300.h (enum processor_type): Move to
8354         mn10300-opts.h.
8355         (mn10300_processor): Remove.
8356         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8357         HeaderInclude entry.
8358         (mn10300_processor): New Variable entry.
8359         (mtune=): Use Var.
8360
8361 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8362
8363         * config/microblaze/microblaze.c: Don't include opts.h.
8364         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8365         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8366         (mno-clearbss): Use Var and Warn.
8367
8368 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8369
8370         * config/m32r/m32r-opts.h: New.
8371         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8372         (m32r_handle_option): Don't assert that global structures are in
8373         use.  Access target_flags and m32r_cache_flush_func via opts
8374         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8375         OPT_mno_flush_trap here.
8376         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8377         include of m32r-opts.h.
8378         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8379         HeaderInclude entry.
8380         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8381         (mmodel=): Use Enum and Var.
8382         (m32r_model): New Enum and EnumValue entries.
8383         (mno-flush-trap): Use Var.
8384         (msdata=): Use Enum and Var.
8385         (m32r_sdata): New Enum and EnumValue entries.
8386
8387 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8388
8389         * config/m32c/m32c.c: Don't include opts.h.
8390         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8391         m32c_handle_option): Remove.
8392         (m32c_option_override): Check global_options_set.x_target_memregs
8393         instead of target_memregs_set.
8394         * config/m32c/m32c.h (target_memregs): Remove.
8395         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8396         variable.
8397
8398 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8399
8400         * config/iq2000/iq2000-opts.h: New.
8401         * config/iq2000/iq2000.c: Don't include opts.h.
8402         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8403         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8404         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8405         HeaderInclude entry.
8406         (iq2000_tune): New Variable entry.
8407         (march=): Add comment.  Use Enum.
8408         (iq2000_arch): New Enum and EnumValue entries.
8409         (mcpu=): Use Enum and Var.
8410         (iq2000_tune): New Enum and EnumValue entries.
8411
8412 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8413
8414         * config/ia64/ia64-opts.h: New.
8415         * config/ia64/ia64.c (ia64_tune): Remove.
8416         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8417         here.  Use error_at.
8418         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8419         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8420         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8421         HeaderInclude entry.
8422         (ia64_tune): New Variable entry.
8423         (mfixed-range=): Use Defer and Var.
8424         (mtune=): Use Enum and Var.
8425         (ia64_tune): New Enum and EnumValue entries.
8426
8427 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8428
8429         * config/frv/frv-opts.h: New.
8430         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8431         frv-opts.h.
8432         (frv_cpu_type): Remove.
8433         * config/frv/frv.c: Don't include opts.h.
8434         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8435         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8436         (frv_cpu_type): New Variable entry.
8437         (frv_cpu): New Enum and EnumValue entries.
8438
8439 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8440
8441         * config/cris/cris.c (cris_handle_option): Access target_flags via
8442         opts pointer.  Don't assert that global structures are in use.
8443         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8444         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8445
8446 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8447
8448         * config/bfin/bfin-opts.h: New.
8449         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8450         bfin_si_revision, bfin_workarounds): Remove.
8451         (bfin_cpus): Make static const.
8452         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8453         not bfin_lib_id_given.
8454         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8455         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8456         pointer. Use error_at.  Don't assert that global structures are in use.
8457         * config/bfin/bfin.h: Include bfin-opts.h.
8458         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8459         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8460         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8461         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8462         entries.
8463
8464 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8465
8466         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8467         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8468         or -msoft-float here.
8469         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8470         -msoft-float and -mhard-float.
8471         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8472         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8473         msoft-float.
8474         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8475         -msoft-float.
8476         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8477         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8478         not mhard-float.
8479         (LIBGCC_SPEC): Don't handle -msoft-float.
8480         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8481         -mhard-float.
8482         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8483         msoft-float.
8484         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8485         -mfloat-abi=*, not -msoft-float and -mhard-float.
8486         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8487         -msoft-float.
8488         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8489         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8490         mhard-float and msoft-float.
8491         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8492         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8493         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8494         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8495         mhard-float.
8496         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8497         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8498         msoft-float.
8499         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8500         not mhard-float.
8501         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8502         not msoft-float.
8503
8504 2011-03-22  Richard Henderson  <rth@redhat.com>
8505
8506         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8507         TARGET_ABI_WINDOWS_NT.
8508         (alpha_output_function_end_prologue): Likewise.
8509         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8510         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8511         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8512         (trap, *movsi_nt_vms): Likewise.
8513         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8514         (*tablejump_osf_nt_internal): Remove.
8515         * config/alpha/predicates.md (input_operand): Only test Pmode.
8516
8517 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8518
8519         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8520         via opts pointer.  Use error_at.  Don't assert that global
8521         structures are in use.
8522
8523 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8524
8525         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8526         (ix86_handle_option): Access ix86_isa_flags and
8527         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8528         global structures are in use.
8529         (ix86_function_specific_save, ix86_function_specific_restore):
8530         Update ix86_isa_flags_explicit field name.
8531         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8532         (ix86_isa_flags_explicit): Rename TargetSave entry to
8533         x_ix86_isa_flags_explicit.
8534
8535 2011-03-22  Richard Henderson  <rth@redhat.com>
8536
8537         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8538         (alpha_option_override, direct_return): Likewise.
8539         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8540         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8541         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8542         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8543         (alpha_expand_epilogue, alpha_end_function): Likewise.
8544         (alpha_init_libfuncs): Likewise.
8545         (struct machine_function): Remove unicosmk members.
8546         (print_operand) ['t']: Remove.
8547         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8548         unicosmk_output_module_name, unicosmk_output_common,
8549         current_section_align, unicosmk_output_text_section_asm_op,
8550         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8551         unicosmk_section_type_flags, unicosmk_unique_section,
8552         unicosmk_asm_named_section, unicosmk_insert_attributes,
8553         unicosmk_output_align, unicosmk_defer_case_vector,
8554         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8555         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8556         unicosmk_output_ssib, unicosmk_add_call_info_word,
8557         unicosmk_extern_head, unicosmk_output_default_externs,
8558         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8559         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8560         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8561         * config/alpha/alpha-protos.h: Update.
8562         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8563         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8564         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8565         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8566         (*mulsi_se, mulvsi3): Likewise.
8567         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8568         (*divmodsi_internal, call, call_value, realign): Likewise.
8569         (moddi3, umoddi3): Likewise; remove duplicate expander.
8570         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8571         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8572         (*movdi_nofix): Remove r/U alternative.
8573         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8574         * config/alpha/constraints.md ("U"): Remove.
8575         * config/alpha/predicates.md (call_operand"): Don't test
8576         TARGET_ABI_UNICOSMK.
8577
8578 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8579
8580         * target.def (handle_option): Take gcc_options and
8581         cl_decoded_option pointers and location_t.
8582         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8583         * doc/tm.texi: Regenerate.
8584         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8585         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8586         * lto-opts.c (lto_reissue_options): Generate option structure for
8587         targetm.handle_option call.
8588         * opts.c (target_handle_option): Update call to
8589         targetm.handle_option.  Remove assertions about values now passed
8590         down to hook.
8591         * targhooks.c (default_target_handle_option): New.
8592         * targhooks.h (default_target_handle_option): Declare.
8593         * config/alpha/alpha.c: Include opts.h.
8594         (alpha_handle_option): Update to new hook interface.
8595         * config/arm/arm.c: Include opts.h.
8596         (arm_handle_option): Update to new hook interface.
8597         * config/arm/t-arm (arm.o): Update dependencies.
8598         * config/bfin/bfin.c: Include opts.h.
8599         (bfin_handle_option): Update to new hook interface.
8600         * config/cris/cris.c: Include opts.h.
8601         (cris_handle_option): Update to new hook interface.
8602         * config/frv/frv.c: Include opts.h.
8603         (frv_handle_option): Update to new hook interface.
8604         * config/i386/i386.c: Include opts.h.
8605         (ix86_handle_option): Update to new hook interface.
8606         (ix86_valid_target_attribute_inner_p): Generate option structure
8607         for call to ix86_handle_option.
8608         * config/i386/t-i386 (i386.o): Update dependencies.
8609         * config/ia64/ia64.c: Include opts.h.
8610         (ia64_handle_option): Update to new hook interface.
8611         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8612         * config/iq2000/iq2000.c: Include opts.h.
8613         (iq2000_handle_option): Update to new hook interface.
8614         * config/m32c/m32c.c: Include opts.h.
8615         (m32c_handle_option): Update to new hook interface.
8616         * config/m32r/m32r.c: Include opts.h.
8617         (m32r_handle_option): Update to new hook interface.
8618         * config/m68k/m68k.c: Include opts.h.
8619         (m68k_handle_option): Update to new hook interface.
8620         * config/mep/mep.c: Include opts.h.
8621         (mep_handle_option): Update to new hook interface.
8622         * config/microblaze/microblaze.c: Include opts.h.
8623         (microblaze_handle_option): Update to new hook interface.
8624         * config/mips/mips.c: Include opts.h.
8625         (mips_handle_option): Update to new hook interface.
8626         * config/mn10300/mn10300.c: Include opts.h.
8627         (mn10300_handle_option): Update to new hook interface.
8628         * config/pa/pa.c: Include opts.h.
8629         (pa_handle_option): Update to new hook interface.
8630         * config/pdp11/pdp11.c: Include opts.h.
8631         (pdp11_handle_option): Update to new hook interface.
8632         * config/rs6000/rs6000.c: Include opts.h.
8633         (rs6000_handle_option): Update to new hook interface.
8634         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8635         * config/rx/rx.c: Include opts.h.
8636         (rx_handle_option): Update to new hook interface.
8637         * config/s390/s390.c: Include opts.h.
8638         (s390_handle_option): Update to new hook interface.
8639         * config/score/score.c: Include opts.h.
8640         (score_handle_option): Update to new hook interface.
8641         * config/sh/sh.c: Include opts.h.
8642         (sh_handle_option): Update to new hook interface.
8643         * config/sparc/sparc.c: Include opts.h.
8644         (sparc_handle_option): Update to new hook interface.
8645         * config/v850/v850.c: Include opts.h.
8646         (v850_handle_option): Update to new hook interface.
8647
8648 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8649
8650         * gcc.c (driver_unknown_option_callback): Only permit and save
8651         unknown -Wno- options.
8652         (driver_wrong_lang_callback): Save options directly instead of via
8653         driver_unknown_option_callback.
8654
8655 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8656
8657         * combine.c (simplify_set): Try harder to find the best CC mode when
8658         simplifying a nested COMPARE on the RHS.
8659
8660 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8661
8662         * config/alpha/gnu.h: Remove.
8663         * config/arc: Remove directory.
8664         * config/arm/netbsd.h: Remove.
8665         * config/arm/t-pe: Remove.
8666         * config/crx: Remove directory.
8667         * config/i386/netbsd.h: Remove.
8668         * config/m68hc11: Remove directory.
8669         * config/m68k/uclinux-oldabi.h: Remove.
8670         * config/mcore/mcore-pe.h: Remove.
8671         * config/mcore/t-mcore-pe: Remove.
8672         * config/netbsd-aout.h: Remove.
8673         * config/rs6000/gnu.h: Remove.
8674         * config/sh/sh-symbian.h: Remove.
8675         * config/sh/symbian-base.c: Remove.
8676         * config/sh/symbian-c.c: Remove.
8677         * config/sh/symbian-cxx.c: Remove.
8678         * config/sh/symbian-post.h: Remove.
8679         * config/sh/symbian-pre.h: Remove.
8680         * config/sh/t-symbian: Remove.
8681         * config/svr3.h: Remove.
8682         * config/vax/netbsd.h: Remove.
8683         * config.build: Don't handle i[34567]86-*-pe.
8684         * config.gcc: Remove handling of deprecations for most deprecated
8685         targets.
8686         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8687         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8688         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8689         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8690         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8691         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8692         Remove cases.
8693         * config.host: Don't handle i[34567]86-*-pe.
8694         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8695         (ASM_SPEC32): Don't handle -mcall-gnu.
8696         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8697         -mcall-gnu.
8698         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8699         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8700         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8701         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8702         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8703         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8704         conditional on SYMBIAN.
8705         * configure.ac: Don't handle powerpc*-*-gnu*.
8706         * configure: Regenerate.
8707         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8708         * doc/install-old.texi (m6811, m6812): Don't mention.
8709         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8710         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8711         (m68k-uclinuxoldabi): Don't mention.
8712         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8713         Remove.
8714         (-mcall-gnu): Remove.
8715         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8716         families): Remove constraint documentation.
8717
8718 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8719
8720         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8721         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8722         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8723
8724 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8725
8726         PR target/48226
8727         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8728         vector when peeking at the next token for vector, don't expand the
8729         keywords.
8730
8731 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8732
8733         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8734         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8735         * config/avr/avr.c (init_cumulative_args)
8736         (avr_function_arg_advance): Use it.
8737         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8738         sibcall epilogues.
8739         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8740         (avr_function_ok_for_sibcall): ...this new function.
8741         (avr_lookup_function_attribute1): New static Function.
8742         (avr_naked_function_p, interrupt_function_p)
8743         (signal_function_p, avr_OS_task_function_p)
8744         (avr_OS_main_function_p): Use it.
8745         * config/avr/avr.md ("sibcall", "sibcall_value")
8746         ("sibcall_epilogue"): New expander.
8747         ("*call_insn", "*call_value_insn"): New insn.
8748         ("call_insn", "call_value_insn"): Remove
8749         ("call", "call_value", "epilogue"): Change expander to handle
8750         sibling calls.
8751
8752 2011-03-21  Nick Clifton  <nickc@redhat.com>
8753
8754         * doc/invoke.texi (Overall Options): Move closing brace to end of
8755         options list.
8756         (Optimization Options): Add missing @gol.
8757         (Directory Options): Likewise.
8758         (i386 and x86-64 Options): Likewise.
8759         (RS6000 and PowerPC Options): Likewise.
8760         (i386 and x86-64 Windows Options): Likewise.
8761         (V850 Options): Add text missing from descriptions.
8762
8763 2011-03-22  Richard Henderson  <rth@redhat.com>
8764
8765         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8766         (avr_incoming_return_addr_rtx): New.
8767         (emit_push_byte): New.
8768         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8769         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8770         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8771         (emit_pop_byte): New.
8772         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8773         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8774         (INCOMING_RETURN_ADDR_RTX): New.
8775         (INCOMING_FRAME_SP_OFFSET): New.
8776         (ARG_POINTER_CFA_OFFSET): New.
8777         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8778         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8779         (pophi): Remove.
8780
8781         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8782
8783 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8784
8785         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8786         (FUNCTION_ARG_ADVANCE): Likewise.
8787         * tm.texi.in: Change references to them to hook references.
8788         * tm.texi: Regenerate.
8789         * targhooks.c (default_function_arg): Eliminate check for target
8790         macro.
8791         (default_function_incoming_arg): Likewise.
8792         (default_function_arg_advance): Likewise.
8793         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8794         (function_arg_advance): Likewise.
8795         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8796
8797 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8798
8799         * tree.c (build_call_1): New function.
8800         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8801
8802 2011-03-22  Richard Guenther  <rguenther@suse.de>
8803
8804         PR tree-optimization/48228
8805         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8806         for single-arg PHIs.
8807
8808 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8809
8810         PR rtl-optimization/48143
8811         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8812         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8813         sse2_cvtps2pd): Likewise.
8814
8815 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8816
8817         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8818
8819 2011-03-22  Richard Guenther  <rguenther@suse.de>
8820
8821         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8822         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8823         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8824         and REALIGN_LOAD_EXPR.
8825         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8826         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8827         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8828         DOT_PROD_EXPR case ...
8829         (expand_expr_real_2): ... here.
8830         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8831         and REALIGN_LOAD_EXPR.
8832         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8833         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8834         (vect_create_epilog_for_reduction): Likewise.
8835         (vectorizable_reduction): Likewise.
8836         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8837         * tree-vect-stmts.c (vectorizable_load): Likewise.
8838
8839 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8840
8841         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8842
8843 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8844
8845         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8846         handling for PLTOFF/GOTOFF.
8847
8848 2011-03-22  Nick Clifton  <nickc@redhat.com>
8849
8850         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8851         trailing backslash from the end of the macro definition.
8852
8853 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8854
8855         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8856         and PLT unspecs.
8857
8858 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8859
8860         * expr.h (prepare_operand): Move to...
8861         * optabs.h (prepare_operand): ...here and change the insn code
8862         parameter from "int" to "enum insn_code".
8863         (insn_operand_matches): Declare.
8864         * expr.c (init_expr_target): Use insn_operand_matches.
8865         (compress_float_constant): Likewise.
8866         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8867         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8868         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8869         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8870         Likewise.
8871         (gen_cond_trap): Likewise.
8872         (prepare_operand): Likewise.  Change icode to an insn_code.
8873         (insn_operand_matches): New function.
8874         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8875         * reload1.c (gen_reload): Likewise.
8876         * targhooks.c (default_secondary_reload): Likewise.
8877
8878 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8879
8880         * config/alpha/alpha.md (unspec): New define_c_enum.
8881         (unspecv): Ditto.
8882
8883 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8884
8885         PR debug/48214
8886         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8887         between a call and its CALL_ARG_LOCATION note.
8888
8889 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8890
8891         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8892
8893 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8894
8895         PR c/42544
8896         PR c/48197
8897         * c-common.c (shorten_compare): If primopN is first sign-extended
8898         to opN and then zero-extended to result type, set primopN to opN.
8899
8900 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8901
8902         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8903         for barrier handlers.
8904
8905 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8906
8907         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8908         UNSPEC constants to be in the unspec enumeration, and redefine
8909         all UNSPECV constants to be in the unspecv enumeration, so that
8910         dumps print which unspec/unspec_volatile this is.
8911         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8912         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8913         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8914         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8915         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8916
8917         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8918         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8919         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8920         * config/rs6000/sync.md (isync, lwsync): Ditto.
8921
8922 2011-03-21  Richard Guenther  <rguenther@suse.de>
8923
8924         * params.def (lto-min-partition): Fix typo.
8925
8926 2011-03-21  Richard Guenther  <rguenther@suse.de>
8927
8928         PR c/47939
8929         * c-decl.c (grokdeclarator): Drop to the main variant only
8930         for array types.  Drop flag_gen_aux_info check.
8931
8932 2011-03-21  Richard Guenther  <rguenther@suse.de>
8933
8934         PR translation/47911
8935         * params.def (lto-partitions): Fix typo.
8936         (lto-min-partition): Fix wording.
8937
8938 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8939
8940         * config/rs6000/t-freebsd: Remove duplication from file.
8941
8942 2011-03-21  Richard Guenther  <rguenther@suse.de>
8943
8944         PR middle-end/47661
8945         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8946
8947 2011-03-21  Richard Guenther  <rguenther@suse.de>
8948
8949         PR lto/48210
8950         * params.def (lto-partitions): Require at least 1 partition.
8951
8952 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8953
8954         * gthr-solaris.h: Remove.
8955         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8956         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8957         (LIB_SPEC): Likewise.
8958         * config/sol2.opt (threads): Remove.
8959         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8960         (sparc*-*-solaris2*): Likewise.
8961         * configure.ac (enable_threads): Enable solaris support.
8962         * configure: Regenerate.
8963         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8964         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8965         solaris.
8966
8967 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8968
8969         * config.gcc: Obsolete *-*-solaris2.8*.
8970         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8971
8972 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8973
8974         PR bootstrap/48135
8975         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8976         reference.  Solaris 8 perl works.
8977
8978 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8979
8980         PR bootstrap/48135
8981         * doc/install.texi (Prerequisites): Move jar etc. up.
8982         Explain support library version requirements.
8983
8984 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8985
8986         PR bootstrap/48135
8987         * doc/install.texi (Prerequisites): Move Perl to build
8988         requirements.  Always necessary on Solaris 2 with Sun ld.
8989
8990 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8991
8992         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8993         binutils 2.21.
8994         (Specific, i?86-*-solaris2.[89]): Likewise.
8995         (Specific, i?86-*-solaris2.10): Likewise.
8996         (Specific, mips-sgi-irix6): Likewise.
8997         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8998         Update for binutils 2.21.
8999
9000 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9001
9002         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9003         Allow -fuse-linker-plugin for non-default plugin linker.
9004         * configure: Regenerate.
9005
9006 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9007
9008         PR bootstrap/48167
9009         * gengtype.c (files_rules): Added rule for cp/parser.h.
9010
9011 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9012
9013         PR target/48213
9014         * config/s390/s390.c (s390_delegitimize_address): Don't call
9015         lowpart_subreg if orig_x has BLKmode.
9016
9017 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9018
9019         PR target/12171
9020         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9021         * tree.h (attribute_spec): Add new member affects_type_identity.
9022         * attribs.c (empty_attribute_table): Adjust attribute_spec
9023         initializers.
9024         * config/alpha/alpha.c: Likewise.
9025         * config/arc/arc.c: Likewise.
9026         * config/arm/arm.c: Likewise.
9027         * config/avr/avr.c: Likewise.
9028         * config/bfin/bfin.c: Likewise.
9029         * config/crx/crx.c: Likewise.
9030         * config/darwin.h: Likewise.
9031         * config/h8300/h8300.c: Likewise.
9032         * config/i386/cygming.h: Likewise.
9033         * config/i386/i386.c: Likewise.
9034         * config/ia64/ia64.c: Likewise.
9035         * config/m32c/m32c.c: Likewise.
9036         * config/m32r/m32r.c: Likewise.
9037         * config/m68hc11/m68hc11.c: Likewise.
9038         * config/m68k/m68k.c: Likewise.
9039         * config/mcore/mcore.c: Likewise.
9040         * config/mep/mep.c: Likewise.
9041         * config/microblaze/microblaze.c: Likewise.
9042         * config/mips/mips.c: Likewise.
9043         * config/rs6000/rs6000.c: Likewise.
9044         * config/rx/rx.c: Likewise.
9045         * config/sh/sh.c: Likewise.
9046         * config/sol2.h: Likewise.
9047         * config/sparc/sparc.c: Likewise.
9048         * config/spu/spu.c: Likewise.
9049         * config/stormy16/stormy16.c: Likewise.
9050         * config/v850/v850.c: Likewise.
9051
9052 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9053
9054         * simplify-rtx.c (simplify_binary_operation_1): Handle
9055         (xor (and A B) C) case when B and C are both constants.
9056
9057 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9058
9059         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9060
9061 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9062
9063         PR bootstrap/48168
9064         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9065
9066 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9067
9068         PR rtl-optimization/48156
9069         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9070         assume df and df_lr are not NULL.
9071
9072 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9073
9074         PR debug/48023
9075         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9076         between a call and its CALL_ARG_LOCATION note.
9077
9078 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9079
9080         PR debug/48178
9081         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9082         between a call and its corresponding CALL_ARG_LOCATION note.
9083
9084 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9085
9086         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9087         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9088         * haifa-sched.c (setup_ref_regs): Ditto.
9089         * caller-save.c (add_used_regs_1): Ditto.
9090         * dse.c (look_for_hardregs): Ditto.
9091         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9092         * sched-rgn.c (check_live_1): Ditto.
9093
9094 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9095
9096         * c-decl.c (diagnose_mismatched_decls): Give an error for
9097         redefining a typedef with variably modified type.
9098
9099 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9100
9101         * c-decl.c (grokfield): Don't allow typedefs for structures or
9102         unions with no tag by default.
9103         * doc/extend.texi (Unnamed Fields): Update.
9104
9105 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9106
9107         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9108         Rewrite using indirect functions.
9109         (lwp_slwpcb): Ditto.
9110         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9111         (avx_vinsertf128<mode>): Ditto.
9112
9113 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9114
9115         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9116         unspecs.
9117
9118 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9119
9120         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9121         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9122
9123 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9124
9125         PR rtl-optimization/48170
9126         * gcse.c (hoist_code): Remove bogus asserts.
9127
9128 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9129
9130         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9131         computation for prologue/epilogue.
9132
9133 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9134
9135         * Makefile.in (check-consistency): Remove.
9136
9137 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9138
9139         PR debug/48176
9140         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9141         arange_table_in_use is 0, but either text_section_used or
9142         cold_text_section_used is true.  Don't call it if
9143         !info_section_emitted.
9144
9145 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9146
9147         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9148         FUNCTION_VALUE_REGNO_P): Remove.
9149         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9150         Remove.
9151         * config/avr/avr.c (avr_ret_register): Make static inline.
9152         (avr_function_value_regno_p): New function.
9153         (avr_libcall_value): Make static. Add 'func' argument.
9154         (avr_function_value): Make static. Rename 'func' argument to
9155         'fn_decl_or_type', forward it to avr_libcall_value. Call
9156         avr_ret_register function instead of RET_REGISTER macro.
9157         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9158
9159 2011-03-18  Jason Merrill  <jason@redhat.com>
9160
9161         PR c++/23372
9162         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9163
9164 2011-03-18  Richard Guenther  <rguenther@suse.de>
9165
9166         * doc/install.texi (--enable-gold): Remove.
9167         (--with-plugin-ld): Document.
9168         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9169
9170 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9171
9172         PR middle-end/47790
9173         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9174         again after expansion changes.
9175
9176 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9177
9178         * combine.c (try_combine): Do simplification only call of
9179         subst() on i2 even when i1 is present. Update comments.
9180
9181 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9182
9183         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9184         and UNSPEC_PCREL_SYMOFF.
9185
9186 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9187
9188         * config/s390/s390.md: Use define_c_enum for the unspec constant
9189         definitions.
9190
9191 2011-03-18  Richard Henderson  <rth@redhat.com>
9192             Jakub Jelinek  <jakub@redhat.com>
9193
9194         PR bootstrap/48161
9195         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9196         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9197
9198 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9199
9200         PR middle-end/47725
9201         * combine.c (cant_combine_insn_p): Don't check zero/sign
9202         extended hard registers.
9203
9204 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9205
9206         PR middle-end/47725
9207         * combine.c (cant_combine_insn_p): Check zero/sign extended
9208         hard registers.
9209
9210 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9211
9212         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9213         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9214         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9215         Change return type to bool.
9216         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9217
9218 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9219
9220         PR debug/48163
9221         * var-tracking.c (prepare_call_arguments): If CALL target
9222         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9223         pc instead of looking it up using cselib_lookup and use
9224         Pmode for it if x has VOIDmode.
9225         * dwarf2out.c (gen_subprogram_die): If also both first and
9226         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9227
9228         PR debug/48163
9229         * function.c (assign_parms): For data.passed_pointer parms
9230         use MEM of data.entry_parm instead of data.entry_parm itself
9231         as DECL_INCOMING_RTL.
9232         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9233         also when passed and declared mode is the same, DECL_RTL
9234         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9235         a MEM too.
9236
9237 2011-03-16  Jeff Law  <law@redhat.com>
9238
9239         PR rtl-optimization/37273
9240         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9241         handle them like argument loads from stack slots.  Do not double
9242         count memory for memory constants and argument loads from stack slots.
9243
9244 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9245
9246         PR debug/48160
9247         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9248
9249 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9250
9251         PR target/48171
9252         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9253
9254 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9255
9256         PR bootstrap/48153
9257         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9258         if dwarf_strict.
9259         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9260         Clear call_arg_locations and call_arg_loc_last always.
9261
9262         PR middle-end/48152
9263         * var-tracking.c (prepare_call_arguments): If argument needs to be
9264         passed by reference, adjust argtype and mode.
9265
9266 2011-03-17  Richard Guenther  <rguenther@suse.de>
9267
9268         PR middle-end/48134
9269         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9270         a value make sure to fold the statement.
9271
9272 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9273
9274         PR target/43872
9275         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9276         return condition with !cfun->calls_alloca.
9277
9278 2011-03-17  Richard Guenther  <rguenther@suse.de>
9279
9280         PR bootstrap/48148
9281         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9282         origin for decls in other ltrans units.
9283         (input_varpool_node): Likewise.
9284
9285 2011-03-17  Richard Guenther  <rguenther@suse.de>
9286
9287         PR middle-end/48165
9288         * tree-object-size.c (compute_object_offset): Properly return
9289         the offset operand of MEM_REFs as sizetype.
9290
9291 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9292
9293         PR rtl-optimization/48141
9294         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9295         * dse.c: Include params.h.
9296         (active_local_stores_len): New variable.
9297         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9298         to NULL.
9299         (record_store, check_mem_read_rtx): Decrease it when removing
9300         from the chain.
9301         (scan_insn): Likewise.  Increase it when adding to chain, if it
9302         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9303         set active_local_stores to NULL before the addition.
9304         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9305
9306         PR rtl-optimization/48141
9307         * dse.c (record_store): If no positions are needed in an insn
9308         that cannot be deleted, at least unchain it from active_local_stores.
9309
9310 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9311
9312         PR debug/47510
9313         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9314         (lookup_type_die_strip_naming_typedef): ... here.
9315         (get_context_die): Use it.
9316         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9317         the anonymous struct named by the naming typedef.
9318
9319 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9320
9321         PR target/48154
9322         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9323         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9324
9325 2011-03-16  Jeff Law  <law@redhat.com>
9326
9327         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9328         check for operands of conditional.  Allow type to be a pointer.
9329
9330 2011-03-16  Richard Guenther  <rguenther@suse.de>
9331
9332         PR tree-optimization/48149
9333         * fold-const.c (fold_binary_loc): Fold
9334         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9335
9336 2011-03-16  Richard Guenther  <rguenther@suse.de>
9337
9338         PR tree-optimization/26134
9339         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9340         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9341         (non_rewritable_mem_ref_base): Handle complex type component
9342         accesses, constrain offsets for vector and complex extracts
9343         more properly.
9344
9345 2011-03-16  Richard Guenther  <rguenther@suse.de>
9346
9347         PR tree-optimization/48146
9348         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9349         operands avoiding the need for renaming.
9350
9351 2011-03-16  Richard Guenther  <rguenther@suse.de>
9352
9353         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9354         constant folding.  Move MEM_REF canonicalization first.
9355         Rely on fold_const_aggregate_ref for initializer folding.
9356         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9357
9358 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9359
9360         PR middle-end/48136
9361         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9362         arg0/arg1 or their arguments are always fold converted to matching
9363         types.
9364
9365         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9366         to nargs.
9367
9368 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9369
9370         PR lto/46944
9371         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9372         Handle in-tree gold.
9373         (ld_vers): Extract binutils version for gold.
9374         (gcc_cv_ld_hidden): Handle gold here.
9375         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9376         * configure: Regenerate.
9377         * config.in: Regenerate.
9378         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9379         -fuse-linker-plugin otherwise.
9380         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9381         (LINK_COMMAND_SPEC): Use it.
9382         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9383
9384 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9385
9386         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9387         * calls.c: Remove debug.h include.
9388         (emit_call_1): Don't call virtual_call_token debug hook.
9389         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9390         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9391         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9392         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9393         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9394         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9395         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9396         dwarf2out_virtual_call): Remove.
9397         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9398         copy_call_info and virtual_call hooks.
9399         (dwarf2out_init): Don't initialize vcall_insn_table,
9400         debug_dcall_section and debug_vcall_section.
9401         (prune_unused_types): Don't mark nodes from dcall_table.
9402         (dwarf2out_finish): Don't output dcall or vcall tables.
9403         * final.c (final_scan_insn): Don't call direct_call or
9404         virtual_call debug hooks.
9405         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9406         virtual_call_token, copy_call_info and virtual_call hooks.
9407         (debug_nothing_uid): Remove prototype.
9408         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9409         copy_call_info and virtual_call hooks.
9410         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9411         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9412         * debug.c (do_nothing_debug_hooks): Likewise.
9413         (debug_nothing_uid): Remove.
9414         * doc/invoke.texi (-fenable-icf-debug): Remove.
9415         * common.opt (-fenable-icf-debug): Likewise.
9416
9417         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9418         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9419         call's MEM.  Handle functions returning aggregate through a hidden
9420         first pointer.  For virtual calls add clobbered pc to call arguments
9421         chain.
9422         * dwarf2out.c (gen_subprogram_die): Emit
9423         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9424         can't be emitted.
9425
9426         PR debug/45882
9427         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9428         * rtl.h (ENTRY_VALUE_EXP): Define.
9429         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9430         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9431         * print-rtl.c (print_rtx): Likewise.
9432         * gengtype.c (adjust_field_rtx_def): Likewise.
9433         * var-tracking.c (vt_add_function_parameter): Adjust
9434         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9435         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9436         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9437         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9438         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9439
9440         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9441         Call var_location debug hook even on CALL_INSNs.
9442         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9443         * rtl.def (ENTRY_VALUE): New.
9444         * dwarf2out.c: Include cfglayout.h.
9445         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9446         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9447         (struct call_arg_loc_node): New type.
9448         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9449         tail_call_site_count): New variables.
9450         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9451         DW_TAG_GNU_call_site_parameter.
9452         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9453         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9454         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9455         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9456         and DW_AT_GNU_all_source_call_sites.
9457         (mem_loc_descriptor): Handle ENTRY_VALUE.
9458         (add_src_coords_attributes): Don't add enything if
9459         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9460         (dwarf2out_abstract_function): Save and clear call_arg_location,
9461         call_site_count and tail_call_site_count around dwarf2out_decl call.
9462         (gen_call_site_die): New function.
9463         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9464         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9465         (dwarf2out_function_decl): Clear call_arg_locations,
9466         call_arg_loc_last, set call_site_count and tail_call_site_count
9467         to -1 and free block_map.
9468         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9469         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9470         followed by any real instructions.
9471         (dwarf2out_begin_function): Set call_site_count and
9472         tail_call_site_count to 0.
9473         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9474         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9475         attempt to force a DIE for it and worst case remove the attribute.
9476         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9477         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9478         the decl itself.
9479         * var-tracking.c: Include tm_p.h.
9480         (vt_stack_adjustments): For calls call note_register_arguments.
9481         (argument_reg_set): New variable.
9482         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9483         ensure the VALUE is resolved.
9484         (call_arguments): New variable.
9485         (prepare_call_arguments): New function.
9486         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9487         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9488         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9489         always use the best expression.
9490         (vt_expand_loc): Add ignore_cur_loc argument.
9491         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9492         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9493         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9494         note for all calls.
9495         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9496         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9497         argument.  Don't call cselib_preserve_only_values and
9498         cselib_reset_table.
9499         (note_register_arguments): New function.
9500         (vt_initialize): Compute argument_reg_set.  Call
9501         vt_add_function_parameters before processing basic blocks instead of
9502         afterwards.  For calls call prepare_call_arguments before calling
9503         cselib_process_insn.
9504         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9505         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9506         (var-tracking.o): Depend on $(TM_P_H).
9507         * cfglayout.h (insn_scope): New prototype.
9508         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9509         * cfglayout.c (insn_scope): No longer static.
9510         * insn-notes.def (CALL_ARG_LOCATION): New.
9511         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9512         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9513         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9514         nothing for DECL_EXTERNAL BLOCK_VARS.
9515
9516 2011-03-16  Alan Modra  <amodra@gmail.com>
9517
9518         PR target/45844
9519         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9520         create invalid offset address for vsx splat insn.
9521         * config/rs6000/predicates.md (splat_input_operand): New.
9522         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9523
9524 2011-03-15  Xinliang David Li  <davidxl@google.com>
9525
9526         PR c/47837
9527         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9528         (normalize_preds): New function.
9529         (is_use_properly_guarded): Normalize def predicates.
9530
9531 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9532
9533         PR target/46788
9534         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9535         in the output template.
9536
9537 2011-03-15  Richard Guenther  <rguenther@suse.de>
9538
9539         PR middle-end/47650
9540         * tree-pretty-print.c (dump_function_declaration): Properly
9541         dump unprototyped and varargs function types.
9542
9543 2011-03-15  Richard Guenther  <rguenther@suse.de>
9544
9545         PR tree-optimization/13954
9546         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9547         and friends.
9548
9549 2011-03-15  Richard Guenther  <rguenther@suse.de>
9550
9551         PR tree-optimization/48037
9552         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9553         selects into BIT_FIELD_REFs.
9554         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9555         vector select.
9556
9557 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9558
9559         PR tree-optimization/48129
9560         * builtins.c (fold_builtin_snprintf): Convert to type of
9561         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9562         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9563
9564 2011-03-15  Richard Guenther  <rguenther@suse.de>
9565
9566         PR tree-optimization/41490
9567         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9568         value but with VUSE.
9569         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9570         return statements.
9571         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9572         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9573         * tree-tailcall.c (find_tail_calls): Ignore returns.
9574
9575 2011-03-15  Richard Guenther  <rguenther@suse.de>
9576
9577         PR middle-end/48031
9578         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9579         or variable-indexed array accesses when in gimple form.
9580
9581 2011-03-15  Richard Guenther  <rguenther@suse.de>
9582
9583         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9584
9585 2011-03-15  Alan Modra  <amodra@gmail.com>
9586
9587         PR target/48032
9588         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9589         presume symbol_refs without a symbol_ref_decl are suitably
9590         aligned, nor other trees we may see here.  Handle anchor symbols.
9591         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9592         Check cmodel=medium addresses.  Adjust all calls.
9593         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9594         creating cmodel=medium optimized access to locals.
9595         * config/rs6000/constraints.md (R): Pass QImode to
9596         legitimate_constant_pool_address_p.
9597         * config/rs6000/predicates.md (input_operand): Pass mode to
9598         legitimate_constant_pool_address_p.
9599         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9600         Update prototype.
9601
9602 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9603
9604         PR target/48053
9605         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9606         64-bit constants being loaded into registers other than GPRs such
9607         as loading 0 into a VSX register.
9608
9609 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9610
9611         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9612
9613 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9614
9615         PR middle-end/47917
9616         * builtins.c (fold_builtin_snprintf): New function.
9617         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9618         (fold_builtin_4): Likewise.
9619
9620         PR middle-end/38878
9621         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9622         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9623         and C - X == X also strip nops from +/-/p+ operand.
9624         When optimizing -X == C, fold C to arg0's type.
9625
9626         PR debug/47946
9627         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9628         emit it as add_AT_int instead of add_AT_unsigned.
9629
9630 2011-03-14  Tom Tromey  <tromey@redhat.com>
9631
9632         * unwind-dw2.c: Include sys/sdt.h if it exists.
9633         (_Unwind_DebugHook): Use STAP_PROBE2.
9634         * config.in, configure: Rebuild.
9635         * configure.ac: Check for sys/sdt.h.
9636
9637 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9638
9639         * config/i386/i386.md (ROUND_FLOOR): New constant.
9640         (ROUND_CEIL): Ditto.
9641         (ROUND_TRUNC): Ditto.
9642         (ROUND_MXCSR): Ditto.
9643         (ROUND_NO_EXC): Ditto.
9644         (rint<mode>2): Use new defines instead of numerical constants.
9645         (floor<mode>2): Ditto.
9646         (ceil<mode>2): Ditto.
9647         (btrunc<mode>2): Ditto.
9648         * config/i386/i386-builtin-types.def: Define ROUND function type
9649         aliases.
9650         * config/i386/i386.c (enum ix86_builtins): Add
9651         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9652         (struct builtin_description): Add
9653         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9654         (ix86_expand_sse_round): New static function.
9655         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9656         function types.
9657         (ix86_builtin_vectorized_function): Handle
9658         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9659
9660 2011-03-14  Tom Tromey  <tromey@redhat.com>
9661
9662         * c-parser.c (c_parser_asm_string_literal): Clear
9663         warn_overlength_strings.
9664
9665 2011-03-14  Tom Tromey  <tromey@redhat.com>
9666
9667         * c-parser.c (disable_extension_diagnostics): Save
9668         warn_overlength_strings.
9669         (restore_extension_diagnostics): Restore warn_overlength_strings.
9670
9671 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9672
9673         * BASE-VER: Change to 4.7.0.
9674
9675 2011-03-14  Richard Guenther  <rguenther@suse.de>
9676
9677         PR middle-end/48098
9678         * tree.c (build_vector_from_val): Adjust assert to requirements
9679         and reality.
9680
9681 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9682
9683         PR bootstrap/48102
9684         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9685
9686 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9687
9688         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9689         terms of target_flags_explicit. Adjust copyright year.
9690
9691         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9692         * config/rs6000/t-freebsd: New file. Add override for
9693         LIB2FUNCS_EXTRA.
9694
9695 2011-03-13  Chris Demetriou  <cgd@google.com>
9696
9697         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9698         (-fno-diagnostics-show-option): this, to reflect current default.
9699         (-Werror=): Update text about -fno-diagnostics-show-option.
9700
9701 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9702
9703         PR target/48053
9704         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9705         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9706         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9707         mode is not V2DImode or V2DFmode.
9708         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9709         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9710         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9711         registers to 0.
9712         (movdi_internal64): Likewise.
9713
9714 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9715
9716         PR tree-optimization/47127
9717         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9718         parameter.
9719         (set_cloog_options): Same.
9720         (scop_to_clast): Same.
9721         (print_clast_stmt): Do not call cloog_state_malloc and
9722         cloog_state_free.
9723         (print_generated_program): Same.
9724         (gloog): Same.
9725         * graphite-clast-to-gimple.h (cloog_state): Declared.
9726         (scop_to_clast): Adjust declaration.
9727         * graphite.c (cloog_state): Defined here.
9728         (graphite_initialize): Call cloog_state_malloc.
9729         (graphite_finalize): Call cloog_state_free.
9730
9731 2011-03-11  Jason Merrill  <jason@redhat.com>
9732
9733         * attribs.c (lookup_attribute_spec): Take const_tree.
9734         * tree.h: Adjust.
9735
9736 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9737
9738         * config/sparc/sparc.c (sparc_option_override): Use
9739         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9740
9741 2011-03-11  Richard Guenther  <rguenther@suse.de>
9742
9743         PR tree-optimization/48067
9744         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9745         multiplication result will be only used once on the target
9746         stmt.
9747
9748 2011-03-11  Richard Guenther  <rguenther@suse.de>
9749
9750         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9751
9752 2011-03-11  Richard Guenther  <rguenther@suse.de>
9753
9754         PR lto/48073
9755         * tree.c (find_decls_types_r): Do not walk types only reachable
9756         from IDENTIFIER_NODEs.
9757
9758 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9759
9760         PR middle-end/48044
9761         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9762         all vnode->force_output nodes as needed.
9763
9764 2011-03-11  Jason Merrill  <jason@redhat.com>
9765
9766         PR c++/48069
9767         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9768         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9769
9770 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9771
9772         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9773         cgraph_node.
9774
9775 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9776
9777         PR tree-optimization/48063
9778         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9779         inline functions called once if !tree_can_inline_p (node->callers).
9780
9781 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9782
9783         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9784         extra_objs.
9785         * config/score/score3.c: Delete.
9786         * config/score/score3.h: Delete.
9787         * config/score/mul-div.S: Delete.
9788         * config/score/sfp-machine.h: Add new file.
9789         * config/score/constraints.md: Add new file.
9790         * config/score/t-score-softfp: Add new file.
9791         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9792         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9793         (score7_extra_constraint): Delete.
9794         (score7_option_override): Remove unused code.
9795         * config/score/score.c: Remove score3 and score5 define and code.
9796         * config/score/score.h: Remove score3 and score5 define and code.
9797         * config/score/score.md: Remove score3 template and unusual insn.
9798         * config/score/score.opt: Remove score3 and score5 options.
9799
9800 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9801
9802         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9803         when _HPUX_SOURCE is defined.
9804         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9805
9806 2011-03-10  Jason Merrill  <jason@redhat.com>
9807
9808         PR c++/48029
9809         * stor-layout.c (layout_type): Don't set structural equality
9810         on arrays of incomplete type.
9811         * tree.c (type_hash_eq): Handle comparing them properly.
9812
9813 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9814
9815         PR debug/48043
9816         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9817         result mode matches original rtl mode.
9818
9819 2011-03-10  Nick Clifton  <nickc@redhat.com>
9820
9821         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9822         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9823
9824 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9825
9826         PR rtl-optimization/47866
9827         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9828         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9829         if target wasn't scalar.
9830         * function.c (assign_stack_temp_for_type): Assert that neither
9831         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9832         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9833         macro.
9834         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9835
9836 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9837
9838         * config/s390/s390-protos.h (s390_label_align): New prototype.
9839         * config/s390/s390.c (s390_label_align): New function.
9840         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9841
9842 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9843
9844         PR target/47755
9845         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9846         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9847         (output_vec_const_move): Ditto.
9848
9849 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9850
9851         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9852         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9853         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9854         Change 'rclass' argument and result type to reg_class_t.
9855         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9856
9857 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9858
9859         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9860         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9861         (TARGET_MEMORY_MOVE_COST): Define.
9862         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9863
9864 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9865
9866         PR debug/47881
9867         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9868         removed anything.
9869
9870         PR tree-optimization/48022
9871         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9872         for EQ/NE_EXPR.
9873
9874 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9875
9876         PR debug/47991
9877         * var-tracking.c (find_use_val): Return NULL for
9878         cui->sets && cui->store_p BLKmode MEMs.
9879
9880 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9881
9882         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9883         Remove.
9884         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9885         xstormy16_print_operand_address): Remove.
9886         * config/stormy16/stormy16.c (xstormy16_print_operand,
9887         xstormy16_print_operand_address): Make static.
9888         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9889
9890 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9891
9892         PR target/47862
9893         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9894         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9895         before definition.
9896
9897 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9898
9899         PR bootstrap/48000
9900         * cfgloopmanip.c (fix_bb_placements): Return immediately
9901         if FROM is BASE_LOOP's header.
9902
9903 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9904
9905         * gimplify.c (gimplify_function_tree): Fix building calls
9906         to __builtin_return_address.
9907
9908 2011-03-07  Alan Modra  <amodra@gmail.com>
9909
9910         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9911         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9912         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9913         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9914         return_mode args.
9915         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9916         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9917         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9918         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9919         * config/rs6000/rs6000.c
9920         (rs6000_elf_end_indicate_exec_stack): Rename to..
9921         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9922         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9923         (rs6000_file_start): ..here.
9924         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9925         file scope variables.
9926         (call_ABI_of_interest): New function.
9927         (init_cumulative_args): Set above vars when function return value
9928         is a float, vector, or small struct.
9929         (rs6000_function_arg_advance_1): Likewise for function args.
9930         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9931         references float args.
9932
9933 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9934
9935         * doc/cfg.texi: Remove "See" before @ref.
9936         * doc/invoke.texi: Likewise.
9937
9938 2011-03-05  Jason Merrill  <jason@redhat.com>
9939
9940         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9941
9942 2011-03-05  Anthony Green  <green@moxielogic.com>
9943
9944         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9945
9946 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9947
9948         PR rtl-optimization/47899
9949         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9950         to flow_loop_nested_p when moving the loop upward.
9951
9952 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9953
9954         PR target/47719
9955         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9956
9957 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9958
9959         PR tree-optimization/47967
9960         * ipa-cp.c (build_const_val): Return NULL instead of creating
9961         VIEW_CONVERT_EXPR for mismatching sizes.
9962         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9963         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9964         give up on versioning.
9965
9966 2011-03-05  Alan Modra  <amodra@gmail.com>
9967
9968         PR target/47986
9969         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9970         full cmodel medium/large lo_sum + high addresses.
9971
9972 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9973
9974         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9975         pool references in UNSPEC_LTREL_OFFSET.
9976
9977 2011-03-04  Jan Hubicka  <jh@suse.cz>
9978
9979         PR lto/47497
9980         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9981         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9982         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9983         Add node pointers.
9984         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9985         cgraph_add_thunk): Add node pointers.
9986         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9987         associated to right node.
9988         (input_node): Update use of cgraph_same_body_alias
9989         and cgraph_add_thunk.
9990
9991 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9992
9993         * config/i386/i386.opt (mprefer-avx128): New flag.
9994         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9995         modes when the flag -mprefer-avx128 is on.
9996
9997 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9998
9999         * dwarf2out.c (compare_loc_operands): Fix address handling.
10000
10001 2011-03-04  Alan Modra  <amodra@gmail.com>
10002
10003         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10004
10005 2011-03-04  Richard Guenther  <rguenther@suse.de>
10006
10007         PR middle-end/47968
10008         * expmed.c (extract_bit_field_1): Prefer vector modes that
10009         vec_extract patterns can handle.
10010
10011 2011-03-04  Richard Guenther  <rguenther@suse.de>
10012
10013         PR middle-end/47975
10014         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10015
10016 2011-03-04  Richard Henderson  <rth@redhat.com>
10017
10018         * explow.c (emit_stack_save): Remove 'after' parameter.
10019         (emit_stack_restore): Likewise.
10020         * expr.h: Update to match.
10021         * builtins.c, calls.c, stmt.c: Likewise.
10022         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10023         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10024         * function.c (expand_function_end): Insert the emit_stack_save
10025         sequence before parm_birth_insn instead of after.
10026
10027 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10028
10029         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10030         (ssse3_pmaddubsw128): Ditto.
10031         (ssse3_pmaddubsw): Ditto.
10032
10033 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10034
10035         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10036
10037 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10038
10039         PR c/47963
10040         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10041         on TYPE_SIZE_UNIT if it is a DECL.
10042
10043         PR debug/47283
10044         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10045         first operand is not is_gimple_mem_ref_addr, try to fold it.
10046         If the operand still isn't is_gimple_mem_ref_addr, clear
10047         MEM_EXPR on op0.
10048
10049 2011-03-03  Richard Guenther  <rguenther@suse.de>
10050
10051         PR middle-end/47283
10052         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10053         match comment.
10054         (refs_may_alias_p_1): For release branches return true if
10055         we are confused by our input.
10056
10057 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10058
10059         * config/s390/s390.c (s390_function_value): Rename to ...
10060         (s390_function_and_libcall_value): ... this.
10061         (s390_function_value): New function.
10062         (s390_libcall_value): New function.
10063         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10064         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10065         target macro definitions.
10066         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10067
10068 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10069
10070         * config/i386/freebsd64.h (CC1_SPEC): Define.
10071         * config/i386/linux64.h (CC1_SPEC): Define.
10072         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10073
10074 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10075
10076         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10077         Remove.
10078         * config/stormy16/stormy16.c: Include reload.h.
10079         (xstormy16_memory_move_cost): New function.
10080         (TARGET_MEMORY_MOVE_COST): Define.
10081
10082 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10083
10084         PR rtl-optimization/47925
10085         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10086         with side effects.  Remove the more-specific check for volatile asms.
10087
10088 2011-03-02  Alan Modra  <amodra@gmail.com>
10089
10090         PR target/47935
10091         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10092         toc relative addresses for valid offsets.
10093
10094 2011-03-01  Richard Guenther  <rguenther@suse.de>
10095
10096         PR tree-optimization/47890
10097         * tree-vect-loop.c (get_initial_def_for_induction): Set
10098         related stmt properly.
10099
10100 2011-03-01  Richard Guenther  <rguenther@suse.de>
10101
10102         PR lto/47924
10103         * lto-streamer.c (lto_record_common_node): Also register
10104         the canonical type.
10105
10106 2011-03-01  Richard Guenther  <rguenther@suse.de>
10107
10108         PR lto/46911
10109         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10110         Do not stream DECL_ABSTRACT_ORIGIN.
10111         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10112         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10113         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10114         Do not stream DECL_ABSTRACT_ORIGIN.
10115         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10116         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10117
10118 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10119
10120         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10121         FUNCTION_VALUE_REGNO_P): Remove.
10122         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10123         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10124         Add 'outgoing' argument.
10125         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10126         function.
10127         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10128         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10129
10130 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10131
10132         PR debug/28047
10133         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10134         (lookup_filename): Likewise.
10135         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10136
10137 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10138             Jakub Jelinek  <jakub@redhat.com>
10139
10140         PR middle-end/47893
10141         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10142         (assign_stack_local_1): Change last argument type to int.
10143         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10144         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10145         don't record padding space into frame_space_list nor use those areas.
10146         (assign_stack_local): Adjust caller.
10147         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10148         of assign_stack_local, pass 0 as last argument.
10149         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10150         callers.
10151
10152 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10153
10154         PR debug/47283
10155         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10156         Use target address_mode and pointer_mode hooks instead of hardcoded
10157         Pmode and ptr_mode.  Handle some simple cases of extending if
10158         POINTERS_EXTEND_UNSIGNED < 0.
10159         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10160         Call convert_debug_memory_address.
10161         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10162         convert_debug_memory_address.
10163
10164         PR middle-end/46790
10165         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10166         * configure: Regenerated.
10167         * config.in: Regenerated.
10168         * varasm.c (default_function_section): Return NULL
10169         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10170
10171 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10172
10173         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10174         the description to match the printed values.
10175
10176 2011-02-28  Richard Guenther  <rguenther@suse.de>
10177
10178         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10179         of the copied scope tree.
10180
10181 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10182
10183         * doc/extend.texi (Function Attributes): Avoid deeply (and
10184         wrongly) nested tables.
10185
10186 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10187
10188         PR middle-end/47903
10189         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10190         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10191         r isn't op0 nor op1.
10192
10193 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10194
10195         * config/avr/avr.md: Remove magic comment for emacs.
10196
10197 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10198
10199         PR target/45261
10200         * config/avr/avr.c (avr_option_override): Use error on bad options.
10201         (avr_help): New function.
10202         (TARGET_HELP): Define.
10203
10204 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10205
10206         PR target/42240
10207         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10208         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10209
10210 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10211
10212         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10213         (ARM Options): Ditto.
10214         (i386 and x86-64 Options): Ditto.
10215         (RX Options): Ditto.
10216         (SPARC Options): Ditto.
10217
10218 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10219
10220         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10221         FreeBSD 6 and later.  Generally use cpu generic.
10222
10223 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10224
10225         * doc/cpp.texi: Update copyright years.
10226
10227 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10228
10229         PR target/46898
10230         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10231
10232 2011-02-25  Jon Beniston  <jon@beniston.com>
10233
10234         PR target/46898
10235         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10236         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10237         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10238         (lm32_block_move_inline): Add type cast to remove warning.
10239         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10240         (gen_int_relational): Move declarations to start of function.
10241
10242 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10243
10244         PR tree-optimization/45470
10245         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10246         can throw internally only.
10247         * tree-vect-stmts.c (vectorizable_call): Likewise.
10248
10249 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10250
10251         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10252         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10253         * config/stormy16/stormy16-protos.h
10254         (xstormy16_preferred_reload_class): Remove.
10255         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10256         static. Change 'rclass' argument and return type to reg_class_t.
10257         (TARGET_PREFERRED_RELOAD_CLASS,
10258         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10259
10260 2011-02-24  Richard Guenther  <rguenther@suse.de>
10261
10262         * lto-streamer-in.c (input_bb): Do not find referenced vars
10263         in debug statements.
10264
10265 2011-02-23  Jason Merrill  <jason@redhat.com>
10266
10267         * common.opt (fabi-version): Document v5 and v6.
10268
10269 2011-02-23  Richard Guenther  <rguenther@suse.de>
10270
10271         PR tree-optimization/47849
10272         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10273
10274 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10275
10276         * opts-common.c (decode_cmdline_option): Print empty string
10277         argument as "" in decoded->orig_option_with_args_text.
10278         * gcc.c (execute): Print empty string argument as ""
10279         in the verbose output.
10280         (do_spec_1): Keep empty string argument.
10281
10282 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10283
10284         * config.gcc: Declare score-* and crx-* obsolete.
10285
10286 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10287
10288         PR rtl-optimization/47763
10289         * web.c (web_main): Ignore naked clobber when replacing register.
10290
10291 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10292
10293         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10294         Remove.
10295
10296 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10297
10298         PR doc/47848
10299         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10300
10301 2011-02-22  Mike Stump  <mikestump@comcast.net>
10302
10303         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10304         assembler.
10305         * configure: Regenerate.
10306
10307 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10308
10309         PR rtl-optimization/46002
10310         * ira-color.c (update_copy_costs): Change class intersection
10311         test to reg_class_contents[] test of 'hard_regno'.
10312
10313 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10314
10315         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10316         than Driver option.
10317         * config/hpux11.opt (mt): Likewise.
10318         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10319         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10320         * config/vax/elf.opt (mno-asm-pic): Likewise.
10321         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10322
10323 2011-02-21  Mike Stump  <mikestump@comcast.net>
10324
10325         PR target/47822
10326         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10327         tree so we can get save the type.
10328         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10329         for CFString instead of trying to use past the end of the builtins.
10330         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10331         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10332         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10333         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10334         Rename to darwin_builtin_cfstring.
10335         (darwin_init_cfstring_builtins): Return the built type.
10336
10337 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10338
10339         PR target/47840
10340         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10341         (_mm256_insert_epi64): Use _mm_insert_epi64.
10342
10343 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10344
10345         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10346         * config/stormy16/stormy16-protos.h
10347         (xstormy16_mode_dependent_address_p): Remove.
10348         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10349         Make static. Change return type to bool. Change argument type to
10350         const_rtx. Remove dead code.
10351         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10352
10353 2011-02-21  Richard Guenther  <rguenther@suse.de>
10354
10355         PR lto/47820
10356         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10357         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10358         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10359         TUs context.
10360         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10361         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10362
10363 2011-02-20  Richard Guenther  <rguenther@suse.de>
10364
10365         PR lto/47822
10366         * tree.c (free_lang_data_in_decl): Clean builtins from
10367         the TU decl BLOCK_VARS.
10368
10369 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10370
10371         PR debug/47620
10372         PR debug/47630
10373         * haifa-sched.c (fix_tick_ready): Skip tick computation
10374         for debug insns.
10375
10376 2011-02-19  Richard Guenther  <rguenther@suse.de>
10377
10378         PR lto/47647
10379         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10380         Remove lazy BLOCK_VARS streaming.
10381         (lto_input_ts_block_tree_pointers): Likewise.
10382         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10383
10384 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10385
10386         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10387
10388 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10389
10390         * config/i386/biarch32.h, config/i386/mach.h,
10391         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10392
10393 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10394
10395         PR target/47800
10396         * config/i386/i386.md (peephole2 for shift and plus): Use
10397         operands[1] original mode in the first insn.
10398
10399 2011-02-18  Mike Stump  <mikestump@comcast.net>
10400
10401         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10402
10403 2011-02-18  Jan Hubicka  <jh@suse.cz>
10404
10405         PR middle-end/47788
10406         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10407         to zero when the function is not inlinable at all.
10408
10409 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10410
10411         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10412         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10413         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10414         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10415         * config/pa/t-pa64: Likewise.
10416         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10417
10418 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10419
10420         PR driver/47787
10421         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10422
10423 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10424
10425         PR target/47792
10426         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10427
10428 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10429
10430         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10431         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10432         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10433         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10434         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10435         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10436         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10437         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10438         m32r_legitimate_address_p): New functions.
10439         * config/m32r/constraints.md (constraint "S"): Don't use
10440         STORE_PREINC_PREDEC_P.
10441         (constraint "U"): Don't use LOAD_POSTINC_P.
10442
10443 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10444
10445         PR rtl-optimization/46178
10446         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10447         compute ira_hard_regno_cover_class[].
10448
10449 2011-02-18  Richard Guenther  <rguenther@suse.de>
10450
10451         PR lto/47798
10452         * lto-streamer.h (lto_global_var_decls): Declare.
10453         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10454         statics for global var processing.
10455
10456 2011-02-18  Richard Guenther  <rguenther@suse.de>
10457
10458         PR tree-optimization/47737
10459         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10460         edge dominance check.
10461
10462 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10463
10464         PR debug/47780
10465         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10466         avoid invalid rtx sharing.
10467
10468 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10469
10470         * doc/cpp.texi (Obsolete Features): Add background on the
10471         origin of assertions.
10472
10473 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10474
10475         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10476         objc_abi == 2.
10477         * config/darwin.c (output_objc_section_asm_op): Added support for
10478         ABI v1 and v2.
10479         (is_objc_metadata): New.
10480         (darwin_objc2_section): New.
10481         (darwin_objc1_section): New.
10482         (machopic_select_section): Added support for ABI v1 and v2.
10483         (darwin_emit_objc_zeroed): New.
10484         (darwin_output_aligned_bss): Detect objc metadata and treat it
10485         appropriately.
10486         (darwin_asm_output_aligned_decl_common): Same.
10487         (darwin_asm_output_aligned_decl_local): Same.
10488         * config/darwin-sections.def: Updated for ABI v1 and v2.
10489         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10490         compiling Objective-C code for the NeXT runtime, default to using
10491         ABI version 0 for 32-bit, and version 2 for 64-bit.
10492
10493 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10494
10495         * common.opt (optimize_fast): New Variable.
10496         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10497         instead of local variable ofast.
10498
10499 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10500
10501         * doc/invoke.texi (fobjc-abi-version): Documented.
10502         (fobjc-nilcheck): Documented.
10503         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10504         version.
10505
10506 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10507
10508         PR driver/47390
10509         * common.opt (export-dynamic): New Driver option.
10510         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10511
10512 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10513
10514         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10515
10516 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10517             Jan Hubicka  <jh@suse.cz>
10518
10519         PR debug/47106
10520         PR debug/47402
10521         * cfgexpand.c (account_used_vars_for_block): Remove.
10522         (estimated_stack_frame_size): Use referenced vars.
10523         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10524         that were referenced in the original function.  Test src_fn
10525         rather than cfun.  Drop redundant get_var_ann.
10526         (setup_one_parameter): Drop redundant get_var_ann.
10527         (declare_return_variable): Likewise.
10528         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10529         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10530         * ipa-inline.c (compute_inline_parameters): Do not compute
10531         disregard_inline_limits here.
10532         (compute_inlinable_for_current, pass_inlinable): New.
10533         (pass_inline_parameters): Require PROP_referenced_vars.
10534         * cgraphunit.c (cgraph_process_new_functions): Don't run
10535         compute_inline_parameters explicitly unless function is in SSA form.
10536         (cgraph_analyze_function): Set .disregard_inline_limits.
10537         * tree-sra.c (convert_callers): Compute inliner parameters
10538         only for functions already in SSA form.
10539
10540 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10541
10542         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10543         -mlittle-endian-data.
10544
10545 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10546
10547         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10548         -mno-fpu, not -fpu and -no-fpu.
10549         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10550         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10551
10552 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10553
10554         PR target/43653
10555         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10556         input reload with PLUS RTX.
10557
10558 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10559
10560         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10561         of InverseVar(MDMX).
10562
10563 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10564
10565         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10566         --m4-340.
10567
10568 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10569
10570         * config/mn10300/mn10300.opt (mno-crt0): New.
10571
10572 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10573
10574         * config/m68k/uclinux.opt (static-libc): New Driver option.
10575
10576 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10577
10578         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10579
10580 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10581
10582         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10583         %{muser-extend-enabled}.
10584
10585 2011-02-16  Richard Guenther  <rguenther@suse.de>
10586
10587         PR tree-optimization/47738
10588         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10589         the TODO from tree_predictive_commoning.
10590
10591 2011-02-15  Jeff Law  <law@redhat.com>
10592
10593         Revert
10594         2011-01-25  Jeff Law  <law@redhat.com>
10595
10596         PR rtl-optimization/37273
10597         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10598         handle them like argument loads from stack slots.  Do not double
10599         count memory for memory constants and argument loads from stack slots.
10600
10601 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10602
10603         PR middle-end/47725
10604         * combine.c (cant_combine_insn_p): Revert the last change.
10605
10606 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10607
10608         PR target/47755
10609         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10610         mode for vector constants.  Remove code that checks for TImode.
10611
10612 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10613
10614         PR debug/47106
10615         PR debug/47402
10616         * cgraph.h (compute_inline_parameters): Return void.
10617         * ipa-inline.c (compute_inline_parameters): Adjust.
10618
10619 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10620
10621         PR debug/47106
10622         PR debug/47402
10623         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10624         rather than decl.
10625         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10626         * ipa-inline.c (compute_inline_parameters): Adjust.
10627
10628 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10629
10630         PR debug/47106
10631         PR debug/47402
10632         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10633         Adjust all users.  Pass FN to...
10634         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10635         fn argument.
10636         * ipa-struct-reorg.c: Adjust.
10637         * tree-dfa.c: Adjust.
10638         * tree-into-ssa.c: Adjust.
10639         * tree-sra.c: Adjust.
10640         * tree-ssa-alias.c: Adjust.
10641         * tree-ssa-live.c: Adjust.
10642         * tree-ssa.c: Adjust.
10643         * tree-ssanames.c: Adjust.
10644         * tree-tailcall.c: Adjust.
10645
10646 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10647
10648         PR debug/47106
10649         PR debug/47402
10650         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10651         Adjust all callers.
10652         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10653         * tree-flow-inline.h: Adjust.
10654         * gimple-pretty-print.c: Adjust.
10655         * tree-into-ssa.c: Adjust.
10656         * tree-ssa.c: Adjust.
10657         * cfgexpand.c: Adjust.
10658
10659 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10660
10661         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10662         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10663         (EXTRA_CONSTRAINT): Delete.
10664         * config/iq2000/constraints.md: New file.
10665         * config/iq2000/iq2000.md: Include it.
10666         (define_insn ""): Delete.
10667         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10668         unsupported constraint letters from patterns.
10669         (call_value, call_value_internal1): Likewise.
10670         (call_value_multiple_internal1): Likewise.
10671
10672 2011-02-15  Nick Clifton  <nickc@redhat.com>
10673
10674         * config/mn10300/mn10300.c: Include tm-constrs.h.
10675         (struct liw_data): New data structure describing an LIW candidate
10676         instruction.
10677         (extract_bundle): Use struct liw_data.  Allow small integer
10678         operands for some instructions.
10679         (check_liw_constraints): Use struct liw_data.  Remove swapped
10680         parameter.  Add comments describing the checks.  Fix bug when
10681         assigning the source of liw1 to the source of liw2.
10682         (liw_candidate): Delete.  Code moved into extract_bundle.
10683         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10684         before swapping.
10685         * config/mn10300/predicates.md (liw_operand): New predicate.
10686         Allows registers and small integer constants.
10687         * config/mn10300/constraints.md (O): New constraint.  Accetps
10688         integers in the range -8 to +7 inclusive.
10689         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10690         for moving a small integer into a register.  Give this alternative
10691         LIW attributes.
10692         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10693         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10694         using the J,K,L and M constraints,
10695         (liw): Remove SI mode on second operands to allow for HI and QI
10696         mode values.
10697         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10698         instruction.
10699
10700 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10701
10702         PR middle-end/47725
10703         * combine.c (cant_combine_insn_p): Check zero/sign extended
10704         hard registers.
10705
10706 2011-02-15  Richard Guenther  <rguenther@suse.de>
10707
10708         PR tree-optimization/47743
10709         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10710         for a non-type-compatible VN lookup bail out.
10711
10712 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10713
10714         * config/fr30/constraints.md: New file.
10715         * config/fr30/fr30.md: Include it.
10716         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10717         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10718         (EXTRA_CONSTRAINT): Delete.
10719
10720 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10721
10722         * config/frv/constraints.md: New file.
10723         * config/frv/predicates.md: Include it.
10724         * config/frv/frv.c (reg_class_from_letter): Delete.
10725         (frv_option_override): Don't initialize it.
10726         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10727         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10728         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10729         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10730         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10731         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10732         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10733         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10734         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10735         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10736         (REG_CLASS_FROM_CONSTRAINT): Delete.
10737
10738 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10739
10740         PR middle-end/47581
10741         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10742         if frame size is 0 in a leaf function.
10743
10744 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10745
10746         PR pch/14940
10747         * config/alpha/host-osf.c: New file.
10748         * config/alpha/x-osf: New file.
10749         * config.host (alpha*-dec-osf*): Use it.
10750
10751 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10752
10753         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10754         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10755         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10756         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10757         type to const_rtx.
10758         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10759
10760 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10761
10762         * config/stormy16/constraints.md: New file.
10763         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10764         Use satisfies_constraint_Q and satisfies_constraint_R.
10765         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10766         Delete.
10767         (xstormy16_legitiamte_address_p): Declare.
10768         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10769         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10770         (EXTRA_CONSTRAINT): Delete.
10771         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10772         Un-staticize.
10773         (xstormy16_extra_constraint_p): Delete.
10774
10775 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10776
10777         PR tree-optimization/46494
10778         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10779         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10780         (pass_rtl_loop_done): Add TODO_verify_flow.
10781         * fwprop.c (pass_rtl_fwprop): Likewise.
10782         * modulo-sched.c (pass_sms): Likewise.
10783         * tree-ssa-dom.c (pass_dominator): Likewise.
10784         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10785         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10786         (pass_tree_loop_done): Likewise.
10787         * tree-ssa-pre.c (execute_pre): Likewise.
10788         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10789         * tree-ssa-sink.c (pass_sink_code): Likewise.
10790         * tree-vrp.c (pass_vrp): Likewise.
10791
10792 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10793
10794         * config/v850/constraints.md: New file.
10795         * config/v850/v850.md: Include it.
10796         * config/v850/predicates.md (reg_or_0_operand): Use
10797         satisfies_constraint_G.
10798         (special_symbolref_operand): Use satisfies_constraint_K.
10799         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10800         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10801         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10802         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10803         (EXTRA_CONSTRAINT): Delete.
10804         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10805         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10806         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10807
10808 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10809
10810         PR target/47696
10811         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10812         description.
10813
10814 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10815
10816         * config/mcore/constraints.md: New file.
10817         * config/mcore/mcore.md: Include it.
10818         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10819         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10820         (REG_CLASS_FROM_LETTER): Delete.
10821         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10822         insn_const_int_ok_for_constraint.
10823         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10824         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10825         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10826         (EXTRA_CONSTRAINT): Delete.
10827
10828 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10829
10830         PR ada/41929
10831         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10832         (IS_SIGHANDLER): Define.
10833         (sparc64_is_sighandler): New function, split off from
10834         sparc64_fallback_frame_state.
10835         (sparc_is_sighandler): New function, split off from
10836         sparc_fallback_frame_state.
10837         (sparc64_fallback_frame_state): Merge with ...
10838         (sparc_fallback_frame_state): ... this into ...
10839         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10840         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10841         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10842         stack instead of hardcoded offsets.
10843
10844 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10845
10846         PR target/45808
10847         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10848
10849 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10850
10851         * configure: Regenerate.
10852
10853 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10854
10855         PR driver/45731
10856         * gcc.c (asm_options): Correct spec matching --target-help.
10857
10858 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10859
10860         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10861         to gimple call error.
10862
10863 2011-02-12  Mike Stump  <mikestump@comcast.net>
10864
10865         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10866         comments in backslash regions.
10867
10868 2011-02-12  Mike Stump  <mikestump@comcast.net>
10869             Jakub Jelinek  <jakub@redhat.com>
10870             Iain Sandoe  <iains@gcc.gnu.org>
10871
10872         PR target/47324
10873         * dwarf2out.c (output_cfa_loc): When required, apply the
10874         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10875         (output_loc_sequence): Likewise.
10876         (output_loc_operands_raw): Likewise.
10877         (output_loc_sequence_raw): Likewise.
10878         (output_cfa_loc): Likewise.
10879         (output_loc_list): Suppress register number adjustment when
10880         calling output_loc_sequence()
10881         (output_die): Likewise.
10882
10883 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10884
10885         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10886         Remove macros.
10887         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10888         xtensa_memory_move_cost): New functions.
10889         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10890
10891 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10892
10893         PR lto/47225
10894         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10895         in the current directory.
10896         * configure: Rebuilt.
10897
10898 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10899
10900         * config/darwin.c (darwin_override_options): Add a hunk missed
10901         from the commit of r168571.  Trim comment line lengths and
10902         correct indents of the preceding block.
10903
10904 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10905
10906         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10907         the switch.
10908
10909 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10910
10911         * common.opt (nostartfiles): New Driver option.
10912
10913 2011-02-11  Xinliang David Li  <davidxl@google.com>
10914
10915         PR tree-optimization/47707
10916         * tree-chrec.c (convert_affine_scev): Keep type precision.
10917
10918 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10919
10920         PR tree-optimization/47420
10921         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10922
10923 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10924
10925         PR rtl-optimization/47614
10926         * rtl.h (check_for_inc_dec): Declare.
10927         * dse.c (check_for_inc_dec): Externalize...
10928         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10929         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10930
10931 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10932
10933         PR driver/47678
10934         * gcc.c (main): Do not compile inputs if there were errors in
10935         option handling.
10936         * opts-common.c (read_cmdline_option): Check for wrong language
10937         after other error checks.
10938
10939 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10940
10941         * cgraph.c: Fix comment typos.
10942         * cgraph.h: Likewise.
10943         * cgraphunit.c: Likewise.
10944         * ipa-cp.c: Likewise.
10945         * ipa-inline.c: Likewise.
10946         * ipa-prop.c: Likewise.
10947         * ipa-pure-const.c: Likewise.
10948         * ipa-ref.c: Likewise.
10949         * ipa-reference.c: Likewise.
10950
10951 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10952
10953         PR debug/47684
10954         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10955
10956 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10957
10958         PR testsuite/47400
10959         * doc/sourcebuild.texi (Require Support): Document
10960         dg-require-ascii-locale.
10961
10962 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10963
10964         * doc/lto.texi (Write summary): Fix missing parentheses.
10965
10966 2011-02-10  DJ Delorie  <dj@redhat.com>
10967
10968         * config/m32c/m32c.c (m32c_option_override): Disable
10969         -fcombine-stack-adjustments until flag value tracking and compare
10970         optimization can be rewritten.
10971
10972 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10973
10974         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10975         PROCESSOR_POWER7.
10976         (PROCESSOR_DEFAULT64): Likewise.
10977
10978 2011-02-10  Richard Henderson  <rth@redhat.com>
10979
10980         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10981         change from 2011-02-03.
10982         * config/rx/rx.c (flags_from_code): Likewise.
10983         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10984         is valid, n/pz otherwise.
10985         (rx_select_cc_mode): Return CCmode if Y is not zero.
10986
10987 2011-02-10  Richard Guenther  <rguenther@suse.de>
10988
10989         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10990
10991 2011-02-10  Richard Guenther  <rguenther@suse.de>
10992
10993         PR tree-optimization/47677
10994         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10995
10996 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10997
10998         PR target/47665
10999         * combine.c (make_compound_operation): Only change shifts into
11000         multiplication for SCALAR_INT_MODE_P.
11001
11002 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11003
11004         PR testsuite/47622
11005         Revert
11006         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11007         PR debug/42631
11008         * web.c (entry_register): Don't clobber the number of the
11009         first uninitialized reference in used[].
11010
11011 2011-02-09  Richard Guenther  <rguenther@suse.de>
11012
11013         PR tree-optimization/47664
11014         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11015         all edges again.
11016
11017 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11018
11019         PR target/46481
11020         PR target/47032
11021         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11022         PROCESSOR_POWER7.
11023         (PROCESSOR_DEFAULT64): Same.
11024         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11025
11026 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11027
11028         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11029
11030 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11031
11032         PR middle-end/45505
11033         * tree-sra.c (struct access): New flags grp_scalar_read and
11034         grp_scalar_write.  Changed description of assignment read and write
11035         flags.
11036         (dump_access): Dump new flags, reorder all of them.
11037         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11038         to detect multiple scalar reads.
11039         (analyze_access_subtree): Use the new scalar read write flags instead
11040         of the old flags.  Adjusted comments.
11041
11042 2011-02-08  DJ Delorie  <dj@redhat.com>
11043
11044         PR target/47548
11045         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11046         patterns.
11047
11048 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11049
11050         * config/m68k/uclinux.opt: New.
11051         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11052
11053 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11054
11055         * config/cris/elf.opt (sim): New Driver option.
11056
11057 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11058
11059         * config/xtensa/elf.opt: New.
11060         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11061
11062 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11063
11064         * config/vax/elf.opt: New.
11065         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11066
11067 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11068
11069         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11070
11071 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11072
11073         * config/gnu-user.opt: New.
11074         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11075         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11076         *-*-uclinux*): Use gnu-user.opt.
11077
11078 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11079
11080         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11081         * config/i386/gnu.h (CPP_SPEC): Likewise.
11082
11083 2011-02-08  Ian Lance Taylor  <iant@google.com>
11084
11085         * common.opt (fcx-limited-range): Add SetByCombined flag.
11086         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11087         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11088         (fassociative-math, freciprocal-math): Likewise.
11089         (funsafe-math-optimizations): Likewise.
11090         * opth-gen.awk: Handle SetByCombined.
11091         * optc-gen.awk: Likewise.
11092         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11093         (set_unsafe_math_optimizations_flags): Likewise.
11094         * doc/options.texi (Option properties): Document SetByCombined.
11095
11096 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11097
11098         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11099         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11100         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11101         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11102         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11103
11104 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11105
11106         PR tree-optimization/46834
11107         PR tree-optimization/46994
11108         PR tree-optimization/46995
11109         * graphite-sese-to-poly.c (used_outside_reduction): New.
11110         (detect_commutative_reduction): Call used_outside_reduction.
11111         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11112         translate_scalar_reduction_to_array only when at least one
11113         loop-phi/close-phi tuple has been detected.
11114
11115 2011-02-08  Richard Guenther  <rguenther@suse.de>
11116
11117         PR middle-end/47639
11118         * tree-vect-generic.c (expand_vector_operations_1): Update
11119         stmts here ...
11120         (expand_vector_operations): ... not here.  Cleanup EH info
11121         and the CFG if required.
11122
11123 2011-02-08  Richard Guenther  <rguenther@suse.de>
11124
11125         PR tree-optimization/47641
11126         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11127         require type compatibility.
11128
11129 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11130
11131         * gimple-low.c (lower_function_body): Don't remove the location of
11132         the return statement here.
11133         (lower_gimple_return): Do it here instead but only if the return
11134         statement is actually used twice.
11135
11136 2011-02-08  Richard Guenther  <rguenther@suse.de>
11137
11138         PR tree-optimization/47632
11139         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11140         unused up_to_stmt parameter, return whether cfg-cleanup is
11141         necessary, remove EH info properly.
11142         (forward_propagate_into_gimple_cond): Adjust caller.
11143         (forward_propagate_into_cond): Likewise.
11144         (forward_propagate_comparison): Likewise.
11145         (tree_ssa_forward_propagate_single_use_vars): Make
11146         forward_propagate_comparison case similar to the two others.
11147
11148 2011-02-08  Nick Clifton  <nickc@redhat.com>
11149
11150         * config/mn10300/mn10300.opt (mliw): New command line option.
11151         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11152         (liw_bundling): New automaton.
11153         (liw): New attribute.
11154         (liw_op): New attribute.
11155         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11156         (movsi_internal): Add LIW attributes.
11157         (andsi3): Likewise.
11158         (iorsi3): Likewise.
11159         (xorsi3): Likewise.
11160         (addsi3): Separate register and immediate alternatives.
11161         Add LIW attributes.
11162         (subsi3): Likewise.
11163         (cmpsi): Likewise.
11164         (aslsi3): Likewise.
11165         (lshrsi3): Likewise.
11166         (ashrsi3): Likewise.
11167         (liw): New pattern.
11168         * config/mn10300/mn10300.c (liw_op_names): New
11169         (mn10300_print_operand): Handle 'W' operand descriptor.
11170         (extract_bundle): New function.
11171         (check_liw_constraints): New function.
11172         (liw_candidate): New function.
11173         (mn10300_bundle_liw): New function.
11174         (mn10300_reorg): New function.
11175         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11176         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11177         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11178         __LIW__ or __NO_LIW__.
11179         * doc/invoke.texi: Describe the -mliw command line option.
11180
11181 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11182
11183         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11184         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11185         pthread_mutex_unlock): Remove.
11186         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11187         * config/pa/t-pa64: Likewise.
11188         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11189         shared libc if not linking against libpthread.
11190         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11191
11192 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11193
11194         PR target/47558
11195         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11196         on 10.6 and later to ensure that we always use the unwinder from
11197         the system.  Only add -no_compact_unwind when tarteting darwin
11198         10.6 or later.
11199
11200 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11201
11202         PR target/46997
11203         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11204         (vec_interleave_lowv2sf): Ditto.
11205         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11206         (vec_extract_oddv2sf): Ditto.
11207
11208 2011-02-07  Mike Stump  <mikestump@comcast.net>
11209
11210         PR target/42333
11211         Add __ieee_divdc3 entry point.
11212         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11213         entry point.
11214         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11215         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11216         * config/darwin.c (darwin_rename_builtins): Add.
11217         * config/darwin-protos.h (darwin_rename_builtins): Add.
11218
11219 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11220
11221         PR target/47636
11222         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11223         for the condition.
11224
11225 2011-02-07  Mike Stump  <mikestump@comcast.net>
11226
11227         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11228
11229 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11230
11231         PR target/47534
11232         * config/avr/libgcc.S (exit): Move .endfunc
11233
11234 2011-02-07  Richard Guenther  <rguenther@suse.de>
11235
11236         PR tree-optimization/47615
11237         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11238         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11239         (run_scc_vn): Initialize it.
11240         (visit_reference_op_load): Use it.
11241         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11242
11243 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11244
11245         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11246         DImode trapping arithmetic libfuncs.
11247
11248 2011-02-07  Richard Guenther  <rguenther@suse.de>
11249
11250         PR tree-optimization/47621
11251         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11252         two duplicates ...
11253         (execute_update_addresses_taken): ... here.  Make it more
11254         conservative in what we accept.
11255
11256 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11257
11258         * config/sparc/freebsd.h (ASM_SPEC): Define.
11259         * config/sparc/vxworks.h (ASM_SPEC): Define.
11260
11261 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11262
11263         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11264
11265 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11266
11267         * doc/invoke.texi: Remove reference to compiler internals from
11268         user documentation.
11269
11270         * reg-notes.def: Remove REG_VALUE_PROFILE.
11271         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11272
11273 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11274
11275         PR middle-end/47610
11276         * varasm.c (default_section_type_flags): If decl is NULL,
11277         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11278
11279 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11280
11281         PR debug/42631
11282         * web.c (entry_register): Don't clobber the number of the
11283         first uninitialized reference in used[].
11284
11285 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11286
11287         PR tree-optimization/46194
11288         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11289         (build_classic_dist_vector_1): Do not represent classic distance
11290         vectors when the access functions are variating in different loops.
11291
11292 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11293
11294         * config/mips/iris6.opt: New.
11295         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11296
11297 2011-02-04  Richard Henderson  <rth@redhat.com>
11298             Steve Ellcey  <sje@cup.hp.com>
11299
11300         PR target/46997
11301         * config/ia64/predicates.md (mux1_brcst_element): New.
11302         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11303         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11304         (ia64_unpack_sign): New.
11305         (ia64_expand_unpack): Rewrite using new routines.
11306         (ia64_expand_widen_sum): Ditto.
11307         (ia64_expand_dot_prod_v8qi): Ditto.
11308         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11309         routines, add endian check.
11310         (pmpy2_even): Rename from pmpy2_r, add endian check.
11311         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11312         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11313         (vec_widen_smult_hi_v4hi): Ditto.
11314         (vec_widen_umult_lo_v4hi): Ditto.
11315         (vec_widen_umult_hi_v4hi): Ditto.
11316         (mulv2si3): Change endian checks.
11317         (sdot_prodv4hi): Rewrite with new calls.
11318         (udot_prodv4hi): New.
11319         (vec_pack_ssat_v4hi): Add endian check.
11320         (vec_pack_usat_v4hi): Ditto.
11321         (vec_pack_ssat_v2si): Ditto.
11322         (max1_even): Rename from max1_r, add endian check.
11323         (max1_odd): Rename from max1_l, add endian check.
11324         (*mux1_rev): Format change.
11325         (*mux1_mix): Ditto.
11326         (*mux1_shuf): Ditto.
11327         (*mux1_alt): Ditto.
11328         (*mux1_brcst_v8qi): Use new predicate.
11329         (vec_extract_evenv8qi): Remove endian check.
11330         (vec_extract_oddv8qi): Ditto.
11331         (vec_interleave_lowv4hi): Format change.
11332         (vec_interleave_highv4hi): Ditto.
11333         (mix2_even): Rename from mix2_r, add endian check.
11334         (mix2_odd): Rename from mux2_l, add endian check.
11335         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11336         (vec_extract_evenodd_helper): Format change.
11337         (vec_extract_evenv4hi): Remove endian check.
11338         (vec_extract_oddv4hi): Remove endian check.
11339         (vec_interleave_lowv2si): Format change.
11340         (vec_interleave_highv2si): Format change.
11341         (vec_initv2si): Remove endian check.
11342         (vecinit_v2si): Add endian check.
11343         (reduc_splus_v2sf): Add endian check.
11344         (reduc_smax_v2sf): Ditto.
11345         (reduc_smin_v2sf): Ditto.
11346         (vec_initv2sf): Remove endian check.
11347         (fpack): Add endian check.
11348         (fswap): Add endian check.
11349         (vec_interleave_highv2sf): Add endian check.
11350         (vec_interleave_lowv2sf): Add endian check.
11351         (fmix_lr): Add endian check.
11352         (vec_setv2sf): Format change.
11353         (*vec_extractv2sf_0_be): Use shift to extract operand.
11354         (*vec_extractv2sf_1_be): New.
11355         (vec_pack_trunc_v4hi): Add endian check.
11356         (vec_pack_trunc_v2si): Format change.
11357
11358 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11359
11360         PR inline-asm/23200
11361         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11362         do bb, locus and block comparison and disallow loads if it is not set.
11363         (stmt_is_replaceable_p): New function.
11364         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11365         callers.
11366         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11367         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11368         SSA_NAME_DEF_STMT.
11369         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11370
11371 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11372
11373         * config/rs6000/xilinx.opt: New.
11374         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11375
11376 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11377
11378         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11379
11380 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11381
11382         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11383         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11384         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11385         secondary_reload_info, xtensa_secondary_reload): Remove.
11386         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11387         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11388         (xtensa_preferred_reload_class): Make static. Change return and
11389         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11390         Use CONST_DOUBLE_P predicate.
11391         (xtensa_preferred_output_reload_class): New function.
11392         (xtensa_secondary_reload): Make static.
11393
11394 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11395
11396         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11397         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11398         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11399
11400 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11401
11402         PR middle-end/31490
11403         * output.h (SECTION_RELRO): Define.
11404         (SECTION_MACH_DEP): Adjust.
11405         (get_variable_section): New prototype.
11406         * varpool.c (varpool_finalize_named_section_flags): New function.
11407         (varpool_assemble_pending_decls): Call it.
11408         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11409         * cgraphunit.c (cgraph_output_in_order): Call
11410         varpool_finalize_named_section_flags.
11411         * varasm.c (get_section): Allow section flags conflicts between
11412         relro and read-only sections if the section hasn't been declared yet.
11413         Set SECTION_OVERRIDE after diagnosing section type conflict.
11414         (get_variable_section): No longer static.
11415         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11416         readonly sections that need relocations.
11417         (decl_readonly_section_1): New function.
11418         (decl_readonly_section): Use it.
11419
11420         Revert:
11421         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11422                     Steve Ellcey  <sje@cup.hp.com>
11423
11424         PR middle-end/31490
11425         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11426         if section attribute used.
11427
11428 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11429
11430         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11431         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11432         (darwin_init_sections): Remove assertion.
11433
11434 2011-02-03  Nick Clifton  <nickc@redhat.com>
11435
11436         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11437         lt and ge.
11438         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11439         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11440         instead of "n" and "pz".
11441         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11442         CC_FLAG_S.
11443
11444 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11445
11446         PR target/47312
11447         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11448         fma, expand FMA_EXPR as fma{,f,l} call.
11449
11450         PR lto/47274
11451         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11452         copy them into a unsigned char variable and pass address of it to
11453         lto_output_data_stream.
11454
11455         PR target/47564
11456         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11457         around backend_init_target and lang_dependent_init_target calls.
11458         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11459         (verify_cgraph_node): Don't call set_cfun here.  Use
11460         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11461         Set error_found for incorrectly represented calls to thunks.
11462
11463 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11464
11465         PR debug/43092
11466         PR rtl-optimization/43494
11467         * rtl.h (for_each_inc_dec_fn): New type.
11468         (for_each_inc_dec): Declare.
11469         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11470         (for_each_inc_dec_find_inc_dec): New fn.
11471         (for_each_inc_dec_find_mem): New fn.
11472         (for_each_inc_dec): New fn.
11473         * dse.c (struct insn_size): Remove.
11474         (replace_inc_dec, replace_inc_dec_mem): Remove.
11475         (emit_inc_dec_insn_before): New fn.
11476         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11477         (canon_address): Pass mem modes to cselib_lookup.
11478         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11479         (cselib_lookup_from_insn): Likewise.
11480         (cselib_subst_to_values): Likewise.
11481         * cselib.c (find_slot_memmode): New var.
11482         (cselib_find_slot): New fn.  Use it instead of
11483         htab_find_slot_with_hash everywhere.
11484         (entry_and_rtx_equal_p): Use find_slot_memmode.
11485         (autoinc_split): New fn.
11486         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11487         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11488         Deal with autoinc.  Special-case recursion into MEMs.
11489         (cselib_hash_rtx): Likewise.
11490         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11491         address and MEM modes.
11492         (cselib_subst_to_values): Add memmode, pass it on.
11493         Deal with autoinc.
11494         (cselib_lookup): Add memmode argument, pass it on.
11495         (cselib_lookup_from_insn): Add memmode.
11496         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11497         (struct cselib_record_autoinc_data): New.
11498         (cselib_record_autoinc_cb): New fn.
11499         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11500         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11501         (cselib_process_insn): ... here.
11502         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11503         to cselib_lookup.
11504         (add_uses): Likewise, also to cselib_subst_to_values.
11505         (add_stores): Likewise.
11506         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11507         cselib_subst_to_values.
11508         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11509         * gcse.c (do_local_cprop): Adjusted.
11510         * postreload.c (reload_cse_simplify_set): Adjusted.
11511         (reload_cse_simplify_operands): Adjusted.
11512         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11513
11514 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11515
11516         PR tree-optimization/45122
11517         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11518         unsafe assumptions when there's more than one loop exit.
11519
11520 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11521
11522         PR target/47272
11523         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11524         Document using vector double with the load/store builtins, and
11525         that the load/store builtins always use Altivec instructions.
11526
11527         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11528         to use altivec memory instructions, even on VSX.
11529         (vector_altivec_store_<mode>): Ditto.
11530
11531         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11532         function.
11533
11534         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11535         V2DF, V2DI support to load/store overloaded builtins.
11536
11537         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11538         altivec load/store builtins for V2DF/V2DI types.
11539
11540         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11541         set avoid indexed addresses on power6 if -maltivec.
11542         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11543         vector_altivec_load/vector_altivec_store builtins.
11544         (altivec_expand_st_builtin): Ditto.
11545         (altivec_expand_builtin): Add VSX memory builtins.
11546         (rs6000_init_builtins): Add V2DI types to internal types.
11547         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11548         load/store builtins.
11549         (rs6000_address_for_altivec): Insure memory address is appropriate
11550         for Altivec.
11551
11552         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11553         vec_vsx_ld and vec_vsx_st.
11554         (vsx_store_<mode>): Ditto.
11555
11556         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11557         variables to hold long long types for VSX vector memory builtins.
11558         (RS6000_BTI_unsigned_long_long): Ditto.
11559         (long_long_integer_type_internal_node): Ditti.
11560         (long_long_unsigned_type_internal_node): Ditti.
11561
11562         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11563         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11564         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11565
11566         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11567         short cuts.
11568         (vec_vsx_st): Ditto.
11569
11570 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11571
11572         * config/pa/pa-hpux10.opt: New.
11573         * config/hpux11.opt (pthread): New Driver option.
11574         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11575         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11576
11577 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11578
11579         * config/ia64/vms.opt: New.
11580         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11581
11582 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11583
11584         PR target/47580
11585         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11586         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11587         generator functions.
11588         (vsx_floatuns<VSi><mode>2): Ditto.
11589         (vsx_fix_trunc<mode><VSi>2): Ditto.
11590         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11591
11592 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11593
11594         * config/i386/djgpp.opt (posix): New Driver option.
11595
11596 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11597
11598         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11599         Move to the unsupported targets list.
11600
11601 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11602
11603         PR rtl-optimization/47525
11604         * df-scan.c: Update copyright years.
11605         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11606         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11607
11608 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11609
11610         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11611         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11612         (ASM_OUTPUT_ASCII): Remove.
11613         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11614
11615 2011-02-02  Jeff Law  <law@redhat.com>
11616
11617         PR middle-end/47543
11618         * reload.c (find_reloads_address): Handle reg+d address where both
11619         components are invalid by reloading the entire address.
11620
11621 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11622             Richard Guenther  <rguenther@suse.de>
11623
11624         PR tree-optimization/40979
11625         PR bootstrap/47044
11626         * passes.c (init_optimization_passes): After LIM call copy_prop
11627         and DCE to clean up.
11628         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11629
11630 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11631
11632         PR tree-optimization/47576
11633         PR tree-optimization/47555
11634         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11635         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11636         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11637         * tree-scalar-evolution.c (follow_ssa_edge): Use
11638         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11639
11640 2011-02-02  Richard Guenther  <rguenther@suse.de>
11641
11642         PR tree-optimization/47566
11643         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11644
11645 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11646
11647         PR debug/47106
11648         PR debug/47402
11649         * tree-inline.c (declare_return_variable): Remove unused caller
11650         variable.
11651
11652         PR debug/47106
11653         PR debug/47402
11654         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11655         * cfgexpand.c (account_used_vars_for_block): Use them.
11656         * tree-nrv.c (tree_nrv): Likewise.
11657         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11658         (dump_scope_block): Likewise.
11659         (remove_unused_locals): Likewise.
11660
11661         PR debug/47106
11662         PR debug/47402
11663         * tree-inline.c (declare_return_variable): Add result decl to
11664         local decls only once.
11665         * gimple-low.c (record_vars_into): Mark newly-created variables
11666         as referenced.
11667
11668 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11669
11670         PR debug/47498
11671         PR debug/47501
11672         PR debug/45136
11673         PR debug/45130
11674         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11675         debug insns.
11676         (no_real_insns_p, schedule_block, set_priorities): Drop special
11677         treatment of boundary debug insns.
11678         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11679         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11680         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11681         (BOUNDARY_DEBUG_INSN_P): Likewise.
11682         (SCHEDULE_DEBUG_INSN_P): Likewise.
11683         * sched-rgn.c (init_ready_list): Drop special treatment of
11684         boundary debug insns.
11685         * final.c (rest_of_clean_state): Clear notes' BB.
11686
11687 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11688
11689         * config/openbsd.opt (assert=): New Driver option.
11690
11691 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11692
11693         * config/i386/nto.opt: New.
11694         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11695
11696 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11697
11698         * config/i386/netware.opt: New.
11699         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11700
11701 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11702
11703         * config/interix.opt (posix): New Driver option.
11704
11705 2011-02-01  DJ Delorie  <dj@redhat.com>
11706
11707         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11708
11709         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11710         class for A0/A1.
11711
11712 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11713
11714         PR tree-optimization/47561
11715         * toplev.c (process_options): Print the Graphite flags.  Add
11716         flag_loop_flatten to the list of options requiring Graphite.
11717
11718 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11719
11720         * config/i386/cygming.opt (posix): New Driver option.
11721
11722 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11723
11724         * config/arm/vxworks.opt: New.
11725         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11726
11727 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11728
11729         * config/alpha/elf.opt: New.
11730         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11731         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11732
11733 2011-02-01  Richard Guenther  <rguenther@suse.de>
11734
11735         PR tree-optimization/47559
11736         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11737         store-motion on references that can throw.
11738
11739 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11740
11741         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11742         * tree-pass.h (TDF_CSELIB): New macro.
11743         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11744         cselib_lookup): Check for it rather than for TDF_DETAILS.
11745
11746 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11747
11748         PR driver/47547
11749         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11750         is HOST_BIT_BUCKET.
11751
11752         * opts.c (finish_options): Don't add x_aux_base_name if it is
11753         HOST_BIT_BUCKET.
11754
11755 2011-02-01  Richard Guenther  <rguenther@suse.de>
11756
11757         PR tree-optimization/47555
11758         Revert
11759         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11760
11761         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11762
11763 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11764
11765         PR gcc/46692
11766         * config/lm32/t-lm32: Add multilib for all CPU options.
11767
11768 2011-02-01  Richard Guenther  <rguenther@suse.de>
11769
11770         PR tree-optimization/47541
11771         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11772         sure to have a field at offset zero.
11773
11774 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11775
11776         * config/arc/arc.opt (EB, EL): New Driver options.
11777
11778 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11779
11780         * config/alpha/osf5.opt: New.
11781         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11782
11783 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11784
11785         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11786
11787 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11788
11789         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11790         -floop-interchange.
11791         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11792         is an alias of -floop-interchange and that it requires the
11793         Graphite infrastructure.
11794         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11795         flag_loop_interchange based on the value of flag_tree_loop_linear.
11796
11797 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11798             Richard Guenther  <rguenther@suse.de>
11799
11800         PR tree-optimization/47538
11801         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11802         type instead of r1type, except for comparisons.  For right
11803         shifts and comparisons punt if there are mismatches in
11804         sizetype vs. non-sizetype types.
11805
11806 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11807
11808         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11809         avx_runtime.
11810
11811 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11812
11813         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11814         version number.
11815         * configure: Regenerate.
11816
11817 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11818
11819         * configure.ac (gcc_cv_ld_static_option): Define.
11820         (gcc_cv_ld_dynamic_option): Define.
11821         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11822         instead.
11823         (HAVE_LD_STATIC_DYNAMIC): Update message.
11824         (LD_STATIC_OPTION): Define.
11825         (LD_DYNAMIC_OPTION): Define.
11826         * configure: Regenerate.
11827         * config.in: Regenerate.
11828         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11829         HAVE_LD_STATIC_DYNAMIC]: Use them.
11830
11831 2011-01-31  Nick Clifton  <nickc@redhat.com>
11832
11833         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11834         registers inside interrupt handlers if the handler is not a leaf
11835         function.
11836
11837 2011-01-31  Nick Clifton  <nickc@redhat.com>
11838
11839         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11840         reg_renumber returning an INVALID_REGNUM.
11841
11842 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11843
11844         PR libgcj/44341
11845         * doc/install.texi: Document host options discarded when cross
11846         configuring target libraries.
11847
11848 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11849
11850         Reverted:
11851         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11852         PR debug/45136
11853         PR debug/45130
11854         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11855         debug insns.
11856         (no_real_insns_p, schedule_block, set_priorities): Drop special
11857         treatment of boundary debug insns.
11858         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11859         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11860         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11861         (BOUNDARY_DEBUG_INSN_P): Likewise.
11862         (SCHEDULE_DEBUG_INSN_P): Likewise.
11863         * sched-rgn.c (init_ready_list): Drop special treatment of
11864         boundary debug insns.
11865         * final.c (rest_of_clean-state): Clear notes' BB.
11866
11867 2011-01-31  Alan Modra  <amodra@gmail.com>
11868
11869         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11870         toc relative expressions as we do in print_operand_address.
11871
11872 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11873
11874         * doc/extend.texi: Follow spelling conventions.
11875         * doc/invoke.texi: Fix a typo.
11876
11877 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11878
11879         * config/hpux11.opt: New.
11880         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11881         ia64*-*-hpux*): Use hpux11.opt.
11882
11883 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11884
11885         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11886         to tmake_file.
11887
11888 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11889
11890         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11891         support sites.
11892
11893 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11894
11895         * doc/install.texi (Binaries): Remove outdated reference for
11896         Motorola 68HC11/68HC12 downloads.
11897
11898 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11899
11900         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11901         Drepper's paper.
11902
11903 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11904
11905         PR bootstrap/47147
11906         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11907         used by NetBSD.
11908
11909 2011-01-28  Ahmad Sharif  <asharif@google.com>
11910
11911         * value-prof.c (check_counter): Corrected error message.
11912
11913 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11914
11915         * config/arm/arm.c (arm_legitimize_reload_address): New.
11916         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11917         arm_legitimize_reload_address.
11918         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11919
11920 2011-01-28  Ian Lance Taylor  <iant@google.com>
11921
11922         * godump.c (go_define): Ignore macros whose definitions include
11923         two adjacent operands.
11924
11925 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11926
11927         PR target/42894
11928         * varasm.c (force_const_mem): Store copy of x in desc->constant
11929         instead of x itself.
11930         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11931         itself into REG_EQUAL note.
11932
11933 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11934
11935         * config/freebsd.opt (posix, rdynamic): New Driver options.
11936
11937 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11938
11939         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11940         -Bstatic/-Bdynamic.
11941         * configure: Regenerate.
11942
11943 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11944
11945         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11946         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11947
11948 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11949
11950         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11951         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11952         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11953         (s390_preferred_reload_class): Make static. Change return and
11954         'rclass' argument type to reg_class_t.
11955
11956 2011-01-27  Jan Hubicka  <jh@suse.cz>
11957
11958         PR middle-end/46949
11959         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11960         (process_function_and_variable_attributes): Check defined weakrefs.
11961
11962 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11963
11964         PR tree-optimization/47228
11965         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11966         build_ref_for_offset.
11967
11968 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11969
11970         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11971
11972 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11973
11974         PR rtl-optimization/46856
11975         * postreload.c (reload_combine_recognize_const_pattern): Do not
11976         separate cc0 setter and user on cc0 targets.
11977
11978 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11979
11980         PR c/43082
11981         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11982         passed a VOID_TYPE expression, immediately emit an error and
11983         return error_mark_node.
11984
11985 2011-01-26  Jeff Law  <law@redhat.com>
11986
11987         PR rtl-optimization/47464
11988         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11989         rather than may_trap_p as needed.
11990
11991 2011-01-26  DJ Delorie  <dj@redhat.com>
11992
11993         PR rtl-optimization/46878
11994         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11995         setter/user dependency as well.
11996
11997 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11998
11999         PR rtl-optimization/44469
12000         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12001         after removing trivially dead basic blocks.
12002
12003 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12004
12005         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12006         * config/frv/frv.h (LINK_SPEC): Likewise.
12007         * config/i386/netware.h (LINK_SPEC): Likewise.
12008         * config/m68k/linux.h (ASM_SPEC): Likewise.
12009         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12010         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12011         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12012         * config/sparc/linux.h (ASM_SPEC): Likewise.
12013         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12014         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12015
12016 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12017
12018         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12019         * config/frv/frv.h (ASM_SPEC): Likewise.
12020         * config/m68k/linux.h (ASM_SPEC): Likewise.
12021         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12022         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12023         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12024         * config/sparc/linux.h (ASM_SPEC): Likewise.
12025         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12026         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12027
12028 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12029
12030         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12031         * config/frv/frv.h (LINK_SPEC): Likewise.
12032         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12033
12034 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12035
12036         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12037         * config/frv/frv.h (ASM_SPEC): Likewise.
12038         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12039         * config/m68k/linux.h (ASM_SPEC): Likewise.
12040         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12041         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12042         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12043         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12044         * config/sparc/linux.h (ASM_SPEC): Likewise.
12045         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12046         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12047         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12048
12049 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12050
12051         PR target/46997
12052         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12053         (*mux2): Ditto.
12054         (vec_extract_evenodd_help): Ditto.
12055         (vec_extract_evenv4hi): Ditto.
12056         (vec_extract_oddv4hi): Ditto.
12057         (vec_interleave_lowv2si): Ditto.
12058         (vec_interleave_highv2si): Ditto.
12059         (vec_extract_evenv2si): Ditto.
12060         (vec_extract_oddv2si: Ditto.
12061         (vec_pack_trunc_v2si): Ditto.
12062
12063 2011-01-22  Jan Hubicka  <jh@suse.cz>
12064
12065         PR target/47237
12066         * cgraph.h (cgraph_local_info): New field can_change_signature.
12067         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12068         signature can change.
12069         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12070         can change.
12071         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12072         (cgraph_function_versioning): We can not change signature of functions
12073         that don't allow that.
12074         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12075         (lto_input_node): Likewise.
12076         * ipa-inline.c (compute_inline_parameters): Compute
12077         local.can_change_signature.
12078         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12079         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12080         functions that can not change signature.
12081         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12082         init_cumulative_args): Do not use local calling conventions
12083         for functions that can not change signature.
12084
12085 2011-01-22  Jan Hubicka  <jh@suse.cz>
12086
12087         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12088
12089 2011-01-26  Richard Guenther  <rguenther@suse.de>
12090
12091         PR tree-optimization/47190
12092         * cgraphunit.c (process_common_attributes): New function.
12093         (process_function_and_variable_attributes): Use it.
12094
12095 2011-01-26  Richard Guenther  <rguenther@suse.de>
12096
12097         PR lto/47423
12098         * cgraphbuild.c (record_eh_tables): Record reference to personality
12099         function.
12100
12101 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12102
12103         PR debug/45454
12104         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12105         non-debug insns from moving up.
12106
12107 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12108
12109         PR target/40125
12110         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12111         t-dlldir{,-x} fragment for build and add it to tmake_file.
12112         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12113         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12114         * config/i386/t-dlldir: New file.
12115         (SHLIB_DLLDIR): Define.
12116         * config/i386/t-dlldir-x: New file.
12117         (SHLIB_DLLDIR): Define.
12118         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12119         (SHLIB_INSTALL): Use it.
12120
12121 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12122
12123         PR target/47246
12124         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12125         lower bound of the allowed Thumb-2 coprocessor load/store
12126         index range to -256. Add explaining comment.
12127
12128 2011-01-25  Ian Lance Taylor  <iant@google.com>
12129
12130         * godump.c (go_define): Improve lexing of macro expansion to only
12131         accept expressions which match Go spec.
12132
12133 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12134
12135         PR c++/43601
12136         * tree.c (handle_dll_attribute): Handle it.
12137         * doc/extend.texi (@item dllexport): Mention it.
12138         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12139
12140 2011-01-25  Ian Lance Taylor  <iant@google.com>
12141
12142         PR tree-optimization/26854
12143         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12144         (decl_jump_unsafe): Move higher in file, with no other change.
12145         (bind): Set has_jump_unsafe_decl if appropriate.
12146         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12147         (check_earlier_gotos): Likewise.
12148         (c_check_switch_jump_warnings): Likewise.
12149
12150 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12151
12152         * doc/invoke.texi (Warning Options): Add missing hyphen.
12153         (-fprofile-dir): Minor grammatical fixes.
12154         (-fbranch-probabilities): Likewise.
12155
12156 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12157
12158         PR debug/45136
12159         PR debug/45130
12160         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12161         debug insns.
12162         (no_real_insns_p, schedule_block, set_priorities): Drop special
12163         treatment of boundary debug insns.
12164         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12165         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12166         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12167         (BOUNDARY_DEBUG_INSN_P): Likewise.
12168         (SCHEDULE_DEBUG_INSN_P): Likewise.
12169         * sched-rgn.c (init_ready_list): Drop special treatment of
12170         boundary debug insns.
12171         * final.c (rest_of_clean-state): Clear notes' BB.
12172
12173 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12174
12175         * Makefile.in (LAMBDA_H): Removed.
12176         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12177         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12178         lambda-trans.o, and tree-loop-linear.o.
12179         (lto-symtab.o): Remove dependence on LAMBDA_H.
12180         (tree-loop-linear.o): Remove rule.
12181         (lambda-mat.o): Same.
12182         (lambda-trans.o): Same.
12183         (lambda-code.o): Same.
12184         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12185         (tree-vect-slp.o): Same.
12186         * hwint.h (gcd): Moved here.
12187         (least_common_multiple): Same.
12188         * lambda-code.c: Removed.
12189         * lambda-mat.c: Removed.
12190         * lambda-trans.c: Removed.
12191         * lambda.h: Removed.
12192         * tree-loop-linear.c: Removed.
12193         * lto-symtab.c: Do not include lambda.h.
12194         * omega.c (gcd): Removed.
12195         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12196         * tree-data-ref.c (print_lambda_vector): Moved here.
12197         (lambda_vector_copy): Same.
12198         (lambda_matrix_copy): Same.
12199         (lambda_matrix_id): Same.
12200         (lambda_vector_first_nz): Same.
12201         (lambda_matrix_row_add): Same.
12202         (lambda_matrix_row_exchange): Same.
12203         (lambda_vector_mult_const): Same.
12204         (lambda_vector_negate): Same.
12205         (lambda_matrix_row_negate): Same.
12206         (lambda_vector_equal): Same.
12207         (lambda_matrix_right_hermite): Same.
12208         * tree-data-ref.h: Do not include lambda.h.
12209         (lambda_vector): Moved here.
12210         (lambda_matrix): Same.
12211         (dependence_level): Same.
12212         (lambda_transform_legal_p): Removed declaration.
12213         (lambda_collect_parameters): Same.
12214         (lambda_compute_access_matrices): Same.
12215         (lambda_vector_gcd): Same.
12216         (lambda_vector_new): Same.
12217         (lambda_vector_clear): Same.
12218         (lambda_vector_lexico_pos): Same.
12219         (lambda_vector_zerop): Same.
12220         (lambda_matrix_new): Same.
12221         * tree-flow.h (least_common_multiple): Removed declaration.
12222         * tree-parloops.c (lambda_trans_matrix): Moved here.
12223         (LTM_MATRIX): Same.
12224         (LTM_ROWSIZE): Same.
12225         (LTM_COLSIZE): Same.
12226         (LTM_DENOMINATOR): Same.
12227         (lambda_trans_matrix_new): Same.
12228         (lambda_matrix_vector_mult): Same.
12229         (lambda_transform_legal_p): Same.
12230         * tree-pass.h (pass_linear_transform): Removed declaration.
12231         * tree-ssa-loop.c (tree_linear_transform): Removed.
12232         (gate_tree_linear_transform): Removed.
12233         (pass_linear_transform): Removed.
12234         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12235         flag_loop_interchange.
12236
12237 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12238
12239         PR tree-optimization/47265
12240         PR tree-optimization/47443
12241         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12242         if name still has some uses.
12243
12244 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12245
12246         PR tree-optimization/47382
12247         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12248         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12249
12250 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12251
12252         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12253         sjlj_except_unwind_info.
12254
12255 2011-01-25  Richard Guenther  <rguenther@suse.de>
12256
12257         PR tree-optimization/47426
12258         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12259         visible functions results escape.
12260
12261 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12262
12263         PR target/45701
12264         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12265         (arm_get_frame_offsets): Use it.
12266
12267 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12268             Jakub Jelinek  <jakub@redhat.com>
12269
12270         PR tree-optimization/47271
12271         * tree-if-conv.c (bb_postdominates_preds): New.
12272         (if_convertible_bb_p): Call bb_postdominates_preds.
12273         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12274         (predicate_scalar_phi): Call bb_postdominates_preds.
12275
12276 2011-01-25  Nick Clifton  <nickc@redhat.com>
12277
12278         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12279         * config/rx/rx.c (rx_function_value): Likewise.
12280         (rx_promote_function_mode): Likewise.
12281         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12282         in order to make it legitimate.
12283         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12284         make sure that the first operand is the same as the result register.
12285         (addsi3_unspec): Delete.
12286         (subdi3): Do not accept immediate operands.
12287         (subdi3_internal): Likewise.
12288
12289 2011-01-25  Jeff Law  <law@redhat.com>
12290
12291         PR rtl-optimization/37273
12292         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12293         handle them like argument loads from stack slots.  Do not double
12294         count memory for memory constants and argument loads from stack slots.
12295
12296 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12297
12298         PR tree-optimization/47427
12299         PR tree-optimization/47428
12300         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12301         coalesce if the new root var would be TREE_READONLY.
12302
12303 2011-01-25  Richard Guenther  <rguenther@suse.de>
12304
12305         PR middle-end/47414
12306         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12307         correct type for TBAA.
12308
12309 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12310
12311         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12312         (close_phi_written_to_memory): Call for_each_index with
12313         dr_indices_valid_in_loop.
12314
12315 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12316
12317         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12318         when it is initialized.
12319
12320 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12321
12322         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12323         call to graphite_find_data_references_in_stmt.
12324         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12325         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12326         call to graphite_find_data_references_in_stmt.
12327         (analyze_drs_in_stmts): Same.
12328         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12329         in which the scalar analysis of indices is performed.
12330         (create_data_ref): Same.  Update call to dr_analyze_indices.
12331         (find_data_references_in_stmt): Update call to create_data_ref.
12332         (graphite_find_data_references_in_stmt): Same.
12333         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12334         declaration.
12335         (create_data_ref): Same.
12336         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12337         call to create_data_ref.
12338
12339 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12340
12341         * graphite-sese-to-poly.c (build_poly_scop): Move
12342         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12343
12344 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12345
12346         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12347         VAR_DECL, PARM_DECL, and RESULT_DECL.
12348
12349 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12350
12351         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12352         in a reduction PBB.
12353         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12354         that have already been marked as PBB_IS_REDUCTION.
12355
12356 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12357
12358         * graphite-scop-detection.c (same_close_phi_node): New.
12359         (remove_duplicate_close_phi): New.
12360         (make_close_phi_nodes_unique): New.
12361         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12362
12363 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12364
12365         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12366         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12367         of both data references to be the same.
12368
12369 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12370
12371         * graphite-dependences.c (build_lexicographical_constraint): Remove
12372         the gdim parameter.
12373         (build_lexicographical_constraint): Adjust call to
12374         ppl_powerset_is_empty.
12375         (dependence_polyhedron): Same.
12376         (graphite_legal_transform_dr): Same.
12377         (graphite_carried_dependence_level_k): Same.
12378         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12379         parameter.
12380         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12381
12382 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12383
12384         * graphite-sese-to-poly.c
12385         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12386         (close_phi_written_to_memory): New.
12387         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12388         and unshare_expr.
12389
12390 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12391
12392         * doc/install.texi: Update the expected version number of PPL to 0.11.
12393         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12394         #if PPL_VERSION_MINOR < 11.
12395
12396 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12397
12398         * graphite-dependences.c: Include graphite-cloog-util.h.
12399         (new_poly_ddr): Inlined into dependence_polyhedron.
12400         (free_poly_ddr): Moved close by new_poly_ddr.
12401         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12402         Early return NULL when ppl_powerset_is_empty returns true.
12403         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12404         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12405         (graphite_legal_transform_dr): Call new_poly_ddr.
12406         (graphite_carried_dependence_level_k): Same.
12407         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12408         (dot_transformed_deps_stmt_1): Removed.
12409         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12410         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12411         (dot_deps_1): Call dot_deps_2.
12412         * Makefile.in (graphite-dependences.o): Add missing dependence on
12413         graphite-cloog-util.h.
12414
12415 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12416
12417         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12418         (build_lexicographical_constraint): Same.
12419         (dependence_polyhedron_1): Same.
12420         (graphite_legal_transform_dr): Same.
12421         (graphite_carried_dependence_level_k): Same.
12422         * graphite-ppl.c (ppl_powerset_is_empty): New.
12423         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12424         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12425
12426 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12427
12428         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12429         the "a followed by b" relation and document it.
12430
12431 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12432
12433         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12434         iteration when the bag of constraints is empty.
12435
12436 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12437
12438         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12439
12440 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12441
12442         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12443         nest and two loop depths as parameters.
12444         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12445         lst_perfect_nestify.
12446
12447 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12448
12449         * graphite-dependences.c (print_pddr): Call
12450         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12451
12452 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12453
12454         * graphite-ppl.c (debug_gmp_value): New.
12455         * graphite-ppl.h (debug_gmp_value): Declared.
12456
12457 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12458
12459         * doc/install.texi: Document availability of cloog-0.16.
12460
12461 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12462
12463         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12464         invalid postdominance info.
12465
12466 2011-01-24  Jan Hubicka  <jh@suse.cz>
12467
12468         PR c/21659
12469         * doc/extend.texi (weak pragma): Drop claim that it must
12470         appear before definition.
12471         * varasm.c (merge_weak, declare_weak): Only sanity check
12472         that DECL is not output at a time it is declared weak.
12473
12474 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12475
12476         * machmode.def: Fixed comments.
12477
12478 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12479
12480         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12481
12482 2011-01-24  Paul Koning  <ni1d@arrl.net>
12483
12484         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12485         WORDS_BIG_ENDIAN.
12486
12487 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12488
12489         PR target/46519
12490         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12491         (block_info): Add scanned and prev.
12492         (move_or_delete_vzeroupper_2): Return if the basic block
12493         has been scanned and the upper 128bit state is unchanged
12494         from the last scan.
12495         (move_or_delete_vzeroupper_1): Return true if the exit
12496         state is changed.
12497         (move_or_delete_vzeroupper): Visit basic blocks using the
12498         work-list based algorithm based on vt_find_locations in
12499         var-tracking.c.
12500
12501         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12502
12503 2011-01-24  Nick Clifton  <nickc@redhat.com>
12504
12505         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12506         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12507         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12508         then define __v850e1__.
12509         * doc/invoke.texi: Document -mv850es.
12510
12511 2011-01-24  Richard Henderson  <rth@redhat.com>
12512
12513         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12514         compound unordered comparisons.
12515         * config/rx/rx.c (rx_split_fp_compare): Remove.
12516         * config/rx/rx-protos.h: Update.
12517         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12518         (cbranchsf4): Don't call rx_split_fp_compare.
12519         (*cbranchsf4): Use rx_split_cbranch.
12520         (*cmpsf): Don't accept "i" constraint.
12521         (*conditional_branch): Only valid after reload.
12522         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12523
12524 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12525
12526         PR target/47385
12527         * config/rs6000/altivec.md (vector constant splitters): Add
12528         support for creating vector single precision constants if -mvsx is
12529         used and we would create the constant using Altivec primitives.
12530
12531 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12532             Richard Sandiford  <rdsandiford@googlemail.com>
12533
12534         PR rtl-optimization/47166
12535         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12536         mechanism for PRE_MODIFY and POST_MODIFY.
12537         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12538         reloadreg.
12539
12540 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12541
12542         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12543
12544 2011-01-22  Jan Hubicka  <jh@suse.cz>
12545
12546         PR lto/47333
12547         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12548
12549 2011-01-22  Jan Hubicka  <jh@suse.cz>
12550
12551         PR tree-optimization/43884
12552         PR lto/44334
12553         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12554         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12555
12556 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12557
12558         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12559         * config/s390/s390.c (s390_register_move_cost,
12560         s390_memory_move_cost): New.
12561         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12562
12563 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12564
12565         PR middle-end/47401
12566         * except.c (sjlj_assign_call_site_values): Move setting the
12567         crtl->uses_eh_lsda flag to ...
12568         (sjlj_mark_call_sites): ... here.
12569         (sjlj_emit_function_enter): Support NULL dispatch label.
12570         (sjlj_build_landing_pads): In a function with no landing pads
12571         that still has must-not-throw regions, generate code to register
12572         a personality function with empty LSDA.
12573
12574 2011-01-21  Richard Henderson  <rth@redhat.com>
12575
12576         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12577
12578         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12579
12580         * compare-elim.c: New file.
12581         * Makefile.in (OBJS-common): Add it.
12582         (compare-elim.o): New.
12583         * common.opt (fcompare-elim): New.
12584         * opts.c (default_options_table): Add OPT_fcompare_elim.
12585         * tree-pass.h (pass_compare_elim_after_reload): New.
12586         * passes.c (init_optimization_passes): Add it.
12587         * recog.h: Protect against re-inclusion.
12588         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12589         * doc/invoke.texi (-fcompare-elim): Document it.
12590         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12591         * doc/tm.texi: Rebuild.
12592
12593 2011-01-22  Nick Clifton  <nickc@redhat.com>
12594
12595         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12596         rx_split_fp_compare.
12597
12598 2011-01-22  Nick Clifton  <nickc@redhat.com>
12599
12600         * config/rx/rx.md (UNSPEC_CONST): New.
12601         (deallocate_and_return): Wrap the amount popped off the stack in
12602         an UNSPEC_CONST in order to stop it being rejected by
12603         -mmax-constant-size.
12604         (pop_and_return): Add a "(return)" rtx.
12605         (call): Drop the immediate operand.
12606         (call_internal): Likewise.
12607         (call_value): Likewise.
12608         (call_value_internal): Likewise.
12609         (sibcall_internal): Likewise.
12610         (sibcall_value_internal): Likewise.
12611         (sibcall): Likewise.  Generate an explicit call using
12612         sibcall_internal.
12613         (sibcall_value): Likewise.
12614         (mov<>): FAIL if a constant operand is not legitimate.
12615         (addsi3_unpsec): New pattern.
12616
12617         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12618         (ok_for_max_constant): New function.
12619         (gen_safe_add): New function.
12620         (rx_expand_prologue): Use gen_safe_add.
12621         (rx_expand_epilogue): Likewise.
12622         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12623         UNSPEC CONSTs.
12624
12625 2011-01-21  Jeff Law  <law@redhat.com>
12626
12627         PR tree-optimization/47053
12628         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12629         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12630         statements are deleted.
12631         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12632         is nonempty, then purge dead edges and cleanup the CFG.
12633
12634 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12635
12636         PR debug/47402
12637         Temporarily revert:
12638         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12639         PR debug/47106
12640         * tree-dfa.c (create_var_ann): Mark variable as used.
12641
12642 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12643
12644         PR middle-end/45566
12645         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12646         notes from other section in hot/cold partitioning even if
12647         last_action is -3.  Increment call_site_base.
12648
12649         PR rtl-optimization/47366
12650         * fwprop.c (forward_propagate_into): Return bool.  If
12651         any changes are made, -fnon-call-exceptions is used and
12652         REG_EH_REGION note is present, call purge_dead_edges
12653         and return true if it purged anything.
12654         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12655         any EH edges were purged.
12656
12657 2011-01-21  Jeff Law  <law@redhat.com>
12658
12659         PR rtl-optimization/41619
12660         * caller-save.c (setup_save_areas): Break out code to determine
12661         which hard regs are live across calls by examining the reload chains
12662         so that it is always used.
12663         Eliminate code which checked REG_N_CALLS_CROSSED.
12664
12665 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12666
12667         PR tree-optimization/47355
12668         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12669         NOP has non-debug uses beyond PHIs in new_bb.
12670
12671 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12672
12673         PR debug/47106
12674         * cfgexpand.c (account_used_vars_for_block): Only account vars
12675         that are annotated as used.
12676         (estimated_stack_frame_size): Don't set TREE_USED.
12677         * tree-dfa.c (create_var_ann): Mark variable as used.
12678
12679 2011-01-21  Richard Guenther  <rguenther@suse.de>
12680
12681         PR middle-end/47395
12682         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12683
12684 2011-01-21  Richard Guenther  <rguenther@suse.de>
12685
12686         PR tree-optimization/47365
12687         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12688         (vn_reference_lookup_pieces): Adjust.
12689         (vn_reference_lookup): Likewise.
12690         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12691         (vn_reference_lookup_3): Only look through kills if in
12692         VN_WALKREWRITE mode.
12693         (vn_reference_lookup_pieces): Adjust.
12694         (vn_reference_lookup): Likewise.
12695         (visit_reference_op_load): Likewise.
12696         (visit_reference_op_store): Likewise.
12697         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12698         (compute_avail): Likewise.
12699         (eliminate): Likewise.
12700
12701 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12702
12703         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12704         DECL_IGNORED_P non-reg vars if they are used.
12705
12706         PR tree-optimization/47391
12707         * varpool.c (const_value_known_p): Return false if
12708         decl is volatile.
12709
12710 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12711
12712         PR bootstrap/47215
12713         * config/i386/i386.c (ix86_local_alignment): Handle
12714         case for va_list_type_node is nil.
12715         (ix86_canonical_va_list_type): Likewise.
12716
12717 2011-01-21  Alan Modra  <amodra@gmail.com>
12718
12719         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12720         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12721
12722 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12723
12724         * config/arm/arm.md (define_attr type): Rename f_load
12725         and f_store to f_fpa_load and f_fpa_store. Update.
12726         (write_conflict): Deal with rename fallout.
12727         (*push_fp_multi): Likewise.
12728         * config/arm/fpa.md (f_load): Use f_fpa_load.
12729         (f_store): Use f_fpa_store.
12730         (*movsf_fpa): Likewise.
12731         (*movdf_fpa): Likewise.
12732         (*movxf_fpa): Likewise.
12733         (*thumb2_movsf_fpa): Likewise.
12734         (*thumb2_movdf_fpa): Likewise.
12735         (*thumb2_movxf_fpa): Likewise.
12736         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12737         f_loadd and f_stored.
12738         (*thumb2_movdi_vfp): Likewise.
12739         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12740         (*thumb2_movsi_vfp): Likewise.
12741         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12742         Use f_loads instead of f_load.
12743         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12744
12745 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12746
12747         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12748         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12749         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12750         (xtensa_mode_dependent_address_p): New function.
12751         (constantpool_address_p): Make static. Change return type to bool.
12752         Change argument type to const_rtx. Use CONST_INT_P predicate.
12753
12754 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12755
12756         PR debug/46583
12757         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12758
12759 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12760
12761         PR debug/47283
12762         * cfgexpand.c (expand_debug_expr): Instead of generating
12763         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12764         etc. handling.
12765
12766 2011-01-20  Richard Guenther  <rguenther@suse.de>
12767
12768         PR middle-end/47370
12769         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12770         the pointer operand of MEM_REFs.
12771
12772 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12773
12774         PR tree-optimization/46130
12775         * ipa-split.c (consider_split): If return_bb contains non-virtual
12776         PHIs other than for retval or if split_function would not adjust it,
12777         refuse to split.
12778
12779 2011-01-20  Richard Guenther  <rguenther@suse.de>
12780
12781         PR tree-optimization/47167
12782         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12783         Revert previous change, only avoid enumeral type changes.
12784
12785 2011-01-19  Mike Stump  <mikestump@comcast.net>
12786
12787         * doc/tm.texi.in (BRANCH_COST): Englishify.
12788         * doc/tm.texi (BRANCH_COST): Likewise.
12789
12790 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12791
12792         PR c++/47291
12793         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12794         (gen_scheduled_generic_parms_dies): New functions.
12795         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12796         generation for the end of CU compilation.
12797         (dwarf2out_finish): Generate template parameters DIEs here.
12798
12799 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12800
12801         PR debug/46240
12802         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12803         debug bind stmt on merge edges.
12804
12805 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12806
12807         PR debug/47079
12808         PR debug/46724
12809         * function.c (instantiate_expr): Instantiate incoming rtl of
12810         implicit arguments, and recurse on VALUE_EXPRs.
12811         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12812         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12813
12814 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12815
12816         * c-parser.c (c_parser_for_statement): Initialize
12817         collection_expression.
12818
12819 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12820
12821         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12822
12823 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12824
12825         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12826         (LINK_SHLIB_SPEC): Don't use %(link_path).
12827         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12828
12829 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12830
12831         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12832         (NO_SHARED_LIB_SUPPORT): Remove.
12833         (LINK_SHLIB_SPEC): Remove one conditional definition.
12834
12835 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12836
12837         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12838         %{call_shared}.
12839         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12840         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12841         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12842         %{call_shared} and conditionals on these options not being passed.
12843         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12844         %{call_shared}.
12845
12846 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12847
12848         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12849         simplify.
12850
12851         * ipa-split.c: Spelling fixes.
12852
12853 2011-01-19  Richard Henderson  <rth@redhat.com>
12854
12855         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12856         (*mulsi3): Likewise.
12857
12858         * longlong.h [__mn10300__] (count_leading_zeros): New.
12859         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12860         [__mn10300__] (add_ssaaaa, subddmmss): New.
12861         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12862         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12863
12864 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12865
12866         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12867
12868 2011-01-19  Richard Henderson  <rth@redhat.com>
12869
12870         * config/mn10300/mn10300.md (addsi3_flags): New.
12871         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12872         (subsi3_flags, subc_internal, subdi3): New.
12873         (subdi3_internal, *subdi3_degenerate): New.
12874         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12875
12876         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12877         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12878         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12879         * config/mn10300/mn10300-protos.h: Update.
12880         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12881         (return_ret): Likewise.  Rename from return_internal_regs.
12882         (return_internal): Remove.
12883
12884         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12885         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12886         (mn10300_legitimate_constant_p): Likewise.
12887         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12888         (mn10300_frame_size): New.
12889         (mn10300_expand_prologue): Use it.
12890         (mn10300_expand_epilogue): Likewise.
12891         (mn10300_initial_offset): Likewise.
12892         * config/mn10300/mn10300-protos.h: Update.
12893         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12894         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12895         (prologue, epilogue, return_internal): Tidy output code.
12896         (mn10300_store_multiple_operation, return): Likewise.
12897         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12898         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12899         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12900         (load_pic, am33_load_pic): New.
12901         (mn10300_load_pic0, mn10300_load_pic1): New.
12902
12903         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12904         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12905         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12906         (cc_flags_for_mode, cc_flags_for_code): New.
12907         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12908         overflow flag is not valid.  Validate that the flags we need
12909         for the comparison are valid.
12910         (mn10300_output_cmp): Remove.
12911         (mn10300_output_add): New.
12912         (mn10300_select_cc_mode): Use cc_flags_for_code.
12913         (mn10300_split_cbranch): New.
12914         (mn10300_match_ccmode): New.
12915         (mn10300_split_and_operand_count): New.
12916         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12917         to the function.
12918         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12919         (addsi3): ... here.  Use mn10300_output_add.
12920         (*addsi3_flags): New.
12921         (*am33_subsi3, *mn10300_subsi3): Merge...
12922         (subsi3): ... here.  Use attribute isa.
12923         (*subsi3_flags): New.
12924         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12925         when possible.
12926         (*am33_andsi3, *mn10300_andsi3): Merge...
12927         (andsi3): ... here.
12928         (*andsi3_flags): New.
12929         (andsi3 splitters): New.
12930         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12931         (iorsi3): ... here.
12932         (*iorsi3_flags): New.
12933         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12934         (xorsi3): ... here.
12935         (*xorsi3_flags): New.
12936         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12937         (one_cmplsi2): ... here.
12938         (*one_cmplsi2_flags): New.
12939         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12940         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12941         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12942         use matching constraints to eliminate a self-comparison.
12943         (*integer_conditional_branch): Rename from integer_conditional_branch.
12944         Use int_mode_flags to match CC_REG.
12945         (*cbranchsi4_btst, *btstsi): New.
12946         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12947         mn10300_split_cbranch.
12948         (*am33_cmpsf): Rename from am33_cmpsf.
12949         (*float_conditional_branch): Rename from float_conditional_branch.
12950         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12951         (zero_extendqisi2): ... here.
12952         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12953         (zero_extendhisi2): ... here.
12954         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12955         (extendqisi2): ... here.
12956         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12957         (extendhisi2): ... here.
12958         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12959         (ashlsi3): ... here.
12960         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12961         (lshrsi3): ... here.
12962         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12963         (ashrsi3): ... here.
12964         (consecutive add peephole): Remove.
12965         * config/mn10300/predicates.md (label_ref_operand): New.
12966         (int_mode_flags): New.
12967         (CCZN_comparison_operator): New.
12968
12969         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12970         (throughput_42_latency_43): New reservation.
12971         (mulsidi3, umulsidi3): New expanders.
12972         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12973         the MDR register to allocation; separately allocate the low and
12974         high parts of the DImode result.
12975         (umulsidi3_internal): Similarly.
12976         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12977         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12978         (udivsi3, umodsi3): Remove.
12979         (udivmodsi4, divmodsi4): New expanders.
12980         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12981         (*divmodsi4): Simiarly.
12982         (ext_internal): New.
12983
12984         * config/mn10300/constraints.md ("z"): New constraint.
12985         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12986         (FIXED_REGISTERS): Don't fix MDR.
12987         (CALL_USED_REGSITERS): Reformat nicely.
12988         (REG_ALLOC_ORDER): Add MDR.
12989         (enum regclass): Add MDR_REGS.
12990         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12991         (IRA_COVER_CLASSES): Add MDR_REGS.
12992         (REGNO_REG_CLASS): Handle MDR_REG.
12993         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12994         (mn10300_register_move_cost): Likewise.
12995         * config/mn10300/mn10300.md (MDR_REG): New.
12996         (*movsi_internal): Handle moves to/from MDR_REGS.
12997
12998         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12999         POST_MODIFY.
13000         (mn10300_secondary_reload): Tidy combination reload classes.
13001         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13002         addresses for AM33.  Allow symbolic offsets for reg+imm.
13003         (mn10300_regno_in_class_p): New.
13004         (mn10300_legitimize_reload_address): New.
13005         * config/mn10300/mn10300.h (enum reg_class): Remove
13006         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13007         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13008         SP_OR_GENERAL_REGS.
13009         (REG_CLASS_NAMES): Update to match.
13010         (REG_CLASS_CONTENTS): Likewise.
13011         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13012         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13013         (REGNO_IN_RANGE_P): Remove.
13014         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13015         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13016         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13017         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13018         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13019         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13020         (REGNO_GENERAL_P): New.
13021         (HAVE_POST_MODIFY_DISP): New.
13022         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13023         (LEGITIMIZE_RELOAD_ADDRESS): New.
13024         * config/mn10300/mn10300-protos.h: Update.
13025
13026         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13027         DATA_REGS for AM33 stack-pointer destination.
13028         (mn10300_preferred_output_reload_class): Likewise.
13029         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13030         into a form appropriate for ...
13031         (TARGET_SECONDARY_RELOAD): New.
13032         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13033         * config/mn10300/mn10300-protos.h: Update.
13034         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13035         reload_insi; use the "A" constraint for the scratch; handle AM33
13036         moves of sp to non-address registers.
13037
13038         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13039         (*movqi_internal): ... here.
13040         (*am33_movhi, *mn10300_movhi): Merge into...
13041         (*movhi_internal): ... here.
13042         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13043         as the source/destination of moves from/to SP.
13044         (movsf): Only allow for AM33-2.
13045         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13046         any integer constant constraint.  Only allow for AM33-2.  Tidy
13047         all of the alternative outputs.
13048         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13049         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13050         for MN103.
13051         (udivsi3, umodsi3): New patterns for MN103 only.
13052
13053 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13054
13055         * doc/tm.texi.in: Spell out that a lack of register class unions
13056         can lead to ICEs.
13057         * doc/tm.texi: Regenerate.
13058
13059 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13060
13061         PR rtl-optimization/47337
13062         * dce.c (check_argument_store): New function.
13063         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13064
13065         PR tree-optimization/47290
13066         * tree-eh.c (infinite_empty_loop_p): New function.
13067         (cleanup_empty_eh): Use it.
13068
13069 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13070
13071         PR target/46997
13072         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13073         (a64_expand_widen_sum): Ditto.
13074         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13075         (vec_extract_evenodd_help): Ditto.
13076         (vec_extract_evenv4hi): Ditto.
13077         (vec_extract_oddv4hi): Ditto.
13078         (vec_extract_evenv2si): Ditto.
13079         (vec_extract_oddv2si): Ditto.
13080         (vec_extract_evenv2sf): Ditto.
13081         (vec_extract_oddv2sf): Ditto.
13082         (vec_pack_trunc_v4hi: Ditto.
13083         (vec_pack_trunc_v2si): Ditto.
13084         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13085         (vec_interleave_highv8qi): Ditto.
13086         (mix1_r): Ditto.
13087         (vec_extract_oddv8qi): Ditto.
13088         (vec_interleave_lowv4hi): Ditto.
13089         (vec_interleave_highv4hi): Ditto.
13090         (vec_interleave_lowv2si): Ditto.
13091         (vec_interleave_highv2si): Ditto.
13092
13093 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13094
13095         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13096         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13097         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13098         (pa_c_mode_for_suffix): New.
13099         (TARGET_EXPAND_BUILTIN): Define.
13100         (TARGET_C_MODE_FOR_SUFFIX): Define.
13101         (pa_builtins): Define.
13102         (pa_init_builtins): Register __float128 type and init new support
13103         builtins.
13104         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13105         * config/pa/quadlib.c (_U_Qfcopysign): New.
13106
13107 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13108
13109         PR middle-end/46894
13110         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13111         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13112         are defined.
13113
13114 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13115
13116         PR tree-optimization/47179
13117         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13118         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13119
13120 2011-01-18  Richard Guenther  <rguenther@suse.de>
13121
13122         PR rtl-optimization/47216
13123         * emit-rtl.c: Include tree-flow.h.
13124         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13125         of replicating it with different semantics.
13126         * Makefile.in (emit-rtl.o): Adjust.
13127
13128 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13129
13130         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13131         (cortex_a9_dp): Handle neon types correctly.
13132
13133 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13134
13135         PR rtl-optimization/47299
13136         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13137         subtarget.  Use normal multiplication if both operands are constants.
13138         * expmed.c (expand_widening_mult): Don't try to optimize constant
13139         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13140         before using it.
13141
13142 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13143
13144         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13145         spacing after 'e.g.', typos, comma, hyphenation.
13146
13147 2011-01-17  Richard Henderson  <rth@redhat.com>
13148
13149         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13150         (rx_restricted_mem_operand): New.
13151         (rx_shift_operand): Use register_operand.
13152         (rx_source_operand, rx_compare_operand): Likewise.
13153         * config/rx/rx.md (addsi3_flags): New expander.
13154         (adddi3): Rewrite as expander.
13155         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13156         (subsi3_flags): New expander.
13157         (subdi3): Rewrite as expander.
13158         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13159
13160         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13161         (rx_init_builtins): Remove sat builtin.
13162         (rx_expand_builtin): Likewise.
13163         * config/rx/rx.md (ssaddsi3): New.
13164         (*sat): Rename from sat.  Represent the CC_REG input.
13165
13166         * config/rx/predicates.md (rshift_operator): New.
13167         * config/rx/rx.c (rx_expand_insv): Remove.
13168         * config/rx/rx-protos.h: Update.
13169         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13170         operand to the canonical position.
13171         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13172         (*bitclr, *bitclr_in_memory): Similarly.
13173         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13174         (insv): Retain the zero_extract in the expansion.
13175
13176         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13177         (bswaphi2, bitinvert, revw): Likewise.
13178
13179         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13180         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13181         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13182         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13183         (bitset, bitset_in_memory): Likewise.
13184         (bitinvert, bitinvert_in_memory): Likewise.
13185         (bitclr, bitclr_in_memory): Likewise.
13186         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13187         (rx_strend, rx_cmpstrn): Likewise.
13188         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13189         (bitop peep2 patterns): Remove.
13190
13191         * config/rx/rx.c (rx_match_ccmode): New.
13192         * config/rx/rx-protos.h: Update.
13193         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13194         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13195         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13196         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13197         (fix_truncsfsi2, floatsisf2): Likewise.
13198         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13199         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13200         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13201         (*subsi3_flags, *xorsi3_flags): New.
13202
13203         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13204
13205         * config/rx/rx.c (rx_print_operand): Remove workaround for
13206         unsplit comparison operations.
13207
13208         * config/rx/rx.md (movsicc): Split after reload.
13209         (*movsicc): Merge *movsieq and *movsine via match_operator.
13210         (*stcc): New pattern.
13211
13212         * config/rx/rx.c (rx_float_compare_mode): Remove.
13213         * config/rx/rx.h (rx_float_compare_mode): Remove.
13214         * config/rx/rx.md (cstoresi4): Split after reload.
13215         (*sccc): New pattern.
13216
13217         * config/rx/predicates.md (label_ref_operand): New.
13218         (rx_z_comparison_operator): New.
13219         (rx_zs_comparison_operator): New.
13220         (rx_fp_comparison_operator): New.
13221         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13222         Validate that the flags are set properly for the comparison.
13223         (rx_gen_cond_branch_template): Remove.
13224         (rx_cc_modes_compatible): Remove.
13225         (mode_from_flags): New.
13226         (flags_from_code): Rename from flags_needed_for_conditional.
13227         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13228         (rx_select_cc_mode): Likewise.
13229         (rx_split_fp_compare): New.
13230         (rx_split_cbranch): New.
13231         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13232         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13233         (*cbranchsf4): Similarly.
13234         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13235         match_operator and rx_split_cbranch.
13236         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13237         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13238         (*cmpsi): Rename from cmpsi.
13239         (*tstsi): Rename from tstsi.
13240         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13241         (*conditional_branch): Rename from conditional_branch.
13242         (*reveresed_conditional_branch): Remove.
13243         (b<code>): Remove expander.
13244         * config/rx/rx-protos.h: Update.
13245
13246         * config/rx/rx.c (rx_compare_redundant): Remove.
13247         * config/rx/rx.md (cmpsi): Don't use it.
13248         * config/rx/rx-protos.h: Update.
13249
13250         * config/rx/rx-modes.def (CC_F): New mode.
13251         * config/rx/rx.c (rx_select_cc_mode): New.
13252         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13253         * config/rx/rx-protos.h: Update.
13254
13255 2011-01-17  Richard Henderson  <rth@redhat.com>
13256
13257         * except.c (dump_eh_tree): Fix stray ; after for statement.
13258
13259 2011-01-17  Richard Guenther  <rguenther@suse.de>
13260
13261         PR tree-optimization/47313
13262         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13263         handling before copying the body.  Properly deal with
13264         by-reference result in SSA form.
13265
13266 2011-01-17  Ian Lance Taylor  <iant@google.com>
13267
13268         PR target/47219
13269         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13270         (struct_value_alias_set): Don't define.
13271         (sparc_option_override): Don't set sparc_sr_alias_set and
13272         struct_value_alias_set.
13273         (save_or_restore_regs): Use gen_frame_mem rather than calling
13274         set_mem_alias_set.
13275         (sparc_struct_value_rtx): Likewise.
13276
13277 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13278
13279         PR target/47318
13280         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13281         (_mm_maskstore_pd): Likewise.
13282         (_mm_maskload_ps): Likewise.
13283         (_mm_maskstore_ps): Likewise.
13284         (_mm256_maskload_pd): Change mask to __m256i.
13285         (_mm256_maskstore_pd): Likewise.
13286         (_mm256_maskload_ps): Likewise.
13287         (_mm256_maskstore_ps): Likewise.
13288
13289         * config/i386/i386-builtin-types.def: Updated.
13290         (ix86_expand_special_args_builtin): Likewise.
13291
13292         * config/i386/i386.c (bdesc_special_args): Update
13293         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13294         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13295         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13296         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13297
13298         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13299         Use <avxpermvecmode> on mask register.
13300         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13301
13302 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13303             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13304             Eric Botcazou  <ebotcazou@adacore.com>
13305
13306         PR target/46655
13307         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13308         if <= USHRT_MAX in 32-bit mode.
13309
13310 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13311
13312         * doc/install.texi (Configuration, Specific): Wrap long
13313         lines in examples.  Allow line wrapping in long options
13314         and URLs where beneficial for PDF output.
13315
13316 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13317
13318         * config/mips/mips.c (mips_classify_symbol): Don't return
13319         SYMBOL_PC_RELATIVE for nonlocal labels.
13320
13321 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13322
13323         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13324
13325 2011-01-15  Jan Hubicka  <jh@suse.cz>
13326
13327         PR tree-optimization/47276
13328         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13329         declarations as needed.
13330
13331 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13332
13333         * common.opt (fdevirtualize): New flag.
13334         * doc/invoke.texi (Option Summary): Document it.
13335         * opts.c (default_options_table): Add devirtualize flag.
13336         * ipa-prop.c (detect_type_change): Return immediately if
13337         devirtualize flag is not set.
13338         (detect_type_change_ssa): Likewise.
13339         (compute_known_type_jump_func): Likewise.
13340         (ipa_analyze_virtual_call_uses): Likewise.
13341
13342 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13343
13344         PR tree-optimization/45934
13345         PR tree-optimization/46302
13346         * ipa-prop.c (type_change_info): New type.
13347         (stmt_may_be_vtbl_ptr_store): New function.
13348         (check_stmt_for_type_change): Likewise.
13349         (detect_type_change): Likewise.
13350         (detect_type_change_ssa): Likewise.
13351         (compute_complex_assign_jump_func): Check for dynamic type change.
13352         (compute_complex_ancestor_jump_func): Likewise.
13353         (compute_known_type_jump_func): Likewise.
13354         (compute_scalar_jump_functions): Likewise.
13355         (ipa_analyze_virtual_call_uses): Likewise.
13356         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13357
13358 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13359
13360         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13361         * config/i386/i386.opt (msse5): New Alias.
13362
13363 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13364
13365         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13366         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13367         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13368         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13369
13370 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13371
13372         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13373         -mcpu options.
13374         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13375         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13376         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13377         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13378         Likewise.
13379         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13380
13381 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13382
13383         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13384
13385 2011-01-14  Mike Stump  <mikestump@comcast.net>
13386
13387         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13388         * config/fr30/fr30.md: Likweise
13389         (movsi_push): Likewise.
13390         (movsi_pop): Likewise.
13391         (enter_func): Likewise.
13392         * config/moxie/moxie.md (movsi_push): Likewise.
13393         (movsi_pop): Likewise.
13394
13395 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13396
13397         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13398         %{no_archive} %{exact_version}.
13399         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13400         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13401         %{no_archive} %{exact_version}.
13402         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13403         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13404         * config/mips/vxworks.h: Likewise.
13405
13406 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13407
13408         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13409
13410 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13411
13412         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13413         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13414
13415 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13416
13417         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13418         -nodefaultlib.
13419
13420 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13421
13422         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13423         for mcpu not cpu.
13424         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13425         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13426         not cpu.
13427         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13428         Don't handle -shlib.
13429
13430 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13431
13432         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13433         (CC1_SPEC): Don't handle -profile.
13434
13435 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13436
13437         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13438         * config/mips/mips.h (CC1_SPEC): Likewise.
13439
13440 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13441
13442         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13443         * config/mips/mips.h (CC1_SPEC): Likewise.
13444
13445 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13446
13447         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13448         * config/m32r/linux.h (LINK_SPEC): Likewise.
13449         * config/mips/linux.h (LINK_SPEC): Likewise.
13450         * config/mips/linux64.h (LINK_SPEC): Likewise.
13451         * config/sparc/linux.h (LINK_SPEC): Likewise.
13452         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13453         LINK_SPEC): Likewise.
13454         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13455
13456 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13457
13458         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13459         %{version:-v}.
13460         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13461
13462 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13463
13464         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13465         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13466
13467 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13468
13469         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13470
13471 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13472
13473         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13474         supports -Bstatic/-Bdynamic.
13475         * configure: Regenerate.
13476
13477 2011-01-14  Jan Hubicka  <jh@suse.cz>
13478             Jack Howarth  <howarth@bromo.med.uc.edu>
13479
13480         PR target/46037
13481         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13482         when checking debug_info_level. Test write_symbols instead of
13483         debug_hooks->var_location when setting flag_var_tracking_uninit.
13484
13485 2011-01-14  Richard Guenther  <rguenther@suse.de>
13486
13487         PR tree-optimization/47179
13488         * target.def (ref_may_alias_errno): New target hook.
13489         * targhooks.h (default_ref_may_alias_errno): Declare.
13490         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13491         (default_ref_may_alias_errno): New function.
13492         * target.h (struct ao_ref_s): Declare.
13493         * tree-ssa-alias.c: Include target.h.
13494         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13495         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13496         (targhooks.o): Likewise.
13497         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13498         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13499
13500 2011-01-14  Richard Guenther  <rguenther@suse.de>
13501
13502         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13503
13504 2011-01-14  Richard Guenther  <rguenther@suse.de>
13505
13506         PR tree-optimization/47280
13507         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13508         return CFG changes.
13509         (tree_ssa_forward_propagate_single_use_vars): Deal with
13510         CFG changes from associate_plusminus.
13511
13512 2011-01-14  Richard Guenther  <rguenther@suse.de>
13513
13514         PR middle-end/47281
13515         Revert
13516         2011-01-11  Richard Guenther  <rguenther@suse.de>
13517
13518         PR tree-optimization/46076
13519         * tree-ssa.c (useless_type_conversion_p): Conversions from
13520         unprototyped to empty argument list function types are useless.
13521
13522 2011-01-14  Richard Guenther  <rguenther@suse.de>
13523
13524         PR tree-optimization/47286
13525         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13526
13527 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13528
13529         PR middle-end/46823
13530         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13531
13532 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13533
13534         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13535         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13536         * config/xtensa/xtensa.c (xtensa_libcall_value,
13537         xtensa_function_value_regno_p): New functions.
13538         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13539
13540 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13541
13542         PR c++/47213
13543         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13544         PE specific hook.
13545         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13546         New function prototype.
13547         * config/i386/winnt.c (i386_pe_assemble_visibility):
13548         Warn only if attribute was specified by user.
13549
13550 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13551
13552         PR target/47251
13553         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13554         floating point.
13555         (floatunsdidf2_fcfidu): Ditto.
13556
13557 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13558
13559         * config/s390/s390.c (print_operand_address): Replace 'error' with
13560         'output_operand_lossage'.
13561         (print_operand): Likewise.
13562
13563 2011-01-13  Jeff Law  <law@redhat.com>
13564
13565         PR rtl-optimization/39077
13566         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13567         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13568         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13569         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13570         * gcse.c (prune_insertions_deletions): New function.
13571         (compute_pre_data): Use it.
13572
13573 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13574
13575         PR debug/PR46973
13576         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13577         static function.
13578         (prune_unused_types_mark): Use it.
13579
13580 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13581
13582         PR rtl-optimization/45352
13583         * sel-sched.c: Update copyright years.
13584         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13585         in the advancing loop when we have issued issue_rate insns.
13586
13587 2011-01-12  Richard Henderson  <rth@redhat.com>
13588
13589         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13590         (TARGET_MD_ASM_CLOBBERS): New.
13591
13592         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13593         (TARGET_DELEGITIMIZE_ADDRESS): New.
13594
13595         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13596         (clzsi2, *bsch): New patterns.
13597
13598         * config/mn10300/mn10300.md (INT): New mode iterator.
13599         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13600
13601         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13602         flag_split_wide_types.
13603
13604         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13605         (mn10300_trampoline_init): Rewrite without a template, an immediate
13606         load and a direct branch.
13607         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13608
13609 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13610
13611         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13612         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13613         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13614         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13615
13616 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13617
13618         PR debug/47209
13619         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13620         of type.
13621
13622 2011-01-12  Jan Hubicka  <jh@suse.cz>
13623
13624         PR driver/47244
13625         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13626         (PLUGIN_COND_CLOSE): New macro.
13627         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13628
13629 2011-01-12  Richard Guenther  <rguenther@suse.de>
13630
13631         PR lto/47259
13632         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13633         register variables in a MEM_REF.
13634
13635 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13636
13637         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13638         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13639         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13640         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13641         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13642         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13643         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13644         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13645         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13646         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13647         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13648         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13649         * config/gnu-user.h: New.  Copied from linux.h.
13650         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13651         GNU_USER_TARGET_STARTFILE_SPEC.
13652         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13653         GNU_USER_TARGET_ENDFILE_SPEC.
13654         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13655         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13656         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13657         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13658         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13659         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13660         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13661         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13662         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13663         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13664         * config/arm/linux-eabi.h (CC1_SPEC): Use
13665         GNU_USER_TARGET_CC1_SPEC.
13666         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13667         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13668         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13669         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13670         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13671         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13672         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13673         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13674
13675 2011-01-12  Richard Guenther  <rguenther@suse.de>
13676
13677         PR other/46946
13678         * doc/invoke.texi (ffast-math): Document it is turned on
13679         with -Ofast.
13680
13681 2011-01-12  Jan Hubicka  <jh@suse.cz>
13682
13683         PR tree-optimization/47233
13684         * opts.c (common_handle_option): Disable ipa-reference with profile
13685         feedback.
13686
13687 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13688
13689         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13690         error message.
13691
13692 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13693
13694         * c-parser.c (c_lex_one_token): Updated and reindented some
13695         comments.  No changes in code.
13696
13697 2011-01-11  Ian Lance Taylor  <iant@google.com>
13698
13699         * godump.c (go_output_var): Don't output the variable if there is
13700         already a type with the same name.
13701
13702 2011-01-11  Ian Lance Taylor  <iant@google.com>
13703
13704         * godump.c (go_format_type): Don't generate float80.
13705
13706 2011-01-11  Richard Henderson  <rth@redhat.com>
13707
13708         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13709         declaration.  Rewrite for both speed and size.
13710         (mn10300_address_cost_1): Remove.
13711         (mn10300_register_move_cost): New.
13712         (mn10300_memory_move_cost): New.
13713         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13714         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13715         extensions, shifts, BSWAP, CLZ.
13716         (mn10300_wide_const_load_uses_clr): Remove.
13717         (TARGET_REGISTER_MOVE_COST): New.
13718         (TARGET_MEMORY_MOVE_COST): New.
13719         * config/mn10300/mn10300-protos.h: Update.
13720         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13721
13722         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13723         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13724         * config/mn10300/mn10300-protos.h: Update.
13725         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13726         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13727         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13728         (*test_int_bitfield, *test_byte_bitfield): Remove.
13729         (*bit_test, *subreg_bit_test): Remove.
13730         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13731
13732         * config/mn10300/constraints.md ("c"): Rename from "A".
13733         ("A", "D"): New constraint letters.
13734         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13735         (fmssf4, fnmasf4, fnmssf4): Likewise.
13736
13737         * config/mn10300/mn10300.md (isa): New attribute.
13738         (enabled): New attribute.
13739
13740         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13741         (abssf2, negsf2): Define only for hardware fp.
13742         (sqrtsf2): Reformat.
13743         (addsf3, subsf3, mulsf3): Merge expander and insn.
13744
13745         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13746         (DEBUGGER_AUTO_OFFSET): Remove.
13747         (DEBUGGER_ARG_OFFSET): Remove.
13748
13749         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13750         Emit register stores with the same offsets as the hardware.
13751         (mn10300_store_multiple_operation): Don't check that the register
13752         save offsets are monotonic.
13753         * config/mn10300/mn10300-protos.h: Update.
13754
13755         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13756
13757         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13758         in terms of the value on the stack, not the MDR register.
13759
13760 2011-01-11  Jan Hubicka  <jh@suse.cz>
13761
13762         PR lto/45721
13763         PR lto/45375
13764         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13765         (symbol_alias_set_destroy, symbol_alias_set_contains,
13766         propagate_aliases_backward): Declare.
13767         * lto-streamer-out.c (struct sets): New sturcture.
13768         (trivally_defined_alias): New function.
13769         (output_alias_pair_p): Rewrite.
13770         (output_unreferenced_globals): Fix output of alias pairs.
13771         (produce_symtab): Likewise.
13772         * ipa.c (function_and_variable_visibility): Set weak alias destination
13773         as needed in lto.
13774         * varasm.c (symbol_alias_set_t): Remove.
13775         (symbol_alias_set_destroy): Export.
13776         (propagate_aliases_forward, propagate_aliases_backward): New functions
13777         based on ...
13778         (compute_visible_aliases): ... this one; remove.
13779         (trivially_visible_alias): New
13780         (trivially_defined_alias): New.
13781         (remove_unreachable_alias_pairs): Rewrite.
13782         (finish_aliases_1): Reorganize code checking if alias is defined.
13783         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13784         in LTO mode.
13785
13786 2011-01-11  Richard Guenther  <rguenther@suse.de>
13787
13788         PR tree-optimization/46076
13789         * tree-ssa.c (useless_type_conversion_p): Conversions from
13790         unprototyped to empty argument list function types are useless.
13791
13792 2011-01-11  Richard Guenther  <rguenther@suse.de>
13793
13794         PR middle-end/45235
13795         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13796         volatile MEMs as MEM_READONLY_P.
13797
13798 2011-01-11  Richard Guenther  <rguenther@suse.de>
13799
13800         PR tree-optimization/47239
13801         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13802
13803 2011-01-11  Jeff Law  <law@redhat.com>
13804
13805         PR tree-optimization/47086
13806         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13807         IVs from statements that might throw.
13808
13809 2011-01-10  Jan Hubicka  <jh@suse.cz>
13810
13811         PR lto/45375
13812         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13813
13814 2011-01-10  Jan Hubicka  <jh@suse.cz>
13815
13816         PR lto/45375
13817         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13818         when correcting profile.
13819
13820 2011-01-10  Jan Hubicka  <jh@suse.cz>
13821
13822         PR lto/46083
13823         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13824         DECL_FINI_PRIORITY.
13825         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13826         Restore DECL_FINI_PRIORITY.
13827
13828 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13829
13830         * doc/gimple.texi: Fix quoting of multi-word return values in
13831         @deftypefn statements.  Ensure presence of return value.  Wrap
13832         overlong @deftypefn lines.
13833         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13834         descriptions of removed functions.
13835         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13836         of multi-word return value in @deftypefn statement.
13837
13838 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13839
13840         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13841         (Conditional Expressions, Logical Operators)
13842         (Statement and operand traversals): Do not indent smallexample
13843         code.  Fix duplicate function argument in example.
13844
13845 2011-01-10  Jeff Law  <law@redhat.com>
13846
13847         PR tree-optimization/47141
13848         * ipa-split.c (split_function): Handle case where we are
13849         returning a value and the return block has a virtual operand phi.
13850
13851 2011-01-10  Jan Hubicka  <jh@suse.cz>
13852
13853         PR tree-optimization/47234
13854         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13855         (pass_feedback_split_functions): Declare.
13856         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13857         tree-profile.
13858         * ipa-split.c (gate_split_functions): Update comments; disable
13859         split-functions for profile_arc_flag and branch_probabilities.
13860         (gate_feedback_split_functions): New function.
13861         (execute_feedback_split_functions): New function.
13862         (pass_feedback_split_functions): New global var.
13863
13864 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13865
13866         PR lto/46760
13867         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13868         calling gimple_call_set_cannot_inline.
13869
13870 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13871
13872         * config/darwin-sections.def: Remove unused section.
13873
13874 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13875
13876         PR c++/47218
13877         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13878
13879 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13880
13881         PR objc/47232
13882         * c-parser.c (c_parser_declaration_or_fndef): Improved
13883         error message.
13884
13885 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13886
13887         * config/i386/winnt.c (i386_pe_start_function): Make sure
13888         to switch back to function's section.
13889
13890 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13891
13892         PR gcc/46902
13893         PR testsuite/46912
13894         * plugin.c: Move include of dlfcn.h from here...
13895         * system.h: ... to here.
13896
13897 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13898
13899         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13900         file name.
13901         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13902         two extra empty pages in PDF output.
13903
13904 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13905
13906         PR objc/47078
13907         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13908         for error recovery purposes behave as if it was not specified so
13909         that the default type is usd.
13910
13911 2011-01-07  Jan Hubicka  <jh@suse.cz>
13912
13913         PR tree-optmization/46469
13914         * ipa.c (function_and_variable_visibility): Clear needed flags on
13915         nodes with external decls; handle weakrefs merging correctly.
13916
13917 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13918
13919         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13920         not false.
13921
13922 2011-01-07  Jan Hubicka  <jh@suse.cz>
13923
13924         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13925         and no longer claim that gold is required for linker plugin.
13926         * configure: Regenerate.
13927         * gcc.c (PLUGIN_COND): New macro.
13928         (LINK_COMMAND_SPEC): Use it.
13929         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13930         * config.in (HAVE_LTO_PLUGIN): New.
13931         * configure.ac (--with-lto-plugin): New parameter; autodetect
13932         HAVE_LTO_PLUGIN.
13933
13934 2011-01-07  Jan Hubicka  <jh@suse.cz>
13935
13936         PR tree-optimization/46367
13937         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13938         when we can update original.
13939         (cgraph_mark_inline_edge): Sanity check.
13940         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13941
13942 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13943
13944         * config/spu/spu.h (ASM_COMMENT_START): Define.
13945
13946 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13947
13948         PR driver/42445
13949         * gcc.c (%>S): New.
13950         (SWITCH_KEEP_FOR_GCC): Likewise.
13951         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13952         (do_spec_1): Handle "%>".
13953
13954         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13955
13956 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13957
13958         PR target/47201
13959         * config/i386/i386.c (ix86_delegitimize_address): If
13960         simplify_gen_subreg fails, return orig_x.
13961
13962         PR bootstrap/47187
13963         * value-prof.c (gimple_stringop_fixed_value): Handle
13964         lhs of the call properly.
13965
13966 2011-01-07  Jan Hubicka  <jh@suse.cz>
13967
13968         PR lto/45375
13969         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13970
13971 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13972
13973         * target.def (function_switched_text_sections): New hook.
13974         * doc/tm.texi: Regenerated.
13975         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13976         * final.c (default_function_switched_text_sections): New.
13977         (final_scan_insn): Call function_switched_text_sections when a
13978         mid-function section change occurs.
13979         * output.h (default_function_switched_text_sections): Declare.
13980         * config/darwin-protos.h (darwin_function_switched_text_sections):
13981         Likewise.
13982         * config/darwin.c (darwin_function_switched_text_sections): New.
13983         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13984
13985 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13986
13987         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13988         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13989         the secondary code fragment when outputting for DWARF == 2.
13990
13991 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13992
13993         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13994         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13995         Remove.
13996         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13997         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13998
13999 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14000
14001         PR debug/46704
14002         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14003         when it is not empty.
14004
14005 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14006
14007         Bobcat Enablement
14008         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14009         (case ${target}): Add btver1.
14010         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14011         -march=native recognize btver1 processors.
14012         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14013         btver1 def_and_undef
14014         * config/i386/i386.c (struct processor_costs btver1_cost): New
14015         btver1 cost table.
14016         (m_BTVER1): New definition.
14017         (m_AMD_MULTIPLE): Includes m_BTVER1.
14018         (initial_ix86_tune_features): Add btver1 tune.
14019         (processor_target_table): Add btver1 entry.
14020         (static const char *const cpu_names): Add btver1 entry.
14021         (software_prefetching_beneficial_p): Add btver1.
14022         (ix86_option_override_internal): Add btver1 instruction sets.
14023         (ix86_issue_rate): Add btver1.
14024         (ix86_adjust_cost): Add btver1.
14025         * config/i386/i386.h (TARGET_BTVER1): New definition.
14026         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14027         (enum processor_type): Add PROCESSOR_BTVER1.
14028         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14029
14030 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14031
14032         PR target/43309
14033         * config/i386/i386.c (legitimize_tls_address)
14034         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14035         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14036         (tls_initial_exec_64_sun): New pattern.
14037
14038 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14039
14040         * doc/invoke.texi (Overall Options): Improve wording and markup
14041         of the description of -wrapper.
14042
14043 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14044
14045         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14046         rdynamic, threads): New Driver options.
14047
14048 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14049
14050         PR target/38118
14051         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14052         if coming from .tdata.
14053         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14054
14055 2011-01-06  Jan Hubicka  <jh@suse.cz>
14056
14057         PR lto/47188
14058         * collect2.c (main): Do not enable LTOmode when plugin is active.
14059
14060 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14061
14062         PR other/45915
14063         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14064         --version output if supported.
14065         * configure: Regenerate.
14066
14067 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14068
14069         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14070         Driver options.
14071
14072 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14073
14074         PR c/47150
14075         * c-convert.c (convert): When converting a complex expression
14076         other than COMPLEX_EXPR to a different complex type, ensure
14077         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14078         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14079         when converting COMPLEX_TYPE.
14080
14081 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14082
14083         PR tree-optimization/47139
14084         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14085         only the last reduction value is used outside the loop.  Update
14086         documentation.
14087
14088 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14089
14090         * config/rtems.opt: New.
14091         * config.gcc (*-*-rtems*): Use rtems.opt.
14092
14093 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14094
14095         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14096         processors do not support 3DNow instructions.
14097
14098 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14099
14100         * config/spu/spu.c (spu_option_override): Set parameter
14101         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14102
14103 2011-01-05  Jan Hubicka  <jh@suse.cz>
14104
14105         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14106         at the command line.
14107
14108 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14109
14110         PR lto/47162
14111         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14112         deltas on streamed outgoing edges.
14113         (output_node_opt_summary): Output info for outgoing edges only when
14114         the node is in new parameter set.
14115         (output_cgraph_opt_summary): New parameter set, passed to the two
14116         aforementioned functions.  Update its forward declaration and its
14117         callee too.
14118
14119 2011-01-05  Tom Tromey  <tromey@redhat.com>
14120
14121         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14122         operator to c_finish_omp_atomic.
14123         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14124         (build_unary_op): Update.
14125         (build_modify_expr): Update.
14126         (build_asm_expr): Update.
14127
14128 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14129
14130         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14131         newly inserted insns.
14132         (pad_bb): Likewise.
14133         (spu_emit_branch_hint): Likewise.
14134         (insert_hbrp_for_ilb_runout): Likewise.
14135         (spu_machine_dependent_reorg): Call df_finish_pass after
14136         schedule_insns returns.
14137
14138 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14139
14140         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14141
14142 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14143
14144         PR tree-optimization/47005
14145         * tree-sra.c (struct access): Add 'non_addressable' bit.
14146         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14147         (decide_one_param_reduction): Return 0 if the parameter is passed by
14148         reference and one of the accesses in the group is non_addressable.
14149
14150 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14151
14152         PR tree-optimization/47056
14153         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14154         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14155         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14156
14157 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14158
14159         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14160         initializer.  Skip view conversions from aggregate types.
14161
14162 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14163
14164         PR bootstrap/47055
14165         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14166
14167 2011-01-04  Philipp Thomas  <pth@suse.de>
14168
14169         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14170         obvious typo.
14171
14172 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14173
14174         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14175         on empty epilogue sequences.
14176
14177 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14178
14179         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14180         non-static): New Driver options.
14181
14182 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14183
14184         PR driver/47137
14185         * gcc.c (default_compilers[]): Set combinable field to 0
14186         for all assembly languages.
14187
14188 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14189
14190         * config/mips/loongson3a.md: New file.
14191         * config/mips/mips.md: Include loongson3a.md.
14192         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14193         TUNE_LOONGSON_3A.
14194
14195 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14196
14197         PR middle-end/47017
14198         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14199         instead of convert_memory_address_addr_space on the base expression.
14200
14201 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14202
14203         * config/spu/spu.c (spu_option_override): Update error text
14204         for bad -march= / -mtune= values.
14205
14206 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14207
14208         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14209         if branch-hint optimization will be performed.
14210
14211 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14212
14213         PR tree-optimization/47148
14214         * ipa-split.c (split_function): Convert arguments to
14215         DECL_ARG_TYPE if possible.
14216
14217         PR tree-optimization/47155
14218         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14219         when computing uns.
14220
14221         PR rtl-optimization/47157
14222         * combine.c (try_combine): If undobuf.other_insn becomes
14223         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14224         and set *new_direct_jump_p too.
14225
14226 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14227
14228         PR tree-optimization/47021
14229         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14230
14231 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14232
14233         * gcc.c (process_command): Update copyright notice dates.
14234         * gcov.c (print_version): Likewise.
14235         * gcov-dump.c (print_version): Likewise.
14236         * mips-tfile.c (main): Likewise.
14237         * mips-tdump.c (main): Likewise.
14238
14239 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14240
14241         PR tree-optimization/46801
14242         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14243         aggregate fields start at byte boundary instead of the bit-field flag.
14244
14245 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14246
14247         PR driver/47137
14248         * gcc.c (main): Revert revision 168407.
14249
14250 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14251
14252         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14253
14254 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14255
14256         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14257         vector optab to expand vector/scalar shift, update gimple to vector.
14258
14259 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14260
14261         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14262         a thunk.
14263
14264 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14265
14266         PR tree-optimization/46984
14267         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14268         HOST_WIDE_INT.
14269         (cgraph_create_indirect_edge): Fixed line length.
14270         (cgraph_indirect_call_info): Declare.
14271         (cgraph_make_edge_direct) Update declaration.
14272         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14273         (cgraph_create_indirect_edge): Use it.
14274         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14275         callees.
14276         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14277         the new thunk_delta representation.
14278         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14279         HOST_WIDE_INT.
14280         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14281         (ipa_read_indirect_edge_info): Likewise.
14282         * lto-cgraph.c (output_edge_opt_summary): New function.
14283         (output_node_opt_summary): Call it on all outgoing edges.
14284         (input_edge_opt_summary): New function.
14285         (input_node_opt_summary): Call it on all outgoing edges.
14286
14287 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14288
14289         PR driver/47137
14290         * gcc.c (main): Don't check have_o when settting combine_inputs.
14291
14292 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14293
14294         * regrename.c: Add general comment describing the pass.
14295         (struct du_head): Remove 'length' field.
14296         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14297         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14298         Force renaming to the preferred class (if any) in the first pass and do
14299         not consider registers that belong to it in the second pass.
14300         (create_new_chain): Do not set 'length' field.
14301         (scan_rtx_reg): Likewise.
14302
14303 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14304
14305         PR tree-optimization/47140
14306         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14307         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14308         to bit_value_binop.
14309
14310         PR rtl-optimization/47028
14311         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14312         parm_birth_insn instead of at the beginning of first bb.
14313
14314 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14315
14316         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14317         Remove the word "see" before "@pxref".
14318         * doc/rtl.texi: Remove the word "see" before "@pxref".
14319
14320 2011-01-01  Jan Hubicka  <jh@suse.cz>
14321
14322         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14323         memory.
14324
14325 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14326
14327         PR target/38662
14328         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14329
14330 \f
14331 Copyright (C) 2011 Free Software Foundation, Inc.
14332
14333 Copying and distribution of this file, with or without modification,
14334 are permitted in any medium without royalty provided the copyright
14335 notice and this notice are preserved.