Fix condition in doloop_register_get
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-05-16  Revital Eres  <revital.eres@linaro.org>
2
3         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P
4         first.
5
6 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
7
8         * config/i386/i386.md (floating point move splitters): Fix
9         usage of standard_80387_constant_p.
10         (ix86_preferred_reload_class): Ditto.
11
12 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
13
14         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
15
16 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
17
18         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
19         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
20         (tree_ssa_lim_finalize): Likewise.
21
22 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
23
24         * config/i386/constraint.md (Yd, Yx): New register constraints.
25         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
26         Yd conditional register constraint.
27         (*movtf_internal): Use standard_sse_constant_opcode.
28         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
29         Yx conditional register constraint.
30         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
31         Yd conditional register constraint.  Use standard_sse_constant_p to
32         check for valid SSE constants and call standard_sse_constant_opcode to
33         output SSE insn.
34         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
35         constants and call standard_sse_constant_opcode to output SSE insn.
36         * config/i386/i386.c (ix86_option_ovverride_internal): Set
37         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
38         optimize_size is set.
39         (standard_sse_constant_opcode): Output conditional AVX insn templates.
40
41 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
42
43         * config/i386/constraint.md (Yd, Yx): New register constraints.
44         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
45         Yd conditional register constraint.
46         (*movtf_internal): Use standard_sse_constant_opcode.
47         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
48         Yx conditional register constraint.
49         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
50         Yd conditional register constraint.  Use standard_sse_constant_p to
51         check for valid SSE constants and call standard_sse_constant_opcode to
52         output SSE insn.
53         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
54         constants and call standard_sse_constant_opcode to output SSE insn.
55         * config/i386/i386.c (ix86_option_ovverride_internal): Set
56         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
57         optimize_size is set.
58         (standard_sse_constant_opcode): Output conditional AVX insn templates.
59
60 2011-05-14  Tobias Burnus  <burnus@net-b.de>
61
62         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
63
64 2011-05-13  Martin Jambor  <mjambor@suse.cz>
65
66         * ipa-prop.c (ipa_cst_from_jfunc): New function.
67         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
68         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
69         (evaluate_conditions_for_ipcp_clone): Removed.
70         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
71         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
72         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
73
74 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
75
76         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
77         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
78         lieu of MAY_HAVE_DEBUG_STMTS.
79         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
80         debug statements if !MAY_HAVE_DEBUG_STMTS.
81
82 2011-05-13  Martin Thuresson  <martint@google.com>
83
84         PR gcov-profile/47793
85         * libgcov.c (gcov_exit): Support relative profile paths.
86         * doc/invoke.texi (-fprofile-dir): Update for above change.
87
88 2011-05-13  Richard Guenther  <rguenther@suse.de>
89
90         * gimple.c (gimple_canonical_types_compatible_p): Do not use
91         type-pair caching, do not compare hashes.
92
93 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
94
95         PR middle-end/48965
96         * tree-cfg.c (edge_to_cases_cleanup): Return true.
97         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
98
99 2011-05-13  Kai Tietz  <ktietz@redhat.com>
100
101         * gimplify.c (gimplify_expr): Make sure operand is boolified.
102         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
103         compatible type for TRUTH_NOT_EXPR.
104
105 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
106
107         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
108         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
109         can_create_pseudo_p ().
110
111 2011-05-13  Richard Guenther  <rguenther@suse.de>
112
113         PR lto/48978
114         * gimple.c (iterative_hash_gimple_type): Revert change in
115         pointer target and function result and argument hashing.
116
117 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
118
119         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
120         (*movxf_internal_nointeger): Ditto.
121         (*movdf_internal_rex64): Ditto.
122         (*movdf_internal): Ditto.
123         (*movdf_internal_nointeger): Ditto.
124         (*movsf_internal): Ditto.
125         (sincos splitters): Use can_create_pseudo ().
126
127 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
128
129         * config/i386/i386-opts.h: New.
130         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
131         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
132         ix86_section_threshold): Remove.
133         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
134         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
135         OPT_mbranch_cost_.
136         (ix86_option_override_internal): Don't decode strings for options
137         other than -march=, -mtune= and -mfpmath=.  Don't allow for
138         __attribute__ uses in remaining diagnostics for options with
139         string arguments.  Don't check for integer arguments being negative.
140         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
141         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
142         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
143         ix86_branch_cost, ix86_section_threshold): Remove.
144         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
145         HeaderInclude.
146         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
147         but not Var.
148         (masm=): Use Enum and Init.
149         (asm_dialect): New Enum and EnumValue entries.
150         (mbranch-cost=): Use UInteger.
151         (mlarge-data-threshold=): Use UInteger and Init.
152         (mcmodel=): Use Enum and Init.
153         (cmodel): New Enum and EnumValue entries.
154         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
155         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
156         mregparm=): Use UInteger.
157         (mstringop-strategy=): Use Enum and Init.
158         (stringop_alg): New Enum and EnumValue entries.
159         (mtls-dialect=): Use Enum and Init.
160         (tls_dialect): New Enum and EnumValue entries.
161         (mabi=): Use Enum and Init.
162         (calling_abi): New Enum and EnumValue entries.
163         (mveclibabi=): Use Enum and Init.
164         (ix86_veclibabi): New Enum and EnumValue entries.
165
166 2011-05-13  Nick Clifton  <nickc@redhat.com>
167
168         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
169         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
170
171 2011-05-13  Kai Tietz  <ktietz@redhat.com>
172
173         PR middle-end/48984
174         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
175         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
176         (gimple_boolify): Check for cast for boolean_type_node instead for
177         BOOLEAN_TYPE.
178
179 2011-05-13  Richard Guenther  <rguenther@suse.de>
180
181         PR tree-optimization/48172
182         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
183         multiplying by number of iterations for equal step.
184         (vect_create_cond_for_alias_checks): Likewise.
185
186 2011-05-13  Andreas Schwab  <schwab@redhat.com>
187
188         * configure.ac: Use AS_HELP_STRING throughout.
189         * configure: Regenerate.
190
191 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
192
193         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
194         (ix86_emit_restore_regs_using_mov): Likewise.
195         (ix86_emit_restore_sse_regs_using_mov): Likewise.
196
197 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
198
199         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
200         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
201         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
202         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
203         RTX_OK_FOR_OLO10_P): ...here.
204         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
205         SYMBOLIC_CONST.
206
207 2011-05-12  Kai Tietz  <ktietz@redhat.com>
208
209         * gimplify.c (gimple_boolify): Re-boolify expression
210         arguments even if expression type is of kind BOOLEAN_TYPE.
211         (gimplify_boolean_expr): Removed.
212         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
213         and XOR. Additional take care that we keep expression's type.
214         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
215         of TRUTH_AND|OR|XOR_EXPR.
216
217 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
218
219         PR tree-optimization/48975
220         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
221         on all bbs here and free and clear ifc_bbs at the end.
222
223 2011-05-12  Richard Guenther  <rguenther@suse.de>
224
225         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
226         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
227         until after simple checks.
228         (gimple_types_compatible_p): Likewise.
229         (iterative_hash_gimple_type): Always hash pointer targets
230         and function return and argument types.
231         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
232         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
233         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
234         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
235         completely in the simple compare section.
236         (gimple_register_canonical_type): Query the cache again after
237         registering.
238
239 2011-05-12  Richard Guenther  <rguenther@suse.de>
240
241         PR tree-optimization/48172
242         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
243         the number of iterations from the segment size calculation.
244         (vect_create_cond_for_alias_checks): Adjust.
245
246 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
247
248         PR debug/48967
249         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
250         if validate_subreg fails.
251
252 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
253
254         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
255         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
256         early.
257
258 2011-05-12  DJ Delorie  <dj@redhat.com>
259
260         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
261         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
262         created builtin into rx_builtins array.
263         (rx_builtin_decl): New function.
264         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
265
266 2011-05-12  DJ Delorie  <dj@redhat.com>
267             Nick Clifton  <nickc@redhat.com>
268
269         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
270         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
271         (rx_is_legitimate_address): Add pre-decrement and post-increment
272         addressing in HImode and QImode.  Fix test for out of range
273         REG+INT addressing.
274         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
275         (rx_align_for_label): Test label before extracting its usage count.
276         (rx_adjust_insn_lengths): Fix selection of insn codes.
277         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
278
279 2011-05-11  Jason Merrill  <jason@redhat.com>
280
281         * tree.c (type_hash_canon): Use struct tree_type_non_common.
282
283 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
284
285         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
286         reindent the subsequent block.
287
288 2011-05-11  Satoru Takabayashi  <satorux@google.com>
289             Paul Pluzhnikov  <ppluzhnikov@google.com>
290
291         * doc/install.texi (Configuration): Document --with-linker-hash-style.
292         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
293         * config.in: Add LINKER_HASH_STYLE.
294         * configure.ac: Add --with-linker-hash-style.
295         * configure: Regenerate.
296
297 2011-05-11  Richard Guenther  <rguenther@suse.de>
298
299         PR middle-end/48964
300         * gimple.c (iterative_hash_canonical_type): Fix typo.
301
302 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
303
304         * config/i386/i386.c (legitimize_tls_address)
305         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
306         expanders directly for TARGET_GNU2_TLS.  Determine pic and
307         __tls_get_addr symbol reference here.  Update call to
308         gen_tls_global_dynamic_{32,64} for added arguments.
309         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
310         expanders directly for TARGET_GNU2_TLS.  Determine
311         __tls_get_addr symbol reference here.  Update call to
312         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
313         unique UNSPEC REG_EQUIV to libcall block.
314         (ix86_tls_get_addr): Declare static.
315         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
316         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
317         Do not determine pic and __tls_get_addr symbol reference here. Do not
318         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
319         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
320         (tls_global_dynamic_64): Add operand 2.  Do not determine
321         __tls_get_addr symbol reference here.  Do not call
322         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
323         (tls_local_dynamic_base64): Ditto for operand 1.
324
325 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
326
327         * function.c (expand_function_start): Initialize stack_check_probe_note
328         only if the generic stack checking mechanism is used.
329
330 2011-05-11  Richard Guenther  <rguenther@suse.de>
331
332         PR tree-optimization/15256
333         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
334         (A & B) | C, combine (A op CST1) op CST2.
335         (tree_ssa_forward_propagate_single_use_vars): Only bother to
336         visit assigns that have uses.
337
338 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
339
340         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
341         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
342         (unpack_ts_type_common_value_fields): ...this.  Update comment.
343         (unpack_value_fields): Adjust for renaming.
344         (lto_input_ts_type_tree_pointers): Split into...
345         (lto_input_ts_type_common_tree_pointer): ...this and...
346         (lto_input_ts_type_non_common_tree_pointers): ...this.
347         (lto_input_tree_pointers): Adjust for above split.
348         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
349         (pack_ts_type_common_value_fields): ...this.  Update comment.
350         (lto_output_ts_type_tree_pointers): Split into...
351         (lto_output_ts_type_common_tree_pointers): ...this and...
352         (lto_output_ts_type_non_common_tree_pointers): ...this.
353         (lto_output_tree_pointers): Adjust for above split.
354         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
355         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
356         * stor-layout.c (vector_type_mode): Adjust location of mode field.
357         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
358         Define.
359         (struct tree_type): Split into...
360         (struct tree_type_common: ...this and...
361         (struct tree_type_with_lang_specific): ...this and...
362         (struct tree_type_non_common): ...this.  Adjust accessor macros
363         accordingly.
364         (TYPE_VALUES_RAW): Define.
365         (union tree_node): Update for above changes.
366         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
367         TS_TYPE_NON_COMMON.
368         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
369         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
370         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
371         * treestructu.def (TS_TYPE): Remove.
372         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
373         Define.
374
375 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
376
377         PR debug/48159
378         * tree-ssa.c (reset_debug_uses): New function.
379         * tree-flow.h (reset_debug_uses): New prototype.
380         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
381         * tree-loop-distribution.c (generate_loops_for_partition): Call
382         reset_debug_uses on the stmts that will be removed.  Keep around
383         all debug stmts, don't count them as bits in partition bitmap.
384         (generate_builtin): Don't count debug stmts or labels as bits in
385         partition bitmap.
386
387 2011-05-11  Richard Guenther  <rguenther@suse.de>
388
389         * gimple.c (gimple_type_hash_1): Merge with ...
390         (gimple_type_hash): ... this.
391         (gtc_visit): Remove mode parameter and simplify accordingly.
392         (gimple_types_compatible_p_1): Likewise.
393         (gimple_types_compatible_p): Likewise.
394         (iterative_hash_gimple_type): Likewise.
395         (visit): Likewise.
396         (gimple_type_eq): Adjust.
397
398 2011-05-11  Revital Eres  <revital.eres@linaro.org>
399
400         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
401         enters the branch create an anti edge in the opposite direction
402         to prevent the creation of reg-moves.
403         * modulo-sched.c: Adjust comment to reflect the fact we are
404         scheduling closing branch.
405         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
406         (stage_count): New field in struct partial_schedule.
407         (calculate_stage_count): New function.
408         (normalize_sched_times): Rename to reset_sched_times and handle
409         incrementing the sched time of the nodes by a constant value
410         passed as parameter.
411         (duplicate_insns_of_cycles): Skip closing branch.
412         (sms_schedule_by_order): Schedule closing branch.
413         (ps_insn_find_column): Handle closing branch.
414         (sms_schedule): Call reset_sched_times and adjust the code to
415         support scheduling of the closing branch.
416         (ps_insert_empty_row): Update calls to normalize_sched_times
417         and rotate_partial_schedule functions.
418
419 2011-05-11  Richard Guenther  <rguenther@suse.de>
420
421         PR middle-end/48953
422         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
423
424 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
425
426         * opts.c (finish_options): Move warning settings from process_options.
427         * toplev.c (process_options): Move warning settings to finish_options.
428
429 2011-05-11  Richard Guenther  <rguenther@suse.de>
430
431         PR tree-optimization/18041
432         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
433         (simplify_bitwise_binary): ... this.  Handle operand conversions
434         by applying them to the result instead.
435         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
436
437 2011-05-11  Richard Guenther  <rguenther@suse.de>
438
439         * gimple.c (gimple_canonical_types_compatible_p): Split out
440         from gimple_types_compatible_p and friends.  Do not recurse
441         to pointed-to types.
442         (gimple_canonical_type_eq): Use it.
443         (iterative_hash_canonical_type): Split out from
444         iterative_hash_gimple_type and friends.  Do not recurse
445         to pointed-to types.
446         (gimple_canonical_type_hash): Use it, allocate the hash here.
447
448 2011-05-11  Revital Eres  <revital.eres@linaro.org>
449
450         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
451         recognizing doloop.
452
453 2011-05-11  Revital Eres  <revital.eres@linaro.org>
454
455         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
456         instead of PREV_INSN.
457
458 2011-05-11  Revital Eres  <revital.eres@linaro.org>
459
460         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
461         * loop-doloop.c (doloop_condition_get): Likewise.
462         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
463         (doloop_end): New.
464         * config/arm/arm.md (*addsi3_compare0): Remove "*".
465
466 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
467
468         * tree.def (CASE_LABEL_EXPR): Add an operand.
469         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
470
471 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
472
473         * c-decl.c (c_override_global_bindings_to_false): Remove.
474         (global_bindings_p): Don't check
475         c_override_global_bindings_to_false.
476         * c-tree.h (c_override_global_bindings_to_false): Remove.
477         * c-typeck.c (composite_type): Don't set
478         c_override_global_bindings_to_false.
479
480 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
481
482         PR target/48857, 48495
483         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
484         (VSX_MODE): Ditto.
485         (VSX_MOVE_MODE): Ditto.
486         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
487         VSX vector types.  Add V2DImode.
488         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
489         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
490         (MODES_TIEABLE_P): Ditto.
491
492         * config/rs6000/rs6000.c (rs6000_emit_move): Use
493         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
494         VSX_VECTOR_MODE.
495         (init_cumulative_args): Ditto.
496         (rs6000_function_arg_boundary): Ditto.
497         (rs6000_function_arg_advance_1): Ditto.
498         (rs6000_function_arg): Ditto.
499         (rs6000_function_ok_for_sibcall): Ditto.
500         (emit_frame_save): Ditto.
501         (rs6000_function_value): Ditto.
502         (rs6000_libcall_value): Ditto.
503
504 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
505
506         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
507         i386/darwin-lib.h to $libgcc_tm_file.
508         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
509
510 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
511
512         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
513
514 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
515
516         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
517         * config/rs6000/rs6000-tables.opt: New file (generated).
518         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
519         rs6000/rs6000-tables.opt to extra_options.
520         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
521         * config/rs6000/rs6000.c (rs6000_select): Remove.
522         (processor_target_table): Move contents to rs6000-cpus.def.
523         (darwin_rs6000_override_options): Check
524         global_options_set.x_rs6000_cpu_index instead of
525         rs6000_select[1].string.
526         (rs6000_option_override_internal): Likewise.
527         (rs6000_handle_option): Don't assert that global structures are in
528         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
529         (rs6000_default_cpu): New variable.
530         (rs6000_file_start): Set it instead of local default_cpu.  Check
531         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
532         global_options_set.x_rs6000_tune_index instead of rs6000_select.
533         (rs6000_darwin_file_start): Check rs6000_default_cpu and
534         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
535         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
536         rs6000_select): Remove.
537         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
538         Remove.
539         (mcpu=, mtune=): Use Var, Init, Enum and Save.
540         * config/rs6000/t-rs6000
541         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
542         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
543         global_options_set.x_rs6000_cpu_index instead of
544         rs6000_select[1].string.
545         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
546         global_options_set.x_rs6000_cpu_index instead of
547         rs6000_select[1].string.
548
549 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
550
551         * config.gcc (libgcc_tm_file): Define instead of including files
552         from ../../libgcc/config/ in tm_file.
553         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
554         * configure: Regenerate.
555         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
556         libgcc_tm.h, cs-libgcc_tm.h): New.
557         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
558         (clean): Remove libgcc_tm.h.
559         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
560         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
561         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
562
563 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
564
565         PR target/48896
566         * config/avr/avr.c (avr_ret_register): Return unsigned int
567         instead of int.
568         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
569         it to avr_libcall_value.
570         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
571         expand_expr.
572         (avr_expand_binop_builtin): Ditto.
573         (avr_expand_unop_builtin): Ditto.
574
575 2011-05-10  DJ Delorie  <dj@redhat.com>
576
577         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
578         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
579         * config/rx/rx.c (rx_align_for_label): Add label and
580         uses_threshold parameters.  Do not align when the label is not
581         used enough.
582         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
583
584 2011-05-10  Richard Guenther  <rguenther@suse.de>
585
586         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
587         a series of conversions and apply foldings similar to what
588         fold-const does.
589         (tree_ssa_forward_propagate_single_use_vars): Call it.
590
591 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
592
593         PR tree-optimization/48611
594         PR tree-optimization/48794
595         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
596         referenced from RESX or EH_DISPATCH arguments.
597
598         PR debug/48928
599         * dfp.c (decimal_to_decnumber): Handle conversion from
600         dconst{1,2,m1,half}.
601
602 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
603
604         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
605         for !flag_prefer_avx128.
606         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
607
608 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
609
610         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
611         (fold_ternary_loc): Use expr_location_or.
612
613 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
614
615         PR debug/48853
616         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
617         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
618         Pmode and mem_mode is not VOIDmode.
619
620 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
621
622         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
623         TYPE_QUAL_RESTRICT): Convert to enum.
624
625 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
626
627         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
628         (const_pow2_1_to_8_operand): Ditto.
629         (const_pow2_1_to_128_operand): Ditto.
630         (const_pow2_1_to_32768_operand): Ditto.
631         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
632         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
633         in insn constraint to check integer value of operand 3.
634         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
635
636         (PINSR_MODE): New mode iterator.
637         (sse2p4_1): New mode attribute.
638         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
639         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
640         iterator.  Use const_int_operand instead of
641         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
642         exact_log2 in insn constraint to check integer value of operand 3.
643
644 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
645
646         * config/i386/sse.md (blendbits): Remove mode attribute.
647         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
648         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
649         Check integer value of operand 3 in insn constraint.
650
651 2011-05-09  Richard Guenther  <rguenther@suse.de>
652
653         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
654         for diagnostics.
655         (lto_symtab_merge): Likewise.  Do not register types here.
656         (lto_symtab_merge_decls_2): Likewise.
657         (lto_symtab_merge_decls_1): Likewise.
658         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
659         * gimple.c (enum gtc_mode): Declare.
660         (gimple_types_compatible_p): Make static.
661
662 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
663
664         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
665         temporary register to match Pmode.
666
667 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
668
669         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
670         and *vec_concatv4si_1_avx.
671
672 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
673
674         PR rtl-optimization/48927
675         * ira-conflicts.c (commutative_constraint_p): Use
676         recog_data.alternative_enabled_p to disable alternatives where
677         "enabled" attribute is false.
678         (get_dup_num): Ditto.
679         * ira-lives.c (single_reg_class): Ditto.
680         (ira_implicitly_set_insn_hard_regs): Ditto.
681
682 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
683
684         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
685         (dataflow_set_preserve_mem_locs): Likewise.
686
687 2011-05-09  Philipp Thomas  <pth@suse.de>
688
689         * config/mep/mep.c (mep_validate_vliw): Syntax description
690         should not be translated.
691
692 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
693
694         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
695         * config/mips/mips-tables.opt: New file (generated).
696         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
697         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
698         MIPS_ARCH_OPTION_NATIVE): Define.
699         * config/mips/mips.c (mips_cpu_info_table): Move contents to
700         mips-cpus.def.
701         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
702         mips_parse_cpu): Remove.
703         (mips_cpu_info_from_opt, mips_default_arch): New.
704         (mips_handle_option): Don't assert that global structures are in
705         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
706         (mips_option_override): Use new variables and functions to set
707         state of these options.  Use strcmp to check for individual CPU names.
708         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
709         definition.
710         * config/mips/mips.opt (march=): Use ToLower and Enum.
711         (mips): Use ToLower, Enum and Var.
712         (mtune=): Use ToLower and Enum.
713         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
714
715 2011-05-08  Jan Hubicka  <jh@suse.cz>
716
717         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
718         Arrange type pairs to be UID ordered.
719         (gimple_lookup_type_leader): Make inline.
720
721 2011-05-09  Nick Clifton  <nickc@redhat.com>
722
723         PR target/48899
724         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
725         PROCESSOR_DEFAULT.
726
727         PR target/48897
728         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
729         variable 's'.
730
731 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
732
733         * combine.c (simplify_comparison): Abstract out parts into...
734         (simplify_compare_const): ... new function.
735         (try_combine): Generalize parallel arithmetic/compare combining
736         to call simplify_compare_const() and CANONICALIZE_COMPARE().
737
738 2011-05-08  Jan Hubicka  <jh@suse.cz>
739
740         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
741         (cgraph_create_virtual_clone): Call hooks once virtual clone
742         is finished.
743         * cgraph.h (cgraph_clone_node): Update prototype.
744         * ipa-cp.c (ipcp_estimate_growth): Use
745         estimate_ipcp_clone_size_and_time.
746         * ipa-inline-transform.c (clone_inlined_nodes): Update.
747         * lto-cgraph.c (input_node): Update.
748         * ipa-inline.c (recursive_inlining): Update.
749         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
750         (evaluate_conditions_for_known_args): Break out from ...
751         (evaluate_conditions_for_edge): ... here.
752         (evaluate_conditions_for_ipcp_clone): New function.
753         (inline_node_duplication_hook): Update clone summary based
754         on parameter map.
755         (estimate_callee_size_and_time): Rename to ...
756         (estimate_node_size_and_time): take NODE instead of EDGE;
757         take POSSIBLE_TRUTHS as argument.
758         (estimate_callee_size_and_time): Update.
759         (estimate_ipcp_clone_size_and_time): New function.
760         (do_estimate_edge_time): Update.
761
762 2011-05-08  Richard Guenther  <rguenther@suse.de>
763
764         PR middle-end/48908
765         PR middle-end/48905
766         * expmed.c (expand_shift_1): Compute adjusted constant shift
767         amount manually.
768
769 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
770
771         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
772
773 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
774
775         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
776
777 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
778
779         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
780
781 2011-05-07  Jan Hubicka  <jh@suse.cz>
782
783         * ipa-inline-transform.c (inline_call): Account when program size
784         decreases.
785         * ipa-inline.c (relative_time_benefit): New function.
786         (edge_badness): Reorganize to be power 2 based; fix thinko when
787         computing badness for negative growth; update comments to match
788         reality; better dumps.
789
790 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
791
792         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
793         type to bool and adjust comment.
794         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
795         (fold_mathfn_compare): Remove calls to global_bindings_p.
796         (fold_inf_compare): Likewise.
797         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
798         * c-tree.h (global_bindings_p): Adjust prototype.
799         * c-decl.c (global_bindings_p): Return bool and simplify.
800
801 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
802
803         PR tree-optimization/48837
804         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
805         when accumulator transformation is performed.
806
807 2011-05-06  Jan Hubicka  <jh@suse.cz>
808
809         * i386.h (ix86_tune_indices): Add
810         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
811         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
812         * i386.c (initial_ix86_tune_features): Add
813         X86_SOFTARE_PREFETCHING_BENEFICIAL.
814         (software_prefetching_beneficial_p): Remove predicate.
815         (ix86_option_override_internal): Use new macro.
816
817 2011-05-06  Jan Hubicka  <jh@suse.cz>
818
819         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
820
821 2011-05-06  Jan Hubicka  <jh@suse.cz>
822
823         * cgraph.c (cgraph_add_thunk): Create real function node instead
824         of alias node; finalize it and mark needed/reachale; arrange visibility
825         to be right and add it into the corresponding same comdat group list.
826         (dump_cgraph_node): Dump thunks.
827         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
828         cgraph_function_with_gimple_body_p,
829         cgraph_first_function_with_gimple_body,
830         cgraph_next_function_with_gimple_body): New functions.
831         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
832         New macros.
833         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
834         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
835         * cgraphunit.c (cgraph_finalize_function): Only look into possible
836         devirtualization when optimizing.
837         (verify_cgraph_node): Verify thunks.
838         (cgraph_analyze_function): Analyze thunks.
839         (cgraph_mark_functions_to_output): Output thunks only in combination
840         with function they are assigned to.
841         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
842         alias into normal node.
843         (assemble_thunks): New functoin.
844         (cgraph_expand_function): Use it.
845         * lto-cgraph.c (lto_output_node): Stream thunks.
846         (input_overwrite_node): Stream in thunks.
847         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
848         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
849         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
850         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
851         (inline_analyze_function): Do not care about thunk jump functions.
852         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
853         * ipa-prop.c (ipa_prop_write_jump_functions): Use
854         cgraph_function_with_gimple_body_p.
855         * passes.c (do_per_function_toporder): Use
856         cgraph_function_with_gimple_body_p.
857         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
858         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
859         (function_called_by_processed_nodes_p): Likewise.
860
861 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
862
863         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
864         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
865         entries.
866         (mabi=): Replace with separate entries for mabi=altivec,
867         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
868         mabi=ieeelongdouble and mabi=ibmlongdouble.
869         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
870         check for -mabi=spe without SPE ABI support here.
871         (rs6000_handle_option): Replace OPT_mabi_ handling with
872         OPT_mabi_altivec and OPT_mabi_spe handling.
873
874 2011-05-06  Cary Coutant  <ccoutant@google.com>
875
876         * dwarf2out.c (contains_subprogram_definition): New function.
877         (should_move_die_to_comdat): Call it.
878
879 2011-05-06  Jeff Law  <law@redhat.com>
880
881         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
882         remove_ctrl_stmt_and_useless_edges.
883         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
884         (fixup_template_block, thread_single_edge): Likewise.
885         (mark_threaded_blocks): Use THREAD_TARGET.
886
887 2011-05-06  Alan Modra  <amodra@gmail.com>
888
889         PR target/48900
890         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
891         const0_rtx as the arg to the dummy __tls_get_addr libcall.
892
893 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
894
895         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
896         constraint modifier to "r".
897
898 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
899
900         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
901         fall through for OPT_mcmodel_.
902
903 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
904
905         * config/s390/s390.c (s390_asm_trampoline_template): Comment
906         instruction sizes.
907         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
908
909 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
910
911         PR target/47930
912         * config/arm/arm.opt (marm): Document it.
913         (mthumb): Reject negative variant.
914
915 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
916
917         PR target/48898
918         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
919         Fix typo in "ccvt" variable name.
920
921 2011-05-06  Tristan Gingold  <gingold@adacore.com>
922
923         PR target/48895
924         * config/vms/vms-ar.c (main): Remove cwd variable.
925
926 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
927
928         PR debug/48902
929         * var-tracking.c (prepare_call_arguments): Move else before #endif.
930
931 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
932
933         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
934         * gimplify.c (gimplify_switch_expr): Likewise.
935         * omp-low.c (expand_omp_sections): Likewise.
936         * tree-eh.c (lower_try_finally_switch): Likewise.
937         (lower_eh_dispatch): Likewise.
938         * tree.h (build_case_label): Declare.
939         * tree.c (build_case_label): Define.
940
941 2011-05-05  Jason Merrill  <jason@redhat.com>
942
943         PR c++/40975
944         * tree-inline.c (copy_tree_r): Use copy_statement_list.
945         (copy_statement_list): Don't recurse.
946         * stor-layout.c (copy_self_referential_tree_r): Don't allow
947         STATEMENT_LIST.
948
949 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
950
951         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
952         through from -mfpu= handling.
953         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
954
955 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
956
957         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
958         POST_MODIFY.
959
960 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
961
962         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
963         for 11.31.
964         (hppa[12]*-*-hpux11*): Ditto.
965         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
966         * config/ia64/hpux-unix2003.h: New.
967         * config/pa/pa-hpux1131.opt: New.
968         * config/pa/pa-hpux1131.h: New.
969         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
970         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
971         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
972
973 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
974
975         PR debug/48853
976         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
977         instead of mode as 3rd argument to recursive call.
978         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
979         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
980         VOIDmode.
981         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
982         don't give up if mode is Pmode and mem_mode is not VOIDmode.
983         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
984         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
985
986 2011-05-05  Julian Brown  <julian@codesourcery.com>
987
988         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
989         parenthesis in D-register case.
990
991 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
992
993         * opt-functions.awk (var_type_struct): Handle Enum options.
994         * optc-gen.awk: Don't check range of variables of character type.
995         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
996         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
997         rs6000_sdata_name, rs6000_explicit_options): Remove.
998         (rs6000_option_override_internal): Check for -malign-power here.
999         Use global_options_set instead of rs6000_explicit_options.
1000         (rs6000_parse_fpu_option): Remove.
1001         (rs6000_handle_option): Access variables via opts and opts_set
1002         pointers.  Use error_at and warning_at.  Add fall-through
1003         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1004         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1005         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1006         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1007         here.  Don't use rs6000_parse_fpu_option.
1008         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1009         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1010         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1011         (mrecip=): Use Var.
1012         (mspe): Use Var and Save.
1013         (mtraceback=): Use Enum and Var.
1014         (rs6000_traceback_type): New Enum and EnumValue entries.
1015         (mfloat-gprs=): Use Enum, Var and Save.
1016         (rs6000_float_gprs): New Enum and EnumValue entries.
1017         (mlong-double-): use Var and Save.
1018         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1019         (malign-): Use Enum and Var.
1020         (rs6000_alignment_flags): New Enum and EnumValue entries.
1021         (mfpu=): Use Enum.
1022         (fpu_type_t): New Enum and EnumValue entries.
1023         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1024         global_options_set instead of rs6000_explicit_options.
1025         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1026         global_options_set instead of rs6000_explicit_options.
1027         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1028         global_options_set instead of rs6000_explicit_options.
1029         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1030         global_options_set instead of rs6000_explicit_options.
1031         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1032         global_options_set instead of rs6000_explicit_options.
1033         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1034         global_options_set instead of rs6000_explicit_options.
1035         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1036         definition.
1037         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1038         global_options_set instead of rs6000_explicit_options.
1039         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1040         (rs6000_cmodel): New Enum and EnumValue entries.
1041         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1042         global_options_set instead of rs6000_explicit_options.
1043         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1044         (mtls-size=): Use Enum and Var.
1045         (rs6000_tls_size): New Enum and EnumValue entries.
1046
1047 2011-05-05  Michael Matz  <matz@suse.de>
1048
1049         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1050         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1051         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1052         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1053         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1054         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1055         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1056         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1057         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1058         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1059         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1060         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1061         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1062         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1063         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1064         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1065
1066 2011-05-05  Richard Guenther  <rguenther@suse.de>
1067
1068         * expmed.c (expand_variable_shift): Rename to ...
1069         (expand_shift_1): ... this.  Take an expanded shift amount.
1070         For rotates recurse directly not building trees for the shift amount.
1071         (expand_variable_shift): Wrap around expand_shift_1.
1072         (expand_shift): Adjust.
1073
1074 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1075
1076         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1077
1078 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1079
1080         * tree.h (get_pending_sizes): Remove prototype.
1081         (put_pending_size): Likewise.
1082         (put_pending_sizes): Likewise.
1083         * stor-layout.c (pending_sizes): Delete.
1084         (get_pending_sizes): Likewise.
1085         (put_pending_size): Likewise.
1086         (put_pending_sizes): Likewise.
1087         (variable_size): Do not call put_pending_size and tidy up.
1088         * function.h (struct function): Remove dont_save_pending_sizes_p.
1089         * lto-streamer-in.c (input_function): Do not stream it.
1090         * lto-streamer-out.c (output_function): Likewise.
1091         * tree-inline.c (initialize_cfun): Do not copy it.
1092         * c-decl.c (store_parm_decls): Do not set it.
1093         * omp-low.c (create_task_copyfn): Likewise.
1094         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1095
1096 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1097
1098         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1099         conditions.
1100         (*movdf_internal): Ditto.
1101         (*movdf_internal_nointeger): Ditto.
1102         (*movsf_internal): Ditto.
1103
1104 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1105
1106         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1107         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1108         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1109         (c_variable_size): Remove.
1110         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1111         call put_pending_sizes.
1112         (get_parm_info): Add parameter expr.  Use it to set
1113         arg_info->pending_sizes.
1114         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1115         get_pending_sizes.
1116         * c-parser.c (c_parser_parms_declarator): Update call to
1117         c_parser_parms_list_declarator.
1118         (c_parser_parms_list_declarator): Take parameter expr.  Update
1119         call to push_parm_decl.  Update recursive call.  Don't call
1120         get_pending_sizes.  Update calls to get_parm_info.
1121         (c_parser_objc_method_definition): Update calls to
1122         c_parser_objc_method_decl and objc_start_method_definition.
1123         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1124         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1125         grokparm.
1126         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1127         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1128         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1129
1130 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1131
1132         PR pch/45979
1133         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1134         __ARM_EABI__ hosts.
1135
1136 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1137
1138         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1139         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1140         (spu_output_mi_thunk): New function.
1141
1142 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1143
1144         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1145         targetm.asm_out.print_operand.
1146         * config/sol2.c: Include target.h.
1147
1148 2011-05-04  Jan Hubicka  <jh@suse.cz>
1149
1150         * ipa-inline.c (reset_edge_caches): New function.
1151         (update_caller_keys): Add check_inlinablity_for; do not
1152         reset edge caches; remove now unnecesary loop.
1153         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1154         (update_all_callee_keys): Likewise.
1155         (inline_small_functions): Sanity check cache; update code
1156         recomputing it.
1157
1158 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1159
1160         PR rtl-optimization/47612
1161         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1162         as the last insn of the sequence to be moved.
1163
1164 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1165
1166         PR fortran/48864
1167         * doc/invoke.texi (Ofast): Document that it
1168         enables Fortran's -fno-protect-parens.
1169
1170 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1171
1172         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1173
1174 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1175
1176         * stor-layout.c (variable_size): Do not issue errors.
1177
1178 2011-05-04  Richard Guenther  <rguenther@suse.de>
1179
1180         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1181         for array-ref indices.
1182         (tree_coverage_counter_addr): Likewise.
1183         (build_fn_info_type): Use size_int for index types.
1184         (build_gcov_info): Likewise.
1185
1186 2011-05-04  Richard Guenther  <rguenther@suse.de>
1187
1188         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1189         to build_int_cst.
1190         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1191         for constructor indices.
1192         (push_init_level): Likewise.
1193
1194 2011-05-04  Richard Guenther  <rguenther@suse.de>
1195
1196         * explow.c (promote_mode): Move variable declarations before code.
1197
1198 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1199
1200         * tree.h (build_function_type_array): Declare.
1201         (build_varargs_function_type_array): Declare.
1202         (build_function_type_vec, build_varargs_function_type_vec): Define.
1203         * tree.c (build_function_type_array_1): New function.
1204         (build_function_type_array): New function.
1205         (build_varargs_function_type_array): New function.
1206
1207 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1208
1209         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1210         before setting STMT_VINFO_TYPE.
1211
1212 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1213
1214         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1215         instead of spu_pass_by_reference.
1216
1217 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1218
1219         * calls.c (emit_library_call_value_1): Invoke
1220         promote_function_mode hook on libcall arguments.
1221         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1222         argument being NULL.
1223         * targhooks.c (default_promote_function_mode): Lisewise.
1224         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1225         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1226
1227         * doc/tm.texi: Document that TYPE argument might be NULL.
1228
1229 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1230
1231         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1232
1233 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1234
1235         From Bernd Schmidt
1236         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1237
1238 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1239
1240         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1241         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1242         Move ...
1243         * mips-tfile.c: ... here.
1244         Don't include coretypes.h, tm.h, filenames.h.
1245         (saber_stop): Remove definition and all calls.
1246         [__SABER__]: Remove.
1247         (__LINE__): Remove default.
1248         (Size_t, Ptrdiff_t): Remove definitions.
1249         Replace by size_t, ptrdiff_t.
1250         [!MIPS_DEBUGGING_INFO]: Remove.
1251         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1252         (progname): Add const.
1253         (STATIC): Remove.
1254         Replace all uses by static.
1255         (ALIGN_SYMTABLE_OFFSET): Remove default.
1256         * mips-tdump.c: Don't include coretypes.h, tm.h.
1257         Remove !MIPS_IS_STAB guard.
1258         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1259         $(TM_H), filenames.h dependencies.
1260         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1261
1262 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1263
1264         From Jie Zhang
1265         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1266         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1267
1268 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1269
1270         From Bernd Schmidt
1271         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1272         account and save/restore RETS.
1273         (PROFILE_BEFORE_PROLOGUE): Define.
1274         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1275         the push insn to use predecrement.
1276
1277 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1278
1279         From Jie Zhang
1280         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1281
1282 2011-05-04  Nick Clifton  <nickc@redhat.com>
1283
1284         * config/mn10300/mn10300.c: Include cfgloop.h.
1285         (DUMP): New macro.
1286         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1287         Lcc or a FLcc insn into the instruction stream.
1288         (mn10300_block_contains_call): New function.  Returns true if the
1289         given basic block contains a CALL insn.
1290         (mn10300_loop_contains_call_insn): New function.  Returns true if
1291         the given loop contains a CALL insn.
1292         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1293         to use the SETLB and Lcc or FLcc insns.
1294         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1295         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1296         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1297         disable the SETLB optimization.
1298         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1299         __SETLB__ or __NO_SETLB__.
1300         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1301         (movsf_internal): Handle MDR register.
1302         (cmpsi): Make visible.
1303         (setlb): New pattern.
1304         (Lcc): New pattern.
1305         (FLcc): New pattern.
1306
1307 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1308
1309         PR target/48860
1310         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1311         for reg<->xmm moves.
1312         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1313         (vec_concatv2di_rex64_sse): Ditto.
1314         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1315         (*vec_extractv2di_1_rex64): Ditto.
1316
1317         Revert:
1318         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1319
1320         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1321         reg<->xmm moves.
1322         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1323
1324 2011-05-04  Richard Guenther  <rguenther@suse.de>
1325
1326         * tree.h (int_const_binop): Remove notrunc argument.
1327         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
1328         create integer constants that are properly truncated.
1329         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1330         (const_binop): Remove zero notrunc argument to int_const_binop.
1331         (size_binop_loc): Likewise.
1332         (fold_div_compare): Likewise.
1333         (maybe_canonicalize_comparison_1): Likewise.
1334         (fold_comparison): Likewise.
1335         (fold_binary_loc): Likewise.
1336         (multiple_of_p): Likewise.
1337         * expr.c (store_constructor): Likewise.
1338         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1339         (maybe_fold_stmt_addition): Likewise.
1340         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1341         * stor-layout.c (layout_type): Likewise.
1342         * tree-data-ref.c (tree_fold_divides_p): Likewise.
1343         * tree-sra.c (build_ref_for_offset): Likewise.
1344         (build_user_friendly_ref_for_offset): Likewise.
1345         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1346         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1347         * tree-ssa-loop-niter.c (inverse): Likewise.
1348         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1349         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1350         * tree-switch-conversion.c (check_range): Likewise.
1351         (build_constructors): Likewise.
1352         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1353         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1354         (extract_range_from_assert): Likewise.
1355         (vrp_int_const_binop): Likewise.
1356         (extract_range_from_binary_expr): Likewise.
1357         (extract_range_from_unary_expr): Likewise.
1358         (check_array_ref): Likewise.
1359         (find_case_label_range): Likewise.
1360         (simplify_div_or_mod_using_ranges): Likewise.
1361         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1362         comparing case labels for merging.
1363
1364 2011-05-03  Mark Wielaard  <mjw@redhat.com>
1365
1366         * dwarf2out.c (debug_str_hash_forced): Removed.
1367         (gen_label_for_indirect_string): Removed.
1368         (get_debug_string_label): Removed.
1369         (AT_string_form): Generate label directly.
1370         (output_indirect_string): Test indirect_string_node for
1371         DW_FORM_strp instead of checking label and refcount.
1372         (prune_indirect_string): Removed.
1373         (prune_unused_types): Don't check debug_str_hash_forced or
1374         call prune_indirect_string.
1375
1376 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1377
1378         PR other/48093
1379         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1380
1381 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
1382
1383         PR debug/47994
1384         PR debug/47919
1385         * combine.c (try_combine): Skip debug insns at m_split tests.
1386
1387 2011-04-26  Mark Wielaard  <mjw@redhat.com>
1388
1389         PR42288
1390         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1391         when info_section_emitted.
1392
1393 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
1394
1395         * config/mips/mips-opts.h: New.
1396         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1397         to mips-opts.h.
1398         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1399         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1400         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
1401         via opts pointer.
1402         * config/mips/mips.h (enum mips_code_readable_setting): Move to
1403         mips-opts.h.
1404         (mips_abi, mips_code_readable): Don't declare.
1405         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
1406         (mabi=): Use Enum and Var.
1407         (mips_abi): New Enum and EnumValue entries.
1408         (mcode-readable=): Use Enum and Var.
1409         (mips_code_readable_setting): New Enum and EnumValue entries.
1410         (mr10k-cache-barrier=): Use Enum and Var.
1411         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1412
1413 2011-05-03  Jan Hubicka  <jh@suse.cz>
1414
1415         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1416         replace hash by pointer map.
1417         (cgraph_node_set_element_def, cgraph_node_set_element,
1418         const_cgraph_node_set_element, varpool_node_set_element_def,
1419         varpool_node_set_element, const_varpool_node_set_element): Remove.
1420         (free_cgraph_node_set, free_varpool_node_set): New function.
1421         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1422         * tree-emutls.c: Free varpool node set.
1423         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1424         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1425         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1426         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1427         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1428         Move here from ipa.c; implement using pointer_map
1429         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1430         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1431         debug_cgraph_node_set, varpool_node_set_new,
1432         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1433         dump_varpool_node_set, debug_varpool_node_set):
1434         Move to ipa-uitls.c.
1435         * passes.c (ipa_write_summaries): Update.
1436
1437 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1438
1439         From Mike Frysinger:
1440         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1441         bf542/bf544/bf547/bf548/bf549.
1442
1443 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1444
1445         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1446
1447 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1448
1449         From Bernd Schmidt:
1450         * config/bfin/bfin.md (MOVCC): New mode_macro.
1451         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1452         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
1453         comments from generated assembly.
1454
1455 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1456
1457         From Bernd Schmidt
1458         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1459         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1460         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1461         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1462         * config/bfin/lib1funcs.asm (___muldi3): New function.
1463
1464 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1465
1466         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1467         build_function_type_list instead of build_function_type.
1468         Rearrange initialization of `args' to do so.
1469
1470 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1471
1472         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1473         instead of build_function_type.
1474
1475 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1476
1477         * config/rs6000/rs6000.c (spe_init_builtins): Call
1478         build_function_type_list instead of build_function_type.
1479         (paired_init_builtins, altivec_init_builtins): Likewise.
1480         (builtin_function_type): Likewise.
1481
1482 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1483
1484         * config/sh/sh.c (sh_media_init_builtins): Call
1485         build_function_type_list instead of build_function_type.
1486
1487 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1488
1489         * config/sparc/sparc.c (sparc_file_end): Call
1490         build_function_type_list instead of build_function_type.
1491
1492 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1493
1494         * config/alpha/alpha.c (alpha_init_builtins): Call
1495         build_function_type_list instead of build_function_type.
1496
1497 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1498
1499         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1500         build_function_type_list instead of build_function_type.
1501
1502 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1503
1504         * config/iq2000/i2000.c (iq2000_init_builtins): Call
1505         build_function_type_list instead of build_function_type.
1506         Delete `endlink' variable.
1507
1508 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1509
1510         * config/avr/avr.c (avr_init_builtins): Call
1511         build_function_type_list instead of build_function_type.
1512
1513 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1514
1515         * config/picochip/picochip.c (picochip_init_builtins): Call
1516         build_function_type_list instead of build_function_type.
1517         Delete `endlink' variable.
1518
1519 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
1520
1521         * config/bfin/bfin.c (bfin_init_builtins): Call
1522         build_function_type_list instead of build_function_type.
1523
1524 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1525
1526         From Bernd Schmidt
1527         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1528         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
1529
1530 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1531
1532         From Jie Zhang:
1533         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1534         libbffastfp overrides libgcc when -mfast-fp.
1535
1536 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1537
1538         Originally from Bernd Schmidt
1539         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1540         * config/bfin/bfin.c (override_options): Test it and error if
1541         TARGET_FDPIC.
1542
1543 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
1544
1545         Originally From Bernd Schmidt
1546         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1547         FD-PIC.
1548
1549 2011-05-03  Jeff Law  <law@redhat.com>
1550
1551         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1552         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1553         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1554         than accessing AUX field directly.  Free the AUX field before
1555         clearing it.
1556         (thread_block, thread_through_loop_header): Likewise.
1557         (thread_single_edge, mark_threaded_blocks): Likewise.
1558         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
1559         (register_jump_thread): Do not attempt to thread to a NULL edge.
1560
1561 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1562
1563         * function.c (init_function_start): Call decide_function_section.
1564         * varasm.c (decide_function_section): New function.
1565         (assemble_start_function): When not using
1566         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1567         or first_function_block_is_cold.
1568         * rtl.h (decide_function_section): Declare.
1569
1570 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
1571             Jakub Jelinek  <jakub@redhat.com>
1572
1573         PR target/48774
1574         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1575         only succeed if req_mode is the same as set_mode.
1576
1577 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
1578
1579         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1580         * genemit.c (gen_exp): Handle RETURN.
1581         * emit-rtl.c (verify_rtx_sharing): Likewise.
1582         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1583         * rtl.c (copy_rtx): RETURN is shared.
1584         * rtl.h (enum global_rtl_index): Add GR_RETURN.
1585         (ret_rtx): New.
1586         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1587         * config/s390/s390.c (s390_emit_epilogue): Likewise.
1588         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1589         * config/cris/cris.c (cris_expand_return): Likewise.
1590         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1591         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1592         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1593         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1594         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1595         Likewise.
1596         * config/v850/v850.c (expand_epilogue): Likewise.
1597         * config/bfin/bfin.c (bfin_expand_call): Likewise.
1598         * config/arm/arm.md (epilogue): Likewise.
1599         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1600         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1601         variable to ret_reg.
1602
1603 2011-05-03  Richard Guenther  <rguenther@suse.de>
1604
1605         PR lto/48846
1606         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1607         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1608         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1609
1610 2011-05-03  Richard Guenther  <rguenther@suse.de>
1611
1612         * c-decl.c (grokdeclarator): Instead of looking at
1613         TREE_OVERFLOW check if the constant fits in the index type.
1614
1615 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1616
1617         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1618         (vec_store_lanes<mode><mode>): Likewise.
1619
1620 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1621
1622         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1623         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1624         convert_optab_index values.
1625         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1626         * genopinit.c (optabs): Initialize the new optabs.
1627         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1628         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1629         (expand_STORE_LANES): New functions.
1630         * tree.h (build_array_type_nelts): Declare.
1631         * tree.c (build_array_type_nelts): New function.
1632         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1633         (vect_model_load_cost): Likewise.
1634         (vect_store_lanes_supported, vect_load_lanes_supported)
1635         (vect_record_strided_load_vectors): Declare.
1636         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1637         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1638         (vect_transform_strided_load): Split out statement recording into...
1639         (vect_record_strided_load_vectors): ...this new function.
1640         * tree-vect-stmts.c (create_vector_array, read_vector_array)
1641         (write_vector_array, create_array_ref): New functions.
1642         (vect_model_store_cost): Add store_lanes_p argument.
1643         (vect_model_load_cost): Add load_lanes_p argument.
1644         (vectorizable_store): Try to use store-lanes functions for
1645         interleaved stores.
1646         (vectorizable_load): Likewise load-lanes and loads.
1647         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1648         to vect_model_store_cost.
1649         (vect_build_slp_tree): Likewise vect_model_load_cost.
1650
1651 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1652
1653         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1654         * hooks.c (hook_bool_mode_uhwi_false): New function.
1655         * target.def (array_mode_supported_p): New hook.
1656         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1657         * doc/tm.texi: Regenerate.
1658         * stor-layout.c (mode_for_array): New function.
1659         (layout_type): Use it.
1660         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1661         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1662
1663 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1664
1665         PR target/48723
1666         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1667         for -fstack-check if the size to allocate is negative.
1668
1669 2011-05-02  Lawrence Crowl  <crowl@google.com>
1670
1671         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1672         (timevar_cond_start): New for starting a timer only when it is not
1673         already running.
1674         (timevar_cond_stop): New for stopping a timer when it was not already
1675         running.
1676
1677         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1678         (timevar_cond_start): New as above.
1679         (timevar_cond_stop): New as above.
1680
1681         * timevar.def: Add start/stop timers for compiler phases,
1682         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1683         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1684         and TV_PHASE_FINALIZE.
1685         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1686         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1687         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1688         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1689         Make unused TV_OVERLOAD into a start/stop timer.
1690
1691         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1692         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1693         to indicate that they are start/stop timers.
1694
1695         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1696         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1697         Move initialization to do_compile.
1698         (do_compile): Add initialization from above.
1699         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1700
1701         * c-decl.c (c_write_global_declarations): Add start/stop of
1702         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1703
1704         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1705         or TV_PARSE_INLINE, as appropriate.
1706         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1707         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1708
1709 2011-05-02  Jason Merrill  <jason@redhat.com>
1710
1711         PR c++/40975
1712         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1713
1714 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1715
1716         PR c/35445
1717         * c-decl.c (finish_decl): Only create a composite if the types are
1718         compatible.
1719
1720 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1721
1722         * config/fr30/fr30-protos.h (Mmode): Don't define.
1723         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1724         definition where used.
1725         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1726         define.  Expand definitions where used.
1727         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1728         Expand definitions where used.
1729         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1730         rx_function_arg, rx_function_arg_advance,
1731         rx_function_arg_boundary): Expand definitions of those macros.
1732         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1733         definition where used.
1734
1735 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1736
1737         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1738         reg<->xmm moves.
1739         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1740         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1741         with *movv2sf_internal_rex64_avx.
1742         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1743         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1744         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1745         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1746         "vex" in "prefix" attribute calculation.
1747         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1748
1749 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1750
1751         PR target/47951
1752         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1753         inputs match the output.
1754
1755 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1756
1757         PR target/47955
1758         * config/m68k/m68k.c (m68k_expand_prologue): Set
1759         current_function_static_stack_size.
1760
1761 2011-05-02   Jan Hubicka  <jh@suse.cz>
1762
1763         * lto-streamer.c (lto_streamer_cache_insert_1,
1764         lto_streamer_cache_lookup, lto_streamer_cache_create,
1765         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1766         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1767
1768 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1769
1770         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1771         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1772         config/m68k/t-opts: New files.
1773         * config/m68k/m68k-tables.opt: New file (generated).
1774         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1775         extra_options and m68k/t-opts to tmake_file.
1776         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1777         (all_isas): Initialize using m68k-isas.def.
1778         (all_microarchs): Initialize using m68k-microarchs.def.
1779         (m68k_find_selection): Remove.
1780         (m68k_handle_option): Don't assert that global structures are in
1781         use.  Use error_at.  Access variables via opts pointer.  Don't
1782         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1783         directly for -m68020-40 and -m68020-60.
1784         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1785         m68k_tune_entry here.
1786         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1787         to m68k-opts.h.
1788         (m68k_library_id_string): Remove declaration.
1789         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1790         (m68k_library_id_string): New Variable.
1791         (march=, mcpu=, mtune=): Use Enum and Var.
1792
1793 2011-05-02  Richard Guenther  <rguenther@suse.de>
1794
1795         * varasm.c (output_constructor_regular_field): Compute zero-based
1796         index with double-ints.  Make sure to ICE instead of producing
1797         wrong code.
1798         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1799         in asserts.  Properly use a signed type.
1800
1801 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1802
1803         * config/i386/sse.md (V): New mode iterator.
1804         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1805         TARGET_SSE2.
1806         (V_256): Rename from AVX256MODE.
1807         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1808         condition to all users.
1809         (VF1): Ditto.
1810         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1811         condition to all users.
1812         (VF_128): Make V4SF mode unconditional.
1813         (VF_256): Rename from AVX256MODEF2P.
1814         (VI4F_128): Rename from SSEMODE4S.
1815         (VI8F_128): Rename from SSEMODE2D.
1816         (VI4F_256): Rename from AVX256MODE8P.
1817         (VI8F_256): Rename from AVX256MODE4P.
1818         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1819         (ssescalarmodesuffix): Remove SF and DF modes.
1820         (SSEMODE124): Remove.
1821         (SSEMODE1248): Ditto.
1822         (SSEMODEF2P): Ditto.
1823         (AVXMODEF2P): Ditto.
1824         (AVXMODEFDP): Ditto.
1825         (AVXMODEFSP): Ditto.
1826         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1827         unconditional.
1828         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1829         unconditional.
1830         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1831         xop_pcmov_<mode>256.  Use V mode iterator.
1832
1833         Adjust RTX patterns globally for renamed mode attributes.
1834
1835 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1836
1837         * haifa-sched.c (sched_emit_insn): Emit insn before first
1838         non-scheduled insn.  Inform back-end about new insn.  Add
1839         new insn to scheduled_insns list.
1840
1841 2011-05-02  Richard Guenther  <rguenther@suse.de>
1842
1843         PR tree-optimization/48822
1844         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1845         (process_scc): Indicate which iteration we start.
1846
1847 2011-05-02  Jan Hubicka  <jh@suse.cz>
1848
1849         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1850         (lto_section_overrun): New.
1851         * lto-section-out.c (append_block): Rename to ...
1852         (lto_append_block): ... this one; export.
1853         (lto_output_1_stream): Move lto lto-streamer.h
1854         (lto_output_data_stream): Update.
1855         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1856         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1857         functions.
1858
1859 2011-05-02  Richard Guenther  <rguenther@suse.de>
1860
1861         * tree.c (tree_code_counts): New global array.
1862         (record_node_allocation_statistics): Count individual tree codes.
1863         (dump_tree_statistics): Dump individual code stats.
1864
1865 2011-05-01  Jan Hubicka  <jh@suse.cz>
1866
1867         * ipa-inline.c (caller_growth_limits): Fix thinko when
1868         looking for largest stack frame.
1869         * ipa-inline.h (dump_inline_summary): Declare.
1870         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1871         on stack usage.
1872         (dump_inline_summary): Export.
1873         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1874
1875 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1876
1877         * reginfo.c (memory_move_cost): Change rclass argument type form
1878         'enum reg_class' to reg_class_t.
1879         * reload.h (memory_move_cost): Update prototype.
1880         * postreload.c reload_cse_simplify_set): Change type dclass var to
1881         reg_class_t.
1882         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1883         Update prototype.
1884         (ira_allocate_and_set_costs): Change aclass argument type form
1885         'enum reg_class' to reg_class_t.
1886         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1887         Change aclass argument type to reg_class_t.
1888         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1889         to reg_class_t.
1890         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1891         memory_move_cost call.
1892
1893         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1894         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1895         Change type tmp var to reg_class_t.
1896
1897 2011-04-30  Jan Hubicka  <jh@suse.cz>
1898
1899         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1900         inlining into function with flatten attribute.
1901         (want_inline_small_function_p): Be more realistic about inlining
1902         cold calls where callee size grows.
1903
1904 2011-04-30  Jan Hubicka  <jh@suse.cz>
1905
1906         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1907         flags.
1908
1909 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1910
1911         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1912         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1913         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1914         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1915         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1916         (print_operand): Rename to...
1917         (sparc_print_operand): ...this. Make static. Adjust
1918         sparc_print_operand function call.
1919         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1920         functions.
1921
1922 2011-04-30  Jan Hubicka  <jh@suse.cz>
1923
1924         PR middle-end/48752
1925         * ipa-inline.c (early_inliner): Disable when doing late
1926         addition of function.
1927
1928 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1929
1930         * dwarf2out.c (get_address_mode): New inline.
1931         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1932         if not dwarf_strict emit
1933         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1934         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1935         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1936         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1937         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1938         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1939         mem_loc_descriptor callers.
1940         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1941         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1942         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1943         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1944         (base_types): New variable.
1945         (get_base_type_offset, calc_base_type_die_sizes,
1946         base_type_for_mode, mark_base_types, base_type_cmp,
1947         move_marked_base_types): New functions.
1948         (calc_die_sizes): Assert that die_offset is 0 or equal to
1949         next_die_offset.
1950         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1951         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1952         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1953         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1954         (gen_subprogram_die): Don't give up on call site parameters
1955         with non-integral or large integral modes.  Adjust
1956         mem_loc_descriptor callers.
1957         (prune_unused_types): Call prune_unused_types_mark on base_types
1958         vector entries.
1959         (resolve_addr): Call mark_base_types.
1960         (dwarf2out_finish): Call move_marked_base_types.
1961
1962         PR tree-optimization/48809
1963         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1964         type.
1965         (gen_inbound_check): Don't compute index_expr - range_min in utype
1966         again, instead reuse SSA_NAME initialized in build_arrays.
1967         Remove two useless gsi_for_stmt calls.
1968
1969 2011-04-29  Jeff Law  <law@redhat.com>
1970
1971         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1972
1973 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1974
1975         * cgraph.h (cgraph_postorder): Remove declaration.
1976         * ipa-utils.h (ipa_free_postorder_info): Declare.
1977         (ipa_reverse_postorder): Likewise.
1978         * cgraphunit.c: Include ipa-utils.h.
1979         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1980         * ipa-inline.c: Include ipa-utils.h.
1981         (ipa_inline): Update call to ipa_reverse_postorder.
1982         * ipa-pure-const.c (propagate_pure_const): Update call to
1983         ipa_reduced_postorder and ipa_print_order.  Call
1984         ipa_free_postorder_info to clean up.
1985         (propagate_nothrow): Likewise.
1986         * ipa-reference.c (propagate): Removed a useless call to
1987         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1988         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1989         * ipa.c: Include ipa-utils.h.
1990         (ipa_profile): Update call to ipa_reverse_postorder.
1991         (cgraph_postorder): Moved to...
1992         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1993         (ipa_utils_print_order): Renamed to ipa_print_order.
1994         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1995         comments.
1996         (ipa_free_postorder_info): New function.
1997         * passes.c: Include ipa-utils.h.
1998         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1999         (ipa_write_summaries): Likewise.
2000         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2001         (cgraphunit.o): Likewise.
2002         (ipa.o): Likewise.
2003         (ipa-inline.o): Likewise.
2004
2005 2011-04-29  Jan Hubicka  <jh@suse.cz>
2006
2007         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2008         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2009         * ipa-inline.h (clause_t): Turn into unsigned int.
2010         * ipa-inline-analysis.c (add_clause): Do more simplification.
2011         (and_predicates): Shortcut more cases.
2012         (predicates_equal_p): Move forward; check that clauses are properly
2013         ordered.
2014         (or_predicates): Shortcut more cases.
2015         (edge_execution_predicate): Rewrite as...
2016         (set_cond_stmt_execution_predicate): ... this function; handle
2017         __builtin_constant_p.
2018         (set_switch_stmt_execution_predicate): New .
2019         (compute_bb_predicates): New.
2020         (will_be_nonconstant_predicate): Update TODO.
2021         (estimate_function_body_sizes): Use compute_bb_predicates
2022         and free them later, always try to estimate if stmt is constant.
2023         (estimate_time_after_inlining, estimate_size_after_inlining):
2024         Gracefully handle optimized out edges.
2025         (read_predicate): Fix off by one error.
2026
2027 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2028
2029         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2030
2031 2011-04-27  Xinliang David Li  <davidxl@google.com>
2032
2033         * tree-profile.c (init_ic_make_global_vars): Set
2034         tls attribute on ic vars.
2035         * coverage.c (coverage_end_function): Initialize
2036         function_list with zero.
2037
2038 2011-04-29  Richard Guenther  <rguenther@suse.de>
2039
2040         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2041         for the type of the result.
2042         (fold_builtin_isascii): Likewise.
2043         (fold_builtin_toascii): Use integer_type_node where appropriate.
2044         (fold_builtin_logb): Likewise.
2045         (fold_builtin_frexp): Likewise.
2046         (fold_builtin_strstr): Likewise.
2047         (fold_builtin_strpbrk): Likewise.
2048         (fold_builtin_fputs): Likewise.
2049         (fold_builtin_sprintf): Likewise.
2050         (fold_builtin_snprintf): Likewise.
2051         (fold_builtin_printf): Likewise.
2052         (do_mpfr_remquo): Use a proper type for the assigned constant.
2053         (do_mpfr_lgamma_r): Likewise.
2054         * dwarf2out.c (resolve_one_addr): Use size_int.
2055         * except.c (init_eh): Likewise.
2056         (assign_filter_values): Use integer_type_node for filter values.
2057         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2058         indices.
2059         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2060         for EH region numbers.
2061         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2062         for the shift amount.
2063
2064 2011-04-29  Richard Guenther  <rguenther@suse.de>
2065
2066         * expr.h (expand_shift): Rename to ...
2067         (expand_variable_shift): ... this.
2068         (expand_shift): Take a constant shift amount.
2069         * expmed.c (expand_shift): Rename to ...
2070         (expand_variable_shift): ... this.
2071         (expand_shift): New wrapper around expand_variable_shift.
2072         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2073         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2074         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2075         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2076         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2077         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2078         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2079         emit_store_flag_1, emit_store_flag): Likewise.
2080         * builtins.c (expand_builtin_signbit): Likewise.
2081         * calls.c (load_register_parameters): Likewise.
2082         * function.c (assign_parm_setup_block): Likewise.
2083         * lower-subreg.c (resolve_shift_zext): Likewise.
2084         * optabs.c (widen_bswap, expand_abs_nojump,
2085         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2086         * spu/spu.c (spu_expand_extv): Likewise.
2087         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2088
2089 2011-04-29  Richard Guenther  <rguenther@suse.de>
2090
2091         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2092         for the remapped region number.
2093         * predict.c (build_predict_expr): Use integer_type_node for the
2094         predict kind.
2095         * fold-const.c (fold_binary_loc): Use integer_type_node for
2096         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2097
2098 2011-04-29  Michael Matz  <matz@suse.de>
2099
2100         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2101         other trees that just builtins.
2102         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2103
2104 2011-04-29  Richard Guenther  <rguenther@suse.de>
2105
2106         * tree-nested.c (get_trampoline_type): Use size_int.
2107         (get_nl_goto_field): Likewise.
2108         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2109         for all indexes.
2110         (lower_eh_constructs_2): Likewise.
2111         (lower_resx): Likewise.
2112         (lower_eh_dispatch): Likewise.
2113         * tree-mudflap.c (mf_build_string): Use size_int.
2114         (mudflap_register_call): Use integer_type_node for the flag.
2115         (mudflap_enqueue_constant): Use size_int.
2116         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2117         instead of rebuilding it.
2118
2119 2011-04-29  Richard Guenther  <rguenther@suse.de>
2120
2121         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2122         Handle OBJ_TYPE_REF.
2123         (find_func_aliases_for_call): Use it more consistently.
2124
2125 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2126
2127         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2128         (rank_for_schedule): Use it.
2129         (schedule_block): Set it.
2130
2131 2011-04-28  David Li  <davidxl@google.com>
2132
2133         * tree.c (crc32_string): Use crc32_byte.
2134         (crc32_byte): New function.
2135         * tree.h (crc32_byte): New function.
2136         * gcov.c (read_graph_file): Handle new cfg_cksum.
2137         (read_count_file): Ditto.
2138         * profile.c (instrument_values): Ditto.
2139         (get_exec_counts): Ditto.
2140         (read_profile_edge_counts): Ditto.
2141         (compute_branch_probabilities): Ditto.
2142         (compute_value_histograms): Ditto.
2143         (branch_prob): Ditto.
2144         (end_branch_prob): Ditto.
2145         * coverage.c (read_counts_file): Ditto.
2146         (get_coverage_counts): Ditto.
2147         (tree_coverage_counter_addr): Ditto.
2148         (coverage_checksum_string): Ditto.
2149         (coverage_begin_output): Ditto.
2150         (coverage_end_function): Ditto.
2151         (build_fn_info_type): Ditto.
2152         (build_fn_info_value): Ditto.
2153         * libgcov.c (gcov_exit): Ditto.
2154         * gcov-dump.c (tag_function): Ditto.
2155         (compute_checksum): Remove.
2156
2157 2011-04-29  Alan Modra  <amodra@gmail.com>
2158
2159         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2160         unspec plus offset.  Tidy macho code.
2161
2162 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2163
2164         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2165         node instead of a decl.  Update all callers.
2166         * cgraph.h: Update declaration.
2167
2168 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2169
2170         PR tree-optimization/48765
2171         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2172         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2173         to indicate if loop aware SLP is being used.  Scan the statements
2174         and update the vectorization factor according to the type of
2175         vectorization before statement analysis.
2176         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2177         pass it to vect_analyze_loop_operations.
2178         (vectorizable_reduction): Set number of copies to 1 in case of pure
2179         SLP statement.
2180         * tree-vect-stmts.c (vectorizable_conversion,
2181         vectorizable_assignment, vectorizable_shift,
2182         vectorizable_operation, vectorizable_type_demotion,
2183         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2184         Likewise.
2185         (vectorizable_condition): Move the check that it is not SLP
2186         vectorization before the number of copies check.
2187         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2188         to vectorize the loop using SLP.
2189
2190 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2191
2192         PR middle-end/48597
2193         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2194         inline asm.
2195
2196 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2197
2198         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2199         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2200         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2201         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2202         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2203         linux*.h headers.
2204         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2205         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2206         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2207         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2208         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2209         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2210         REG_NAME.
2211         * config/i386/linux.h (REG_NAME): Don't define.
2212         * config/i386/linux64.h (REG_NAME): Don't define.
2213         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2214         Undefine before defining.
2215
2216 2011-04-28  Jan Hubicka  <jh@suse.cz>
2217
2218         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2219         nonconstant_names array.
2220         (estimate_function_body_sizes): Build nonconstant_names array; handle
2221         BUILT_IN_CONSTANT_P.
2222
2223 2011-04-28  Richard Guenther  <rguenther@suse.de>
2224
2225         PR bootstrap/48804
2226         Revert
2227         2011-04-28  Richard Guenther  <rguenther@suse.de>
2228
2229         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2230         as late as possible.
2231
2232 2011-04-28  Richard Guenther  <rguenther@suse.de>
2233
2234         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2235         (debug_constraint): Do it here.
2236         (dump_constraints): And here.
2237         (rewrite_constraints): And here.
2238         (dump_constraint_edge): Remove.
2239         (dump_constraint_graph): Rewrite to produce DOT output.
2240         (solve_constraints): Build succ graph as late as possible.
2241         Dump constraint graphs before and after solving.
2242
2243 2011-04-28  Richard Guenther  <rguenther@suse.de>
2244
2245         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2246         New function split out from ...
2247         (find_func_aliases): ... here.  Call it.
2248         (find_func_aliases_for_call): Likewise.
2249
2250 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2251
2252         * internal-fn.h (internal_fn_name_array): Declare.
2253         (internal_fn_flags_array): Likewise.
2254
2255 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2256
2257         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2258         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2259         Move from sse.md.
2260         (ssemodefsuffix): Remove.
2261         (ssevecmodesuffix): New mode attribute.
2262         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2263         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2264         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2265         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2266         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2267         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2268         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2269         ssemodesuffix mode attribute.
2270         (float splitters): Use ssevecmodesuffix mode attribute.
2271         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2272         (sseinsmode): Rename from avxvecmode.
2273         (avxsizesuffix): Rename from avxmodesuffix.
2274         (sseintvecmode): Rename from avxpermvecmode.
2275         (ssedoublevecmode): Rename from ssedoublesizemode.
2276         (ssehalfvecmode): Rename from avxhalfvecmode.
2277         (ssescalarmode): Rename from avxscalarmode.
2278         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2279         templates for ssemodesuffix mode attribute.
2280         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2281         mode attribute.
2282
2283         Adjust RTX patterns globally for renamed mode attributes.
2284
2285 2011-04-27  Jan Hubcika  <jh@suse.cz>
2286
2287         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2288         * ipa-inline-analysis.c: Include alloc-pool.h.
2289         (edge_predicate_pool): New.
2290         (trye_predicate_p): New function
2291         (false_predicate_p): New function.
2292         (add_clause): Sanity check that false clauses are "optimized";
2293         never add clauses to predicate that is already known to be false.
2294         (and_predicate): Use flase_predicate_p.
2295         (evaulate_predicate): Rename to ...
2296         (evaluate_predicate): ... this one; update all callers; assert
2297         that false is not listed among possible truths.
2298         (dump_predicate): Use true_predicate_p.
2299         (account_size_time): Use false_predicate_p.
2300         (evaulate_conditions_for_edge): Rename to ...
2301         (evaluate_conditions_for_edge) ... this one.
2302         (edge_set_predicate): New function.
2303         (inline_edge_duplication_hook): Duplicate edge predicates.
2304         (inline_edge_removal_hook): Free edge predicates.
2305         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2306         (dump_inline_summary): Update.
2307         (estimate_function_body_sizes): Set edge predicates.
2308         (estimate_calls_size_and_time): Handle predicates.
2309         (estimate_callee_size_and_time): Update.
2310         (remap_predicate): Add toplev_predicate; update comment.
2311         (remap_edge_predicates): New function.
2312         (inline_merge_summary): Compute toplev predicate; update.
2313         (read_predicate): New function.
2314         (read_inline_edge_summary): Use it.
2315         (inline_read_section): Likewise.
2316         (write_predicate): New function.
2317         (write_inline_edge_summary): Use it.
2318         (inline_write_summary): Likewise.
2319         (inline_free_summary): Free alloc pool and edge summary vec.
2320
2321 2011-04-27  Richard Guenther  <rguenther@suse.de>
2322
2323         * tree-ssa-structalias.c (changed_count): Remove.
2324         (changed): Use a bitmap.
2325         (unify_nodes): Adjust.
2326         (do_sd_constraint): Likewise.
2327         (do_ds_constraint): Likewise.
2328         (do_complex_constraint): Likewise.
2329         (solve_graph): Likewise.
2330
2331 2011-04-27  Jan Hubicka  <jh@suse.cz>
2332
2333         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2334
2335 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2336
2337         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2338         (avx_vperm2f128_*_operand): Ditto.
2339         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2340         Use avx_vpermilp_parallel in insn condition.
2341         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2342         Use avx_vperm2f128_parallel in insn condition.
2343
2344 2011-04-27  Richard Guenther  <rguenther@suse.de>
2345
2346         * Makefile.in (tree-ssa-structalias.o): Remove
2347         gt-tree-ssa-structalias.h dependency.
2348         (GTFILES): Remove tree-ssa-structalias.c.
2349         * tree.c (allocate_decl_uid): New function.
2350         (make_node_stat): Use it.
2351         (copy_node_stat): Likewise.
2352         * tree.h (allocate_decl_uid): Declare.
2353         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2354         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2355         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
2356         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
2357         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2358         (struct heapvar_map): Likewise.
2359         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2360         heapvar_insert): Likewise.
2361         (make_heapvar_for): Rename to ...
2362         (make_heapvar): ... this.  Simplify.
2363         (fake_var_decl_obstack): New global var.
2364         (build_fake_var_decl): New function.
2365         (make_constraint_from_heapvar): Adjust.
2366         (handle_lhs_call): Likewise.
2367         (create_function_info_for): Likewise.
2368         (intra_create_variable_infos): Likewise.
2369         (init_alias_vars): Allocate fake_var_decl_obstack.
2370         (init_alias_heapvars, delete_alias_heapvars): Remove.
2371         (compute_points_to_sets): Do not call init_alias_heapvars.
2372         (ipa_pta_execute): Likewise.
2373         (delete_points_to_sets): Free fake_var_decl_obstack.
2374
2375 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2376
2377         * config/spu/divmovti4.c (union qword_UTItype): New data type.
2378         (si_from_UTItype, si_to_UTItype): New functions.
2379         (__udivmodti4): Use them to implement type-punning.
2380         * config/spu/multi3.c (union qword_TItype): New data type.
2381         (si_from_TItype, si_to_TItype): New functions.
2382         (__multi3): Use them to implement type-punning.
2383
2384 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2385
2386         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2387
2388 2011-04-27  Jan Hubicka  <jh@suse.cz>
2389
2390         * ipa-prop.c (function_insertion_hook_holder): New holder.
2391         (ipa_add_new_function): New function.
2392         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2393         Register/deregister holder.
2394
2395 2011-04-27  Richard Guenther  <rguenther@suse.de>
2396
2397         PR tree-optimization/48772
2398         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
2399
2400 2011-04-27  Richard Guenther  <rguenther@suse.de>
2401
2402         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2403         TARGET_MEM_REF handling.
2404
2405 2011-04-27  Nick Clifton  <nickc@redhat.com>
2406
2407         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2408         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2409         (REG_CLASS_NAMES): Likewise.
2410         (REG_CLASS_CONTENTS): Likewise.
2411         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2412         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
2413         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
2414         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
2415         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
2416         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2417         duplicate register classes.
2418         (frv_class_likely_spilled_p): Likewise.
2419         (frv_register_move_cost): Likewise.
2420
2421         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2422         end of the regno_reg_class array.
2423
2424 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
2425
2426         PR c/48742
2427         * c-typeck.c (build_binary_op): Don't wrap arguments if
2428         int_operands is true.
2429
2430 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
2431
2432         PR target/48767
2433         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2434         targetm.calls.must_pass_in_stack for void type.
2435
2436 2011-04-26  Jan Hubicka  <jh@suse.cz>
2437
2438         * cgraphbuild.c (build_cgraph_edges): Update call
2439         of cgraph_create_edge and cgraph_create_indirect_edge.
2440         * cgraph.c (cgraph_create_edge_including_clones,
2441         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2442         cgraph_update_edges_for_call_stmt_node): Do not take nest
2443         argument; do not initialize call_stmt_size/time.
2444         (dump_cgraph_node): Do not dump nest.
2445         (cgraph_clone_edge): Do not take loop_nest argument;
2446         do not propagate it; do not clone call_stmt_size/time.
2447         (cgraph_clone_node): Likewise.
2448         (cgraph_create_virtual_clone): Update.
2449         * cgraph.h (struct cgraph_edge): Remove
2450         call_stmt_size/call_stmt_time/loop_nest.
2451         (cgraph_create_edge, cgraph_create_indirect_edge,
2452         cgraph_create_edge_including_clones, cgraph_clone_node): Update
2453         prototype.
2454         * tree-emutls.c (gen_emutls_addr): Update.
2455         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2456         loop_nest; handle indirect calls, too.
2457         (clone_inlined_nodes): Do not care about updating inline summaries.
2458         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2459         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2460         stream call_stmt_size/call_stmt_time/loop_nest.
2461         * ipa-inline.c (edge_badness): Update.
2462         (ipa_inline): dump summaries after inlining.
2463         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2464         New.
2465         (inline_edge_summary): New function.
2466         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2467         (inline_edge_removal_hook): Handle edge summaries.
2468         (inline_edge_duplication_hook): New hook.
2469         (inline_summary_alloc): Alloc hooks.
2470         (initialize_growth_caches): Do not register removal hooks.
2471         (free_growth_caches); Do not free removal hook.
2472         (dump_inline_edge_summary): New function.
2473         (dump_inline_summary): Use it.
2474         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2475         (inline_update_callee_summaries): New function.
2476         (inline_merge_summary): Use it.
2477         (do_estimate_edge_time, do_estimate_edge_growth): Update.
2478         (read_inline_edge_summary): New function.
2479         (inline_read_section): Use it.
2480         (write_inline_edge_summary): New function.
2481         (inline_write_summary): Use it.
2482         (inline_free_summary): Free edge new holders.
2483         * tree-inline.c (copy_bb): Update.
2484
2485 2011-04-26  Jason Merrill  <jason@redhat.com>
2486
2487         * tree-eh.c (lower_try_finally_switch): Create the label along with
2488         the CASE_LABEL_EXPR.
2489
2490 2011-04-26  David S. Miller  <davem@davemloft.net>
2491             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2492
2493         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2494         * configure: Regenerate.
2495
2496 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2497
2498         PR target/48258
2499         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2500         reduction.
2501         (VEC_reduc): New code iterator and splitters for vector reduction.
2502         (VEC_reduc_name): Ditto.
2503         (VEC_reduc_rtx): Ditto.
2504         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2505         (reduc_<VEC_reduc_name>_v4sf): Ditto.
2506
2507         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2508         support for extracting SF on VSX.
2509
2510         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2511         generating xscvspdp.
2512         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2513         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2514         double add, minimum, maximum vector reduction.
2515         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2516         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2517         optimize double vector reduction.
2518         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2519
2520 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
2521
2522         * config/fr30/fr30.h (inhibit_libc): Don't define.
2523         * config/m32r/m32r-protos.h: Correct comment.
2524         * config/v850/v850.h (GHS_default_section_names,
2525         GHS_current_section_names): Use tree, not union tree_node *.
2526
2527 2011-04-26  Xinliang David Li  <davidxl@google.com>
2528
2529         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2530         * c-family/c-opts.c (c_common_handle_option): Set
2531         warn_maybe_uninitialized.
2532         * opts.c (common_handle_option): Ditto.
2533         * common.opt:  New option.
2534         * tree-ssa.c (warn_uninit): Add one more parameter.
2535         (warn_uninitialized_var): Pass warning code.
2536         * tree-flow.h: Interface change.
2537
2538
2539 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2540
2541         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2542         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2543         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2544
2545 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2546
2547         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2548         * config/mips/mips.opt (mmips-tfile): Remove.
2549
2550         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2551         mips-tdump reference to ...
2552         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
2553         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2554         reference by Tru64 UNIX.
2555
2556 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
2557
2558         PR debug/48768
2559         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2560         is error_mark_node, set value to NULL.
2561
2562         PR tree-optimization/48734
2563         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2564         if return value from maybe_fold_*_comparsions isn't something
2565         the code is prepared to handle.
2566
2567 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
2568
2569         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2570         mode check.
2571         (ext_QIreg_nomode_operands): Remove.
2572         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2573         (*andsi_1): Ditto.
2574         (*andhi_1): Ditto.
2575
2576 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
2577
2578         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2579
2580 2011-04-26  Richard Guenther  <rguenther@suse.de>
2581
2582         * c-typeck.c (build_unary_op): Do not expand array-refs via
2583         pointer arithmetic.  Only adjust qualifiers for function types.
2584
2585 2011-04-26  Richard Guenther  <rguenther@suse.de>
2586
2587         PR middle-end/48694
2588         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2589         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2590         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
2591         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2592
2593 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
2594
2595         * doc/extend.texi: Document __underlying_type.
2596
2597 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
2598
2599         * config/rs6000/titan.md (automata_option "progress"): Remove.
2600
2601 2011-04-25  Jeff Law  <law@redhat.com>
2602
2603         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2604
2605 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2606
2607         * system.h (ENUM_BITFIELD): Remove.
2608
2609 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
2610             Eric Botcazou  <ebotcazou@adacore.com>
2611
2612         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2613         for STORE_FLAG_VALUE==-1 case.
2614
2615 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
2616
2617         PR target/43804
2618         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2619         LEGITIMATE_PIC_OPERAND_P.
2620
2621 2011-04-24  Jan Hubicka  <jh@suse.cz>
2622
2623         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2624         WPA hack.
2625         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2626         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2627         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2628         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2629         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2630         Sanity check predicate length.
2631         (remap_predicate): Likewise; sanity check jump functions.
2632         (inline_read_section, inline_write_summary): Sanity check
2633         predicate length.
2634
2635 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
2636
2637         PR other/48748
2638         * doc/extend.texi (Type Traits): Document __is_standard_layout,
2639         __is_literal_type, and __is_trivial; update throughout about
2640         possibly cv-qualified void types.
2641
2642 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
2643
2644         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2645         testsuite and make it version agnostic.
2646
2647 2011-04-22  Jan Hubicka  <jh@suse.cz>
2648
2649         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2650
2651 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2652
2653         PR c/48685
2654         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2655         to VOID_TYPE even around MODIFY_EXPR.
2656
2657 2011-04-22  Mike Stump  <mikestump@comcast.net>
2658
2659         * gensupport.c (read_md_rtx): Fix typo in comment.
2660         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2661         comment.
2662
2663 2011-04-22  Jan Hubicka  <jh@suse.cz>
2664
2665         * gengtype.c (open_base_files): Add ipa-inline.h include.
2666         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2667         ipa-prop.c; update all uses.
2668         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2669         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2670         merge summary of inlined function into former caller.
2671         * ipa-inline.c (max_benefit): Remove.
2672         (edge_badness): Compensate for removal of benefits.
2673         (update_caller_keys): Use
2674         reset_node_growth_cache/reset_edge_growth_cache.
2675         (update_callee_keys): Likewise.
2676         (update_all_callee_keys): Likewise.
2677         (inline_small_functions): Do not collect max_benefit; do not reset
2678         estimated_growth; call free_growth_caches and initialize_growth_caches.
2679         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2680         struct size_time_entry): New structures.
2681         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2682         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2683         and estimated_growth.
2684         (edge_growth_cache_entry): New structure.
2685         (node_growth_cache, edge_growth_cache): New global vars.
2686         (estimate_growth): Turn into inline.
2687         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2688         initialize_growth_caches, free_growth_caches): Declare.
2689         (estimate_edge_growth): Rewrite.
2690         (estimate_edge_time): Implement as inline cache lookup.
2691         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2692         functions.
2693         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2694         (NUM_CONDITIONS): New constant.
2695         (predicate_conditions): New enum.
2696         (IS_NOT_CONSTANT): New constant.
2697         (edge_removal_hook_holder): New var.
2698         (node_growth_cache, edge_growth_cache): New global vars.
2699         (true_predicate, single_cond_predicate, false_predicate,
2700         not_inlined_predicate, add_condition, add_clause, and_predicates,
2701         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2702         dump_clause, dump_predicate, account_size_time,
2703         evaulate_conditions_for_edge): New functions.
2704         (inline_summary_alloc): Move to heap.
2705         (inline_node_removal_hook): Clear condition and entry vectors.
2706         (inline_edge_removal_hook): New function.
2707         (initialize_growth_caches, free_growth_caches): New function.
2708         (dump_inline_summary): Update.
2709         (edge_execution_predicate): New function.
2710         (will_be_nonconstant_predicate): New function.
2711         (estimate_function_body_sizes): Compute BB and constantness predicates.
2712         (compute_inline_parameters): Do not clear estimated_growth.
2713         (estimate_edge_size_and_time): New function.
2714         (estimate_calls_size_and_time): New function.
2715         (estimate_callee_size_and_time): New function.
2716         (remap_predicate): New function.
2717         (inline_merge_summary): New function.
2718         (do_estimate_edge_time): New function based on...
2719         (estimate_edge_time): ... this one.
2720         (do_estimate_edge_growth): New function.
2721         (do_estimate_growth): New function based on....
2722         (estimate_growth): ... this one.
2723         (inline_analyze_function): Analyze after deciding on jump functions.
2724         (inline_read_section): New function.
2725         (inline_read_summary): Use it.
2726         (inline_write_summary): Write all the new data.
2727         * ipa-prop.c (ipa_get_param_decl_index): Export.
2728         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2729         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2730         Declare.
2731         (ipa_get_lattice): Move here from ipa-cp.c
2732         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2733         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2734         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2735         cgraph_edge_inlinable_p): Remove.
2736         * cgraphunit.c: Include ipainline.h
2737         (cgraph_process_new_functions): Update call of
2738         compute_inline_parameters.
2739
2740 2011-04-22  Richard Guenther  <rguenther@suse.de>
2741
2742         * tree.c (build_int_cst): Properly create canonicalized integer
2743         constants.
2744         (build_int_cst_type): Remove scary comments.
2745
2746 2011-04-22  Xinliang David Li  <davidxl@google.com>
2747
2748         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2749         by default when -Wno-error is not specified.
2750         * opts-global.c (decode_options): Remove call to
2751         control_warning_options.
2752
2753 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2754
2755         PR tree-optimization/48717
2756         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2757         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2758
2759 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2760
2761         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2762         definition where used.
2763
2764 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2765
2766         PR c/48716
2767         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2768         TREE_STATIC variables declared inside of some OpenMP construct.
2769
2770 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2771
2772         PR middle-end/48585
2773         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2774
2775 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2776
2777         PR c/36750
2778         * c-typeck.c (pop_init_level): Do not warn about initializing
2779         with ` = {0}'.
2780
2781 2011-04-22  Alan Modra  <amodra@gmail.com>
2782
2783         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2784         when returning call_cookie.
2785         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2786         pointers, to functions with no more vector args than the current
2787         function, and some non-local calls for ABI_V4.
2788         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2789         sibcall_nonlocal_aix64): Combine to ..
2790         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2791         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2792         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2793         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2794         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2795         operand.
2796         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2797         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2798         sibcall_value_symbolic_64): Delete.
2799
2800 2011-04-21  Xinliang David Li  <davidxl@google.com>
2801
2802         * cgraph.h: Remove pid.
2803         * cgraph.c: Remove pid.
2804         * value-prof.c (init_node_map): New function.
2805         (del_node_map): New function.
2806         (find_func_by_funcdef_no): New function.
2807         (gimple_ic_transform): Call new function.
2808         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2809         * function.c (get_last_funcdef_no): New function.
2810         * function.h (get_last_funcdef_no): New function.
2811         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2812         to libgcov function.
2813         (tree-profiling): Call node map init and delete function.
2814
2815 2011-04-21  Ian Lance Taylor  <iant@google.com>
2816
2817         * godump.c (go_format_type): Use exported Go name for anonymous
2818         field name.
2819
2820 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2821
2822         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2823         Call builtin_function_type_list instead of builtin_function_type.
2824         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2825
2826 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2827
2828         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2829         build_function_type_list instead of build_function_type.
2830         Delete variable `endlink'.
2831
2832 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2833
2834         * config/s390/s390.c (s390_init_builtins): Call
2835         build_function_type_list instead of build_function_type.
2836
2837 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2838
2839         * config/ia64/ia64.c (ia64_init_builtins): Call
2840         build_function_type_list instead of builtin_function_type.
2841
2842 2011-04-21  Easwaran Raman  <eraman@google.com>
2843
2844         * cfgexpand.c (stack_var): Remove OFFSET...
2845         (add_stack_var): ...and its reference here...
2846         (expand_stack_vars): ...and here.
2847         (stack_var_cmp): Sort by descending order of size.
2848         (partition_stack_vars): Change heuristic.
2849         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2850         (dump_stack_var_partition): Add newline after each partition.
2851
2852 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2853             Jeff Law  <law@redhat.com>
2854
2855         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2856         * gengtype.c (matching_file_name_substitute): Likewise.
2857
2858 2011-04-21  Richard Guenther  <rguenther@suse.de>
2859
2860         PR lto/48703
2861         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2862
2863 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2864
2865         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2866
2867 2011-04-21  Richard Guenther  <rguenther@suse.de>
2868
2869         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2870         file name.
2871
2872 2011-04-21  Richard Guenther  <rguenther@suse.de>
2873
2874         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2875         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2876         Use DECL_P, not SSA_VAR_P.
2877         (ptr_derefs_may_alias_p): Likewise.
2878         (ptr_deref_may_alias_ref_p_1): Likewise.
2879         (decl_refs_may_alias_p): Likewise.
2880         (refs_may_alias_p_1): Likewise.
2881         (ref_maybe_used_by_call_p_1): Likewise.
2882         (call_may_clobber_ref_p_1): Likewise.
2883         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2884         are either MEM_REF or TARGET_MEM_REF.
2885         (indirect_refs_may_alias_p): Likewise.
2886         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2887         for MEM_EXPR of indirect calls.
2888
2889 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2890
2891         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2892         (dst_file_info_struct): Remove flen field.
2893         (lookup_filename): Remove code that set flen field.
2894
2895 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2896
2897         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2898
2899 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2900
2901         PR target/48708
2902         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2903         vec_extract and vec_concat for non-SSE4_1 targets.
2904
2905 2011-04-21  Richard Guenther  <rguenther@suse.de>
2906
2907         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2908         return statements.
2909
2910 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2911
2912         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2913         undefine.
2914         (FILE): Don't undefine.
2915
2916 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2917
2918         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2919         struct rtx_def *.
2920         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2921         struct rtx_def *.
2922         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2923         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2924         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2925         rtx_def *.
2926         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2927         definitions where used.
2928         * config/microblaze/microblaze.h (struct microblaze_args): Use
2929         rtx, not struct rtx_def *.
2930         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2931         rtx_def *.
2932         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2933         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2934         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2935         not struct rtx_def *.
2936         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2937         struct rtx_def *.
2938         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2939         rtx_def *.
2940         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2941
2942 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2943
2944         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2945         operand_equal_p to compare DR_BASE_ADDRESSes.
2946         (vect_check_interleaving): Likewise.
2947
2948 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2949
2950         PR target/46329
2951         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2952         for all Neon struct constants.
2953
2954 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2955
2956         * target.def (legitimate_constant_p): New hook.
2957         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2958         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2959         * doc/tm.texi: Regenerate.
2960         * hooks.h (hook_bool_mode_rtx_true): Declare.
2961         * hooks.c (hook_bool_mode_rtx_true): Define.
2962         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2963         * calls.c (precompute_register_parameters): Replace uses of
2964         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2965         (emit_library_call_value_1): Likewise.
2966         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2967         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2968         * ira-costs.c (scan_one_insn): Likewise.
2969         * recog.c (general_operand, immediate_operand): Likewise.
2970         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2971         * reload1.c (init_eliminable_invariants): Likewise.
2972
2973         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2974         mode argument.
2975         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2976         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2977         argument.
2978         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2979         * config/alpha/predicates.md (input_operand): Update call to
2980         alpha_legitimate_constant_p.
2981
2982         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2983         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2984         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2985         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2986         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2987         (arm_legitimate_constant_p): New functions.
2988         (arm_cannot_force_const_mem): Make static.
2989
2990         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2991
2992         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2993         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2994         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2995         instead of bfin_legitimate_constant_p.
2996         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2997         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2998
2999         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3000
3001         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3002
3003         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3004         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3005         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3006         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3007
3008         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3009         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3010         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3011
3012         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3013         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3014         * config/i386/i386.c (legitimate_constant_p): Rename to...
3015         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3016         argument.
3017         (ix86_cannot_force_const_mem): Update accordingly.
3018         (ix86_legitimate_address_p): Likewise.
3019         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3020         * config/i386/i386.md: Update commentary.
3021
3022         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3023         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3024         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3025         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3026
3027         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3028
3029         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3030         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3031         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3032         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3033
3034         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3035         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3036         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3037
3038         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3039         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3040         (m32r_legitimate_constant_p): New function.
3041
3042         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3043         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3044         LEGITIMATE_CONSTANT_P.
3045         (LEGITIMATE_CONSTANT_P): Delete.
3046         * config/m68k/m68k.c (m68k_expand_prologue): Call
3047         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3048         (m68k_legitimate_constant_p): New function.
3049         * config/m68k/m68k.md: Update comments.
3050
3051         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3052         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3053         (mcore_legitimate_constant_p): New function.
3054
3055         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3056         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3057         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3058         Add a mode argument.
3059         (mep_legitimate_address): Update accordingly.
3060         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3061
3062         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3063         Delete.
3064         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3065         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3066         static.  Check OP's mode for VOIDmode.
3067         (microblaze_legitimate_constant_p): New function.
3068         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3069
3070         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3071         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3072         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3073         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3074         * config/mips/predicates.md: Update comments.
3075
3076         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3077         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3078         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3079         (mmix_legitimate_constant_p): Make static, return a bool, and take
3080         a mode argument.
3081         (mmix_print_operand_address): Update accordingly.
3082
3083         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3084         Delete.
3085         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3086         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3087         static.  Add a mode argument.
3088         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3089
3090         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3091
3092         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3093         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3094         (pa_legitimate_constant_p): New function.
3095
3096         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3097
3098         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3099         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3100         (pdp11_legitimate_constant_p): New function.
3101
3102         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3103         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3104         (rs6000_legitimate_constant_p): New function.
3105
3106         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3107         (rx_legitimate_constant_p): ...this.
3108         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3109         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3110         (rx_legitimate_constant_p): ...this.
3111         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3112         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3113
3114         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3115         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3116         * config/s390/s390.c (legitimate_constant_p): Rename to...
3117         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3118         and add a mode argument.
3119         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3120
3121         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3122
3123         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3124         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3125         (sh_legitimate_constant_p): New function.
3126
3127         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3128         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3129         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3130         (legitimate_constant_p): Rename to...
3131         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3132         argument.
3133         (constant_address_p): Update accordingly.
3134
3135         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3136         argument and return a bool.
3137         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3138         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3139         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3140         (spu_rtx_costs): Update accordingly.
3141         * config/spu/predicates.md (vec_imm_operand): Likewise.
3142
3143         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3144
3145         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3146         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3147         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3148
3149         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3150         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3151         * config/vax/vax.c (legitimate_constant_p): Likewise.
3152
3153         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3154         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3155         (xtensa_legitimate_constant_p): New function.
3156
3157 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3158
3159         * target.def (cannot_force_const_mem): Add a mode argument.
3160         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3161         * doc/tm.texi: Regenerate.
3162         * hooks.h (hook_bool_mode_rtx_false): Declare.
3163         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3164         (hook_bool_mode_const_rtx_true): Likewise.
3165         (hook_bool_mode_rtx_false): New function.
3166         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3167         to be non-VOID.  Update call to cannot_force_const_mem.
3168         (find_reloads): Update accordingly.
3169         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3170         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3171         argument.
3172         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3173         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3174         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3175         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3176         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3177         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3178         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3179         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3180         (m68k_cannot_force_const_mem): ...this new function.
3181         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3182         argument.
3183         (mips_const_insns, mips_legitimize_const_move): Update calls.
3184         (mips_secondary_reload_class): Likewise.
3185         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3186         (pa_cannot_force_const_mem): ...this new function.
3187         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3188         (rs6000_cannot_force_const_mem): ...this new function.
3189         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3190         argument.
3191         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3192         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3193         to...
3194         (xtensa_cannot_force_const_mem): ...this new function.
3195
3196 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3197
3198         * config/mips/mips.c (mips16_build_function_stub): Call
3199         build_function_type_list instead of build_function_type.
3200         (mips16_build_call_stub): Likewise.
3201
3202 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3203
3204         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3205         instead of build_function_type.
3206
3207 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3208
3209         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3210         instead of build_function_type.
3211
3212 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3213
3214         PR target/48678
3215         * config/i386/i386.md (insv): Change operand 0 constraint to
3216         "register_operand".  Change operand 1 and 2 constraint to
3217         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3218         * config/i386/sse.md (sse4_1_pinsrb): Export.
3219         (sse2_pinsrw): Ditto.
3220         (sse4_1_pinsrd): Ditto.
3221         (sse4_1_pinsrq): Ditto.
3222         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3223         * config/i386/i386.c (ix86_expand_pinsr): New.
3224
3225 2011-04-20  Easwaran Raman  <eraman@google.com>
3226
3227         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3228         containing union type only with -fstrict-aliasing.
3229
3230 2011-04-20  Jim Meyering  <meyering@redhat.com>
3231
3232         Remove useless if-before-free tests.
3233         * calls.c (expand_call, save_area): Likewise.
3234         * cfgcleanup.c (try_forward_edges): Likewise.
3235         * collect2.c (collect_execute): Likewise.
3236         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3237         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3238         * coverage.c (coverage_checksum_string): Likewise.
3239         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3240         * cselib.c (cselib_init): Likewise.
3241         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3242         (df_set_clean_cfg): Likewise.
3243         * function.c (free_after_compilation): Likewise.
3244         * gcc.c (do_spec_1, main): Likewise.
3245         * gcov.c (create_file_names): Likewise.
3246         * gensupport.c (identify_predicable_attribute): Likewise.
3247         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3248         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3249         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3250         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3251         * ipa-pure-const.c (local_pure_const): Likewise.
3252         * ipa-reference.c (propagate): Likewise.
3253         * ira-costs.c (free_ira_costs): Likewise.
3254         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3255         * matrix-reorg.c (mat_free): Likewise.
3256         * prefix.c (get_key_value): Likewise.
3257         * profile.c (compute_value_histograms): Likewise.
3258         * reload1.c (free_reg_equiv): Likewise.
3259         * sched-deps.c (free_deps): Likewise.
3260         * sel-sched-ir.c (fence_clear): Likewise.
3261         * sese.c (set_rename, if_region_set_false_region): Likewise.
3262         * tree-data-ref.c (free_rdg): Likewise.
3263         * tree-eh.c (lower_try_finally): Likewise.
3264         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3265         * tree-ssa-live.c (delete_var_map): Likewise.
3266         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3267         * tree-ssa-pre.c (phi_trans_add): Likewise.
3268
3269 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3270
3271         PR tree-optimization/48611
3272         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3273         beyond ERT_MUST_NOT_THROW region.
3274
3275 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3276
3277         * config/mips/mips.opt (mfix-24k): New.
3278         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3279         * config/mips/mips.md (length): Increase by 4 for stores if
3280         fixing 24K errata.
3281         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3282         all noreorder if fixing 24K errata.
3283         * doc/invoke.texi: Document mfix-24k.
3284
3285 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3286
3287         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3288         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3289
3290 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3291
3292         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3293         (const_ok_for_op): ... to here.
3294
3295 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3296
3297         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3298         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3299
3300 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3301
3302         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3303
3304 2011-04-20  Richard Guenther  <rguenther@suse.de>
3305
3306         PR tree-optimization/47892
3307         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3308         are if-convertible.
3309
3310 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
3311
3312         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3313
3314 2011-04-20  Tristan Gingold  <gingold@adacore.com>
3315
3316         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3317
3318 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
3319
3320         PR target/18145
3321
3322         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3323         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3324         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3325         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3326         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3327
3328         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3329         New prototype.
3330
3331         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3332         (avr_asm_named_section, avr_asm_output_aligned_common,
3333         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3334         New functions to update...
3335         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3336         (avr_asm_init_sections): Overwrite section callbacks for
3337         data_section, bss_section.
3338         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3339         from here to...
3340         (avr_file_end): ...here.
3341
3342 2011-04-20  Richard Guenther  <rguenther@suse.de>
3343
3344         PR middle-end/48695
3345         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
3346         objects and types here.  Adjust for their offset before comparing.
3347
3348 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3349
3350         * tree-vect-stmts.c (vectorizable_store): Only chain one related
3351         statement per copy.
3352
3353 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
3354
3355         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3356         (GIMPLE_H): Include $(INTERNAL_FN_H).
3357         (OBJS-common): Add internal-fn.o.
3358         (internal-fn.o): New rule.
3359         * internal-fn.def: New file.
3360         * internal-fn.h: Likewise.
3361         * internal-fn.c: Likewise.
3362         * gimple.h: Include internal-fn.h.
3363         (GF_CALL_INTERNAL): New gf_mask.
3364         (gimple_statement_call): Put fntype into a union with a new
3365         internal_fn field.
3366         (gimple_build_call_internal): Declare.
3367         (gimple_build_call_internal_vec): Likewise.
3368         (gimple_call_same_target_p): Likewise.
3369         (gimple_call_internal_p): New function.
3370         (gimple_call_internal_fn): Likewise.
3371         (gimple_call_fntype): Return null for internal calls.
3372         (gimple_call_set_fntype): Assert that the function is not internal.
3373         (gimple_call_set_fn): Likewise.
3374         (gimple_call_set_fndecl): Likewise.
3375         (gimple_call_set_internal_fn): New function.
3376         (gimple_call_addr_fndecl): Handle null functions.
3377         (gimple_call_return_type): Likewise null types.
3378         * gimple.c (gimple_build_call_internal_1): New function.
3379         (gimple_build_call_internal): Likewise.
3380         (gimple_build_call_internal_vec): Likewise.
3381         (gimple_call_same_target_p): Likewise.
3382         (gimple_call_flags): Handle calls to internal functions.
3383         (gimple_call_fnspec): New function.
3384         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3385         (gimple_has_side_effects): Handle null functions.
3386         (gimple_rhs_has_side_effects): Likewise.
3387         (gimple_call_copy_skip_args): Handle calls to internal functions.
3388         * cfgexpand.c (expand_call_stmt): Likewise.
3389         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3390         * gimple-fold.c (gimple_fold_call): Handle null functions.
3391         (gimple_fold_stmt_to_constant_1): Don't fold
3392         calls to internal functions.
3393         * gimple-low.c (gimple_check_call_args): Handle calls to internal
3394         functions.
3395         * gimple-pretty-print.c (dump_gimple_call): Likewise.
3396         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3397         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3398         (do_warn_unused_result): Likewise.
3399         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3400         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3401         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3402         the target of a call.
3403         (initialize_hash_element): Update accordingly.
3404         (hashable_expr_equal_p): Use gimple_call_same_target_p.
3405         (iterative_hash_hashable_expr): Handle calls to internal functions.
3406         (print_expr_hash_elt): Likewise.
3407         * tree-ssa-pre.c (can_value_number_call): Likewise.
3408         (eliminate): Handle null functions.
3409         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3410         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3411         (find_func_aliases): Likewise.
3412         * value-prof.c (gimple_ic_transform): Likewise.
3413         (gimple_indirect_call_to_profile): Likewise.
3414         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3415         * lto-streamer-out.c (output_gimple_stmt): Likewise.
3416
3417 2011-04-19  Jan Hubicka  <jh@suse.cz>
3418
3419         * ipa-inline-transform.c (save_inline_function_body): Add comments.
3420         * ipa-inline.c (inline_small_functions): Compute summaries first,
3421         populate heap later.
3422
3423 2011-04-19  Jan Hubicka  <jh@suse.cz>
3424
3425         * cgraph.h (save_inline_function_body): Remove.
3426         * ipa-inline-transform.c: New file, broke out of...
3427         * ipa-inline.c: ... this one; Update toplevel comment.
3428         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3429         make global.
3430         (update_noncloned_frequencies): Move to ipa-inline-transform.c
3431         (cgraph_mark_inline_edge): Rename to inline_call; move to
3432         ipa-inline-transform.c.
3433         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3434         move to ipa-inline-transform.c
3435         (recursive_inlining, inline_small_functions, flatten_function,
3436         ipa_inline, inline_always_inline_functions,
3437         early_inline_small_functions): Update.
3438         (inline_transform): Move to ipa-inline-transform.c.
3439         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3440         Declare.
3441         * Makefile.in (ipa-inline-transform.o): New file.
3442         * cgraphunit.c (save_inline_function_body): Move to
3443         ipa-inline-transform.c
3444
3445 2011-04-19  DJ Delorie  <dj@redhat.com>
3446
3447         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3448         registers if we already know there aren't any.
3449         (m32c_emit_epilogue): Don't emit a barrier here.
3450         (m32c_emit_eh_epilogue): Likewise.
3451         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3452         operands at expand time.
3453         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3454         int" wchar type.
3455         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3456         duplicates.  Provide aliases instead.
3457         * config/m32c/prologue.md (eh_return): Emit a barrier here.
3458         (eh_epilogue): Add a "(return)" here as a hint to other parts of
3459         the compiler.
3460
3461 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
3462
3463         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3464         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3465         (general_or_i64_p, sparc_register_move_cost): New function.
3466
3467 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3468
3469         * doc/install.texi (Configuration, --enable-threads): Remove mach.
3470         Add lynx, mipssde.  Sort table.
3471
3472 2011-04-19  Xinliang David Li  <davidxl@google.com>
3473
3474         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3475         not negative.
3476
3477 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
3478
3479         PR target/48678
3480         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3481         is a SUBREG with non-MODE_INT mode inside of it.
3482
3483 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3484
3485         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3486         also according to actual contants.
3487         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3488         (gimple_fold_call): Use it.
3489         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3490
3491 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3492
3493         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3494         non-pointer assignments.
3495
3496 2011-04-19  Martin Jambor  <mjambor@suse.cz>
3497
3498         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3499         account anc_offset and otr_type from the indirect edge info.
3500         * ipa-prop.c (get_ancestor_addr_info): New function.
3501         (compute_complex_ancestor_jump_func): Assignment analysis moved to
3502         get_ancestor_addr_info, call it.
3503         (ipa_note_param_call): Do not initialize information about polymorphic
3504         calls, return the indirect call graph edge.  Remove the last
3505         parameter, adjust all callers.
3506         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3507         parameters.  Initialize polymorphic information in the indirect edge.
3508
3509 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3510
3511         PR lto/48148
3512         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3513         the types if they have different enumeration identifiers.
3514
3515 2011-04-19  Jan Hubicka  <jh@suse.cz>
3516
3517         * cgraph.h (cgraph_optimize_for_size_p): Declare.
3518         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3519         * predict.c (cgraph_optimize_for_size_p): Break out from ...
3520         (optimize_function_for_size_p) ... here.
3521
3522 2011-04-19  Richard Guenther  <rguenther@suse.de>
3523
3524         PR lto/48207
3525         * tree.c (free_lang_data): Do not reset the decl-assembler-name
3526         langhook.
3527
3528 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3529
3530         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3531         if DECL_NO_INLINE_WARNING_P is set on the function.
3532
3533 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
3534
3535         PR fortran/47976
3536         * reload1.c (inc_for_reload): Return void. All callers changed.
3537         (emit_input_reload_insns): Don't try to delete previous output
3538         reloads to a register, or record spill_reg_store for autoincs.
3539
3540 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
3541
3542         * gengtype.h: Updated copyright year.
3543         (struct input_file_st): Add inpisplugin field.
3544         (type_fileloc): New function.
3545         * gengtype.c
3546         (write_typed_struct_alloc_def): Add gcc_assert.
3547         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3548         (write_typed_alloc_defns): Don't output for plugin files.
3549         (input_file_by_name): Clear inpisplugin field.
3550         (main): Set inpisplugin field for plugin files.
3551
3552 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
3553
3554         * gengtype-state.c (string_eq): New.
3555         (read_state): Use string_eq instead of strcmp when creating the
3556         state_ident_tab.
3557
3558 2011-04-19  Wei Guozhi  <carrot@google.com>
3559
3560         PR target/47855
3561         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3562         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3563         linkage.
3564         * config/arm/constraints.md (Uu): New constraint.
3565         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3566
3567 2011-04-19  Tristan Gingold  <gingold@adacore.com>
3568
3569         * config.gcc (-*-*-*vms): Added.
3570         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3571         definitions moved.
3572         * config/vms/vms-ld.c: New file.
3573         * config/vms/vms-ar.c: New file.
3574         * config/vms/t-vmsnative: New file.
3575
3576 2011-04-18  Xinliang David Li  <davidxl@google.com>
3577
3578         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3579
3580 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3581
3582         PR middle-end/48661
3583         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3584         if TREE_TYPE (v) is non-NULL.
3585
3586         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3587         gimple_get_virt_mehtod_for_binfo.
3588         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3589         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3590         callers.
3591         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3592
3593 2011-04-18  Michael Matz  <matz@suse.de>
3594             Steve Ellcey  <sje@cup.hp.com>
3595
3596         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3597         use its mode as source mode if it isn't VOIDmode.
3598
3599 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
3600
3601         * doc/passes.texi: Fill crossref nodes.
3602
3603 2011-04-18  Jim Meyering  <meyering@redhat.com>
3604
3605         Fix doubled-word typos in comments and strings
3606         * config/alpha/vms-unwind.h: s/for for/for/
3607         * config/arm/unwind-arm.h: Likewise.
3608         * config/microblaze/microblaze.c: Likewise.
3609         * config/sh/constraints.md: s/in in/in/
3610         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3611
3612 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
3613
3614         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3615         (AVX_FLOAT_MODE_P): Ditto.
3616         (AVX128_VEC_FLOAT_MODE_P): Ditto.
3617         (AVX256_VEC_FLOAT_MODE_P): Ditto.
3618         (AVX_VEC_FLOAT_MODE_P): Ditto.
3619         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3620         (UNSPEC_MASKSTORE): Ditto.
3621         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3622         Merge from <sse>_movmsk<ssemodesuffix> and
3623         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
3624         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
3625         iterator.
3626         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3627         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3628         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3629
3630 2011-04-18  Jan Hubicka  <jh@suse.cz>
3631
3632         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3633
3634         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3635         (want_inline_function_called_once_p): Break out the logic from
3636         ipa_inline.
3637         (edge_badness): Ensure that profile is not misupdated.
3638         (lookup_recursive_calls): Prioritize by call frequencies.
3639         (inline_small_functions): Move program size estimates here;
3640         actually process whole queue even when unit growth has been
3641         met. (to properly compute inline_failed reasons and for the
3642         case unit size decrease.) Revisit comments on recursive inlining.
3643         (ipa_inline): Remove unit summary code; first inline hot calls
3644         of functions called once, cold calls next.
3645         (order, nnodes): Remove unused variables.
3646         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3647         (GTFILES): Remove ipa-inline.c
3648         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3649
3650 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3651
3652         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3653
3654 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3655             Richard Earnshaw  <rearnsha@arm.com>
3656
3657         * arm.c (neon_builtin_type_bits): Remove.
3658         (typedef enum neon_builtin_mode): New.
3659         (T_MAX): Don't define.
3660         (typedef enum neon_builtin_datum): Remove bits, codes[],
3661         num_vars and base_fcode.  Add mode, code and fcode.
3662         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3663         VAR10): Change accordingly.
3664         (neon_builtin_data[]): Change accordingly
3665         (arm_init_neon_builtins): Change accordingly.
3666         (neon_builtin_compare): Remove.
3667         (locate_neon_builtin_icode): Remove.
3668         (arm_expand_neon_builtin): Change accordingly.
3669
3670         * arm.h (enum arm_builtins): Move to ...
3671         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3672
3673         * arm.c (arm_builtin_decl): Declare.
3674         (TARGET_BUILTIN_DECL): Define.
3675         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3676         (arm_builtin_decls[]): New.
3677         (arm_init_neon_builtins): Store builtin declarations in
3678         arm_builtin_decls[].
3679         (arm_init_tls_builtins): Likewise.
3680         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3681         (arm_builtin_decl): New.
3682
3683 2011-04-18  Richard Guenther  <rguenther@suse.de>
3684
3685         * tree.c (upper_bound_in_type): Build properly canonicalized
3686         INTEGER_CSTs.
3687         (lower_bound_in_type): Likewise.
3688
3689 2011-04-18  Richard Guenther  <rguenther@suse.de>
3690
3691         * gimple.h (gimple_call_addr_fndecl): New function.
3692         (gimple_call_fndecl): Use it.
3693         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3694         for direct calls.
3695         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3696         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3697
3698 2011-04-18  Richard Guenther  <rguenther@suse.de>
3699
3700         PR middle-end/48650
3701         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3702
3703 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3704
3705         PR lto/48492
3706         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3707         DECL_IN_CONSTANT_POOL without RTL.
3708
3709 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3710             Ira Rosen  <ira.rosen@linaro.org>
3711
3712         PR target/48252
3713         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3714         to match neon_vzip/vuzp/vtrn_internal.
3715         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3716         outputs explicitly dependent on both inputs.
3717         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3718
3719 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3720
3721         PR tree-optimization/48616
3722         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3723         whether the shift is by scalar or vector based on whether all SLP
3724         scalar stmts have the same rhs.
3725
3726 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3727
3728         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3729         memory operands.
3730
3731 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3732
3733         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3734         registers.
3735
3736 2011-04-17  Jan Hubicka  <jh@suse.cz>
3737
3738         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3739         * cgrpahunit.c (cgraph_finalize_function): Do not set
3740         finalized_by_frontend.
3741         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3742         finalized_by_frontend.
3743
3744 2011-04-17  Jan Hubicka  <jh@suse.cz>
3745
3746         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3747         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3748         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3749         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3750         method.
3751         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3752         gimple-fold.c
3753         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3754
3755 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3756
3757         PR lto/48538
3758         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3759         is non-null before accessing it.
3760         (input_cgraph): Remove trailing spaces.
3761
3762 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3763
3764         * params.def (sms-min-sc): New param flag.
3765         * modulo-sched.c (sms_schedule): Use it.
3766         * doc/invoke.texi (sms-min-sc): Document it.
3767
3768 2011-04-17  Jan Hubicka  <jh@suse.cz>
3769
3770         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3771         present, also set gimple_call_set_cannot_inline.
3772         * ipa-inline.c: Update toplevel comment.
3773         (MAX_TIME): Remove.
3774         (cgraph_clone_inlined_nodes): Fix linebreaks.
3775         (cgraph_check_inline_limits): Restructure to ...
3776         (caller_growth_limits): ... this one; be more tolerant
3777         on growth in nested inline chains; add explanatory comment;
3778         fix stack accounting thinko introduced by previous patch.
3779         (cgraph_default_inline_p): Remove.
3780         (report_inline_failed_reason): New function.
3781         (can_inline_edge_p): New function.
3782         (can_early_inline_edge_p): New function.
3783         (leaf_node_p): Move upwards in file.
3784         (want_early_inline_function_p): New function.
3785         (want_inline_small_function_p): New function.
3786         (want_inline_self_recursive_call_p): New function.
3787         (cgraph_edge_badness): Rename to ...
3788         (edge_badness) ... this one; fix linebreaks.
3789         (update_edge_key): Update call of edge_baddness; add
3790         detailed dump about queue updates.
3791         (update_caller_keys): Use can_inline_edge_p and
3792         want_inline_small_function_p.
3793         (cgraph_decide_recursive_inlining): Rename to...
3794         (recursive_inlining): Use can_inline_edge_p and
3795         want_inline_self_recursive_call_p; simplify and remove no longer
3796         valid FIXME.
3797         (cgraph_set_inline_failed): Remove.
3798         (add_new_edges_to_heap): Use can_inline_edge_p and
3799         want_inline_small_function_p.
3800         (cgraph_decide_inlining_of_small_functions): Rename to ...
3801         (inline_small_functions): ... this one; cleanup; use
3802         can/want predicates; cleanup debug ouput; work edges till fibheap
3803         is exhausted and do not stop once unit growth is reached; remove
3804         later loop processing remaining edges.
3805         (cgraph_flatten): Rename to ...
3806         (flatten_function): ... this one; use can_inline_edge_p
3807         and can_early_inline_edge_p predicates.
3808         (cgraph_decide_inlining): Rename to ...
3809         (ipa_inline): ... this one; remove unreachable nodes before
3810         inlining functions called once; simplify the pass.
3811         (cgraph_perform_always_inlining): Rename to ...
3812         (inline_always_inline_functions): ... this one; use
3813         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3814         (cgraph_decide_inlining_incrementally): Rename to ...
3815         (early_inline_small_functions): ... this one; simplify
3816         using new predicates; cleanup; make dumps prettier.
3817         (cgraph_early_inlining): Rename to ...
3818         (early_inliner): newer inline regular functions into always-inlines;
3819         fix updating of call stmt summaries.
3820         (pass_early_inline): Update for new names.
3821         (inline_transform): Fix formating.
3822         (gate_cgraph_decide_inlining): Rename to ...
3823         (pass_ipa_inline): ... this one.
3824         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3825         * ipa-inline-analysis.c (dump_inline_summary): Update.
3826         (compute_inline_parameters): Do not compute disregard_inline_limits;
3827         look for mismatching arguments.
3828         (estimate_growth): Fix handlig of non-trivial self recursion.
3829         (inline_read_summary): Do not read info->disregard_inline_limits.
3830         (inline_write_summary): Do not write info->disregard_inline_limits.
3831         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3832         and move all checks into can_inline_edge_p predicate; re-enable code
3833         comparing optimization levels.
3834         (expand_call_inline): Do not test inline_forbidden_into_p.
3835         * Makefile.in (ipa-inline.o): Update arguments.
3836
3837 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3838
3839         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3840
3841 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3842
3843         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3844
3845 2011-04-17  Michael Matz  <matz@suse.de>
3846
3847         PR tree-optimization/48622
3848         PR lto/48645
3849         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3850         in same order as they're written.
3851
3852 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3853
3854         * config/pa/predicates.md: Reorganize and simplify predicates.
3855         Eliminate duplicate code checks.
3856         (arith_operand): Rename to arith14_operand
3857         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3858         * config/pa/pa.md: Use renamed operands.
3859         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3860         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3861         arith11_operand, adddi3_operand, indexed_memory_operand,
3862         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3863         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3864         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3865         move_dest_operand, move_src_operand, prefetch_cc_operand,
3866         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3867         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3868         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3869         div_operand, int5_operand, movb_comparison_operator,
3870         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3871         arith_double_operand, ireg_operand, lhs_lshift_operand,
3872         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3873         integer_store_memory_operand): Likewise.
3874         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3875         (integer_store_memory_operand, read_only_operand,
3876         function_label_operand, borx_reg_operand,
3877         non_hard_reg_operand): Likewise.
3878         (eq_neq_comparison_operator): Delete unused operator.
3879         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3880         function_label_operand.
3881         (emit_move_sequence): Likewise.
3882
3883 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3884
3885         * config/i386/sse.md (sseunpackmode): New mode attribute.
3886         (ssepackmode): Ditto.
3887         (vec_pack_trunc_<mode>): Macroize expander from
3888         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3889         (vec_unpacks_lo_<mode>): Macroize expander from
3890         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3891         (vec_unpacks_hi_<mode>): Macroize expander from
3892         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3893         (vec_unpacku_lo_<mode>): Macroize expander from
3894         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3895         (vec_unpacku_hi_<mode>): Macroize expander from
3896         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3897         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3898         ix86_expand_sse4_unpack.
3899         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3900
3901 2011-04-16  Jan Hubicka  <jh@suse.cz>
3902
3903         * cgraphbuild.c: Include ipa-inline.h.
3904         (reset_inline_failed): Use initialize_inline_failed.
3905         * cgraph.c: Include ipa-inline.h.
3906         (cgraph_create_node_1): Do not initialize estimated_growth.
3907         (initialize_inline_failed): More to ipa-inline-analysis.c
3908         (dump_cgraph_node): Do not dump inline flags.
3909         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3910         and disregard_inline_limits flags.
3911         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3912         time, size, estimated_growth.
3913         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3914         Update.
3915         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3916         DECL_DISREGARD_INLINE_LIMITS.
3917         (cgraph_analyze_function): Do not initialize
3918         node->local.disregard_inline_limits.
3919         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3920         inlinable, versionable and disregard_inline_limits.
3921         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3922         cgraph_check_inline_limits, cgraph_default_inline_p,
3923         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3924         add_new_edges_to_heap): Update.
3925         (cgraph_decide_inlining_of_small_function): Update; set
3926         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3927         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3928         cgraph_decide_inlining_incrementally): Update.
3929         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3930         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3931         time, size and estimated_growth parameters.
3932         (estimate_edge_growth): Update.
3933         (initialize_inline_failed): Declare.
3934         * ipa-split.c: Include ipa-inline.h
3935         (execute_split_functions): Update.
3936         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3937         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3938         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3939         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3940         estimated_growth to INT_MIN.
3941         (inline_node_duplication_hook): Likewise.
3942         (dump_inline_summary): Dump new fields.
3943         (compute_inline_parameters): Update.
3944         (estimate_edge_time, estimate_time_after_inlining,
3945         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3946         inline_write_summary):
3947         (initialize_inline_failed): Move here from cgraph.c.
3948         * tree-sra.c: Include ipa-inline.h.
3949         (ipa_sra_preliminary_function_checks): Update.
3950         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3951         ipa-inline.h.
3952
3953 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3954
3955         * config/i386/sse.md (V16): New mode iterator.
3956         (VI1, VI8): Ditto.
3957         (AVXMODEQI, AVXMODEDI): Remove.
3958         (sse2, sse3): New mode attribute.
3959         (mov<mode>): Use V16 mode iterator.
3960         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3961         (push<mode>1): Use V16 mode iterator.
3962         (movmisalign<mode>): Ditto.
3963         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3964         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3965         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3966         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3967         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3968         avx_movdqu<avxmodesuffix>.
3969         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3970         *avx_movdqu<avxmodesuffix>.
3971         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3972         avx_lddqu<avxmodesuffix>.
3973         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3974         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3975         avx_movnt<AVXMODEDI:mode>.
3976         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3977         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3978
3979 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3980
3981         PR target/48629
3982         * haifa-sched.c (prune_ready_list, schedule_block): Use
3983         sched_pressure_p rather than flag_sched_pressure.
3984
3985 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
3986
3987         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3988         cgraph_get_node instead of cgraph_get_create_node.
3989
3990 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3991
3992         * cfgexpand.c (expand_debug_expr): Use
3993         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3994
3995 2011-04-15  Michael Matz  <matz@suse.de>
3996
3997         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3998         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3999         * function.c (gimplify_parameters): Ditto.
4000         * gimplify.c (gimplify_vla_decl): Ditto.
4001
4002         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4003         (gimple_call_set_alloca_for_var): New inline function.
4004         (gimple_call_alloca_for_var_p): Ditto.
4005         * gimple.c (gimple_build_call_from_tree): Remember
4006         CALL_ALLOCA_FOR_VAR_P state.
4007         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4008
4009         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4010         calls if they were for VLA objects.
4011
4012 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4013
4014         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4015         of ADR_EXPRs.
4016
4017 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4018
4019         PR middle-end/48601
4020         * tree-emutls.c (lower_emutls_function_body): Call
4021         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4022         result is non-NULL.
4023
4024 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4025
4026         * c-decl.c (detect_field_duplicates): Call
4027         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4028
4029 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4030
4031         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4032         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4033         * ipa-pure-const.c (check_stmt): Call it.
4034         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4035
4036 2011-04-15  Richard Guenther  <rguenther@suse.de>
4037
4038         PR tree-optimization/48290
4039         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4040         Properly decide inhibiting propagation based on the valueized
4041         operand.  Do loop-closed SSA form preserving here ...
4042         (init_copy_prop): ... not here.
4043
4044 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4045
4046         PR target/48612
4047         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4048         (*ieee_smax<mode>3): Likewise.
4049
4050 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4051
4052         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4053         Replace match_operand with match_dup for the third operand in
4054         these expanders.
4055
4056 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4057
4058         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4059         to track processing of conditionals.  Update all callers.
4060         (try_combine, simplify_if_then_else): Update.
4061
4062 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4063
4064         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4065         -fsched-pressure.
4066
4067 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4068
4069         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4070         instead of match_operand for operand 3.
4071
4072 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4073
4074         * recog.h (insn_operand_data): Add an "allows_mem" field.
4075         * genoutput.c (output_operand_data): Initialize it.
4076         * optabs.c (maybe_legitimize_operand_same_code): New function.
4077         (maybe_legitimize_operand): Use it when matching the original
4078         op->value.
4079
4080 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4081
4082         * gimplify.c: Fix issues in comments throughout.
4083         (voidify_wrapper_expr): Fix long line.
4084         (build_stack_save_restore): Likewise.
4085         (gimplify_loop_expr): Likewise.
4086         (gimplify_compound_lval): Likewise.
4087         (gimplify_init_ctor_eval): Likewise.
4088         (gimplify_modify_expr_rhs): Likewise.
4089         (omp_notice_threadprivate_variable): Likewise.
4090
4091 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4092
4093         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4094         original one if this is not a builtin function.
4095
4096 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4097
4098         PR target/48605
4099         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4100         offset it as needed based on top 2 bits in operands[3], change
4101         MEM mode to SFmode and mask those 2 bits away from operands[3].
4102
4103 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4104
4105         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4106         change from objc_declare_protocols() to objc_declare_protocol().
4107
4108 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4109
4110         * config/i386/sse.md (sse4_1): New mode attribute.
4111         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4112         avx_blend<ssemodesuffix><avxmodesuffix> and
4113         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4114         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4115         avx_blendv<ssemodesuffix><avxmodesuffix> and
4116         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4117         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4118         avx_dp<ssemodesuffix><avxmodesuffix> and
4119         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4120         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4121         (sse4_1_packusdw): Merge with *avx_packusdw.
4122         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4123         (sse4_1_pblendw): Merge with *avx_pblendw.
4124         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4125         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4126         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4127         VF mode iterator.
4128         (sse4_1_round<ssescalarmodesuffix>): Merge with
4129         *avx_round<ssescalarmodesuffix>.
4130         (aesenc): Merge with *avx_aesenc.
4131         (aesenclast): Merge with *avx_aesenclast.
4132         (aesdec): Merge with *avx_aesdec.
4133         (aesdeclast): Merge with *avx_aesdeclast.
4134         (pclmulqdq): Merge with *pclmulqdq.
4135         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4136         New predicate.
4137         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4138
4139 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4140
4141         PR middle-end/48608
4142         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4143         (align_local_variable): This.  Update DECL_ALIGN.
4144         (add_stack_var): Updated.
4145         (expand_one_stack_var): Likewise.
4146
4147 2011-04-14  Richard Guenther  <rguenther@suse.de>
4148
4149         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4150         Remove.
4151         (dse_initialize_block_local_data, dse_leave_block,
4152         record_voperand_set, get_stmt_uid): Likewise.
4153         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4154         (dse_optimize_stmt): Remove voperand set handling code.
4155         Simplify and improve to handle any kind of killing stmt.
4156         (dse_record_phi): Remove.
4157         (dse_enter_block): Simplify.
4158         (tree_ssa_dse): Likewise.
4159         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4160
4161 2011-04-14  Jan Hubicka  <jh@suse.cz>
4162
4163         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4164         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4165         (cgraph_local_info): Remove inline_summary.
4166         * ipa-cp.c: Include ipa-inline.h.
4167         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4168         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4169         accesor.
4170         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4171         (input_overwrite_node): Do not set inline summary.
4172         (input_node): Do not stream inline summary.
4173         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4174         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4175         growth; we do not have inline parameters computed for that anyway.
4176         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4177         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4178         (inline_summary_t): New type and VECtor.
4179         (debug_inline_summary, dump_inline_summaries): Declare.
4180         (inline_summary): Use VOCtor.
4181         (estimate_edge_growth): Kill hack computing call stmt size directly.
4182         * lto-section-in.c (lto_section_name): Add inline section.
4183         * ipa-inline-analysis.c: Include lto-streamer.h
4184         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4185         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4186         (inline_summary_vec): Define.
4187         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4188         dump_inline_summaries): New functions.
4189         (estimate_function_body_sizes): Properly compute size/time of outgoing
4190         calls.
4191         (compute_inline_parameters): Alloc inline_summary; do not compute
4192         size/time of incomming calls.
4193         (estimate_edge_time): Avoid missing time summary hack.
4194         (inline_read_summary): Read inline summary info.
4195         (inline_write_summary): Write inline summary info.
4196         (inline_free_summary): Free all hooks and inline summary vector.
4197         * lto-streamer.h: Add LTO_section_inline_summary section.
4198         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4199         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4200
4201 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4202
4203         * tree-vectorizer.h (vect_strided_store_supported): Add a
4204         HOST_WIDE_INT argument.
4205         (vect_strided_load_supported): Likewise.
4206         (vect_permute_store_chain): Return void.
4207         (vect_transform_strided_load): Likewise.
4208         (vect_permute_load_chain): Delete.
4209         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4210         count argument.  Check that the count is a power of two.
4211         (vect_strided_load_supported): Likewise.
4212         (vect_permute_store_chain): Return void.  Update after above changes.
4213         Assert that the access is supported.
4214         (vect_permute_load_chain): Likewise.
4215         (vect_transform_strided_load): Return void.
4216         * tree-vect-stmts.c (vectorizable_store): Update calls after
4217         above interface changes.
4218         (vectorizable_load): Likewise.
4219         (vect_analyze_stmt): Don't check for strided powers of two here.
4220
4221 2011-04-14  Richard Guenther  <rguenther@suse.de>
4222
4223         PR tree-optimization/48590
4224         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4225         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4226         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4227         BUILT_IN_STACK_SAVE.
4228         * tree-ssa-dce.c (propagate_necessity): Handle
4229         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4230
4231 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4232
4233         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4234         objc_declare_class.
4235
4236 2011-04-14  Richard Guenther  <rguenther@suse.de>
4237
4238         * tree.h (get_object_alignment_1): Declare.
4239         * builtins.c (get_object_alignment_1): Split out worker from ...
4240         (get_object_alignment): ... here.
4241         * fold-const.c (get_pointer_modulus_and_residue): Use
4242         get_object_alignment_1.
4243
4244 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4245
4246         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4247         type parameter.
4248         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4249         parameter.  Generalise code to handle arrays as well as vectors.
4250         (vect_setup_realignment): Update accordingly.
4251         * tree-vect-stmts.c (vectorizable_store): Likewise.
4252         (vectorizable_load): Likewise.
4253
4254 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4255
4256         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4257         within the per-copy loop.
4258
4259 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4260
4261         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4262         in the dump file.
4263
4264 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4265
4266         * doc/options.texi (Negative): Explicitly mention that the
4267         Negative chain must be circular.
4268
4269 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4270
4271         * function.h (block_chainon): Declare.
4272         * function.c (block_chainon): Define.
4273
4274 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4275             Eric Weddington  <eric.weddington@atmel.com>
4276             Georg-Johann Lay  <avr@gjlay.de>
4277
4278         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4279         New Includes
4280         (avr_init_builtins, avr_expand_builtin,
4281         avr_expand_delay_cycles, avr_expand_unop_builtin,
4282         avr_expand_binop_builtin ): New functions.
4283         (avr_builtin_id): New enum
4284         (struct avr_builtin_description): New struct
4285         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4286         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4287
4288         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4289         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4290         UNSPECV_DELAY_CYCLES): new enumeration values
4291         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4292         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4293         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4294         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4295         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4296         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4297         "fmulsu"): New insns
4298
4299         * config/avr/avr-c.c: fix line endings
4300         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4301         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4302         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4303         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4304         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4305
4306         * doc/extend.texi (AVR Built-in Functions): New node
4307         (Target Builtins): Add documentation of AVR
4308         built-in functions.
4309
4310 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
4311
4312         PR target/44643
4313         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4314         alone. Error if non-const data has attribute progmem.
4315
4316 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4317
4318         * tree.h (struct tree_constructor): Include tree_typed instead of
4319         tree_common.
4320         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4321         TS_TYPED instead of TS_COMMON.
4322
4323 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4324
4325         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4326         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4327         (sse2_psadbw): Merge with *avx_psadbw.
4328         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4329         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4330         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4331         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4332         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4333         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4334         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4335         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4336         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4337         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4338         (ssse3_palignrti): Merge with *avx_palignrti.
4339
4340 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4341
4342         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4343         * tree-ssanames.c (fini_ssanames): VEC_free it.
4344         (make_ssa_name_fn): Update for VECness of free_ssanames.
4345         (release_ssa_name, release_dead_ssa_names): Likewise.
4346         * tree.h (struct tree_ssa_name): Include tree_typed instead of
4347         tree_common.
4348         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4349         TS_TYPED instead of TS_COMMON.
4350
4351 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4352
4353         * postreload-gcse.c (gcse_after_reload_main): Add calls to
4354         statistics_counter_event.
4355         * tree-ssa-copyrename.c (stats): Define.
4356         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
4357         statistics_counter_event.
4358         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4359         (bswap_stats, widen_mul_stats): Define.
4360         (insert_reciprocals): Increment rdivs_inserted.
4361         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
4362         rfuncs_inserted.  Add calls to statistics_counter_event.
4363         (execute_cse_sincos_1): Increment inserted.
4364         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
4365         statistics_counter_event.
4366         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
4367         of bswap_stats.  Add calls to statistics_counter_event.
4368         (convert_mult_to_widen): Increment widen_mults_inserted.
4369         (convert_plusminus_to_widen): Increment maccs_inserted.
4370         (convert_mult_to_fma): Increment fmas_inserted.
4371         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
4372         calls to statistics_counter_event.
4373
4374 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4375
4376         PR rtl-optimization/48455
4377         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4378         `temp_costs->mem_cost'.
4379
4380 2011-04-13  Jan Hubicka  <jh@suse.cz>
4381
4382         * ipa-inline.h: New file.
4383         * ipa-inline-analysis.c: New file. Broken out of ...
4384         * ipa-inline.c: ... this file; update toplevel comment;
4385         include ipa-inline.h
4386         (inline_summary): Move to ipa-inline.h
4387         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4388         ipa-inline-analysis.c.
4389         (cgraph_estimate_time_after_inlining): Rename to
4390         estiamte_time_after_inlining; move to ipa-inline-analysis.c
4391         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4392         to estimate_edge_growth.
4393         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4394         rename to estimate_size_after_inlining.
4395         (cgraph_mark_inline_edge): Update for new naming convention.
4396         (cgraph_check_inline_limits): Likewise.
4397         (cgraph_edge_badness): Likewise.
4398         (cgraph_decide_recursive_inlining): Likewise.
4399         (cgraph_decide_inlining_of_small_functions): Likewise.
4400         (cgraph_decide_inlining_incrementally): Likewise.
4401         (cgraph_estimate_growth): Rename to estimate_growth; move to
4402         ipa-inline-analysis.c.
4403         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4404         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4405         (compute_inline_parameters): Likewise.
4406         (compute_inline_parameters_for_current): Likewise.
4407         (pass_inline_parameters): Likewise.
4408         (inline_indirect_intraprocedural_analysis): Likewise.
4409         (analyze_function): Rename to inline_analyze_function; likewise.
4410         (add_new_function): Move to ipa-inline-analysis.c.
4411         (inline_generate_summary): Likewise.
4412         (inline_read_summary): Likewise.
4413         (inline_write_summary): Likewise.
4414         * Makefile.in (ipa-inline-analysis.c): New file.
4415
4416 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4417
4418         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4419         * configure: Regenerate.
4420
4421 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
4422
4423         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4424         instead of tree_common.
4425         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4426         Likewise.
4427         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4428         TS_TYPED rather than TS_COMMON.
4429         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4430
4431 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
4432
4433         PR target/45263
4434         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4435         r20 around calls of __tablejump_elpm__
4436
4437 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
4438
4439         PR middle-end/48591
4440         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4441         NULL.
4442         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4443
4444 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
4445
4446         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4447         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4448         (cfi_vec): New typedef.
4449         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4450         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4451         (cie_cfi_vec): New static variable.
4452         (cie_cfi_head): Delete.
4453         (add_cfi): Accept a cfi_vec * as first argument. All callers and
4454         declaration changed. Use vector rather than list operations.
4455         (new_cfi): Don't initialize the dw_cfi_next field.
4456         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4457         rather than list operations.
4458         (lookup_cfa): Use vector rather than list operations.
4459         (output_cfis): New argument upto. Accept a cfi_vec rather than
4460         a dw_cfi_ref list head as argument. All callers changed.
4461         Iterate over the vector using upto as a maximum index.
4462         (output_all_cfis): New static function.
4463         (output_fde): Use vector rather than list operations. Use the
4464         new upto argument for output_cfis rather than manipulating a
4465         list.
4466         (dwarf2out_begin_prologue): Change initializations to match
4467         new struct members.
4468         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4469         from the vector length rather than searching for the end of a list.
4470         Use output_all_cfis.
4471         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4472
4473 2011-04-13  Nick Clifton  <nickc@redhat.com>
4474
4475         * config/rx/rx.md (movmemsi): Do not use this pattern when
4476         volatile pointers are involved.
4477
4478 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
4479
4480         * config/i386/sse.md (pinsrbits): Remove.
4481         (sse2_packsswb): Merge with *avx_packsswb.
4482         (sse2_packssdw): Merge with *avx_packssdw.
4483         (sse2_packuswb): Merge with *avx_packuswb.
4484         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4485         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4486         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4487         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4488         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4489         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4490         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4491         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4492         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4493         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4494         (sse2_loadld): Merge with *avx_loadld.
4495         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4496         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4497         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4498         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4499         (vec_concatv2di): Merge with *vec_concatv2di_avx.
4500
4501 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
4502
4503         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4504         calling TREE_CHAIN.
4505         * print-tree.c (print_node): Likewise.
4506         * tree-inline.c (copy_tree_r): Likewise.
4507         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4508         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4509         instead of TS_COMMON.
4510         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4511         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4512         (copy_node_stat): Zero TREE_CHAIN only if necessary.
4513         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4514         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4515         ...and these...
4516         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4517         * tree.h: ...here.
4518         (TREE_CHAIN): Check for a TS_COMMON structure.
4519         (TREE_TYPE): Check for a TS_TYPED structure.
4520
4521 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
4522
4523         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4524         cgraph_get_create_node instead of cgraph_node.
4525
4526 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4527
4528         * c-parser.c (c_parser_initelt): Updated call to
4529         objc_build_message_expr.
4530         (c_parser_postfix_expression): Likewise.
4531
4532 2011-04-12  Kai Tietz  <ktietz@redhat.com>
4533
4534         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4535         MASK_MS_BITFIELD_LAYOUT bit.
4536
4537 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4538
4539         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4540         assert it is always true.
4541         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4542         moves.
4543
4544 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
4545
4546         * c-parser.c (c_lex_one_token): Rewritten conditional used when
4547         compiling Objective-C to be more efficient.
4548
4549 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
4550
4551         * opts-common.c (decode_cmdline_options_to_array): Remove variable
4552         argv_copied.
4553
4554 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4555
4556         * recog.h, genoutput.c, optabs.c: Revert last patch.
4557
4558 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4559
4560         PR target/48090
4561         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4562
4563 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4564
4565         * recog.h (insn_operand_data): Add an "allows_mem" field.
4566         * genoutput.c (output_operand_data): Initialize it.
4567         * optabs.c (maybe_legitimize_operand_same_code): New function.
4568         (maybe_legitimize_operand): Use it when matching the original
4569         op->value.
4570
4571 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4572
4573         * genpreds.c (process_define_predicate): Move most processing
4574         to gensupport.c.  Continue to validate the expression.
4575         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4576         (process_define_predicate): Move processing to gensupport.c.
4577         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4578         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4579         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
4580         argument.
4581         (valid_predicate_name_p): New function, split out from old
4582         genpreds.c:process_define_predicate.
4583         (process_define_predicate): New function, combining code from
4584         old genpreds.c and genrecog.c functions.
4585         (process_rtx): Call it for DEFINE_PREDICATE and
4586         DEFINE_SPECIAL_PREDICATE.
4587
4588 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
4589
4590         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4591         size of a '%A' memory reference.
4592         (T_DREG, T_QREG): New neon_builtin_type_bits.
4593         (arm_init_neon_builtins): Assert that the load and store operands
4594         are neon_struct_operands.
4595         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4596         (NEON_ARG_MEMORY): New builtin_arg.
4597         (neon_dereference_pointer): New function.
4598         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4599         Handle NEON_ARG_MEMORY.
4600         (arm_expand_neon_builtin): Update after above interface changes.
4601         Use NEON_ARG_MEMORY for loads and stores.
4602         * config/arm/predicates.md (neon_struct_operand): New predicate.
4603         * config/arm/iterators.md (V_two_elem): Tweak formatting.
4604         (V_three_elem): Use BLKmode for accesses that have no associated mode.
4605         (V_four_elem): Tweak formatting.
4606         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4607         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4608         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4609         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4610         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4611         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4612         (neon_vst4<mode>): Replace pointer operand with a memory operand.
4613         Use %A in the output template.
4614         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4615         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4616         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4617         the width of the memory access.  Remove post-increment.
4618         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4619
4620 2011-04-12  Nick Clifton  <nickc@redhat.com>
4621
4622         * config/v850/v850.c (expand_prologue): Do not use the CALLT
4623         instruction for interrupt handlers if the target is the basic V850
4624         architecture.
4625         (expand_epilogue): Likewise.
4626
4627 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4628
4629         PR rtl-optimization/48549
4630         * combine.c (propagate_for_debug): Also stop after BB_END of
4631         this_basic_block.  Process LAST and just stop processing after it.
4632         (combine_instructions): If last_combined_insn has been deleted,
4633         set last_combined_insn to its PREV_INSN.
4634
4635 2011-04-12  Richard Guenther  <rguenther@suse.de>
4636
4637         PR tree-optimization/46076
4638         * gimple.h (struct gimple_statement_call): Add fntype field.
4639         (gimple_call_fntype): Adjust.
4640         (gimple_call_set_fntype): New function.
4641         * gimple.c (gimple_build_call_1): Set the call function type.
4642         * gimplify.c (gimplify_call_expr): Preserve the function
4643         type the frontend used for the call.
4644         (gimplify_modify_expr): Likewise.
4645         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4646         function type.
4647         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4648         function type.
4649         * tree-ssa.c (useless_type_conversion_p): Function pointer
4650         conversions are useless.
4651
4652 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4653
4654         * cgraph.h (cgraph_node): Remove function declaration.
4655         (cgraph_create_node): Declare.
4656         (cgraph_get_create_node): Likewise.
4657         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4658         Updated all callers.
4659         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4660         the decl does not already exist.  Call cgraph_get_create_node instead
4661         of cgraph_node.
4662         (cgraph_get_create_node): New function.
4663         (cgraph_same_body_alias): Update comment.
4664         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4665         assert it does not return NULL.
4666         (cgraph_update_edges_for_call_stmt): Likewise.
4667         (cgraph_clone_edge): Likewise.
4668         (cgraph_create_virtual_clone): Likewise.
4669         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4670         instead of cgraph_node.
4671         (cgraph_add_new_function): Call cgraph_create_node or
4672         cgraph_get_create_node instead of cgraph_node.
4673         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4674         instead of cgraph_node.
4675         (record_eh_tables): Likewise.
4676         (mark_address): Likewise.
4677         (mark_load): Likewise.
4678         (build_cgraph_edges): Call cgraph_get_create_node instead
4679         of cgraph_node.
4680         (rebuild_cgraph_edges): Likewise.
4681         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4682         instead of cgraph_node.
4683         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4684         cgraph_node.
4685         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4686         cgraph_create_node instead of cgraph_node.
4687         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4688         of cgraph_node.
4689         * lto-cgraph.c (input_node): Likewise.
4690         * lto-streamer-in.c (input_function): Likewise.
4691         * varasm.c (mark_decl_referenced): Likewise.
4692         (assemble_alias): Likewise.
4693
4694 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4695
4696         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4697         instead of cgraph_node and assert it does not return NULL.
4698         * lto-streamer-in.c (lto_read_body): Likewise.
4699         * omp-low.c (new_omp_context): Likewise.
4700         (create_task_copyfn): Likewise.
4701         * tree-emutls.c (lower_emutls_function_body): Likewise.
4702         * matrix-reorg.c (transform_allocation_sites): Likewise.
4703
4704 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4705
4706         PR c/48552
4707         * c-typeck.c (build_asm_expr): Error out on attempts to use
4708         void type outputs or inputs for constraints that allow reg or
4709         don't allow memory.
4710
4711 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4712             Richard Earnshaw  <rearnsha@arm.com>
4713
4714         PR target/48250
4715         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4716         to use sign-magnitude offsets. Reject unsupported unaligned
4717         cases. Add detailed description in comments.
4718         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4719         condition from TARGET_32BIT to TARGET_ARM.
4720
4721 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4722
4723         * tree.h (struct typed_tree): New.
4724         (struct tree_common): Include it instead of tree_base.
4725         (TREE_TYPE): Update for new location of type field.
4726         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4727         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4728         (union tree_node): Add typed field.
4729         * treestruct.def (TS_TYPED): New.
4730         * lto-streamer.c (check_handled_ts_structures): Handle it.
4731         * tree.c (MARK_TS_TYPED): New macro.
4732         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4733
4734 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4735
4736         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4737         (force_nonfallthru): Do not alter the loop nest if no basic block
4738         was created.
4739
4740 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4741
4742         * config/i386/sse.md (VI): New mode iterator.
4743         (SSEMODEI): Remove.
4744         (AVX256MODEI): Ditto.
4745         (AVXMODEF4P): Ditto.
4746         (avxvecpsmode): Ditto.
4747         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4748         (sse2_andnot<mode>3): New expander.
4749         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4750         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4751         (<any_logic:code><mode>3): Use VI mode iterator.
4752         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4753         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4754         (*andnottf3): Handle AVX three-operand constraints.
4755         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4756
4757 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4758             Robert Millan  <rmh@gnu.org>
4759
4760         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4761         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4762         GNU_USER_DYNAMIC_LINKER64): Define.
4763         (REG_NAME): Don't undefine.
4764         (MD_UNWIND_SUPPORT): Undefine.
4765         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4766         (REG_NAME): Don't undefine.
4767         (MD_UNWIND_SUPPORT): Undefine.
4768         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4769
4770 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4771
4772         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4773         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4774
4775 2011-04-11  Xinliang David Li  <davidxl@google.com>
4776
4777         * value-profile.c (check_ic_target): New function.
4778         (gimple_ic_transform): Sanity check indirect call target.
4779         * gimple-low.c (gimple_check_call_args): Interface change.
4780         (gimple_check_call_matching_types): New function.
4781         * tree-inline.c (tree_can_inline_p): Call new function.
4782
4783 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4784
4785         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4786         tree-pretty-print.h & realmpfr.h.
4787
4788 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4789
4790         PR middle-end/48464
4791         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4792         (setup_allocno_and_important_classes): Ditto.
4793
4794 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4795
4796         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4797         GNU_USER_DYNAMIC_LINKER.
4798         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4799         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4800         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4801         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4802         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4803         GNU_USER_TARGET_OS_CPP_BUILTINS.
4804         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4805         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4806         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4807         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4808         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4809         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4810         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4811         GNU_USER_TARGET_OS_CPP_BUILTINS.
4812         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4813         GNU_USER_DYNAMIC_LINKER.
4814         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4815         GNU_USER_TARGET_OS_CPP_BUILTINS.
4816         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4817         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4818         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4819         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4820         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4821         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4822         GNU_USER_DYNAMIC_LINKER64): Remove.
4823         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4824         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4825         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4826         GNU_USER_DYNAMIC_LINKER.
4827         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4828         GNU_USER_TARGET_OS_CPP_BUILTINS.
4829         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4830         GNU_USER_TARGET_OS_CPP_BUILTINS.
4831         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4832         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4833         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4834         GNU_USER_TARGET_OS_CPP_BUILTINS.
4835         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4836         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4837         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4838         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4839         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4840         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4841         GNU_USER_DYNAMIC_LINKER.
4842         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4843         GNU_USER_TARGET_OS_CPP_BUILTINS.
4844         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4845         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4846         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4847         GNU_USER_DYNAMIC_LINKER.
4848         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4849         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4850         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4851         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4852         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4853         GNU_USER_DYNAMIC_LINKER.
4854         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4855         GNU_USER_DYNAMIC_LINKERN32.
4856         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4857         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4858         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4859         GNU_USER_DYNAMIC_LINKER32.
4860         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4861         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4862         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4863         GNU_USER_DYNAMIC_LINKER.
4864         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4865         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4866         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4867         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4868         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4869         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4870         GNU_USER_DYNAMIC_LINKER32.
4871         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4872         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4873         GNU_USER_DYNAMIC_LINKER.
4874         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4875         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4876         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4877         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4878         GNU_USER_DYNAMIC_LINKER64.
4879         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4880         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4881         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4882         GNU_USER_DYNAMIC_LINKER.
4883         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4884         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4885         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4886         GNU_USER_DYNAMIC_LINKER.
4887         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4888         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4889         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4890         GNU_USER_DYNAMIC_LINKER32.
4891         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4892         GNU_USER_DYNAMIC_LINKER64.
4893         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4894         GNU_USER_DYNAMIC_LINKER64.
4895         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4896         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4897         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4898         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4899         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4900
4901 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4902
4903         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4904         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4905         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4906         GNU_USER_DYNAMIC_LINKER.
4907         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4908         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4909         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4910         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4911         GNU_USER_DYNAMIC_LINKER64.
4912         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4913         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4914         GNU_USER_LINK_EMULATION.
4915         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4916         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4917         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4918         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4919         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4920         CPP_SPEC, CC1_SPEC): Remove.
4921         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4922         (GNU_USER_DYNAMIC_LINKER): Define.
4923         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4924         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4925         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4926         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4927         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4928         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4929         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4930         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4931         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4932         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4933         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4934         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4935         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4936         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4937         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4938         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4939         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4940         GNU_USER_DYNAMIC_LINKER.
4941         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4942         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4943         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4944         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4945         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4946         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4947         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4948         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4949         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4950         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4951
4952 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4953
4954         PR target/9601
4955         PR target/11772
4956         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4957         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4958         comment.
4959         (ix86_is_msabi_thiscall): Removed.
4960         (ix86_is_type_thiscall): Likewise.
4961         (ix86_get_callcvt): New function.
4962         (ix86_comp_type_attributes): Simplify check.
4963         (ix86_function_regparm): Use ix86_get_callcvt for calling
4964         convention attribute checks.
4965         (ix86_return_pops_args): Likewise.
4966         (ix86_static_chain): Likewise.
4967         (x86_this_parameter): Likewise.
4968         (x86_output_mi_thunk): Likewise.
4969         (ix86_function_type_abi): Optimize check for types without attributes.
4970         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4971         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4972         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4973         by flag-values.
4974         (IX86_BASE_CALLCVT): Helper macro.
4975         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4976         Use ix86_get_callcvt for calling convention attribute checks and avoid
4977         symbol-decoration for stdcall in TARGET_RTD case.
4978         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4979         Likewise.
4980         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4981         for declaration.
4982
4983 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4984
4985         * config/i386/sse.md (VI_128): New mode iterator.
4986         (VI12_128): Rename from SSEMODE12.
4987         (VI14_128): Rename from SSEMODE14.
4988         (VI124_128): New mode iterator.
4989         (VI24_128): Rename from SSEMODE248.
4990         (VI248_128): Rename from SSEMODE248.
4991         (SSEMODE124C8): Remove.
4992         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4993         (*sse2_<plusminus_insn><mode>3): Merge with
4994         *avx_<plusminus_insn><mode>3.
4995         (*mulv8hi3): Merge with *avx_mulv8hi3.
4996         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4997         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4998         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4999         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5000         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5001         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5002         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5003         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5004         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5005         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5006         (*<smaxmin:code>v8hi3): Ditto.
5007         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5008         (*<smaxmin:code>v16qi3): Ditto.
5009         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5010         (*sse2_eq<mode>3): Ditto.
5011         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5012         (*sse2_gt<mode>3): Ditto.
5013         (vcondv2di): Split out of vcond<mode>.
5014         (vconduv2di): Split out of vcondu<mode>.
5015
5016 2011-04-11  Richard Guenther  <rguenther@suse.de>
5017
5018         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5019         before calling tree_low_cst.
5020
5021 2011-04-11  Richard Guenther  <rguenther@suse.de>
5022
5023         * stor-layout.c (layout_type): Compute all array index size operations
5024         in the original type.
5025         (initialize_sizetypes): Add comment.
5026         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5027
5028 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5029
5030         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5031
5032 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5033
5034         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5035         of cgraph_node, handle NULL return value.
5036         (cgraph_global_info): Likewise.
5037         (cgraph_rtl_info): Likewise.
5038         * tree-inline.c (estimate_num_insns): Likewise.
5039         * gimplify.c (unshare_body): Likewise.
5040         (unvisit_body): Likewise.
5041         (gimplify_body): Likewise.
5042         * predict.c (optimize_function_for_size_p): Likewise.
5043         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5044         (call_may_clobber_ref_p_1): Likewise.
5045         * varasm.c (function_section_1): Likewise.
5046         (assemble_start_function): Likewise.
5047
5048 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5049
5050         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5051         of cgraph_node.
5052         * final.c (rest_of_clean_state): Likewise.
5053         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5054         * passes.c (pass_init_dump_file): Likewise.
5055         (execute_all_ipa_transforms): Likewise.
5056         (function_called_by_processed_nodes_p): Likewise.
5057         * predict.c (maybe_hot_frequency_p): Likewise.
5058         (probably_never_executed_bb_p): Likewise.
5059         (compute_function_frequency): Likewise.
5060         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5061         (unnest_nesting_tree_1): Likewise.
5062         (lower_nested_functions): Likewise.
5063         * tree-optimize.c (execute_fixup_cfg): Likewise.
5064         (tree_rest_of_compilation): Likewise.
5065         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5066         * tree-sra.c (ipa_early_sra): Likewise.
5067         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5068         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5069         * ipa.c (record_cdtor_fn): Likewise.
5070         * ipa-inline.c (cgraph_early_inlining): Likewise.
5071         (compute_inline_parameters_for_current): Likewise.
5072         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5073         * ipa-pure-const.c (local_pure_const): Likewise.
5074         * ipa-split.c (split_function): Likewise.
5075         (execute_split_functions): Likewise.
5076         * cgraphbuild.c (build_cgraph_edges): Likewise.
5077         (rebuild_cgraph_edges): Likewise.
5078         (cgraph_rebuild_references): Likewise.
5079         (remove_cgraph_callee_edges): Likewise.
5080         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5081         (verify_cgraph_node): Likewise.
5082         (cgraph_analyze_functions): Likewise.
5083         (cgraph_preserve_function_body_p): Likewise.
5084         (save_inline_function_body): Likewise.
5085         (save_inline_function_body): Likewise.
5086         * tree-inline.c (copy_bb): Likewise.
5087         (optimize_inline_calls): Likewise.
5088
5089 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5090
5091         PR tree-optimization/48195
5092         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5093         ipa_check_create_edge_args.
5094         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5095         ipa_check_create_edge_args.
5096         * ipa-inline.c (inline_generate_summary): Do not call
5097         ipa_check_create_node_params and ipa_check_create_edge_args.
5098         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5099         ipa_check_create_edge_args.
5100
5101 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5102
5103         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5104         instead of loop.
5105         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5106         * function.c (record_hard_reg_sets): Likewise.
5107         * ira.c (compute_regs_asm_clobbered): Likewise.
5108         * sched-deps.c (sched_analyze_1): Likewise.
5109         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5110
5111 2011-04-09  Xinliang David Li  <davidxl@google.com>
5112
5113         PR tree-optimization/PR48484
5114         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5115         has_valid_pred lazily
5116
5117 2011-04-09  Duncan Sands  <baldrick@free.fr>
5118
5119         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5120
5121 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5122
5123         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5124         cost of I0 to zero at the end, if any.
5125
5126 2011-04-08  Xinliang David Li  <davidxl@google.com>
5127
5128         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5129         to insane profile data.
5130
5131 2011-04-08  Xinliang David Li  <davidxl@google.com>
5132
5133         * ipa-cp.c (ipcp_update_profiling): Correct
5134          negative scale factor due to insane profile data.
5135
5136 2011-04-08  Xinliang David Li  <davidxl@google.com>
5137
5138         * final.c (dump_basic_block_info): New function.
5139         (final): Dump basic block.
5140         (final_scan_insn): Remove old dump.
5141
5142 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5143
5144         PR target/47829
5145         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5146         crtbegin/crtend.
5147
5148 2011-04-08  Michael Matz  <matz@suse.de>
5149
5150         PR middle-end/48389
5151         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5152         functions.
5153         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5154         * rtl.h (rebuild_jump_labels_chain): Declare.
5155         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5156         insns inserted on edges.
5157
5158 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5159
5160         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5161         * config/arm/arm-arches.def: New.
5162         * config/arm/arm-opts.h: New.
5163         * config/arm/genopt.sh: New.
5164         * config/arm/arm-tables.opt: New (generated).
5165         * config/arm/arm.c (arm_handle_option, arm_target_help,
5166         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5167         (all_architectures): Get most table contents from arm-arches.def.
5168         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5169         arm_selected_tune here.
5170         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5171         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5172         (march=, mcpu=, mtune=): Use Enum and Var.
5173         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5174         (arm.o): Update dependencies.
5175
5176 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5177
5178         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5179         of header_file.
5180         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5181         (write_typed_alloc_defns): Likewise.
5182         (main): Calls write_typed_alloc_defns with output_header.
5183
5184 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5185
5186         PR inline-asm/48435
5187         * ira-color.c (setup_profitable_hard_regs): Add comments.
5188         Don't take prohibited hard regs into account.
5189         (setup_conflict_profitable_regs): Rename to
5190         get_conflict_profitable_regs.
5191         (check_hard_reg_p): Check prohibited hard regs.
5192
5193 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5194
5195         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5196         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5197         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5198
5199 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5200
5201         PR target/48366
5202         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5203         move from floating point to shift amount register.
5204         (emit_move_sequence): Remove secondary reload support for floating
5205         point to shift amount amount register copies.
5206         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5207         amount register copies.
5208         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5209         register, return false if mode isn't a scalar integer mode.
5210         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5211
5212 2011-04-08  Richard Guenther  <rguenther@suse.de>
5213
5214         * gimple.c (gimple_call_flags): Remove kludge.
5215
5216 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5217
5218         * sel-sched.c (sel_region_init): Move call to
5219         sel_setup_region_sched_flags after setup_current_loop_nest.
5220
5221 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5222
5223         PR rtl-optimization/48272
5224         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5225         init_insn_reg_pressure_info.  Adjust a caller.
5226         * sched-int.h (init_insn_reg_pressure_info): Declare.
5227         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5228         when sched-pressure is enabled.
5229
5230 2011-04-08  Richard Guenther  <rguenther@suse.de>
5231
5232         * gimple.c (gimple_set_modified): Do not queue calls to
5233         MODIFIED_NORETURN_CALLS here ...
5234         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5235
5236 2011-04-08  Richard Guenther  <rguenther@suse.de>
5237
5238         PR lto/48467
5239         * toplev.c (lang_dependent_init): Do not open asm_out_file
5240         in WPA mode, nor perform debug machinery initialization.
5241         (finalize): Do not unlink asm_out_file in WPA mode.
5242
5243 2011-04-08  Richard Guenther  <rguenther@suse.de>
5244
5245         * gimple.h (gimple_call_fntype): New function.
5246         (gimple_call_return_type): Use it.
5247         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5248         * gimple-low.c (gimple_check_call_args): Likewise.
5249         * gimple.c (gimple_call_flags): Likewise.
5250         (gimple_call_arg_flags): Likewise.
5251         (gimple_call_return_flags): Likewise.
5252         * tree-cfg.c (verify_gimple_call): Likewise.
5253         (do_warn_unused_result): Likewise.
5254         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5255         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5256
5257 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5258
5259         PR rtl-optimization/48235
5260         * sel-sched.c (code_motion_process_successors): Recompute the last
5261         insn in basic block if control flow changed.
5262         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5263         Update condition for ilist_remove.
5264
5265 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5266
5267         PR rtl-optimization/48302
5268         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5269         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5270         it to record added preheader blocks.
5271         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5272         on to sel_add_loop_preheaders.
5273         (sel_region_init): Move call to setup_current_loop_nest after
5274         sel_init_bbs.
5275
5276 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5277
5278         PR target/48273
5279         * cfgloop.h (loop_has_exit_edges): New helper.
5280         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5281         non-clonable.
5282         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5283         that have no exit edges.
5284
5285 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5286
5287         PR rtl-optimization/48442
5288         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5289         all callers.  Adjust assert.
5290
5291 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5292
5293         PR tree-optimization/48377
5294         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5295         is_packed to true even for types with smaller TYPE_ALIGN than
5296         TYPE_SIZE.
5297
5298 2011-04-08  Richard Guenther  <rguenther@suse.de>
5299
5300         PR bootstrap/48513
5301         * doc/tm.texi: Re-generate.
5302
5303 2011-04-08  Wei Guozhi  <carrot@google.com>
5304
5305         PR target/47855
5306         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5307         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5308         * config/arm/arm.md (*push_multi): Change the length computation to
5309         call a C function.
5310
5311 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
5312
5313         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5314         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5315         * doc/tm.texi: Regenerate.
5316         * system.h (ASM_OUTPUT_BSS): Poison.
5317         * varasm.c (asm_output_bss): Remove function.
5318         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
5319
5320         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5321         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5322         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5323         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5324         Likewise.
5325         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5326         Likewise.
5327         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5328         Likewise.
5329         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5330
5331 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5332
5333         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5334         EnumValue lines.
5335
5336 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
5337
5338         * config/m68k/m68k.c (m68k_handle_option): Don't handle
5339         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5340         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5341         OPT_mcpu32.
5342         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5343         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5344         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5345         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5346         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5347         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5348         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5349         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5350         options.  Don't map other m68k options manually.  Don't handle
5351         old-style options as canonical.
5352         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5353         * doc/install.texi (m68k-*-*): Document binutils version requirement.
5354
5355 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
5356
5357         * basic-block.h (force_nonfallthru): Move to...
5358         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5359         (force_nonfallthru): ...here.
5360         * cfghooks.c (force_nonfallthru): New function.
5361         * cfgrtl.c (force_nonfallthru): Rename into...
5362         (rtl_force_nonfallthru): ...this.
5363         (commit_one_edge_insertion): Do not set AUX field.
5364         (commit_edge_insertions): Do not discover new basic blocks.
5365         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5366         (cfg_layout_rtl_cfg_hooks): Likewise.
5367         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5368         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
5369         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5370
5371 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
5372
5373         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5374         Remove macros.
5375
5376 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
5377
5378         * config/i386/sse.md: Update copyright year.
5379         (avxcvtvecmode): Remove.
5380         (sse_movhlps): Merge with *avx_movhlps.
5381         (sse_movlhps): Merge with *avx_movlhps.
5382         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5383         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5384         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5385         (sse_loadhps): Merge with *avx_loadhps.
5386         (sse_storelps): Merge with *avx_storelps.
5387         (sse_loadlps): Merge with *avx_loadlps.
5388         (sse_movss): Merge with *avx_movss.
5389         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5390         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5391         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5392         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5393         (vec_set<mode>_0): Ditto.
5394         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5395         (sse4_1_insertps): Merge with *avx_insertps.
5396         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5397         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5398         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5399         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5400         (sse2_storehpd): Merge with *avx_storehpd.
5401         (sse2_loadhpd): Merge with *avx_loadhpd.
5402         (sse2_loadlpd): Merge with *avx_loadlpd.
5403         (sse2_movsd): Merge with *avx_movsd.
5404         (*vec_concatv2df): Merge with *vec_concatv2df.
5405
5406 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
5407
5408         PR debug/48343
5409         * combine.c (combine_instructions): Add last_combined_insn,
5410         update it if insn is after it, pass it to all try_combine calls.
5411         (try_combine): Add last_combined_insn parameter, pass it instead of
5412         i3 to propagate_for_debug.
5413
5414 2011-04-07  Nick Clifton  <nickc@redhat.com>
5415
5416         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5417         to handle MDR <-> data register transfers.
5418         (movhi_internal): Likewise.
5419
5420 2011-04-07  Alan Modra  <amodra@gmail.com>
5421
5422         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5423         previous stack info.
5424
5425 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5426
5427         PR target/43920
5428         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
5429         flow_find_cross_jump.  Swap variables to implement backward replacement.
5430         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5431
5432 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5433
5434         PR target/43920
5435         * cfgcleanup.c (walk_to_nondebug_insn): New function.
5436         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
5437         and bb2.
5438         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5439         src1 or src2.  Redirect edges to the last basic block.  Update
5440         frequency and count on multiple basic blocks in case of fallthru.
5441
5442 2011-04-07  Tom de Vries  <tom@codesourcery.com>
5443
5444         PR target/43920
5445         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5446         function.
5447         (old_insns_match_p): Change return type.  Replace return false/true
5448         with return dir_none/dir_both.  Use can_replace_by.
5449         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
5450         direction from dir_p.  Register replacement direction in dir, last_dir
5451         and afterlast_dir.  Handle new return type of old_insns_match_p using
5452         merge_dir.  Return replacement direction in dir_p.
5453         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5454         return type of old_insns_match_p.
5455         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5456         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5457         flow_find_cross_jump.
5458         * basic-block.h (enum replace_direction): New type.
5459         (flow_find_cross_jump): Add parameter to declaration.
5460
5461 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5462
5463         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5464         (AVXMODEDCVTPS2DQ): Ditto.
5465         (VEC_FLOAT_MODE): Ditto.
5466         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
5467         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5468         (<any_logic:code><mode>3): Use VF mode iterator.
5469         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5470         Use VF mode iterator.
5471         (copysign<mode>3): Use VF mode iterator.
5472         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
5473         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5474         (*<any_logic:code><MODEF:mode>3): Merge with
5475         *avx_<any_logic:code><MODEF:mode>3.
5476         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5477         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5478         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5479         (avx_cvtdq2ps<avxmodesuffix>): Remove.
5480         (sse2_cvtdq2ps): Use %v modifier.
5481         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5482         (avx_cvtps2dq<avxmodesuffix>): Remove.
5483         (sse2_cvtps2dq): Use %v modifier.
5484         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5485         (avx_cvttps2dq<avxmodesuffix>): Remove.
5486         (sse2_cvttps2dq): Use %v modifier.
5487         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5488         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5489         (sse2_cvtsd2siq): Fix insn template.
5490         (sse2_cvtsd2siq_2): Ditto.
5491         (sse2_cvttsd2siq): Ditto.
5492         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5493         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5494
5495 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5496
5497         * gcov-io.c: Use GCC Runtime Library Exception.
5498
5499 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
5500
5501         PR debug/48466
5502         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5503         as base_reg whatever register reg has been eliminated to, instead
5504         of hardcoding STACK_POINTER_REGNUM.
5505
5506 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
5507
5508         * doc/tm.texi.in: Document C target hooks as separate from general
5509         target hooks.
5510         * doc/tm.texi: Regenerate.
5511         * genhooks.c (struct hook_desc): Add docname field.
5512         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
5513         docname field.
5514         (hook_array): Include c-target.def.
5515         (emit_documentation): Use docname field in output.
5516         (emit_init_macros): Take docname argument.  Only emit definitions
5517         for hooks matching docname.
5518         (main): Expect additional arguments in all cases.  Pass argument
5519         to emit_init_macros.
5520         * target.def: Move initial macro definitions and comments to
5521         target-hooks-macros.h.
5522         (gcc_targetcm): Move to c-family/c-target.def.
5523         * target.h (targetcm): Move declaration to c-family/c-target.h.
5524         * targhooks.c (default_handle_c_option): Move to
5525         c-family/c-opts.c.
5526         * targhooks.h (default_handle_c_option): Move declaration to
5527         c-family/c-common.h.
5528         * target-hooks-macros.h: New file.
5529         * config.gcc (target_has_targetcm): Define and use to add to
5530         c_target_objs and cxx_target_objs.
5531         * config/default-c.c: New file.
5532         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5533         of target.h and target-def.h.
5534         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5535         (darwin_objc_construct_string, darwin_cfstring_ref_p,
5536         darwin_check_cfstring_format_arg): Make static.
5537         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5538         TARGET_STRING_OBJECT_REF_TYPE_P,
5539         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5540         * config/darwin-protos.h (darwin_objc_construct_string,
5541         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5542         declare.
5543         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5544         TARGET_STRING_OBJECT_REF_TYPE_P,
5545         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5546         * config/t-darwin (darwin-c.o): Update dependencies.
5547         * system.h (TARGET_HAS_TARGETCM): Poison.
5548         * Makefile.in (TARGET_H): Update.
5549         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5550         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5551         (default-c.o): New target.
5552         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5553         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5554         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
5555         c-target.def.
5556         (build/genhooks.o): Update dependencies.
5557
5558 2011-04-06  Richard Guenther  <rguenther@suse.de>
5559
5560         * ipa-inline.c (enum inlining_mode): Remove.
5561         (cgraph_flatten): Use some other token.
5562         (cgraph_edge_early_inlinable_p): New function, split out from ...
5563         (cgraph_perform_always_inlining): New function, split out from ...
5564         (cgraph_decide_inlining_incrementally): ... here.
5565         (cgraph_mark_inline_edge): Adjust.
5566         (cgraph_early_inlining): Re-structure.
5567         (pass_early_inline): Require SSA form.
5568
5569 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
5570             Julian Brown  <julian@codesourcery.com>
5571             Mark Shinwell  <shinwell@codesourcery.com>
5572
5573         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5574         LO_REGS only for Thumb-1.
5575         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5576         be used in short instructions when optimising for size on Thumb-2.
5577
5578 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5579
5580         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5581         associated with user returns to be preserved.
5582
5583 2011-04-06  Tristan Gingold  <gingold@adacore.com>
5584
5585         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5586         symbol_queue_size, DBXOUT_DECR_NESTING,
5587         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5588         if XCOFF_DEBUGGING_INFO.
5589
5590 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
5591
5592         * config/i386/i386.md (attribute isa): New.
5593         (attribute enabled): New.
5594         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5595         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5596         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5597         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5598         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5599         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5600         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5601         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5602
5603         * config/i386/sse.md (VF): New mode iterator.
5604         (VF1): Ditto.
5605         (VF2): Ditto.
5606         (VF_128): Ditto.
5607         (SSEMODEF4): Remove.
5608         (attribute sse): Handle V8SF and V4DF modes.
5609         (<absneg:code><mode>2): Use VF mode iterator.
5610         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
5611         mode iterator.
5612         (<plusminus_insn><mode>3): Use VF mode iterator.
5613         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5614         Use VF mode iterator.
5615         (<sse>_vm<plusminus_insn><mode>3): Merge with
5616         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
5617         (mul<mode>3): Use VF mode iterator.
5618         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
5619         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
5620         mode iterator.
5621         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5622         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5623         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
5624         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
5625         mode iterator.
5626         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5627         Use VF1 mode iterator.
5628         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5629         (sqrt<VF2:mode>2): New expander.
5630         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5631         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5632         and sqrtv2df2.  Use VF mode iterator.
5633         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
5634         mode iterator.
5635         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5636         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5637         Use VF1 mode iterator.
5638         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5639         (<smaxmin:code><mode>3): Use VF mode iterator.
5640         (*<smaxmin:code><mode>3_finite): Merge with
5641         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
5642         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5643         (<sse>_vm<smaxmin:code><mode>2): Merge with
5644         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
5645         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
5646         mode iterator.
5647         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5648         mode iterator.
5649         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5650         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5651         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5652         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5653         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5654         VF mode iterator.
5655         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5656         Use VF_128 mode iterator.
5657         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5658         mode iterator.
5659         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5660         VF_128 mode iterator.
5661         (vcond<mode>): Use VF mode iterator.
5662         * config/i386/predicates.md (sse_comparison_operator): Merge with
5663         avx_comparison_float_operator.  Do not declare as special_predicate.
5664         * config/i386/i386.c (struct builtin_description): Update for renamed
5665         compare patterns.
5666         (ix86_expand_args_builtin): Ditto.
5667         (ix86_expand_sse_compare_mask): Ditto.
5668
5669 2011-04-06  Richard Guenther  <rguenther@suse.de>
5670
5671         * tree-inline.c (estimate_num_insns): For calls simply account
5672         for all passed arguments and a used return value.
5673
5674 2011-04-06  Richard Guenther  <rguenther@suse.de>
5675
5676         PR tree-optimization/47663
5677         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5678         call_stmt_time fields.
5679         (cgraph_edge_inlinable_p): Declare.
5680         (cgraph_edge_recursive_p): New inline function.
5681         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5682         (cgraph_clone_edge): Copy it.
5683         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5684         Account for call stmt time.
5685         (cgraph_estimate_time_after_inlining): Take edge argument.
5686         (cgraph_estimate_edge_growth): Account call stmt size.
5687         (cgraph_estimate_size_after_inlining): Take edge argument.
5688         (cgraph_mark_inline_edge): Adjust.
5689         (cgraph_check_inline_limits): Likewise.
5690         (cgraph_recursive_inlining_p): Remove.
5691         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5692         (cgraph_decide_recursive_inlining): Take edge argument and
5693         adjust.
5694         (cgraph_decide_inlining_of_small_functions): Do not avoid
5695         diags for recursive inlining here.
5696         (cgraph_flatten): Adjust.
5697         (cgraph_decide_inlining_incrementally): Likewise.
5698         (estimate_function_body_sizes): Remove call cost handling.
5699         (compute_inline_parameters): Initialize caller edge call costs.
5700         (cgraph_estimate_edge_growth): New function.
5701         (cgraph_estimate_growth): Use it.
5702         (cgraph_edge_badness): Likewise.
5703         (cgraph_check_inline_limits): Take an edge argument.
5704         (cgraph_decide_inlining_of_small_functions): Adjust.
5705         (cgraph_decide_inlining): Likewise.
5706         * tree-inline.c (estimate_num_insns): Only account for call
5707         return value if it is used.
5708         (expand_call_inline): Avoid diagnostics on recursive inline
5709         functions here.
5710         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5711         (input_edge): Input edge call costs.
5712
5713 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5714
5715         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5716
5717 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5718
5719         * doc/invoke.texi (Spec Files): Fix typo.
5720
5721 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5722
5723         * profile.c (branch_prob): Move declaration of local variable.  Remove
5724         obsolete ??? comment.  Expand the location explicitly instead of using
5725         the LOCATION_FILE and LOCATION_LINE macros.
5726
5727 2011-04-06  Wei Guozhi  <carrot@google.com>
5728
5729         PR target/47855
5730         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5731         (arm_cond_branch): Likewise.
5732         (arm_cond_branch_reversed): Likewise.
5733         (arm_jump): Likewise.
5734         (push_multi): Likewise.
5735         * config/arm/constraints.md (Py): New constraint.
5736
5737 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5738
5739         PR bootstrap/48471
5740         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5741         Move these...
5742         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5743         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5744         #ifdef DBX_DEBUGGING_INFO.
5745
5746 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5747
5748         PR bootstrap/48403
5749         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5750         if old and new states differ.
5751
5752 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5753
5754         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5755         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5756         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5757         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5758         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5759         mcfv4e): Use Alias.
5760         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5761         ColdFire options to -mcpu= options.
5762
5763 2011-04-05  Jeff Law  <law@redhat.com>
5764
5765         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5766         check if BB is a successor of LOOP->header and return
5767         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5768
5769 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5770
5771         * cprop.c (struct reg_use): Remove.
5772         (reg_use_table): Make an array of RTX.
5773         (find_used_regs, constprop_register, local_cprop_pass,
5774         bypass_block): Simplify users of reg_use_table.
5775         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5776         on one of the uses found by find_used_regs.
5777
5778 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5779
5780         PR bootstrap/48469
5781         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5782         declaration.
5783
5784 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5785
5786         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5787         as an rtx.
5788         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5789
5790 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5791
5792         PR middle-end/48441
5793         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5794
5795 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5796
5797         * combine.c: Include obstack.h.
5798         (struct insn_link): Define.
5799         (uid_log_links): Adjust type.
5800         (FOR_EACH_LOG_LINK): New macro.
5801         (insn_link_obstack): Declare.
5802         (alloc_insn_link): Define.
5803         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5804         type of link variables.
5805         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5806         (try_combine, record_promoted_values, distribute_notes): Likewise.
5807         (distribute_links): Likewise.  Tweak prototype.
5808         (clear_log_links): Delete.
5809         (adjust_for_new_dest): Call alloc_insn_link.
5810         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5811
5812 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5813
5814         * gcse.c (modify_mem_list): Convert to an array of VECs.
5815         (canon_modify_mem_list, compute_transp): Tweak formatting.
5816         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5817         (load_killed_in_block_p): Likewise.
5818         (record_last_mem_set_info): Likewise.
5819         (clear_modify_mem_tables): Likewise.
5820
5821 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5822
5823         PR middle-end/48461
5824         * function.c (emit_use_return_register_into_block): Only define if
5825         HAVE_return.
5826
5827 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5828
5829         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5830
5831 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5832
5833         * config/rx/rx-opts.h: New.
5834         * config/rx/rx.c (rx_cpu_type): Remove.
5835         (rx_handle_option): Don't assert that global structures are in
5836         use.  Access variables via opts pointer.  Defer most handling of
5837         OPT_mint_register_.  Use error_at.
5838         (rx_option_override): Handle deferred OPT_mint_register_ here.
5839         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5840         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5841         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5842         (rx_cpu_types): New Enum and EnumValue entries.
5843         (mint-register=): Use Defer and use Var accordingly.
5844
5845 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5846
5847         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5848         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5849         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5850         Move these...
5851         (debug_free_queue, debug_nesting, symbol_queue_index):
5852         ...and these...
5853         * dbxout.c: ...to here.  Make static.
5854
5855 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5856
5857         * gcse.c (modify_pair): Define.  Define a VEC of it.
5858         (canon_modify_mem_list): Convert to an array of VECs.
5859         (free_insn_expr_list_list): Delete.
5860         (clear_modify_mem_tables): Call VEC_free instead.
5861         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5862         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5863         (canon_list_insert, compute_transp): Likewise.
5864
5865 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5866
5867         PR target/43920
5868         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5869         for size.
5870
5871 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5872
5873         PR target/43920
5874         * function.c (emit_use_return_register_into_block): New function.
5875         (thread_prologue_and_epilogue_insns): Use
5876         emit_use_return_register_into_block.
5877
5878 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5879
5880         PR target/43920
5881         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5882         insn.
5883
5884 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5885
5886         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5887
5888 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5889
5890         * config/arm/arm.md (define_constants for unspec): Replace with
5891         define_c_enum.
5892         (define_constants for unspecv): Replace with define_c_enum.
5893         * config/arm/neon.md (define_constants for unspec): Replace with
5894         define_c_enum.
5895
5896 2011-04-04  Richard Henderson  <rth@redhat.com>
5897
5898         PR bootstrap/48400
5899         * dwarf2out.c (output_line_info): Always emit line info from
5900         at least one section.
5901         (dwarf2out_init): Create text_section_line_info here ...
5902         (set_cur_line_info_table): ... not here.
5903
5904 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5905
5906         PR target/48380
5907         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5908         not called.
5909
5910         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5911
5912 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5913
5914         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5915         (expr_equiv_p): Remove.
5916         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5917         (hash_scan_set): Update call to insert_set_in_table.
5918         (dump_hash_table): Dump <dest, src> pair.
5919         (lookup_set): Simplify.  Lookup <dest, src> pair.
5920         (compute_transp): Remove, fold heavily simplified code into...
5921         (compute_local_properties): ...here.  Expect COMP and TRANSP
5922         unconditionally.
5923         (find_avail_set): Take set directly from struct expr.
5924         (find_bypass-set): Likewise.
5925         (bypass_block): Likewise.
5926         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5927
5928         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5929         checks on form of COND from find_implicit_sets to here.
5930         (find_implicit_sets): Cleanup control flow. Split critical edges
5931         if it exposes implicit sets.  Allocate/resize implicit_sets as
5932         necessary.
5933         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5934         changed something.  Run df_analyze after find_implicit_sets if any
5935         edges were split.  Do not allocate implicit_sets here.
5936
5937         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5938         (gcse_obstack): Renamed to cprop_obstack.
5939         (GNEW, GNEWVEC, GNEWVAR): Remove.
5940         (gmalloc): Remove.
5941         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5942         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5943         (gcse_alloc): Likewise, and rename to cprop_alloc.
5944         (alloc_gcse_men, free_gcse_mem): Remove.
5945         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5946         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5947         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5948
5949         * cprop.c (oprs_not_set_p): Remove.
5950         (mark_set, mark_clobber): Remove.
5951         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5952         (reg_not_set_p): New function.
5953         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5954         (cprop_insn): Likewise.
5955         (cprop_jump): Use FOR_EACH_EDGE.
5956
5957 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5958
5959         PR bootstrap/48403
5960         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5961         (rank_for_schedule): Use scheduled_insns vector instead of
5962         last_scheduled_insn.
5963         (ok_for_early_queue_removal): Likewise.
5964         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5965         we have a dbg_cnt.
5966         (choose_ready): Likewise.
5967         (commit_schedule): Use VEC_iterate.
5968         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5969         a dbg_cnt, use it and ensure the first insn is in the ready list.
5970         (haifa_sched_init): Allocate scheduled_insns.
5971         (sched_extend_ready_list): Don't allocate it; reserve space.
5972         (haifa_sched_finish): Free it.
5973
5974 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5975
5976         * optc-gen.awk: Always remove type from Variable entry before
5977         recording in var_seen.
5978
5979 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5980
5981         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5982         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5983         call to tidy_fallthru_edges.
5984
5985 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5986
5987         * doc/options.texi (ToLower): Document.
5988         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5989         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5990         * opts.h (cl_option): Add cl_tolower field.
5991         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5992         arguments with lowercase strings.
5993         * config/rx/rx.opt (mcpu=): Add ToLower.
5994         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5995         argument.
5996
5997 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5998
5999         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6000
6001 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6002
6003         * config/vax/vax.c: Include reload.h.
6004
6005 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6006
6007         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6008         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6009         (sparc_preferred_reload_class): New function.
6010
6011 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6012
6013         PR debug/48401
6014         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6015         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6016
6017 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6018
6019         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6020         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6021
6022 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6023
6024         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6025         (ASM_OUTPUT_ALIGNED_BSS): Define.
6026
6027 2011-04-03  Michael Matz  <matz@suse.de>
6028
6029         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6030         and next_slot members.
6031         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6032         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6033         (lto_streamer_cache_append): Declare.
6034         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6035         unsigned index, remove offset parameter, ensure that we append
6036         or update existing entries.
6037         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6038         parameter, update next_slot for append.
6039         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6040         parameter.
6041         (lto_streamer_cache_insert_at): Likewise.
6042         (lto_streamer_cache_append): New function.
6043         (lto_streamer_cache_lookup): Use unsigned index.
6044         (lto_streamer_cache_get): Likewise.
6045         (lto_record_common_node): Don't test tree_node_can_be_shared.
6046         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6047         (lto_streamer_cache_delete): Don't free offsets member.
6048         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6049         (lto_output_string_with_length): Use lto_output_data_stream.
6050         (lto_output_tree_header): Remove ix parameter, don't write it.
6051         (lto_output_builtin_tree): Likewise.
6052         (lto_write_tree): Adjust callers to above, don't track and write
6053         offset, write unsigned index.
6054         (output_unreferenced_globals): Don't emit all global vars.
6055         (write_global_references): Use unsigned indices.
6056         (lto_output_decl_state_refs): Likewise.
6057         (write_symbol): Likewise.
6058         * lto-streamer-in.c (lto_input_chain): Move earlier.
6059         (input_function): Use unsigned index.
6060         (input_alias_pairs): Don't read and then ignore all global vars.
6061         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6062         don't pass it back, use lto_streamer_cache_append.
6063         (lto_register_var_decl_in_symtab): Use unsigned index.
6064         (lto_register_function_decl_in_symtab): Likewise.
6065         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6066         index.
6067         (lto_get_builtin_tree): Don't read index, use
6068         lto_streamer_cache_append.
6069         (lto_read_tree): Adjust call to lto_materialize_tree.
6070
6071         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6072         don't use function calls in arguments to MIN.
6073
6074         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6075         twice.
6076
6077         * gimple.c (gimple_type_leader_entry): Mark deletable.
6078
6079 2011-04-03  Alan Modra  <amodra@gmail.com>
6080
6081         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6082
6083 2011-04-03  Michael Matz  <matz@suse.de>
6084
6085         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6086         an integer.
6087         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6088
6089 2011-04-03  Michael Matz  <matz@suse.de>
6090
6091         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6092         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6093         without function context.
6094         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6095         current_function_decl and cfun.
6096
6097 2011-04-03  Michael Matz  <matz@suse.de>
6098
6099         * tree.c (decl_init_priority_insert): Don't create entry for
6100         default priority.
6101         (decl_fini_priority_insert): Ditto.
6102         (fields_compatible_p, find_compatible_field): Remove.
6103         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6104         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6105
6106 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6107
6108         * combine.c (try_combine): Remove useless local variable.
6109
6110 2011-04-03  Richard Guenther  <rguenther@suse.de>
6111             Ira Rosen  <ira.rosen@linaro.org>
6112
6113         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6114         non-variable offsets and compare the remaining bases of the two
6115         accesses instead of looking for exact same data-ref.
6116
6117 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6118
6119         PR target/48416
6120         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6121
6122         * i386.c (ix86_is_msabi_thiscall): New helper function.
6123         (ix86_is_type_thiscall): New helper function.
6124         (ix86_comp_type_attributes): Handle thiscall for method-functions
6125         special.
6126         (init_cumulative_args): Likewise.
6127         (find_drap_reg): Likewise.
6128         (ix86_static_chain): Likewise.
6129         (x86_this_parameter): Likewise.
6130         (x86_output_mi_thunk): Likewise.
6131
6132 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6133             Nicolas Setton  <setton@adacore.com>
6134             Eric Botcazou  <ebotcazou@adacore.com>
6135
6136         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6137         (add_gnat_descriptive_type_attribute): New function.
6138         (gen_array_type_die): Call it.
6139         (gen_enumeration_type_die): Likewise.
6140         (gen_struct_or_union_type_die): Likewise.
6141         (modified_type_die): Likewise.
6142         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6143         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6144         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6145
6146 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6147
6148         PR bootstrap/48148
6149         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6150         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6151
6152         Revert:
6153         2011-03-17  Richard Guenther  <rguenther@suse.de>
6154
6155         PR bootstrap/48148
6156         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6157         origin for decls in other ltrans units.
6158         (input_varpool_node): Likewise.
6159
6160 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6161
6162         PR middle-end/48335
6163         * expr.c (expand_assignment): Handle all possibilities
6164         if TO_RTX is CONCAT.
6165         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6166         (store_split_bit_field): If SUBREG_REG (op0) or
6167         op0 itself has smaller mode than word, return it
6168         for offset 0 and const0_rtx for out-of-bounds stores.
6169         If word is const0_rtx, skip it.
6170
6171 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6172
6173         * config/h8300/h8300.c (print_operand_address): Rename to...
6174         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6175         Call h8300_print_operand and h8300_print_operand_address instead of
6176         print_operand and print_operand_address. Declare.
6177         (print_operand): Renake to...
6178         (h8300_print_operand): ...this. Make static. Adjust comments.
6179         Call h8300_print_operand instead of print_operand. Declare.
6180         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6181         (h8300_register_move_cost): Likewise.
6182         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6183         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6184         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6185         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6186         * config/h8300/h8300-protos.h (print_operand): Delete.
6187         (print_operand_address): Delete.
6188
6189 2011-04-01  Richard Henderson  <rth@redhat.com>
6190
6191         PR 48400
6192         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6193         in strict mode before dwarf4.  Re-order tests to early out
6194         before switching sections.
6195
6196 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6197
6198         * config/h8300/constraints.md: New file.
6199         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6200         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6201         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6202         * config/h8300/predicates.md (bit_operand): Likewise.
6203         (incdec_operand): Use satisfies_constraint_M and
6204         satisfies_constraint_O.  Don't use C code block.
6205         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6206         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6207         (compute_mov_length): Use satisfies_constraint_G.
6208         (fix_bit_operand): Use satisfies_constraint_U.
6209         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6210         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6211         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6212         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6213         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6214         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6215         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6216         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6217         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6218         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6219         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6220         (EXTRA_MEMORY_CONSTRAINT): Delete.
6221
6222 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6223             Michael Meissner  <meissner@linux.vnet.ibm.com>
6224
6225         PR target/48262
6226         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6227         operands, as per the specifications.
6228
6229         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6230         (vec_extract_evenv4sf): Ditto.
6231         (vec_extract_evenv8hi): Ditto.
6232         (vec_extract_evenv16qi): Ditto.
6233         (vec_extract_oddv4si): Ditto.
6234
6235 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6236
6237         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6238         high_pc attribute if the CU has no associated code. Only output
6239         DW_AT_entry_pc for CU if not generating strict dwarf and
6240         dwarf_version < 4.
6241
6242 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6243
6244         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6245         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6246         out of ...
6247         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6248         * final.c (final_start_function): Call the new function rather
6249         than using a NULL argument for dwarf2out_frame_debug.
6250
6251         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6252         that contains the prologue.
6253
6254         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6255         changed.  Print it in debugging output.
6256
6257         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6258
6259         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6260         Split most of the code into...
6261         (begin_move_insn): ... here.  New function.
6262         (ebb_sched_info): Add a pointer to it.
6263         * haifa-sched.c (scheduled_insns): New static variable.
6264         (sched_extend_ready_list): Allocate it.
6265         (schedule_block): Use it to record the order of scheduled insns.
6266         Perform RTL changes to move insns only after all scheduling
6267         decisions have been made.
6268         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6269         begin_move_insn field.
6270         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6271         * sched-int.h (struct haifa_sched_info): Remove second argument
6272         from begin_schedule_ready hook.  Add new member begin_move_insn.
6273         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6274         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6275
6276         * haifa-sched.c (prune_ready_list): New function, broken out of
6277         schedule_block.
6278         (schedule_block): Use it.
6279
6280 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6281
6282         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6283
6284 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6285
6286         * config.gcc (*-*-mingw*): Allow as option the
6287         posix threading model.
6288         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6289         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6290         definition.
6291         (CPP_SPEC): Add pthread/no-pthread handling.
6292         (LIB_SPEC): Likewise.
6293         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6294         (LIB_SPEC): Likewise.
6295         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6296         flag to pass -pthread option for shared libgcc build.
6297         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6298         for shared libgcc build.
6299         * config/i386/t-mingw-pthread: New file.
6300         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6301         New define to enable use of library pthread by default.
6302         * config/i386/mingw.opt (pthread): New driver option.
6303         (no-pthread): New driver option.
6304         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6305         * config/i386/mingw-w64.opt: Likewise.
6306
6307 2011-04-01  Gary Funck  <gary@intrepid.com>
6308
6309         * c-decl.c (grokdeclarator): Fix formatting.
6310
6311 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6312
6313         * expr.c (emit_block_move_via_movmem): Use n_generator_args
6314         instead of n_operands.
6315         (set_storage_via_setmem): Likewise.
6316         * optabs.c (maybe_gen_insn): Likewise.
6317         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6318         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6319         (mips_expand_builtin_direct): Likewise.
6320         * config/spu/spu.c (expand_builtin_args): Likewise.
6321
6322 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6323
6324         * recog.h (insn_data_d): Add n_generator_args.
6325         * genoutput.c (data): Likewise.
6326         (output_insn_data): Print it.
6327         (max_opno, num_dups): Delete.
6328         (scan_operands): Just fill in "d->operand[...]".
6329         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6330
6331 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
6332
6333         * gensupport.h (pattern_stats): New structure.
6334         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6335         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6336         (max_operand_1, max_operand_vec): Delete.
6337         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6338
6339 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
6340
6341         * emit-rtl.c (emit_pattern_after_setloc): New function.
6342         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6343         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6344         (emit_pattern_after): New function.
6345         (emit_insn_after, emit_jump_insn_after): Call it.
6346         (emit_call_insn_after, emit_debug_insn_after): Likewise.
6347         (emit_pattern_before_setloc): New function.
6348         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6349         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6350         Likewise.
6351         (emit_pattern_before): New function.
6352         (emit_insn_before, emit_jump_insn_before): Call it.
6353         (emit_call_insn_before, emit_debug_insn_before): Likewise.
6354
6355 2011-03-31  Richard Henderson  <rth@redhat.com>
6356
6357         * dwarf2out.c (dw_separate_line_info_ref): Remove.
6358         (dw_separate_line_info_entry): Remove.
6359         (enum dw_line_info_opcode): New.
6360         (dw_line_info_entry): Use it.
6361         (dw_line_info_table, dw_line_info_table_p): New.
6362         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6363         (line_info_table, line_info_label_num): Remove.
6364         (line_info_table_in_use): Remove.
6365         (separate_line_info_table): Remove.
6366         (separate_line_info_table_allocated): Remove.
6367         (separate_line_info_table_in_use): Remove.
6368         (LINE_INFO_TABLE_INCREMENT): Remove.
6369         (line_info_label_num): New.
6370         (cur_line_info_table): New.
6371         (text_section_line_info, cold_text_section_line_info): New.
6372         (separate_line_info): New.
6373         (SEPARATE_LINE_CODE_LABEL): Remove.
6374         (print_dwarf_line_table): Remove.
6375         (debug_dwarf): Don't dump it.
6376         (output_one_line_info_table): New.
6377         (output_line_info): Use it.
6378         (new_line_info_table): New.
6379         (set_cur_line_info_table): New.
6380         (dwarf2out_switch_text_section): Use it.
6381         (dwarf2out_begin_function): Likewise.
6382         (push_dw_line_info_entry): New.
6383         (dwarf2out_source_line): Rewrite for new line info tables.
6384         (dwarf2out_init): Remove dead initailizations.
6385
6386 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6387
6388         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
6389         various flags.
6390         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6391         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6392         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6393         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6394         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6395         * opt-functions.awk (flag_init, switch_bit_fields): New.
6396         (switch_flags): Don't handle flags moved to bit-fields.  Don't
6397         generate CL_MISSING_OK or CL_SAVE.
6398         * optc-gen.awk: Update to generate bit-field output as well as
6399         flags field.
6400         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6401         bit-field instead of CL_REJECT_DRIVER flag.
6402         * opts-common.c (generate_canonical_option,
6403         decode_cmdline_option): Use bit-fields instead of CL_* flags.
6404         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6405         instead of CL_REJECT_NEGATIVE flag.
6406         * toplev.c (print_switch_values): Use cl_report bit-field instead
6407         of CL_REPORT flag.
6408
6409 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6410
6411         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6412         a zero minimum index only if it is redundant.
6413
6414 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6415
6416         PR rtl-optimization/48381
6417         * ira-color.c (assign_hard_reg): Use hard reg set intersection
6418         instead of ira_class_hard_reg_index for calculating conflicting
6419         hard registers.
6420
6421 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
6422
6423         * cprop.c: Clean up hash table building.
6424         (reg_avail_info): Remove.
6425         (oprs_available_p): Remove.
6426         (record_last_reg_set_info): Remove.
6427         (record_last_set_info): Remove.
6428         (reg_available_p): New function.
6429         (gcse_constant_p): Do not treat unfolded conditions as constants.
6430         (make_set_regs_unavailable): New function.
6431         (hash_scan_set): Simplify with new reg_available_p.
6432         (compute_hash_table_work): Traverse insns stream only once.
6433         Do not compute reg_avail_info. Traverse insns in reverse order.
6434         Record implicit sets after recording explicit sets from the block.
6435
6436 2011-03-31  Michael Matz  <matz@suse.de>
6437
6438         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
6439
6440 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
6441
6442         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6443         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6444         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6445         (h8300_mode_dependent_address_p): New function.
6446         (h8300_get_index): Make static.
6447
6448 2011-03-31  Jeff Law  <law@redhat.com>
6449
6450         * reload1.c (elimination_effects): Fix typo in recent change.
6451
6452         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6453         typo potentially leading to null pointer dereference.
6454
6455         * caller-save.c (new_saved_hard_reg): Eliminate return value.
6456         (setup_save_areas): Corresponding changes to avoid useless
6457         assignments.
6458
6459         * jump.c (reversed_comparison_code_parts): Avoid successive return
6460         statements when REVERSE_CONDITION is defined.
6461
6462         * expr.c (expand_assignment): Avoid useless assignments.
6463         (expand_expr_real_1): Likewise.
6464         (expand_expr_real_2): Avoid useless statements.
6465
6466         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6467
6468         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6469
6470         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6471         statements.
6472
6473         * stmt.c (expand_expr_stmt): Avoid useless assignment.
6474
6475 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
6476
6477         PR target/47109
6478         * doc/tm.texi.in (TARGET_VERSION): Remove.
6479         * doc/tm.texi: Regenerate.
6480         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6481         * collect2.c (main): Don't use TARGET_VERSION.
6482         * mips-tdump.c (main): Don't use TARGET_VERSION.
6483         * mips-tfile.c (main): Don't use TARGET_VERSION.
6484         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6485         * config/rs6000/vxworksae.h: Remove.
6486         * config/alpha/alpha.h (TARGET_VERSION): Remove.
6487         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6488         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6489         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6490         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6491         * config/arm/arm.h (TARGET_VERSION): Remove.
6492         * config/arm/coff.h (TARGET_VERSION): Remove.
6493         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6494         * config/arm/elf.h (TARGET_VERSION): Remove.
6495         * config/arm/freebsd.h (TARGET_VERSION): Remove.
6496         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6497         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6498         * config/arm/pe.h (TARGET_VERSION): Remove.
6499         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6500         * config/arm/semi.h (TARGET_VERSION): Remove.
6501         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6502         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6503         * config/arm/vxworks.h (TARGET_VERSION): Remove.
6504         * config/avr/avr.h (TARGET_VERSION): Remove.
6505         * config/bfin/bfin.h (TARGET_VERSION): Remove.
6506         * config/fr30/fr30.h (TARGET_VERSION): Remove.
6507         * config/frv/frv.h (TARGET_VERSION): Remove.
6508         * config/h8300/h8300.h (TARGET_VERSION): Remove.
6509         * config/i386/cygwin.h (TARGET_VERSION): Remove.
6510         * config/i386/darwin.h (TARGET_VERSION): Remove.
6511         * config/i386/darwin64.h (TARGET_VERSION): Remove.
6512         * config/i386/djgpp.h (TARGET_VERSION): Remove.
6513         * config/i386/freebsd.h (TARGET_VERSION): Remove.
6514         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6515         * config/i386/gnu.h (TARGET_VERSION): Remove.
6516         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6517         * config/i386/i386elf.h (TARGET_VERSION): Remove.
6518         * config/i386/linux.h (TARGET_VERSION): Remove.
6519         * config/i386/linux64.h (TARGET_VERSION): Remove.
6520         * config/i386/lynx.h (TARGET_VERSION): Remove.
6521         * config/i386/mingw32.h (TARGET_VERSION): Remove.
6522         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6523         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6524         * config/i386/netware.h (TARGET_VERSION): Remove.
6525         * config/i386/nto.h (TARGET_VERSION): Remove.
6526         * config/i386/openbsd.h (TARGET_VERSION): Remove.
6527         * config/i386/vxworks.h (TARGET_VERSION): Remove.
6528         * config/ia64/elf.h (TARGET_VERSION): Remove.
6529         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6530         * config/ia64/hpux.h (TARGET_VERSION): Remove.
6531         * config/ia64/linux.h (TARGET_VERSION): Remove.
6532         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6533         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6534         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6535         * config/lm32/lm32.h (TARGET_VERSION): Remove.
6536         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6537         * config/m32c/m32c.h (TARGET_VERSION): Remove.
6538         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6539         * config/m32r/m32r.h (TARGET_VERSION): Remove.
6540         * config/m68k/linux.h (TARGET_VERSION): Remove.
6541         * config/m68k/m68k.h (TARGET_VERSION): Remove.
6542         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6543         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6544         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6545         * config/mep/mep.h (TARGET_VERSION): Remove.
6546         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6547         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6548         * config/mips/iris6.h (MACHINE_TYPE): Remove.
6549         * config/mips/linux.h (TARGET_VERSION): Remove.
6550         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6551         * config/mips/vxworks.h (TARGET_VERSION): Remove.
6552         * config/mmix/mmix.h (TARGET_VERSION): Remove.
6553         * config/mn10300/linux.h (TARGET_VERSION): Remove.
6554         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6555         * config/pa/pa.h (TARGET_VERSION): Remove.
6556         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6557         * config/picochip/picochip.h (TARGET_VERSION): Remove.
6558         * config/rs6000/aix.h (TARGET_VERSION): Remove.
6559         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6560         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6561         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6562         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6563         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6564         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6565         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6566         * config/rs6000/linux.h (TARGET_VERSION): Remove.
6567         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6568         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6569         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6570         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6571         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6572         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6573         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6574         * config/s390/linux.h (TARGET_VERSION): Remove.
6575         * config/s390/s390.h (TARGET_VERSION): Remove.
6576         * config/s390/tpf.h (TARGET_VERSION): Remove.
6577         * config/score/score.h (TARGET_VERSION): Remove.
6578         * config/sh/linux.h (TARGET_VERSION): Remove.
6579         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6580         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6581         * config/sh/sh.h (TARGET_VERSION): Remove.
6582         * config/sh/sh64.h (TARGET_VERSION): Remove.
6583         * config/sh/superh.h (TARGET_VERSION): Remove.
6584         * config/sh/vxworks.h (TARGET_VERSION): Remove.
6585         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6586         * config/sparc/linux.h (TARGET_VERSION): Remove.
6587         * config/sparc/linux64.h (TARGET_VERSION): Remove.
6588         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6589         TARGET_NAME32, TARGET_NAME): Remove.
6590         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6591         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6592         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6593         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6594         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6595         * config/spu/spu.h (TARGET_VERSION): Remove.
6596         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6597         * config/v850/v850.h (TARGET_VERSION): Remove.
6598         * config/vax/linux.h (TARGET_VERSION): Remove.
6599         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6600         * config/xtensa/elf.h (TARGET_VERSION): Remove.
6601         * config/xtensa/linux.h (TARGET_VERSION): Remove.
6602
6603 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
6604
6605         PR target/48142
6606         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6607         frame-related from frame-unrelated adjustments to the stack pointer.
6608
6609 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
6610
6611         * common.opt (fdebug-types-section): Move earlier.
6612         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6613
6614 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
6615
6616         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6617         var.
6618
6619 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
6620
6621         * tree.h (CASE_CHAIN): Define.
6622         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6623         (gimple_redirect_edge_and_branch): Likewise.
6624
6625 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6626
6627         PR middle-end/48367
6628         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6629         calculation.
6630
6631 2011-03-30  Jeff Law  <law@redhat.com>
6632
6633         * PR bootstrap/48371
6634         * reload1.c (reload): Fix botch in last change.
6635
6636         * reload.h (struct reload): Fix typo introduced in last change.
6637
6638 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6639
6640         * config/arm/arm.opt (mhard-float, msoft-float): Mark
6641         Undocumented.  Remove help text.
6642         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6643         -mhard-float.
6644
6645 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6646
6647         * doc/options.texi (NegativeAlias): Document.
6648         (Alias): Mention NegativeAlias.
6649         * opt-functions.awk: Handle NegativeAlias.
6650         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6651         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6652         * opts.h (CL_NEGATIVE_ALIAS): Define.
6653         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6654         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6655         OPT_mspe_.
6656         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6657         Alias entries.
6658         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6659         mno-spe and mno-isel instead of mspe=no and -misel=no.
6660
6661 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6662
6663         * common.opt (fdebug-types-section): New flag.
6664         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6665         * dwarf2out.c (use_debug_types): New define.
6666         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6667         (print_die): Guard output of type unit signatures using
6668         use_debug_types.
6669         (build_abbrev_table): Replace assert of dwarf_version >= 4
6670         with assert on use_debug_types.
6671         (size_of_die): Likewise.
6672         (unmark_dies): Likewise.
6673         (value_format): Decide AT_ref_external form on use_debug_types.
6674         (output_die): Replace dwarf_version version check guard with
6675         use_debug_types where appropriate.
6676         (modified_type_die): Likewise.
6677         (gen_reference_type_die): Likewise.
6678         (dwarf2out_start_source_file): Likewise.
6679         (dwarf2out_end_source_file): Likewise.
6680         (prune_unused_types_walk_attribs): Likewise.
6681         (dwarf2out_finish): Likewise.
6682
6683 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6684
6685         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6686
6687 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6688
6689         PR rtl-optimization/48332
6690         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6691         mode of input operand N and modeN to its actual mode.
6692
6693 2011-03-30  Jeff Law  <law@redhat.com>
6694
6695         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6696         define accessor macro.
6697         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6698         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6699         (reg_equiv_init): Likewise.
6700         (reg_equivs_size): New variable.
6701         (reg_equiv_init_size): Remove.
6702         (allocate_initial_values): Move prototype to here from....
6703         * integrate.h (allocate_initial_values): Remove prototype.
6704         * integrate.c: Include reload.h.
6705         (allocate_initial_values): Corresponding changes.
6706         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6707         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6708         (update_equiv_regs): Corresponding changes.
6709         (ira): Corresponding changes.
6710         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6711         (push_secondary_reload): Corresponding changes.
6712         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6713         (make_memloc, find_reloads_address): Corresponding changes.
6714         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6715         (find_reloads_address_1): Corresponding changes.
6716         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6717         (refers_to_regno_for_reload_p): Corresponding changes.
6718         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6719         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6720         * reload1.c: Include ggc.h.
6721         (grow_reg_equivs): New function.
6722         (replace_pseudos_in, reload): Corresponding changes.
6723         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6724         (eliminate_regs_1, elimination_effects): Corresponding changes.
6725         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6726         (delete_output_reload): Likewise.
6727         * caller-save.c (mark_referenced_regs): Corresponding changes.
6728         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6729         * frv/predicates.md (frv_load_operand): Corresponding changes.
6730         * microblaze/microblaze.c (double_memory_operand): Corresponding
6731         changes.
6732         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6733         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6734         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6735         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6736         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6737         changes.
6738         * pa/pa.c (emit_move_sequence): Corresponding changes.
6739         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6740
6741 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6742
6743         PR target/47551
6744         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6745         structure modes.  Don't check neon_vector_mem_operand for
6746         vector or structure modes.
6747
6748 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6749             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6750
6751         PR target/43590
6752         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6753         operand 1 and reshuffle the operands to match.
6754         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6755
6756 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6757
6758         PR driver/48208
6759         * config/c.opt (F): Added 'Driver' to -F option.
6760
6761         PR driver/48260
6762         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6763           handler function.
6764         * config/darwin.opt: Added '-arch' option.
6765
6766 2011-03-30  Nick Clifton  <nickc@redhat.com>
6767
6768         * config/rx/rx.md: Add peepholes and patterns to combine
6769         extending loads and simple arithmetic instructions.
6770         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6771         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6772         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6773         modes to use pre-decrement and post-increment addressing.
6774         (rx_is_restricted_memory_address): Add range checking of REG+INT
6775         addresses.
6776         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6777         (rx_memory_move_cost): Adjust cost of stores.
6778         (rx_adjust_insn_length): New function.
6779
6780 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6781
6782         PR c/48305
6783         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6784         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6785         matching arg00/arg01 types.
6786
6787 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6788
6789         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6790         last_location to UNKNOWN_LOCATION.
6791
6792 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6793
6794         PR target/48349
6795         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6796         FLOAT_SSE_REGS.
6797
6798 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6799             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6800
6801         PR bootstrap/48337
6802         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6803         Init(PROCESSOR_V7).
6804         (sparc_cpu): Likewise.
6805         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6806         PROCESSOR_V7.
6807
6808 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6809
6810         PR target/48336
6811         PR middle-end/48342
6812         PR rtl-optimization/48345
6813         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6814         hard regs for given mode from profitable regs when doing secondary
6815         allocation.
6816
6817 2011-03-29  Jeff Law  <law@redhat.com>
6818
6819         PR bootstrap/48327
6820         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6821         do_not_duplicate field.
6822         (lookup_redirection_data): Corresponding changes.
6823         (create_duplicates): Always create a template block.
6824         (redirect_edges): Remove code which reused the original block
6825         when it was going to become unreachable code.
6826         (thread_block): Don't set do_not_duplicate field.
6827
6828 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6829
6830         * lto-opts.c (register_user_option_p, lto_register_user_option):
6831         Make type argument unsigned.
6832         * lto-streamer.h (lto_register_user_option): Make type argument
6833         unsigned.
6834         * opth-gen.awk: Make CL_* macros unsigned.
6835         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6836         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6837         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6838         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6839         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6840         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6841         (find_opt): Make lang_mask argument unsigned.
6842
6843 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6844
6845         PR rtl-optimization/48331
6846         PR rtl-optimization/48334
6847         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6848         for any used algorithm.
6849
6850 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6851
6852         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6853         to parent_max.
6854
6855 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6856
6857         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6858         (alpha_option_override): Don't set alpha_sr_alias_set.
6859         (emit_frame_store_1): Use gen_frame_mem rather than calling
6860         set_mem_alias_set.
6861         (alpha_expand_epilogue): Ditto.
6862
6863 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6864
6865         PR tree-optimization/48290
6866         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6867         vectorization, check that relevant phis in the basic block after
6868         the inner loop are really inner loop's exit phis.
6869
6870 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6871
6872         PR debug/48190
6873         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6874         (cached_dw_loc_list_def): New structure.
6875         (cached_dw_loc_list): New typedef.
6876         (cached_dw_loc_list_table): New variable.
6877         (cached_dw_loc_list_table_hash): New function.
6878         (cached_dw_loc_list_table_eq): Likewise.
6879         (add_location_or_const_value_attribute): Take a bool cache_p.
6880         Cache the list when the parameter is true.
6881         (gen_formal_parameter_die): Update caller.
6882         (gen_variable_die): Likewise.
6883         (dwarf2out_finish): Likewise.
6884         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6885         while generating debug info for the decl.
6886         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6887         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6888         (resolve_addr): Cache the result of resolving a chain of
6889         location lists.
6890
6891 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6892
6893         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6894         conflict object hard regset nodes have intersecting hard reg sets.
6895
6896         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6897         after regstat_init_n_sets_and_refs.
6898
6899         * ira.c: Add more comments at the top.
6900         (setup_stack_reg_pressure_class, setup_pressure_classes):
6901         Add comments how we compute the register pressure classes.
6902         (setup_allocno_and_important_classes): Add more comments.
6903         (setup_class_translate_array, reorder_important_classes)
6904         (setup_reg_class_relations): Add comments.
6905
6906         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6907         start of the file.
6908
6909         * ira-color.c: Add 2011 to the Copyright line.
6910         (assign_hard_reg):  Add more comments.
6911         (improve_allocation): Ditto.
6912
6913         * ira-costs.c: Add 2011 to the Copyright line.
6914         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6915         comments.
6916         (setup_regno_cost_classes_by_mode): Ditto.
6917
6918         Initial patches from ira-improv branch:
6919
6920         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6921
6922         * ira-build.c (ira_create_object): Remove initialization of
6923         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6924         (ira_create_allocno): Remove initialization of
6925         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6926         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6927         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6928         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6929         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6930         Initialize ALLOCNO_ADD_DATA.
6931         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6932         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6933         ALLOCNO_REG.
6934         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6935         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6936
6937         * ira.c (ira_reallocate): Remove.
6938         (setup_pressure_classes): Call
6939         ira_init_register_move_cost_if_necessary.  Use
6940         ira_register_move_cost instead of ira_get_register_move_cost.
6941         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6942         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6943
6944         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6945         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6946         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6947         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6948         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6949         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6950         Fix formatting.
6951         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6952         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6953         (struct allocno_color_data): New.
6954         (allocno_color_data_t): New typedef.
6955         (allocno_color_data): New definition.
6956         (ALLOCNO_COLOR_DATA): New macro.
6957         (struct object_color_data): New.
6958         (object_color_data_t): New typedef.
6959         (object_color_data): New definition.
6960         (OBJECT_COLOR_DATA): New macro.
6961         (update_copy_costs, calculate_allocno_spill_cost): Call
6962         ira_init_register_move_cost_if_necessary.  Use
6963         ira_register_move_cost instead of ira_get_register_move_cost.
6964         (move_spill_restore, update_curr_costs): Ditto.
6965         (allocno_spill_priority): Make it inline.
6966         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6967         (struct coalesce_data, coalesce_data_t): New.
6968         (allocno_coalesce_data): New definition.
6969         (ALLOCNO_COALESCE_DATA): New macro.
6970         (merge_allocnos, coalesced_allocno_conflict_p): Use
6971         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6972         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6973         (coalesce_allocnos): Ditto.
6974         (setup_coalesced_allocno_costs_and_nums): Ditto.
6975         (collect_spilled_coalesced_allocnos): Ditto.
6976         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6977         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6978         (coalesce_spill_slots): Ditto.
6979         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6980         free allocno_coalesce_data.
6981
6982         * ira-conflicts.c: Fix formatting.
6983         (process_regs_for_copy): Call
6984         ira_init_register_move_cost_if_necessary.  Use
6985         ira_register_move_cost instead of ira_get_register_move_cost.
6986         (build_object_conflicts): Optimize.
6987
6988         * ira-costs.c (record_reg_classes): Optimize.  Call
6989         ira_init_register_move_cost_if_necessary.  Use
6990         ira_register_move_cost, ira_may_move_in_cost, and
6991         ira_may_move_out_cost instead of ira_get_register_move_cost and
6992         ira_get_may_move_cost.
6993         (record_address_regs): Ditto.
6994         (scan_one_insn): Optimize.
6995         (find_costs_and_classes): Optimize.
6996         (process_bb_node_for_hard_reg_moves): Call
6997         ira_init_register_move_cost_if_necessary.  Use
6998         ira_register_move_cost instead of ira_get_register_move_cost.
6999
7000         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7001         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7002         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7003         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7004         definitions.
7005         (ira_initiate_emit_data, ira_finish_emit_data)
7006         (create_new_allocno): New functions.
7007         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7008         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7009         Use ira_register_move_cost instead of ira_get_register_move_cost.
7010
7011         * ira-int.h: Fix some comments.
7012         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7013         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7014         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7015         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7016         add_data.
7017         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7018         bitfield after mode.  Make hard_regno a short int.  Make
7019         hard_regno short.  Remove first_coalesced_allocno and
7020         next_coalesced_allocno.  Move mem_optimized_dest_p,
7021         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7022         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7023         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7024         temp, colorable_p.  Add new member add_data.
7025         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7026         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7027         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7028         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7029         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7030         (ALLOCNO_ADD_DATA): New macro.
7031         (ira_emit_data_t): New typedef.
7032         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7033         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7034         from struct ira_allocno.
7035         (ALLOCNO_EMIT_DATA): New macro.
7036         (ira_allocno_emit_data, allocno_emit_reg): New.
7037         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7038         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7039         (OBJECT_ADD_DATA): New macro.
7040         (ira_reallocate): Remove.
7041         (ira_initiate_emit_data, ira_finish_emit_data): New.
7042         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7043         (ira_init_register_move_cost_if_necessary): New.
7044         (ira_object_conflict_iter_next): Merge into
7045         ira_object_conflict_iter_cond.
7046         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7047
7048         * ira-live.c (process_single_reg_class_operands): Call
7049         ira_init_register_move_cost_if_necessary.  Use
7050         ira_register_move_cost instead of ira_get_register_move_cost.
7051
7052         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7053
7054         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7055
7056         * ira-costs.c: Fix formatting.
7057         (cost_classes, cost_classes_num): Remove.
7058         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7059         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7060         (cost_classes_del, cost_classes_htab): New.
7061         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7062         (initiate_regno_cost_classes, setup_cost_classes): New.
7063         (setup_regno_cost_classes_by_aclass): New.
7064         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7065         (record_reg_classes): Use regno_cost_classes instead of
7066         cost_classes.  Move checking opposite operand up.
7067         (record_address_regs): Use regno_cost_classes
7068         instead of cost_classes.
7069         (scan_one_insn): Ditto.  Use always general register.
7070         (print_allocno_costs): Use regno_cost_classes instead of
7071         cost_classes.
7072         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7073         (find_costs_and_classes): Set up cost classes for each registers.
7074         Use also their mode for this.  Use regno_cost_classes instead of
7075         cost_classes.
7076         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7077         cost_classes.
7078         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7079         (ira_costs, ira_set_pseudo_classes): Call
7080         initiate_regno_cost_classes and finish_regno_cost_classes.
7081
7082         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7083
7084         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7085
7086         * target.def (ira_cover_classes): Remove.
7087
7088         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7089
7090         * doc/tm.texi.in: Ditto.
7091
7092         * ira-conflicts.c: Remove mentioning cover classes from the file.
7093         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7094         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7095
7096         * targhooks.c (default_ira_cover_classes): Remove.
7097
7098         * targhooks.h (default_ira_cover_classes): Ditto.
7099
7100         * haifa-sched.c: Remove mentioning cover classes from the file.
7101         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7102         ira_pressure_classes and ira_pressure_classes_num instead of
7103         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7104         sched_regno_pressure_class instead of sched_regno_cover_class.
7105         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7106         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7107
7108         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7109         classes from the file.
7110         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7111         (struct object_hard_regs, struct object_hard_regs_node): New.
7112         (struct ira_object): New members profitable_hard_regs,
7113         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7114         (struct ira_allocno): Rename cover_class to aclass.  Rename
7115         cover_class_cost and updated_cover_class_cost to class_cost and
7116         updated_class_cost.  Remove splay_removed_p and
7117         left_conflict_size.  Add new members colorable_p.
7118         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7119         (ALLOCNO_COLORABLE_P): New macro.
7120         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7121         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7122         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7123         (OBJECT_...): Rename parameter C to O.
7124         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7125         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7126         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7127         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7128         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7129         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7130         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7131         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7132         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7133         x_ira_reg_class_subunion.
7134         (ira_max_memory_move_cost, ira_max_register_move_cost)
7135         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7136         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7137         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7138         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7139         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7140         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7141         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7142         (ira_tune_allocno_costs_and_cover_classes): Rename to
7143         ira_tune_allocno_costs.
7144         (ira_debug_hard_regs_forest): New.
7145         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7146         (ira_object_conflict_iter_next): Fix comments.
7147         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7148         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7149         cover_class to aclass.
7150         (ira_allocate_and_accumulate_costs): Ditto.
7151         (ira_allocate_and_set_or_copy_costs): Ditto.
7152
7153         * opts.c (decode_options): Remove ira_cover_class check.
7154
7155         * ira-color.c: Remove mentioning cover classes from the file.  Use
7156         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7157         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7158         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7159         (splay-tree.h): Remove include.
7160         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7161         before copy_freq_compare_func.
7162         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7163         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7164         New definitions.
7165         (hard_regs_roots, hard_regs_node_vec): Ditto.
7166         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7167         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7168         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7169         (create_new_object_hard_regs_node): Ditto.
7170         (add_new_object_hard_regs_node_to_forest): Ditto.
7171         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7172         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7173         Ditto.
7174         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7175         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7176         (remove_unused_object_hard_regs_nodes): Ditto.
7177         (enumerate_object_hard_regs_nodes): Ditto.
7178         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7179         (object_hard_regs_subnode_t): Ditto.
7180         (struct object_hard_regs_subnode): Ditto.
7181         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7182         (setup_object_hard_regs_subnode_index): Ditto.
7183         (get_object_hard_regs_subnodes_num): Ditto.
7184         (form_object_hard_regs_nodes_forest): Ditto.
7185         (finish_object_hard_regs_nodes_tree): Ditto.
7186         (finish_object_hard_regs_nodes_forest): Ditto.
7187         (allocnos_have_intersected_live_ranges_p): Rename to
7188         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7189         (pseudos_have_intersected_live_ranges_p): Rename to
7190         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7191         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7192         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7193         (update_copy_costs): Remove assert.  Skip cost update if the hard
7194         reg does not belong the class.
7195         (assign_hard_reg): Process only profitable hard regs.
7196         (uncolorable_allocnos_num): Make it scalar.
7197         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7198         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7199         and ira_reg_class_max_nregs.
7200         (bucket_allocno_compare_func): Check frequency first.
7201         (sort_bucket): Add compare function as a parameter.
7202         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7203         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7204         (push_allocno_to_stack): Rewrite for checking new allocno
7205         colorability.
7206         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7207         (push_only_colorable): Pass new parameter to sort_bucket.
7208         (push_allocno_to_spill): Remove.
7209         (allocno_spill_priority_compare): Make it inline and rewrite.
7210         (splay_tree_allocate, splay_tree_free): Remove.
7211         (allocno_spill_sort_compare): New function.
7212         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7213         build and use splay tree.  Choose first allocno in uncolorable
7214         allocno bucket to spill.  Remove setting spill cost.
7215         (all_conflicting_hard_regs): Remove.
7216         (setup_allocno_available_regs_num): Check only profitable hard
7217         regs.  Print info about hard regs nodes.
7218         (setup_allocno_left_conflicts_size): Remove.
7219         (put_allocno_into_bucket): Don't call
7220         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7221         (improve_allocation): New.
7222         (color_allocnos): Call setup_profitable_hard_regs,
7223         form_object_hard_regs_nodes_forest, improve_allocation,
7224         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7225         (print_loop_title): Use pressure classes.
7226         (color_allocnso): Ditto.
7227         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7228         and allocnos_for_spilling.
7229         (ira_sort_regnos_for_alter_reg): Don't setup members
7230         {first,next}_coalesced_allocno.
7231         (color): Remove allocating and freeing removed_splay_allocno_vec.
7232         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7233         prohibited_class_mode_regs.
7234
7235         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7236         formatting.
7237         (update_allocno_pressure_excess_length): Use pressure classes.
7238         (inc_register_pressure, dec_register_pressure): Check for pressure
7239         class.
7240         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7241         pressure class.  Use ira_reg_class_nregs instead of
7242         ira_reg_class_max_nregs.
7243         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7244         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7245         (single_reg_class): Use ira_reg_class_nregs instead of
7246         ira_reg_class_max_nregs.
7247         (process_bb_node_lives): Use pressure classes.
7248
7249         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7250         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7251         (change_loop): Use pressure classes.
7252         (modify_move_list): Call ira_set_allocno_class instead of
7253         ira_set_allocno_cover_class.
7254
7255         * ira-build.c: Remove mentioning cover classes from the file.  Use
7256         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7257         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7258         ALLOCNO_UPDATED_CLASS_COST instead of
7259         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7260         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7261         (ira_create_allocno): Remove initialization of
7262         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7263         ALLOCNO_COLORABLE_P.
7264         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7265         Update conflict regs for the objects.
7266         (create_cap_allocno): Remove assert.  Don't propagate
7267         ALLOCNO_AVAILABLE_REGS_NUM.
7268         (ira_free_allocno_costs): New function.
7269         (finish_allocno): Change a part of code into call of
7270         ira_free_allocno_costs.
7271         (low_pressure_loop_node_p): Use pressure classes.
7272         (object_range_compare_func): Don't compare classes.
7273         (setup_min_max_conflict_allocno_ids): Ditto.
7274
7275         * loop-invariant.c: Remove mentioning cover classes from the file.
7276         Use ira_pressure_classes and ira_pressure_classes_num instead of
7277         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7278         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7279         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7280         Use reg_allocno_class instead of reg_cover_class.
7281         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7282         STACK_REG_COVER_CLASS.
7283         (get_regno_cover_class): Rename to get_regno_pressure_class.
7284         (move_loop_invariants): Initialize and finalize regstat.
7285
7286         * ira.c: Remove mentioning cover classes from the file.  Add
7287         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7288         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7289         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7290         setup_class_subset_and_memory_move_costs.
7291         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7292         (setup_cover_and_important_classes): Rename to
7293         setup_allocno_and_important_classes.
7294         (setup_class_translate_array): New.
7295         (setup_class_translate): Call it for allocno and pressure classes.
7296         (cover_class_order): Rename to allocno_class_order.
7297         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7298         of ira_class_translate.
7299         (reorder_important_classes): Set up ira_important_class_nums.
7300         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7301         (print_class_cover): Rename to print_classes.  Add parameter.
7302         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7303         Print pressure classes too.
7304         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7305         setup_reg_subclasses.
7306         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7307         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7308         (setup_prohibited_class_mode_regs): Use
7309         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7310         (clarify_prohibited_class_mode_regs): New function.
7311         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7312         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7313         (ira_init_once): Initialize them.
7314         (free_register_move_costs): Process them.
7315         (ira_init): Move calls of find_reg_classes and
7316         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7317         Call clarify_prohibited_class_mode_regs.
7318         (ira_no_alloc_reg): Remove.
7319         (too_high_register_pressure_p): Use pressure classes.
7320
7321         * sched-deps.c: Remove mentioning cover classes from the file.
7322         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7323         ira_pressure_classes and ira_pressure_classes_num instead of
7324         ira_reg_class_cover_size and ira_reg_class_cover.
7325         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7326         sched_regno_pressure_class instead of sched_regno_cover_class.
7327         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
7328         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7329
7330         * ira.h: Add 2010 to Copyright.
7331         (ira_no_alloc_reg): Remove external.
7332         (struct target_ira): Rename x_ira_hard_regno_cover_class,
7333         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7334         x_ira_class_translate to x_ira_hard_regno_allocno_class,
7335         x_ira_allocno_classes_num, x_ira_allocno_classes, and
7336         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
7337         x_ira_pressure_classes, x_ira_pressure_class_translate, and
7338         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
7339         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
7340         x_ira_no_alloc_regs.
7341         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7342         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7343         ira_allocno_classes_num and ira_allocno_classes.
7344         (ira_class_translate): Rename to ira_allocno_class_translate.
7345         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7346         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7347         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7348         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7349         (ira_no_alloc_regs): New.
7350
7351         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
7352         classes from the file.  Use ALLOCNO_CLASS instead of
7353         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
7354         ALLOCNO_COVER_CLASS_COST.
7355         (regno_cover_class): Rename to regno_aclass.
7356         (record_reg_classes): Use ira_reg_class_subunion instead of
7357         ira_reg_class_union.
7358         (record_address_regs): Check overflow.
7359         (scan_one_insn): Ditto.
7360         (print_allocno_costs): Print total mem cost fore regional allocation.
7361         (print_pseudo_costs): Use REG_N_REFS.
7362         (find_costs_and_classes): Use classes intersected with them on the
7363         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
7364         ira_reg_class_union.  Use ira_allocno_class_translate and
7365         regno_aclass instead of ira_class_translate and regno_cover_class.
7366         Modify code for finding regno_aclass.  Setup preferred classes for
7367         the next pass.
7368         (setup_allocno_cover_class_and_costs): Rename to
7369         setup_allocno_class_and_costs.  Use regno_aclass instead of
7370         regno_cover_class.  Use ira_set_allocno_class instead of
7371         ira_set_allocno_cover_class.
7372         (init_costs, finish_costs): Use regno_aclass instead of
7373         regno_cover_class.
7374         (ira_costs): Use setup_allocno_class_and_costs instead of
7375         setup_allocno_cover_class_and_costs.
7376         (ira_tune_allocno_costs_and_cover_classes): Rename to
7377         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
7378         by processing objects.  Use ira_reg_class_max_nregs instead of
7379         ira_reg_class_nregs.
7380
7381         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7382
7383         * sched-int.h: Remove mentioning cover classes from the file.
7384         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7385
7386         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
7387         classes from the file.
7388         (struct reg_pref): Rename coverclass into allocnoclass.
7389         (reg_cover_class): Rename to reg_allocno_class.
7390
7391         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
7392
7393         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7394
7395         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7396
7397         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7398
7399         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7400
7401         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7402
7403         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7404
7405         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7406
7407         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7408
7409         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7410
7411         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7412         (i386_ira_cover_classes): Ditto.
7413
7414         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7415
7416         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7417
7418         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7419
7420         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7421
7422         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7423
7424         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7425
7426         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7427         (mips_ira_cover_classes): Ditto.
7428
7429         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7430
7431         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7432
7433         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7434
7435         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7436
7437         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7438
7439         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7440         (IRA_COVER_CLASSES_VSX): Ditto.
7441
7442         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7443         (rs6000_ira_cover_classes): Ditto.
7444
7445         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7446
7447         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7448
7449         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7450
7451         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7452
7453         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7454
7455         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7456
7457         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7458
7459         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7460
7461         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7462
7463         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7464
7465 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
7466
7467         PR debug/48253
7468         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7469         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7470         dw_fde_unlikely_section_end_label, cold_in_std_section,
7471         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7472         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7473         fields.
7474         (output_fde): Use dw_fde_second_{begin,end} if second is
7475         true, otherwise dw_fde_{begin,end}.
7476         (output_call_frame_info): Test dw_fde_second_begin != NULL
7477         instead of dw_fde_switched_sections.
7478         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7479         fields, initialize new fields.  Initialize in_std_section
7480         unconditionally from the first partition.
7481         (dwarf2out_end_epilogue): Don't override dw_fde_end when
7482         dw_fde_second_begin is non-NULL.
7483         (dwarf2out_switch_text_section): Stop initializing removed
7484         dw_fde_struct fields, initialize new fields, initialize
7485         also dw_fde_end here.  Set dw_fde_switch_cfi even when
7486         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
7487         (struct var_loc_list_def): Add last_before_switch field.
7488         (arange_table, arange_table_allocated, arange_table_in_use,
7489         ARANGE_TABLE_INCREMENT, add_arange): Removed.
7490         (size_of_aranges): Count !in_std_section and !second_in_std_section
7491         hunks in fdes, instead of looking at arange_table_in_use.
7492         (output_aranges): Add aranges_length argument, don't call
7493         size_of_aranges here.  Instead of using aranges_table*
7494         emit ranges for fdes when !in_std_section resp.
7495         !second_in_std_section.
7496         (dw_loc_list): Break ranges crossing section switch.
7497         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
7498         use dw_fde_second_end instead of dw_fde_end as end of last range.
7499         (gen_subprogram_die): Don't call add_arange.  Use
7500         dw_fde_{begin,end} for first partition and if switched
7501         section dw_fde_second_{begin,end} for the second.
7502         (var_location_switch_text_section_1,
7503         var_location_switch_text_section): New functions.
7504         (dwarf2out_begin_function): Initialize cold_text_section even
7505         when function_section () isn't text_section.
7506         (prune_unused_types): Don't walk arange_table.
7507         (dwarf2out_finish): Don't needlessly test
7508         flag_reorder_blocks_and_partition when testing cold_text_section_used.
7509         If info_section_emitted, call size_of_aranges and if it indicates
7510         non-empty .debug_aranges, call output_aranges with the computed
7511         size.  Stop using removed dw_fde_struct fields, use
7512         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7513         for second.
7514
7515         PR debug/48203
7516         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7517         create ENTRY_VALUE if incoming or address of incoming's MEM
7518         is a hard REG.
7519         * dwarf2out.c (mem_loc_descriptor): Don't emit
7520         DW_OP_GNU_entry_value of DW_OP_fbreg.
7521         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7522         on ENTRY_VALUE is able to find the canonical parameter VALUE.
7523         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7524         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7525         ENTRY_VALUE_EXPs.
7526         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7527         is a REG_P or MEM_P with REG_P address, compute hash directly
7528         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7529         (preserve_only_constants): Don't clear VALUES forwaring
7530         ENTRY_VALUE to some other VALUE.
7531
7532 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
7533
7534         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7535         instead of GEN_INT.
7536
7537 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7538
7539         * cfgexpand.c (expand_gimple_cond): Always set the source location and
7540         block before expanding the statement.
7541         (expand_gimple_stmt_1): Likewise.  Set them here...
7542         (expand_gimple_stmt): ...and not here.  Tidy.
7543         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7544         unknown.
7545
7546 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7547
7548         * Makefile.in: New rule for cprop.o.
7549         * gcse.c: Move constant/copy propagation to cprop.c.
7550         (compute_local_properties): Only handle expression tables.
7551         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7552         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7553         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7554         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7555         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7556         compute_cprop_data, find_used_regs, try_replace_reg,
7557         find_avail_set, cprop_jump, constprop_register, cprop_insn,
7558         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7559         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7560         find_bypass_set, reg_killed_on_edge, bypass_block,
7561         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7562         execute_rtl_cprop, pass_rtl_cprop): Move to...
7563         * cprop.c: ...here.  New file, constant/copy propagation for RTL
7564         moved from gcse.c to here with minor cleanups in duplicated code.
7565
7566 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
7567
7568         * config/i386/i386.c (flag_opts): Fix a typo in
7569         -mavx256-split-unaligned-store.
7570
7571 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7572
7573         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7574         LIBCALL_VALUE): Remove macros.
7575         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7576         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7577         (h8300_function_value, h8300_libcall_value,
7578         h8300_function_value_regno_p): New functions.
7579
7580 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
7581
7582         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7583
7584 2011-03-28  Jeff Law  <law@redhat.com>
7585
7586         * tree-ssa-threadupdate.c (redirect_edges): Call
7587         create_edge_and_update_destination_phis as needed.
7588         (create_edge_and_update_destination_phis): Accept new BB argument.
7589         All callers updated.
7590         (thread_block): Do not update the profile when threading around
7591         intermediate blocks.
7592         (thread_single_edge): Likewise.
7593         (determine_bb_domination_status): If BB is not a successor of the
7594         loop header, return NONDOMINATING.
7595         (register_jump_thread): Note when we register a jump thread around
7596         an intermediate block.
7597         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7598         (thread_across_edge): Use it.
7599
7600 2011-03-28  Tristan Gingold  <gingold@adacore.com>
7601
7602         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7603         when for_return is 2.
7604
7605 2011-03-28  Jeff Law  <law@redhat.com>
7606
7607         * var-tracking.c (canonicalize_values_mark): Delete unused
7608         lhs assignment.
7609         (canonicalize_values_star, set_variable_part): Likewise.
7610         (clobber_variable_part, delete_variable_part): Likewise.
7611
7612 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
7613
7614         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7615
7616 2011-03-28  Martin Jambor  <mjambor@suse.cz>
7617
7618         * tree-inline.c (expand_call_inline): Do not check that destination
7619         node is analyzed.
7620         (optimize_inline_calls): Assert that destination node is analyzed.
7621         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7622         not call tree_lowering_passes.
7623         * cgraph.h (cgraph_analyze_function): Declare.
7624         * cgraphunit.c (cgraph_analyze_function): Make public.
7625
7626 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
7627
7628         * config/sparc/sparc-opts.h: New.
7629         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7630         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7631         (sparc_option_override): Store processor_type enumeration rather
7632         than string in cpu_default.  Remove name and enumeration from
7633         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
7634         without using sparc_select.  Use target_flags_explicit instead of
7635         fpu_option_set.
7636         * config/sparc/sparc.h (enum processor_type): Move to
7637         sparc-opts.h.
7638         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7639         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7640         HeaderInclude entry.
7641         (mcpu=, mtune=): Use Var and Enum.
7642         (sparc_processor_type): New Enum and EnumValue entries.
7643
7644 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7645             Iain Sandoe  <iains@gcc.gnu.org>
7646
7647         PR target/48245
7648         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7649
7650 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7651
7652         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7653         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7654         Insert new statements at it in lieu of STMT.
7655         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7656         * tree-vect-stmts.c (vectorizable_store): Likewise.
7657         (vectorizable_load): Likewise.
7658
7659 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7660
7661         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7662         (divtf3): Ditto.
7663         (multf3): Ditto.
7664         (subtf3): Ditto.
7665
7666 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7667
7668         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7669         unaligned 256bit load/store.
7670         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7671         (*avx_movdqu<avxmodesuffix>): Likewise.
7672
7673 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7674
7675         PR target/48288
7676         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7677         * config/pa/pa.md (iordi3): Use new predicate in expander.
7678         (iorsi3): Likewise.
7679
7680 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7681
7682         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7683         FUNCTION_VALUE_REGNO_P): Remove macros.
7684         * config/mips/mips-protos.h (mips_function_value): Remove.
7685         * config/mips/mips.c (mips_function_value): Rename to...
7686         (mips_function_value_1): ... this. Make static.  Handle receiving
7687         the function type in 'fn_decl_or_type' argument.
7688         (mips_function_value, mips_libcall_value,
7689         mips_function_value_regno_p): New function.
7690         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7691         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7692
7693 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7694
7695         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7696         and -mavx256-split-unaligned-store.
7697         (ix86_option_override_internal): Split 32-byte AVX unaligned
7698         load/store by default.
7699         (ix86_avx256_split_vector_move_misalign): New.
7700         (ix86_expand_vector_move_misalign): Use it.
7701
7702         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7703         -mavx256-split-unaligned-store.
7704
7705         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7706         256bit load/store.  Generate unaligned store on misaligned memory
7707         operand.
7708         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7709         256bit load/store.
7710         (*avx_movdqu<avxmodesuffix>): Likewise.
7711
7712         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7713         -mavx256-split-unaligned-store.
7714
7715 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7716
7717         PR target/38598
7718         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7719         Update commentary.
7720
7721 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7722
7723         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7724         opno arguments with an expand_operand.  Use create_input_operand.
7725         (mips_prepare_builtin_target): Delete.
7726         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7727         functions.
7728         (mips_expand_builtin_direct): Use create_output_operand and
7729         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7730         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7731         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7732
7733 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7734
7735         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7736         function.
7737         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7738
7739 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7740
7741         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7742         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7743         basic blocks and call commit_edge_insertions directly.
7744         (fixup_abnormal_edges): Move from here to...
7745         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7746         on the edges and return whether some have actually been inserted.
7747         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7748         compensation code.
7749
7750 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7751
7752         PR rtl-optimization/48144
7753         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7754         (merge_expr_data): ... here.
7755         (av_set_intersect): Rename to av_set_code_motion_filter.
7756         Update all callers.  Call merge_history_vect when an expression
7757         is found in both sets.
7758         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7759
7760 2011-03-26  Alan Modra  <amodra@gmail.com>
7761
7762         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7763         cmodel medium addresses.
7764         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7765         64-bit gpr loads and stores.
7766         (rs6000_secondary_reload_ppc64): New function.
7767         * config/rs6000/rs6000-protos.h: Declare it.
7768         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7769
7770 2011-03-26  Alan Modra  <amodra@gmail.com>
7771
7772         PR target/47487
7773         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7774         GNU Go in traceback table.
7775
7776 2011-03-25  Richard Henderson  <rth@redhat.com>
7777
7778         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7779         if there are exactly 6 operands.
7780         (set_storage_via_setmem): Similarly.
7781
7782 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7783
7784         * collect2.c (write_c_file_stat): Handle backslash
7785         as right-hand directory separator.
7786         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7787         checking just for slash.
7788         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7789         instead of checking for trailing slash.
7790         * gcc.c (record_temp_file): Use filename_cmp instead
7791         of strcmp.
7792         (do_spec_1): Likewise.
7793         (replace_outfile_spec_function): Likewise.
7794         (is_directory): Use filename_ncmp instead of strncmp.
7795         (print_multilib_info): Likewise.
7796         * gcov.c (find_source): Use filename_cmp instead
7797         instead of strcmp.
7798         (make_gcov_file_name): Fix order of slash/backslash
7799         checks.
7800         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7801         (add_standard_paths): Likewise.
7802         * mips-tfile.c (saber_stop): Handle backslash.
7803         * prefix.c (update_path): Use filename_ncmp instead of
7804         strncmp.
7805         * profile.c (output_location): Use filename_cmp instead
7806         of strcmp.
7807         * read-md.c (handle_toplevel_file): Handle backslash.
7808         * tlink.c (frob_extension):  Likewise.
7809         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7810         strcmp.
7811         * tree-dump.c (dequeue_and_dump): Handle backslash.
7812         * tree.c (get_file_function_name): Likewise.
7813         * gengtype.c (read_input_list): Likewise.
7814         (get_file_realbasename): Likewise.
7815         (get_output_file_with_visibility): Use filename_cmp
7816         instead of strcmp.
7817
7818 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7819
7820         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7821         case to VFPv1.
7822
7823 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7824
7825         * fold-const.c (expr_location_or): New function.
7826         (fold_truth_not_expr): Call it.
7827
7828 2011-03-25  Jeff Law  <law@redhat.com>
7829
7830         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7831         va_end.
7832         * c-family/c-common.c (def_fn_type): Likewise.
7833         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7834         * emit-rtl.c (gen_rtvec): Likewise.
7835         * lto/lto-lang.c (def_fn_type): Likewise.
7836
7837 2011-03-25  Richard Guenther  <rguenther@suse.de>
7838
7839         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7840         also generate copies.
7841         (fini_copy_prop): Handle constant values properly.
7842
7843 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7844
7845         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7846         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7847         (hash_loc_operands, compare_loc_operands): Handle
7848         DW_OP_GNU_entry_value.
7849
7850 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7851
7852         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7853         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7854         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7855         comment and use macro TARGET_64BIT_MS_ABI instead.
7856         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7857         and change default behavior for 32-bit MS_ABI.
7858         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7859         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7860         32-bit, too.
7861         (ix86_cfun_abi): Likewise.
7862         (ix86_maybe_switch_abi): Adjust comment.
7863         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7864         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7865         instead of checking for SYSV_ABI.
7866         (ix86_nsaved_sseregs): Likewise.
7867         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7868         to 16 bytes.
7869         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7870         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7871         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7872         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7873         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7874
7875 2011-03-25  Richard Guenther  <rguenther@suse.de>
7876
7877         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7878         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7879         (verify_gimple): Remove.
7880         * tree-cfg.c (verify_gimple_call): Merge verification
7881         from verify_stmts.
7882         (verify_gimple_phi): Merge verification from verify_stmts.
7883         (verify_gimple_label): New function.
7884         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7885         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7886         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7887         (verify_stmts): Rename to verify_gimple_in_cfg.
7888         (verify_gimple_in_cfg): New function.
7889         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7890         * tree-ssa.c (verify_ssa): Likewise.
7891         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7892
7893 2011-03-25  Richard Guenther  <rguenther@suse.de>
7894
7895         * passes.c (init_optimization_passes): Add FRE pass after
7896         early SRA.
7897
7898 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7899             Andrew Stubbs  <ams@codesourcery.com>
7900
7901         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7902         for Cortex-A8.
7903         (arm_movdi_vfp_cortexa8): New pattern.
7904         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7905         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7906         instructions when tuning for Cortex-A8.  Set attribute "arch".
7907         * config/arm/arm.md: Move include arm-tune.md up a bit.
7908         (define_attr "arch"): Add "onlya8" and "nota8" values.
7909         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7910
7911 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7912
7913         PR bootstrap/48282
7914         Revert:
7915         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7916
7917         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7918         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7919         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7920         * passes.c (init_optimization_passes): Move
7921         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7922
7923 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7924
7925         * c-typeck.c (comptypes_internal): Replace target
7926         hook call of comp_type_attributes by version in tree.c file.
7927         * gimple.c (gimple_types_compatible_p_1): Likewise.
7928         * tree-ssa.c (useless_type_conversion_p): Likewise.
7929         * tree.c (build_type_attribute_qual_variant): Likewise.
7930         (attribute_value_equal): New static helper function.
7931         (comp_type_attributes): New function.
7932         (merge_attributes): Use attribute_value_equal for comparison.
7933         (attribute_list_contained): Likewise.
7934         * tree.h (comp_type_attributes): New prototype.
7935
7936 2011-03-25  Richard Guenther  <rguenther@suse.de>
7937
7938         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7939         of complex types at -O0.
7940         (verify_gimple_assign_binary): Likewise.
7941         (verify_gimple_assign_ternary): Likewise.
7942
7943 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7944
7945         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7946         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7947
7948 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7949
7950         PR debug/48041
7951         * dwarf2out.c (output_abbrev_section): Only write table when
7952         abbrev_die_table_in_use > 1.
7953
7954 2011-02-24  Richard Henderson  <rth@redhat.com>
7955
7956         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7957         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7958         (alpha_expand_unaligned_load_words): Use extql.
7959         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7960         (emit_insxl): Handle all modes for consistency.
7961
7962 2011-02-24  Richard Henderson  <rth@redhat.com>
7963
7964         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7965         (alpha_expand_unaligned_load): Likewise.
7966         (alpha_expand_unaligned_store): Likewise.
7967         (alpha_expand_unaligned_load_words): Likewise.
7968         (alpha_expand_unaligned_store_words): Likewise.
7969         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7970         (alpha_split_lock_test_and_set_12): Likewise.
7971         (print_operand, alpha_fold_builtin_extxx): Likewise.
7972         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7973         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7974         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7975         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7976         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7977         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7978         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7979         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7980         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7981         (extwl, extll, extql): Similarly.
7982         (inswh, inslh, insqh): Similarly.
7983         (mskbl, mskwl, mskll, mskql): Similarly.
7984         (mskwh, msklh, mskqh): Similarly.
7985
7986 2011-02-24  Richard Henderson  <rth@redhat.com>
7987
7988         * config/alpha/alpha.md (attribute isa): Add er, ner.
7989         (attribute enabled): Handle them.
7990         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7991
7992 2011-02-24  Richard Henderson  <rth@redhat.com>
7993
7994         * config/alpha/alpha.md (attribute isa): Add vms.
7995         (attribute enabled): Handle it.
7996         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7997         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7998         (*movtf): Rename from *movtf_internal for consistency.
7999         (*movsi): Merge with *movsi_nt_vms.
8000         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8001         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8002         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8003         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8004
8005 2011-02-24  Richard Henderson  <rth@redhat.com>
8006
8007         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8008         (extendqisi2, extendhisi2): Likewise.
8009         (extendqidi2): Simplify BWX/non-BWX expansions.
8010         (extendhidi2): Similarly.
8011
8012 2011-02-24  Richard Henderson  <rth@redhat.com>
8013
8014         * config/alpha/alpha.md (attribute isa): New.
8015         (attribute enabled): New.
8016         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8017         (zero_extendqisi2, zero_extendqidi2): Similarly.
8018         (zero_extendhisi2, zero_extendhidi2): Similarly.
8019         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8020
8021 2011-02-24  Richard Henderson  <rth@redhat.com>
8022
8023         * config/alpha/predicates.md (input_operand): Revert last change;
8024         update comment to mention 32-bit VMS rather than Windows.
8025
8026 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8027
8028         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8029         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8030         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8031         * passes.c (init_optimization_passes): Move
8032         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8033
8034 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8035
8036         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8037
8038 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8039
8040         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8041         correctly.
8042
8043 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8044
8045         PR debug/48204
8046         * simplify-rtx.c (simplify_const_unary_operation): Call
8047         real_convert when changing mode class with FLOAT_EXTEND.
8048
8049 2011-03-24  Nick Clifton  <nickc@redhat.com>
8050
8051         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8052         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8053         * config/rx/rx.c (rx_option_override): Set align_jumps,
8054         align_loops and align_labels if not set by the user.
8055         (rx_align_for_label): New function.
8056         (rx_max_skip_for_label): New function.
8057         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8058         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8059         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8060         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8061         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8062
8063 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8064
8065         PR rtl-optimization/48263
8066         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8067         and original commutative_p handling.  Use maybe_gen_insn.
8068
8069 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8070
8071         * reload.c (find_reloads_subreg_address): Add address_reloaded
8072         parameter and return true there if the full address has been
8073         reloaded.
8074         (find_reloads_toplev): Pass address_reloaded flag.
8075         (find_reloads_address_1): Don't use address_reloaded parameter.
8076
8077 2011-03-24  Jeff Law  <law@redhat.com>
8078
8079         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8080         unused variable "ann".
8081         (remove_unused_locals): Likewise.
8082
8083         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8084         statement.
8085
8086         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8087         after it is freed.
8088
8089 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8090
8091         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8092         for invalid symbolic addresses.
8093         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8094         larl operands.
8095
8096 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8097
8098         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8099         the argument in calls to fold_truth_not_expr.
8100
8101 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8102
8103         * tree.c (record_node_allocation_statistics): New function.
8104         (make_node_stat, copy_node_stat, build_string): Call it.
8105         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8106         (build1_stat, build_omp_clause): Likewise.
8107
8108 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8109
8110         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8111         last commit.
8112
8113 2011-03-24  Richard Guenther  <rguenther@suse.de>
8114
8115         PR tree-optimization/48271
8116         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8117         blocks that still exist.
8118
8119 2011-03-24  Richard Guenther  <rguenther@suse.de>
8120
8121         PR tree-optimization/48270
8122         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8123         not free datarefs before ddrs.
8124
8125 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8126
8127         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8128         from the address built for a reference with variable offset.
8129
8130 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8131
8132         PR target/48237
8133         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8134         alternatives that can be handled with movq or movabsq insn.
8135         (*movdf_internal): Disable for !TARGET_64BIT.
8136         (*movdf_internal_nointeger): Ditto.
8137         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8138
8139 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8140
8141         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8142         (FUNCTION_ARG_ADVANCE): Likewise.
8143         * tm.texi.in: Change references to them to hook references.
8144         * tm.texi: Regenerate.
8145         * targhooks.c (default_function_arg): Eliminate check for target macro.
8146         (default_function_incoming_arg): Likewise.
8147         (default_function_arg_advance): Likewise.
8148         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8149         (function_arg_advance): Likewise.
8150         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8151
8152 2011-03-24  Richard Guenther  <rguenther@suse.de>
8153
8154         PR middle-end/48269
8155         * tree-object-size.c (addr_object_size): Do not double-account
8156         for MEM_REF offsets.
8157
8158 2011-03-24  Diego Novillo  <dnovillo@google.com>
8159
8160         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8161         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8162         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8163         Update all users.
8164         (lto_input_string): Rename from input_string.  Make extern.
8165         Update all users.
8166         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8167         output_string_with_length.
8168         Output 0 to indicate a non-NULL string.  Update all callers to
8169         not emit 0.
8170         (lto_output_string): Rename from output_string.  Make extern.
8171         Update all users.
8172         (lto_output_decl_state_streams): Make extern.
8173         (lto_output_decl_state_refs): Make extern.
8174         * lto-streamer.h (lto_input_string): Declare.
8175         (lto_input_data_block): Declare.
8176         (lto_output_string): Declare.
8177         (lto_output_string_with_length): Declare.
8178         (lto_output_decl_state_streams): Declare.
8179         (lto_output_decl_state_refs): Declare.
8180
8181 2011-03-24  Richard Guenther  <rguenther@suse.de>
8182
8183         PR tree-optimization/46562
8184         * tree.c (build_invariant_address): New function.
8185         * tree.h (build_invariant_address): Declare.
8186         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8187         a renamed function moved ...
8188         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8189         Take valueization callback parameter.
8190         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8191         * gimple-fold.h: New file.
8192         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8193         (ccp_fold, fold_const_aggregate_ref,
8194         fold_ctor_reference, fold_nonarray_ctor_reference,
8195         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8196         get_base_constructor): Move ...
8197         * gimple-fold.c: ... here.
8198         (gimple_fold_stmt_to_constant_1): New function
8199         split out from ccp_fold.  Take a valueization callback parameter.
8200         Valueize all operands.
8201         (gimple_fold_stmt_to_constant): New wrapper function.
8202         (fold_const_aggregate_ref_1): New function split out from
8203         fold_const_aggregate_ref.  Take a valueization callback parameter.
8204         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8205         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8206         invariant POINTER_PLUS_EXPRs to invariant form.
8207         (vn_valueize): New function.
8208         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8209         * tree-vrp.c (vrp_valueize): New function.
8210         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8211         to fold statements to constants.
8212         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8213         function declarations.
8214         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8215         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8216
8217 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8218
8219         * config/h8300/predicates.md (jump_address_operand): Fix register
8220         mode check.
8221
8222 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8223
8224         * doc/invoke.texi (max-stores-to-sink): Document.
8225         * params.h (MAX_STORES_TO_SINK): Define.
8226         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8227         if either vectorization or if-conversion is disabled.
8228         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8229         tree-vect-data-refs.c vect_equal_offsets.
8230         (dr_equal_offsets_p): New function.
8231         (find_data_references_in_bb): Remove static.
8232         * tree-data-ref.h (find_data_references_in_bb): Declare.
8233         (dr_equal_offsets_p): Likewise.
8234         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8235         (vect_drs_dependent_in_basic_block): Update calls to
8236         vect_equal_offsets.
8237         (vect_check_interleaving): Likewise.
8238         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8239         (cond_if_else_store_replacement): Rename to...
8240         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8241         documentation.
8242         (cond_if_else_store_replacement): New function.
8243         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8244         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8245
8246 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8247
8248         PR target/46934
8249         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8250         to subtract lower bound instead of GEN_INT().
8251
8252 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8253
8254         PR other/48179
8255         PR other/48221
8256         PR other/48234
8257         * doc/extend.texi (Alignment): Move section to match order in TOC.
8258         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8259         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8260
8261 2011-03-23  Jeff Law  <law@redhat.com>
8262
8263         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8264         before removing the edge.
8265
8266         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8267         it may have been freed by redirect_branch_edge or
8268         redirect_edge_succ_nodup.
8269
8270 2011-03-23  Richard Guenther  <rguenther@suse.de>
8271
8272         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8273         (check_va_list_escapes): Likewise.
8274         (check_all_va_list_escapes): Likewise.
8275
8276 2011-03-23  Richard Guenther  <rguenther@suse.de>
8277
8278         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8279         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8280         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8281         (alias.o): Likewise.
8282         (ipa-type-escape.o): Remove.
8283         (ipa-struct-reorg.o): Likewise.
8284         (GTFILES): Remove ipa-struct-reorg.c.
8285         * alias.c: Do not include ipa-type-escape.h.
8286         * tree-ssa-alias.c: Likewise.
8287         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8288         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8289         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8290         and ipa-type-escape passes.
8291         * tree-pass.h (pass_ipa_type_escape): Remove.
8292         (pass_ipa_struct_reorg): Likewise.
8293         * ipa-struct-reorg.h: Remove.
8294         * ipa-struct-reorg.c: Likewise.
8295         * ipa-type-escape.h: Likewise.
8296         * ipa-type-escape.c: Likewise.
8297         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8298         (--param struct-reorg-cold-struct-ratio): Likewise.
8299         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8300         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8301         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8302
8303 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8304
8305         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8306         cpu attribute value.
8307         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8308         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8309         * config/s390/s390.c (processor_flags_table): New constant array.
8310         (s390_handle_arch_option): Remove.
8311         (s390_handle_option): Remove s390_handle_arch_option invocations
8312         and OPT_mwarn_framesize_ handling.
8313         (s390_option_override): Remove s390_handle_arch_option invocation.
8314         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8315         warnings.
8316         * config/s390/s390.md (cpu attribute): Add z9_ec value.
8317         * config/s390/s390.opt (s390_tune, s390_arch)
8318         (march=): Replace s390_arch_option enum and values with
8319         processor_type.  Set variable name to s390_arch.  Set
8320         initialization value.
8321         (mtune=): Replace s390_arch_option with processor_type.  Set
8322         variable name to s390_tune.  Set initialization value.
8323
8324 2011-03-23  Julian Brown  <julian@codesourcery.com>
8325
8326         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8327         accesses which are not naturally aligned.
8328
8329 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8330
8331         PR target/47553
8332         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8333
8334 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
8335
8336         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8337         parameter from "int" to "enum insn_code".
8338         (expand_operand_type): New enum.
8339         (expand_operand): New structure.
8340         (create_expand_operand): New function.
8341         (create_fixed_operand, create_output_operand): Likewise
8342         (create_input_operand, create_convert_operand_to): Likewise.
8343         (create_convert_operand_from, create_address_operand): Likewise.
8344         (create_integer_operand): Likewise.
8345         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8346         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8347         (expand_insn, expand_jump_insn): Likewise.
8348         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8349         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8350         (expand_movstr, expand_builtin___clear_cache): Likewise.
8351         (expand_builtin_lock_release): Likewise.
8352         * explow.c (allocate_dynamic_stack_space): Likewise.
8353         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
8354         and use the default handling in that case.
8355         * expmed.c (check_predicate_volatile_ok): Delete.
8356         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8357         (emit_cstore): Likewise.
8358         * expr.c (emit_block_move_via_movmem): Likewise.
8359         (set_storage_via_setmem, expand_assignment): Likewise.
8360         (emit_storent_insn, try_casesi): Likewise.
8361         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
8362         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8363         (expand_vec_shift_expr, expand_binop_directly): Likewise.
8364         (expand_twoval_unop, expand_twoval_binop): Likewise.
8365         (expand_unop_direct, emit_indirect_jump): Likewise.
8366         (emit_conditional_move, vector_compare_rtx): Likewise.
8367         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8368         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8369         (expand_sync_lock_test_and_set): Likewise.
8370         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
8371         (emit_unop_insn): Likewise.
8372         (expand_copysign_absneg): Change icode to an insn_code.
8373         (create_convert_operand_from_type): New function.
8374         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8375         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8376         (expand_insn, expand_jump_insn): Likewise.
8377         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8378         than const_int_operand for operand 2.
8379
8380 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8381
8382         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8383         if possible.
8384
8385 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8386
8387         * emit-rtl.c (emit_pattern_before_noloc): New function.
8388         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8389         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8390         (emit_pattern_after_noloc): New function.
8391         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8392         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8393
8394 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8395
8396         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8397         (__ffsDI2): Likewise.
8398
8399 2011-03-22  Richard Henderson  <rth@redhat.com>
8400
8401         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8402         of !TARGET_ABI_OPEN_VMS.
8403         (alpha_trampoline_init, alpha_start_function): Likewise.
8404         (alpha_expand_epilogue, alpha_file_start): Likewise.
8405         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8406         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8407         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8408         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8409         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8410
8411 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8412
8413         * config/s390/s390-opts.h: New.
8414         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8415         s390_arch_flags, s390_warn_framesize, s390_stack_size,
8416         s390_stack_guard): Remove.
8417         (s390_handle_arch_option): Return void.  Take enum
8418         s390_arch_option value instead of string and searching array.
8419         (s390_handle_option): Don't assert that global structures are in
8420         use.  Access variables via opts pointer.  Use error_at.  Don't use
8421         sscanf for -mstack-guard= or -mstack-size=.  Update call to
8422         s390_handle_arch_option.
8423         (s390_option_override): Update call to s390_handle_arch_option.
8424         (s390_emit_prologue): Use %d format for s390_stack_size in
8425         diagnostic.  Use %wd for HOST_WIDE_INT.
8426         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8427         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8428         * config/s390/s390.opt (config/s390/s390-opts.h): New
8429         HeaderInclude entry.
8430         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8431         s390_arch_flags, s390_warn_framesize): New Variable entries.
8432         (s390_arch_option): New Enum and EnumValue entries.
8433         (march=): Use Enum instead of Var.
8434         (mstack-guard=, mstack-size=): Use UInteger and Var.
8435         (mtune=): Use Enum.
8436
8437 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8438
8439         * config/score/score.c (score_handle_option): Don't assert that
8440         global structures are in use.  Access target_flags via opts
8441         pointer.  Use value of -march= option to determine target_flags
8442         settings.
8443         * config/score/score.opt (march=): Use Enum.
8444         (score_arch): New Enum and EnumValue entries.
8445
8446 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8447
8448         * config/mep/mep.c (option_mtiny_specified): Remove.
8449         (mep_option_override): Move register handling for -mivc2 from
8450         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
8451         instead of option_mtiny_specified.
8452         (mep_handle_option): Access target_flags via opts pointer.  Don't
8453         assert that global structures are in use.  Defer part of -mivc2
8454         handling and move it to mep_option_override.
8455         * config/mep/mep.opt (IVC2): New Mask entry.
8456         (mivc2): Use Var and Defer instead of Mask.
8457
8458 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8459
8460         * config/v850/v850-opts.h: New.
8461         * config/v850/v850.c (small_memory): Replace with
8462         small_memory_physical_max array.  Make that array static const.
8463         (v850_handle_memory_option): Take integer value of argument.  Take
8464         gcc_options pointer, option text and location.  Return void.
8465         Update for changes to small memory structures.
8466         (v850_handle_option): Access target_flags via opts pointer.  Don't
8467         assert that global structures are in use.  Update calls to
8468         v850_handle_memory_option.
8469         (v850_encode_data_area): Update references to small memory settings.
8470         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8471         (enum small_memory_type): Move to v850-opts.h.
8472         * config/v850/v850.opt (config/v850/v850-opts.h): New
8473         HeaderInclude entry.
8474         (small_memory_max): New Variable entry.
8475         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
8476         (mtda, mzda): Likewise.
8477
8478 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8479
8480         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8481         pointer.  Don't assert that global structures are in use.
8482
8483 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8484
8485         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8486         via opts pointer.  Don't assert that global structures are in use.
8487
8488 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8489
8490         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8491         (munix=93): Use Var.
8492         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8493         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8494         * config/pa/pa-opts.h: New.
8495         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8496         (pa_handle_option): Don't assert that global structures are in
8497         use.  Access target_flags via opts pointer.  Don't handle
8498         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8499         OPT_munix_98 here.
8500         (pa_option_override): Handle deferred OPT_mfixed_range_.
8501
8502 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8503
8504         * config/mn10300/mn10300-opts.h: New.
8505         * config/mn10300/mn10300.c (mn10300_processor,
8506         mn10300_tune_string): Remove.
8507         (mn10300_handle_option): Don't assert that global structures are
8508         in use.  Access mn10300_processor via opts pointer.  Don't handle
8509         OPT_mtune_ here.
8510         * config/mn10300/mn10300.h (enum processor_type): Move to
8511         mn10300-opts.h.
8512         (mn10300_processor): Remove.
8513         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8514         HeaderInclude entry.
8515         (mn10300_processor): New Variable entry.
8516         (mtune=): Use Var.
8517
8518 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8519
8520         * config/microblaze/microblaze.c: Don't include opts.h.
8521         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8522         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8523         (mno-clearbss): Use Var and Warn.
8524
8525 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8526
8527         * config/m32r/m32r-opts.h: New.
8528         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8529         (m32r_handle_option): Don't assert that global structures are in
8530         use.  Access target_flags and m32r_cache_flush_func via opts
8531         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
8532         OPT_mno_flush_trap here.
8533         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8534         include of m32r-opts.h.
8535         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8536         HeaderInclude entry.
8537         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8538         (mmodel=): Use Enum and Var.
8539         (m32r_model): New Enum and EnumValue entries.
8540         (mno-flush-trap): Use Var.
8541         (msdata=): Use Enum and Var.
8542         (m32r_sdata): New Enum and EnumValue entries.
8543
8544 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8545
8546         * config/m32c/m32c.c: Don't include opts.h.
8547         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8548         m32c_handle_option): Remove.
8549         (m32c_option_override): Check global_options_set.x_target_memregs
8550         instead of target_memregs_set.
8551         * config/m32c/m32c.h (target_memregs): Remove.
8552         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8553         variable.
8554
8555 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8556
8557         * config/iq2000/iq2000-opts.h: New.
8558         * config/iq2000/iq2000.c: Don't include opts.h.
8559         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8560         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8561         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8562         HeaderInclude entry.
8563         (iq2000_tune): New Variable entry.
8564         (march=): Add comment.  Use Enum.
8565         (iq2000_arch): New Enum and EnumValue entries.
8566         (mcpu=): Use Enum and Var.
8567         (iq2000_tune): New Enum and EnumValue entries.
8568
8569 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8570
8571         * config/ia64/ia64-opts.h: New.
8572         * config/ia64/ia64.c (ia64_tune): Remove.
8573         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8574         here.  Use error_at.
8575         (ia64_option_override): Handle deferred OPT_mfixed_range_.
8576         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8577         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8578         HeaderInclude entry.
8579         (ia64_tune): New Variable entry.
8580         (mfixed-range=): Use Defer and Var.
8581         (mtune=): Use Enum and Var.
8582         (ia64_tune): New Enum and EnumValue entries.
8583
8584 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8585
8586         * config/frv/frv-opts.h: New.
8587         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8588         frv-opts.h.
8589         (frv_cpu_type): Remove.
8590         * config/frv/frv.c: Don't include opts.h.
8591         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8592         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8593         (frv_cpu_type): New Variable entry.
8594         (frv_cpu): New Enum and EnumValue entries.
8595
8596 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8597
8598         * config/cris/cris.c (cris_handle_option): Access target_flags via
8599         opts pointer.  Don't assert that global structures are in use.
8600         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8601         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8602
8603 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8604
8605         * config/bfin/bfin-opts.h: New.
8606         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8607         bfin_si_revision, bfin_workarounds): Remove.
8608         (bfin_cpus): Make static const.
8609         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8610         not bfin_lib_id_given.
8611         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
8612         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8613         pointer. Use error_at.  Don't assert that global structures are in use.
8614         * config/bfin/bfin.h: Include bfin-opts.h.
8615         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8616         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8617         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8618         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8619         entries.
8620
8621 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8622
8623         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8624         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8625         or -msoft-float here.
8626         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8627         -msoft-float and -mhard-float.
8628         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8629         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8630         msoft-float.
8631         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8632         -msoft-float.
8633         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8634         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8635         not mhard-float.
8636         (LIBGCC_SPEC): Don't handle -msoft-float.
8637         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8638         -mhard-float.
8639         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8640         msoft-float.
8641         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8642         -mfloat-abi=*, not -msoft-float and -mhard-float.
8643         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8644         -msoft-float.
8645         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8646         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8647         mhard-float and msoft-float.
8648         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8649         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8650         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8651         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8652         mhard-float.
8653         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8654         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8655         msoft-float.
8656         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8657         not mhard-float.
8658         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8659         not msoft-float.
8660
8661 2011-03-22  Richard Henderson  <rth@redhat.com>
8662
8663         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8664         TARGET_ABI_WINDOWS_NT.
8665         (alpha_output_function_end_prologue): Likewise.
8666         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8667         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8668         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8669         (trap, *movsi_nt_vms): Likewise.
8670         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8671         (*tablejump_osf_nt_internal): Remove.
8672         * config/alpha/predicates.md (input_operand): Only test Pmode.
8673
8674 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8675
8676         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8677         via opts pointer.  Use error_at.  Don't assert that global
8678         structures are in use.
8679
8680 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8681
8682         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8683         (ix86_handle_option): Access ix86_isa_flags and
8684         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8685         global structures are in use.
8686         (ix86_function_specific_save, ix86_function_specific_restore):
8687         Update ix86_isa_flags_explicit field name.
8688         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8689         (ix86_isa_flags_explicit): Rename TargetSave entry to
8690         x_ix86_isa_flags_explicit.
8691
8692 2011-03-22  Richard Henderson  <rth@redhat.com>
8693
8694         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8695         (alpha_option_override, direct_return): Likewise.
8696         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8697         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8698         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8699         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8700         (alpha_expand_epilogue, alpha_end_function): Likewise.
8701         (alpha_init_libfuncs): Likewise.
8702         (struct machine_function): Remove unicosmk members.
8703         (print_operand) ['t']: Remove.
8704         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8705         unicosmk_output_module_name, unicosmk_output_common,
8706         current_section_align, unicosmk_output_text_section_asm_op,
8707         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8708         unicosmk_section_type_flags, unicosmk_unique_section,
8709         unicosmk_asm_named_section, unicosmk_insert_attributes,
8710         unicosmk_output_align, unicosmk_defer_case_vector,
8711         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8712         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8713         unicosmk_output_ssib, unicosmk_add_call_info_word,
8714         unicosmk_extern_head, unicosmk_output_default_externs,
8715         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8716         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8717         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8718         * config/alpha/alpha-protos.h: Update.
8719         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8720         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8721         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8722         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8723         (*mulsi_se, mulvsi3): Likewise.
8724         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8725         (*divmodsi_internal, call, call_value, realign): Likewise.
8726         (moddi3, umoddi3): Likewise; remove duplicate expander.
8727         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8728         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8729         (*movdi_nofix): Remove r/U alternative.
8730         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8731         * config/alpha/constraints.md ("U"): Remove.
8732         * config/alpha/predicates.md (call_operand"): Don't test
8733         TARGET_ABI_UNICOSMK.
8734
8735 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8736
8737         * target.def (handle_option): Take gcc_options and
8738         cl_decoded_option pointers and location_t.
8739         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8740         * doc/tm.texi: Regenerate.
8741         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8742         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8743         * lto-opts.c (lto_reissue_options): Generate option structure for
8744         targetm.handle_option call.
8745         * opts.c (target_handle_option): Update call to
8746         targetm.handle_option.  Remove assertions about values now passed
8747         down to hook.
8748         * targhooks.c (default_target_handle_option): New.
8749         * targhooks.h (default_target_handle_option): Declare.
8750         * config/alpha/alpha.c: Include opts.h.
8751         (alpha_handle_option): Update to new hook interface.
8752         * config/arm/arm.c: Include opts.h.
8753         (arm_handle_option): Update to new hook interface.
8754         * config/arm/t-arm (arm.o): Update dependencies.
8755         * config/bfin/bfin.c: Include opts.h.
8756         (bfin_handle_option): Update to new hook interface.
8757         * config/cris/cris.c: Include opts.h.
8758         (cris_handle_option): Update to new hook interface.
8759         * config/frv/frv.c: Include opts.h.
8760         (frv_handle_option): Update to new hook interface.
8761         * config/i386/i386.c: Include opts.h.
8762         (ix86_handle_option): Update to new hook interface.
8763         (ix86_valid_target_attribute_inner_p): Generate option structure
8764         for call to ix86_handle_option.
8765         * config/i386/t-i386 (i386.o): Update dependencies.
8766         * config/ia64/ia64.c: Include opts.h.
8767         (ia64_handle_option): Update to new hook interface.
8768         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8769         * config/iq2000/iq2000.c: Include opts.h.
8770         (iq2000_handle_option): Update to new hook interface.
8771         * config/m32c/m32c.c: Include opts.h.
8772         (m32c_handle_option): Update to new hook interface.
8773         * config/m32r/m32r.c: Include opts.h.
8774         (m32r_handle_option): Update to new hook interface.
8775         * config/m68k/m68k.c: Include opts.h.
8776         (m68k_handle_option): Update to new hook interface.
8777         * config/mep/mep.c: Include opts.h.
8778         (mep_handle_option): Update to new hook interface.
8779         * config/microblaze/microblaze.c: Include opts.h.
8780         (microblaze_handle_option): Update to new hook interface.
8781         * config/mips/mips.c: Include opts.h.
8782         (mips_handle_option): Update to new hook interface.
8783         * config/mn10300/mn10300.c: Include opts.h.
8784         (mn10300_handle_option): Update to new hook interface.
8785         * config/pa/pa.c: Include opts.h.
8786         (pa_handle_option): Update to new hook interface.
8787         * config/pdp11/pdp11.c: Include opts.h.
8788         (pdp11_handle_option): Update to new hook interface.
8789         * config/rs6000/rs6000.c: Include opts.h.
8790         (rs6000_handle_option): Update to new hook interface.
8791         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8792         * config/rx/rx.c: Include opts.h.
8793         (rx_handle_option): Update to new hook interface.
8794         * config/s390/s390.c: Include opts.h.
8795         (s390_handle_option): Update to new hook interface.
8796         * config/score/score.c: Include opts.h.
8797         (score_handle_option): Update to new hook interface.
8798         * config/sh/sh.c: Include opts.h.
8799         (sh_handle_option): Update to new hook interface.
8800         * config/sparc/sparc.c: Include opts.h.
8801         (sparc_handle_option): Update to new hook interface.
8802         * config/v850/v850.c: Include opts.h.
8803         (v850_handle_option): Update to new hook interface.
8804
8805 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8806
8807         * gcc.c (driver_unknown_option_callback): Only permit and save
8808         unknown -Wno- options.
8809         (driver_wrong_lang_callback): Save options directly instead of via
8810         driver_unknown_option_callback.
8811
8812 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8813
8814         * combine.c (simplify_set): Try harder to find the best CC mode when
8815         simplifying a nested COMPARE on the RHS.
8816
8817 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8818
8819         * config/alpha/gnu.h: Remove.
8820         * config/arc: Remove directory.
8821         * config/arm/netbsd.h: Remove.
8822         * config/arm/t-pe: Remove.
8823         * config/crx: Remove directory.
8824         * config/i386/netbsd.h: Remove.
8825         * config/m68hc11: Remove directory.
8826         * config/m68k/uclinux-oldabi.h: Remove.
8827         * config/mcore/mcore-pe.h: Remove.
8828         * config/mcore/t-mcore-pe: Remove.
8829         * config/netbsd-aout.h: Remove.
8830         * config/rs6000/gnu.h: Remove.
8831         * config/sh/sh-symbian.h: Remove.
8832         * config/sh/symbian-base.c: Remove.
8833         * config/sh/symbian-c.c: Remove.
8834         * config/sh/symbian-cxx.c: Remove.
8835         * config/sh/symbian-post.h: Remove.
8836         * config/sh/symbian-pre.h: Remove.
8837         * config/sh/t-symbian: Remove.
8838         * config/svr3.h: Remove.
8839         * config/vax/netbsd.h: Remove.
8840         * config.build: Don't handle i[34567]86-*-pe.
8841         * config.gcc: Remove handling of deprecations for most deprecated
8842         targets.
8843         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8844         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8845         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8846         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8847         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8848         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8849         Remove cases.
8850         * config.host: Don't handle i[34567]86-*-pe.
8851         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8852         (ASM_SPEC32): Don't handle -mcall-gnu.
8853         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8854         -mcall-gnu.
8855         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8856         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8857         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8858         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8859         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8860         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8861         conditional on SYMBIAN.
8862         * configure.ac: Don't handle powerpc*-*-gnu*.
8863         * configure: Regenerate.
8864         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8865         * doc/install-old.texi (m6811, m6812): Don't mention.
8866         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8867         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8868         (m68k-uclinuxoldabi): Don't mention.
8869         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8870         Remove.
8871         (-mcall-gnu): Remove.
8872         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8873         families): Remove constraint documentation.
8874
8875 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8876
8877         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8878         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8879         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8880
8881 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8882
8883         PR target/48226
8884         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8885         vector when peeking at the next token for vector, don't expand the
8886         keywords.
8887
8888 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8889
8890         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8891         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8892         * config/avr/avr.c (init_cumulative_args)
8893         (avr_function_arg_advance): Use it.
8894         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8895         sibcall epilogues.
8896         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8897         (avr_function_ok_for_sibcall): ...this new function.
8898         (avr_lookup_function_attribute1): New static Function.
8899         (avr_naked_function_p, interrupt_function_p)
8900         (signal_function_p, avr_OS_task_function_p)
8901         (avr_OS_main_function_p): Use it.
8902         * config/avr/avr.md ("sibcall", "sibcall_value")
8903         ("sibcall_epilogue"): New expander.
8904         ("*call_insn", "*call_value_insn"): New insn.
8905         ("call_insn", "call_value_insn"): Remove
8906         ("call", "call_value", "epilogue"): Change expander to handle
8907         sibling calls.
8908
8909 2011-03-21  Nick Clifton  <nickc@redhat.com>
8910
8911         * doc/invoke.texi (Overall Options): Move closing brace to end of
8912         options list.
8913         (Optimization Options): Add missing @gol.
8914         (Directory Options): Likewise.
8915         (i386 and x86-64 Options): Likewise.
8916         (RS6000 and PowerPC Options): Likewise.
8917         (i386 and x86-64 Windows Options): Likewise.
8918         (V850 Options): Add text missing from descriptions.
8919
8920 2011-03-22  Richard Henderson  <rth@redhat.com>
8921
8922         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8923         (avr_incoming_return_addr_rtx): New.
8924         (emit_push_byte): New.
8925         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8926         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8927         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8928         (emit_pop_byte): New.
8929         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8930         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8931         (INCOMING_RETURN_ADDR_RTX): New.
8932         (INCOMING_FRAME_SP_OFFSET): New.
8933         (ARG_POINTER_CFA_OFFSET): New.
8934         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8935         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8936         (pophi): Remove.
8937
8938         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8939
8940 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8941
8942         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8943         (FUNCTION_ARG_ADVANCE): Likewise.
8944         * tm.texi.in: Change references to them to hook references.
8945         * tm.texi: Regenerate.
8946         * targhooks.c (default_function_arg): Eliminate check for target
8947         macro.
8948         (default_function_incoming_arg): Likewise.
8949         (default_function_arg_advance): Likewise.
8950         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8951         (function_arg_advance): Likewise.
8952         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8953
8954 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8955
8956         * tree.c (build_call_1): New function.
8957         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8958
8959 2011-03-22  Richard Guenther  <rguenther@suse.de>
8960
8961         PR tree-optimization/48228
8962         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8963         for single-arg PHIs.
8964
8965 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8966
8967         PR rtl-optimization/48143
8968         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8969         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8970         sse2_cvtps2pd): Likewise.
8971
8972 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8973
8974         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8975
8976 2011-03-22  Richard Guenther  <rguenther@suse.de>
8977
8978         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8979         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8980         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8981         and REALIGN_LOAD_EXPR.
8982         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8983         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8984         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8985         DOT_PROD_EXPR case ...
8986         (expand_expr_real_2): ... here.
8987         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8988         and REALIGN_LOAD_EXPR.
8989         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8990         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8991         (vect_create_epilog_for_reduction): Likewise.
8992         (vectorizable_reduction): Likewise.
8993         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8994         * tree-vect-stmts.c (vectorizable_load): Likewise.
8995
8996 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8997
8998         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8999
9000 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9001
9002         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9003         handling for PLTOFF/GOTOFF.
9004
9005 2011-03-22  Nick Clifton  <nickc@redhat.com>
9006
9007         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9008         trailing backslash from the end of the macro definition.
9009
9010 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9011
9012         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9013         and PLT unspecs.
9014
9015 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9016
9017         * expr.h (prepare_operand): Move to...
9018         * optabs.h (prepare_operand): ...here and change the insn code
9019         parameter from "int" to "enum insn_code".
9020         (insn_operand_matches): Declare.
9021         * expr.c (init_expr_target): Use insn_operand_matches.
9022         (compress_float_constant): Likewise.
9023         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9024         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9025         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9026         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9027         Likewise.
9028         (gen_cond_trap): Likewise.
9029         (prepare_operand): Likewise.  Change icode to an insn_code.
9030         (insn_operand_matches): New function.
9031         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9032         * reload1.c (gen_reload): Likewise.
9033         * targhooks.c (default_secondary_reload): Likewise.
9034
9035 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9036
9037         * config/alpha/alpha.md (unspec): New define_c_enum.
9038         (unspecv): Ditto.
9039
9040 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9041
9042         PR debug/48214
9043         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9044         between a call and its CALL_ARG_LOCATION note.
9045
9046 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9047
9048         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9049
9050 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9051
9052         PR c/42544
9053         PR c/48197
9054         * c-common.c (shorten_compare): If primopN is first sign-extended
9055         to opN and then zero-extended to result type, set primopN to opN.
9056
9057 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9058
9059         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9060         for barrier handlers.
9061
9062 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9063
9064         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9065         UNSPEC constants to be in the unspec enumeration, and redefine
9066         all UNSPECV constants to be in the unspecv enumeration, so that
9067         dumps print which unspec/unspec_volatile this is.
9068         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9069         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9070         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9071         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9072         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9073
9074         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9075         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9076         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9077         * config/rs6000/sync.md (isync, lwsync): Ditto.
9078
9079 2011-03-21  Richard Guenther  <rguenther@suse.de>
9080
9081         * params.def (lto-min-partition): Fix typo.
9082
9083 2011-03-21  Richard Guenther  <rguenther@suse.de>
9084
9085         PR c/47939
9086         * c-decl.c (grokdeclarator): Drop to the main variant only
9087         for array types.  Drop flag_gen_aux_info check.
9088
9089 2011-03-21  Richard Guenther  <rguenther@suse.de>
9090
9091         PR translation/47911
9092         * params.def (lto-partitions): Fix typo.
9093         (lto-min-partition): Fix wording.
9094
9095 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9096
9097         * config/rs6000/t-freebsd: Remove duplication from file.
9098
9099 2011-03-21  Richard Guenther  <rguenther@suse.de>
9100
9101         PR middle-end/47661
9102         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9103
9104 2011-03-21  Richard Guenther  <rguenther@suse.de>
9105
9106         PR lto/48210
9107         * params.def (lto-partitions): Require at least 1 partition.
9108
9109 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9110
9111         * gthr-solaris.h: Remove.
9112         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9113         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9114         (LIB_SPEC): Likewise.
9115         * config/sol2.opt (threads): Remove.
9116         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9117         (sparc*-*-solaris2*): Likewise.
9118         * configure.ac (enable_threads): Enable solaris support.
9119         * configure: Regenerate.
9120         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9121         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9122         solaris.
9123
9124 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9125
9126         * config.gcc: Obsolete *-*-solaris2.8*.
9127         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9128
9129 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9130
9131         PR bootstrap/48135
9132         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9133         reference.  Solaris 8 perl works.
9134
9135 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9136
9137         PR bootstrap/48135
9138         * doc/install.texi (Prerequisites): Move jar etc. up.
9139         Explain support library version requirements.
9140
9141 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9142
9143         PR bootstrap/48135
9144         * doc/install.texi (Prerequisites): Move Perl to build
9145         requirements.  Always necessary on Solaris 2 with Sun ld.
9146
9147 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9148
9149         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9150         binutils 2.21.
9151         (Specific, i?86-*-solaris2.[89]): Likewise.
9152         (Specific, i?86-*-solaris2.10): Likewise.
9153         (Specific, mips-sgi-irix6): Likewise.
9154         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9155         Update for binutils 2.21.
9156
9157 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9158
9159         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9160         Allow -fuse-linker-plugin for non-default plugin linker.
9161         * configure: Regenerate.
9162
9163 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9164
9165         PR bootstrap/48167
9166         * gengtype.c (files_rules): Added rule for cp/parser.h.
9167
9168 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9169
9170         PR target/48213
9171         * config/s390/s390.c (s390_delegitimize_address): Don't call
9172         lowpart_subreg if orig_x has BLKmode.
9173
9174 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9175
9176         PR target/12171
9177         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9178         * tree.h (attribute_spec): Add new member affects_type_identity.
9179         * attribs.c (empty_attribute_table): Adjust attribute_spec
9180         initializers.
9181         * config/alpha/alpha.c: Likewise.
9182         * config/arc/arc.c: Likewise.
9183         * config/arm/arm.c: Likewise.
9184         * config/avr/avr.c: Likewise.
9185         * config/bfin/bfin.c: Likewise.
9186         * config/crx/crx.c: Likewise.
9187         * config/darwin.h: Likewise.
9188         * config/h8300/h8300.c: Likewise.
9189         * config/i386/cygming.h: Likewise.
9190         * config/i386/i386.c: Likewise.
9191         * config/ia64/ia64.c: Likewise.
9192         * config/m32c/m32c.c: Likewise.
9193         * config/m32r/m32r.c: Likewise.
9194         * config/m68hc11/m68hc11.c: Likewise.
9195         * config/m68k/m68k.c: Likewise.
9196         * config/mcore/mcore.c: Likewise.
9197         * config/mep/mep.c: Likewise.
9198         * config/microblaze/microblaze.c: Likewise.
9199         * config/mips/mips.c: Likewise.
9200         * config/rs6000/rs6000.c: Likewise.
9201         * config/rx/rx.c: Likewise.
9202         * config/sh/sh.c: Likewise.
9203         * config/sol2.h: Likewise.
9204         * config/sparc/sparc.c: Likewise.
9205         * config/spu/spu.c: Likewise.
9206         * config/stormy16/stormy16.c: Likewise.
9207         * config/v850/v850.c: Likewise.
9208
9209 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9210
9211         * simplify-rtx.c (simplify_binary_operation_1): Handle
9212         (xor (and A B) C) case when B and C are both constants.
9213
9214 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9215
9216         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9217
9218 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9219
9220         PR bootstrap/48168
9221         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9222
9223 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9224
9225         PR rtl-optimization/48156
9226         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9227         assume df and df_lr are not NULL.
9228
9229 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9230
9231         PR debug/48023
9232         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9233         between a call and its CALL_ARG_LOCATION note.
9234
9235 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9236
9237         PR debug/48178
9238         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9239         between a call and its corresponding CALL_ARG_LOCATION note.
9240
9241 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9242
9243         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9244         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9245         * haifa-sched.c (setup_ref_regs): Ditto.
9246         * caller-save.c (add_used_regs_1): Ditto.
9247         * dse.c (look_for_hardregs): Ditto.
9248         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9249         * sched-rgn.c (check_live_1): Ditto.
9250
9251 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9252
9253         * c-decl.c (diagnose_mismatched_decls): Give an error for
9254         redefining a typedef with variably modified type.
9255
9256 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9257
9258         * c-decl.c (grokfield): Don't allow typedefs for structures or
9259         unions with no tag by default.
9260         * doc/extend.texi (Unnamed Fields): Update.
9261
9262 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9263
9264         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9265         Rewrite using indirect functions.
9266         (lwp_slwpcb): Ditto.
9267         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9268         (avx_vinsertf128<mode>): Ditto.
9269
9270 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9271
9272         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9273         unspecs.
9274
9275 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9276
9277         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9278         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9279
9280 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9281
9282         PR rtl-optimization/48170
9283         * gcse.c (hoist_code): Remove bogus asserts.
9284
9285 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9286
9287         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9288         computation for prologue/epilogue.
9289
9290 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9291
9292         * Makefile.in (check-consistency): Remove.
9293
9294 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9295
9296         PR debug/48176
9297         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9298         arange_table_in_use is 0, but either text_section_used or
9299         cold_text_section_used is true.  Don't call it if
9300         !info_section_emitted.
9301
9302 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9303
9304         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9305         FUNCTION_VALUE_REGNO_P): Remove.
9306         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9307         Remove.
9308         * config/avr/avr.c (avr_ret_register): Make static inline.
9309         (avr_function_value_regno_p): New function.
9310         (avr_libcall_value): Make static. Add 'func' argument.
9311         (avr_function_value): Make static. Rename 'func' argument to
9312         'fn_decl_or_type', forward it to avr_libcall_value. Call
9313         avr_ret_register function instead of RET_REGISTER macro.
9314         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9315
9316 2011-03-18  Jason Merrill  <jason@redhat.com>
9317
9318         PR c++/23372
9319         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9320
9321 2011-03-18  Richard Guenther  <rguenther@suse.de>
9322
9323         * doc/install.texi (--enable-gold): Remove.
9324         (--with-plugin-ld): Document.
9325         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9326
9327 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
9328
9329         PR middle-end/47790
9330         * expr.c (optimize_bitfield_assignment_op): Revamp to work
9331         again after expansion changes.
9332
9333 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
9334
9335         * combine.c (try_combine): Do simplification only call of
9336         subst() on i2 even when i1 is present. Update comments.
9337
9338 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
9339
9340         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9341         and UNSPEC_PCREL_SYMOFF.
9342
9343 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9344
9345         * config/s390/s390.md: Use define_c_enum for the unspec constant
9346         definitions.
9347
9348 2011-03-18  Richard Henderson  <rth@redhat.com>
9349             Jakub Jelinek  <jakub@redhat.com>
9350
9351         PR bootstrap/48161
9352         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9353         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9354
9355 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9356
9357         PR middle-end/47725
9358         * combine.c (cant_combine_insn_p): Don't check zero/sign
9359         extended hard registers.
9360
9361 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9362
9363         PR middle-end/47725
9364         * combine.c (cant_combine_insn_p): Check zero/sign extended
9365         hard registers.
9366
9367 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
9368
9369         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9370         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9371         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9372         Change return type to bool.
9373         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9374
9375 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9376
9377         PR debug/48163
9378         * var-tracking.c (prepare_call_arguments): If CALL target
9379         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9380         pc instead of looking it up using cselib_lookup and use
9381         Pmode for it if x has VOIDmode.
9382         * dwarf2out.c (gen_subprogram_die): If also both first and
9383         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9384
9385         PR debug/48163
9386         * function.c (assign_parms): For data.passed_pointer parms
9387         use MEM of data.entry_parm instead of data.entry_parm itself
9388         as DECL_INCOMING_RTL.
9389         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9390         also when passed and declared mode is the same, DECL_RTL
9391         is a MEM with pseudo as address and DECL_INCOMING_RTL is
9392         a MEM too.
9393
9394 2011-03-16  Jeff Law  <law@redhat.com>
9395
9396         PR rtl-optimization/37273
9397         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9398         handle them like argument loads from stack slots.  Do not double
9399         count memory for memory constants and argument loads from stack slots.
9400
9401 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9402
9403         PR debug/48160
9404         * var-tracking.c (prepare_call_arguments): Check SUBREG.
9405
9406 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
9407
9408         PR target/48171
9409         * config/i386/i386.opt: Add Save to -mavx and -mfma.
9410
9411 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9412
9413         PR bootstrap/48153
9414         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9415         if dwarf_strict.
9416         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9417         Clear call_arg_locations and call_arg_loc_last always.
9418
9419         PR middle-end/48152
9420         * var-tracking.c (prepare_call_arguments): If argument needs to be
9421         passed by reference, adjust argtype and mode.
9422
9423 2011-03-17  Richard Guenther  <rguenther@suse.de>
9424
9425         PR middle-end/48134
9426         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9427         a value make sure to fold the statement.
9428
9429 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
9430
9431         PR target/43872
9432         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9433         return condition with !cfun->calls_alloca.
9434
9435 2011-03-17  Richard Guenther  <rguenther@suse.de>
9436
9437         PR bootstrap/48148
9438         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9439         origin for decls in other ltrans units.
9440         (input_varpool_node): Likewise.
9441
9442 2011-03-17  Richard Guenther  <rguenther@suse.de>
9443
9444         PR middle-end/48165
9445         * tree-object-size.c (compute_object_offset): Properly return
9446         the offset operand of MEM_REFs as sizetype.
9447
9448 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
9449
9450         PR rtl-optimization/48141
9451         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9452         * dse.c: Include params.h.
9453         (active_local_stores_len): New variable.
9454         (add_wild_read, dse_step1): Clear it when setting active_local_stores
9455         to NULL.
9456         (record_store, check_mem_read_rtx): Decrease it when removing
9457         from the chain.
9458         (scan_insn): Likewise.  Increase it when adding to chain, if it
9459         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9460         set active_local_stores to NULL before the addition.
9461         * Makefile.in (dse.o): Depend on $(PARAMS_H).
9462
9463         PR rtl-optimization/48141
9464         * dse.c (record_store): If no positions are needed in an insn
9465         that cannot be deleted, at least unchain it from active_local_stores.
9466
9467 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
9468
9469         PR debug/47510
9470         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9471         (lookup_type_die_strip_naming_typedef): ... here.
9472         (get_context_die): Use it.
9473         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9474         the anonymous struct named by the naming typedef.
9475
9476 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9477
9478         PR target/48154
9479         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9480         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9481
9482 2011-03-16  Jeff Law  <law@redhat.com>
9483
9484         * tree-vrp.c (identify_jump_threads): Slightly simplify type
9485         check for operands of conditional.  Allow type to be a pointer.
9486
9487 2011-03-16  Richard Guenther  <rguenther@suse.de>
9488
9489         PR tree-optimization/48149
9490         * fold-const.c (fold_binary_loc): Fold
9491         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9492
9493 2011-03-16  Richard Guenther  <rguenther@suse.de>
9494
9495         PR tree-optimization/26134
9496         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9497         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9498         (non_rewritable_mem_ref_base): Handle complex type component
9499         accesses, constrain offsets for vector and complex extracts
9500         more properly.
9501
9502 2011-03-16  Richard Guenther  <rguenther@suse.de>
9503
9504         PR tree-optimization/48146
9505         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9506         operands avoiding the need for renaming.
9507
9508 2011-03-16  Richard Guenther  <rguenther@suse.de>
9509
9510         * gimple-fold.c (maybe_fold_reference): Open-code relevant
9511         constant folding.  Move MEM_REF canonicalization first.
9512         Rely on fold_const_aggregate_ref for initializer folding.
9513         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9514
9515 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9516
9517         PR middle-end/48136
9518         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9519         arg0/arg1 or their arguments are always fold converted to matching
9520         types.
9521
9522         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9523         to nargs.
9524
9525 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9526
9527         PR lto/46944
9528         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9529         Handle in-tree gold.
9530         (ld_vers): Extract binutils version for gold.
9531         (gcc_cv_ld_hidden): Handle gold here.
9532         (gcc_cv_lto_plugin): Determine level of linker plugin support.
9533         * configure: Regenerate.
9534         * config.in: Regenerate.
9535         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9536         -fuse-linker-plugin otherwise.
9537         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
9538         (LINK_COMMAND_SPEC): Use it.
9539         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9540
9541 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
9542
9543         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9544         * calls.c: Remove debug.h include.
9545         (emit_call_1): Don't call virtual_call_token debug hook.
9546         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9547         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9548         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9549         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9550         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9551         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9552         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9553         dwarf2out_virtual_call): Remove.
9554         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9555         copy_call_info and virtual_call hooks.
9556         (dwarf2out_init): Don't initialize vcall_insn_table,
9557         debug_dcall_section and debug_vcall_section.
9558         (prune_unused_types): Don't mark nodes from dcall_table.
9559         (dwarf2out_finish): Don't output dcall or vcall tables.
9560         * final.c (final_scan_insn): Don't call direct_call or
9561         virtual_call debug hooks.
9562         * debug.h (struct gcc_debug_hooks): Remove direct_call,
9563         virtual_call_token, copy_call_info and virtual_call hooks.
9564         (debug_nothing_uid): Remove prototype.
9565         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9566         copy_call_info and virtual_call hooks.
9567         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9568         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9569         * debug.c (do_nothing_debug_hooks): Likewise.
9570         (debug_nothing_uid): Remove.
9571         * doc/invoke.texi (-fenable-icf-debug): Remove.
9572         * common.opt (-fenable-icf-debug): Likewise.
9573
9574         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9575         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9576         call's MEM.  Handle functions returning aggregate through a hidden
9577         first pointer.  For virtual calls add clobbered pc to call arguments
9578         chain.
9579         * dwarf2out.c (gen_subprogram_die): Emit
9580         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9581         can't be emitted.
9582
9583         PR debug/45882
9584         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9585         * rtl.h (ENTRY_VALUE_EXP): Define.
9586         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9587         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9588         * print-rtl.c (print_rtx): Likewise.
9589         * gengtype.c (adjust_field_rtx_def): Likewise.
9590         * var-tracking.c (vt_add_function_parameter): Adjust
9591         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9592         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9593         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9594         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9595         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9596
9597         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9598         Call var_location debug hook even on CALL_INSNs.
9599         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9600         * rtl.def (ENTRY_VALUE): New.
9601         * dwarf2out.c: Include cfglayout.h.
9602         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9603         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9604         (struct call_arg_loc_node): New type.
9605         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9606         tail_call_site_count): New variables.
9607         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9608         DW_TAG_GNU_call_site_parameter.
9609         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9610         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9611         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9612         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9613         and DW_AT_GNU_all_source_call_sites.
9614         (mem_loc_descriptor): Handle ENTRY_VALUE.
9615         (add_src_coords_attributes): Don't add enything if
9616         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9617         (dwarf2out_abstract_function): Save and clear call_arg_location,
9618         call_site_count and tail_call_site_count around dwarf2out_decl call.
9619         (gen_call_site_die): New function.
9620         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9621         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9622         (dwarf2out_function_decl): Clear call_arg_locations,
9623         call_arg_loc_last, set call_site_count and tail_call_site_count
9624         to -1 and free block_map.
9625         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9626         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
9627         followed by any real instructions.
9628         (dwarf2out_begin_function): Set call_site_count and
9629         tail_call_site_count to 0.
9630         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9631         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9632         attempt to force a DIE for it and worst case remove the attribute.
9633         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9634         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9635         the decl itself.
9636         * var-tracking.c: Include tm_p.h.
9637         (vt_stack_adjustments): For calls call note_register_arguments.
9638         (argument_reg_set): New variable.
9639         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9640         ensure the VALUE is resolved.
9641         (call_arguments): New variable.
9642         (prepare_call_arguments): New function.
9643         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9644         (struct expand_loc_callback_data): Add ignore_cur_loc field.
9645         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9646         always use the best expression.
9647         (vt_expand_loc): Add ignore_cur_loc argument.
9648         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9649         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9650         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9651         note for all calls.
9652         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9653         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9654         argument.  Don't call cselib_preserve_only_values and
9655         cselib_reset_table.
9656         (note_register_arguments): New function.
9657         (vt_initialize): Compute argument_reg_set.  Call
9658         vt_add_function_parameters before processing basic blocks instead of
9659         afterwards.  For calls call prepare_call_arguments before calling
9660         cselib_process_insn.
9661         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9662         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9663         (var-tracking.o): Depend on $(TM_P_H).
9664         * cfglayout.h (insn_scope): New prototype.
9665         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9666         * cfglayout.c (insn_scope): No longer static.
9667         * insn-notes.def (CALL_ARG_LOCATION): New.
9668         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9669         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9670         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9671         nothing for DECL_EXTERNAL BLOCK_VARS.
9672
9673 2011-03-16  Alan Modra  <amodra@gmail.com>
9674
9675         PR target/45844
9676         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9677         create invalid offset address for vsx splat insn.
9678         * config/rs6000/predicates.md (splat_input_operand): New.
9679         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9680
9681 2011-03-15  Xinliang David Li  <davidxl@google.com>
9682
9683         PR c/47837
9684         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9685         (normalize_preds): New function.
9686         (is_use_properly_guarded): Normalize def predicates.
9687
9688 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9689
9690         PR target/46788
9691         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9692         in the output template.
9693
9694 2011-03-15  Richard Guenther  <rguenther@suse.de>
9695
9696         PR middle-end/47650
9697         * tree-pretty-print.c (dump_function_declaration): Properly
9698         dump unprototyped and varargs function types.
9699
9700 2011-03-15  Richard Guenther  <rguenther@suse.de>
9701
9702         PR tree-optimization/13954
9703         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9704         and friends.
9705
9706 2011-03-15  Richard Guenther  <rguenther@suse.de>
9707
9708         PR tree-optimization/48037
9709         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9710         selects into BIT_FIELD_REFs.
9711         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9712         vector select.
9713
9714 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9715
9716         PR tree-optimization/48129
9717         * builtins.c (fold_builtin_snprintf): Convert to type of
9718         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9719         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9720
9721 2011-03-15  Richard Guenther  <rguenther@suse.de>
9722
9723         PR tree-optimization/41490
9724         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9725         value but with VUSE.
9726         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9727         return statements.
9728         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9729         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9730         * tree-tailcall.c (find_tail_calls): Ignore returns.
9731
9732 2011-03-15  Richard Guenther  <rguenther@suse.de>
9733
9734         PR middle-end/48031
9735         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9736         or variable-indexed array accesses when in gimple form.
9737
9738 2011-03-15  Richard Guenther  <rguenther@suse.de>
9739
9740         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9741
9742 2011-03-15  Alan Modra  <amodra@gmail.com>
9743
9744         PR target/48032
9745         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9746         presume symbol_refs without a symbol_ref_decl are suitably
9747         aligned, nor other trees we may see here.  Handle anchor symbols.
9748         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9749         Check cmodel=medium addresses.  Adjust all calls.
9750         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9751         creating cmodel=medium optimized access to locals.
9752         * config/rs6000/constraints.md (R): Pass QImode to
9753         legitimate_constant_pool_address_p.
9754         * config/rs6000/predicates.md (input_operand): Pass mode to
9755         legitimate_constant_pool_address_p.
9756         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9757         Update prototype.
9758
9759 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9760
9761         PR target/48053
9762         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9763         64-bit constants being loaded into registers other than GPRs such
9764         as loading 0 into a VSX register.
9765
9766 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9767
9768         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9769
9770 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9771
9772         PR middle-end/47917
9773         * builtins.c (fold_builtin_snprintf): New function.
9774         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9775         (fold_builtin_4): Likewise.
9776
9777         PR middle-end/38878
9778         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9779         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9780         and C - X == X also strip nops from +/-/p+ operand.
9781         When optimizing -X == C, fold C to arg0's type.
9782
9783         PR debug/47946
9784         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9785         emit it as add_AT_int instead of add_AT_unsigned.
9786
9787 2011-03-14  Tom Tromey  <tromey@redhat.com>
9788
9789         * unwind-dw2.c: Include sys/sdt.h if it exists.
9790         (_Unwind_DebugHook): Use STAP_PROBE2.
9791         * config.in, configure: Rebuild.
9792         * configure.ac: Check for sys/sdt.h.
9793
9794 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9795
9796         * config/i386/i386.md (ROUND_FLOOR): New constant.
9797         (ROUND_CEIL): Ditto.
9798         (ROUND_TRUNC): Ditto.
9799         (ROUND_MXCSR): Ditto.
9800         (ROUND_NO_EXC): Ditto.
9801         (rint<mode>2): Use new defines instead of numerical constants.
9802         (floor<mode>2): Ditto.
9803         (ceil<mode>2): Ditto.
9804         (btrunc<mode>2): Ditto.
9805         * config/i386/i386-builtin-types.def: Define ROUND function type
9806         aliases.
9807         * config/i386/i386.c (enum ix86_builtins): Add
9808         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9809         (struct builtin_description): Add
9810         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9811         (ix86_expand_sse_round): New static function.
9812         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9813         function types.
9814         (ix86_builtin_vectorized_function): Handle
9815         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9816
9817 2011-03-14  Tom Tromey  <tromey@redhat.com>
9818
9819         * c-parser.c (c_parser_asm_string_literal): Clear
9820         warn_overlength_strings.
9821
9822 2011-03-14  Tom Tromey  <tromey@redhat.com>
9823
9824         * c-parser.c (disable_extension_diagnostics): Save
9825         warn_overlength_strings.
9826         (restore_extension_diagnostics): Restore warn_overlength_strings.
9827
9828 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9829
9830         * BASE-VER: Change to 4.7.0.
9831
9832 2011-03-14  Richard Guenther  <rguenther@suse.de>
9833
9834         PR middle-end/48098
9835         * tree.c (build_vector_from_val): Adjust assert to requirements
9836         and reality.
9837
9838 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9839
9840         PR bootstrap/48102
9841         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9842
9843 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9844
9845         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9846         terms of target_flags_explicit. Adjust copyright year.
9847
9848         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9849         * config/rs6000/t-freebsd: New file. Add override for
9850         LIB2FUNCS_EXTRA.
9851
9852 2011-03-13  Chris Demetriou  <cgd@google.com>
9853
9854         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9855         (-fno-diagnostics-show-option): this, to reflect current default.
9856         (-Werror=): Update text about -fno-diagnostics-show-option.
9857
9858 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9859
9860         PR target/48053
9861         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9862         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9863         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9864         mode is not V2DImode or V2DFmode.
9865         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9866         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9867         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9868         registers to 0.
9869         (movdi_internal64): Likewise.
9870
9871 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9872
9873         PR tree-optimization/47127
9874         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9875         parameter.
9876         (set_cloog_options): Same.
9877         (scop_to_clast): Same.
9878         (print_clast_stmt): Do not call cloog_state_malloc and
9879         cloog_state_free.
9880         (print_generated_program): Same.
9881         (gloog): Same.
9882         * graphite-clast-to-gimple.h (cloog_state): Declared.
9883         (scop_to_clast): Adjust declaration.
9884         * graphite.c (cloog_state): Defined here.
9885         (graphite_initialize): Call cloog_state_malloc.
9886         (graphite_finalize): Call cloog_state_free.
9887
9888 2011-03-11  Jason Merrill  <jason@redhat.com>
9889
9890         * attribs.c (lookup_attribute_spec): Take const_tree.
9891         * tree.h: Adjust.
9892
9893 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9894
9895         * config/sparc/sparc.c (sparc_option_override): Use
9896         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9897
9898 2011-03-11  Richard Guenther  <rguenther@suse.de>
9899
9900         PR tree-optimization/48067
9901         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9902         multiplication result will be only used once on the target
9903         stmt.
9904
9905 2011-03-11  Richard Guenther  <rguenther@suse.de>
9906
9907         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9908
9909 2011-03-11  Richard Guenther  <rguenther@suse.de>
9910
9911         PR lto/48073
9912         * tree.c (find_decls_types_r): Do not walk types only reachable
9913         from IDENTIFIER_NODEs.
9914
9915 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9916
9917         PR middle-end/48044
9918         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9919         all vnode->force_output nodes as needed.
9920
9921 2011-03-11  Jason Merrill  <jason@redhat.com>
9922
9923         PR c++/48069
9924         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9925         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9926
9927 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9928
9929         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9930         cgraph_node.
9931
9932 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9933
9934         PR tree-optimization/48063
9935         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9936         inline functions called once if !tree_can_inline_p (node->callers).
9937
9938 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9939
9940         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9941         extra_objs.
9942         * config/score/score3.c: Delete.
9943         * config/score/score3.h: Delete.
9944         * config/score/mul-div.S: Delete.
9945         * config/score/sfp-machine.h: Add new file.
9946         * config/score/constraints.md: Add new file.
9947         * config/score/t-score-softfp: Add new file.
9948         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9949         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9950         (score7_extra_constraint): Delete.
9951         (score7_option_override): Remove unused code.
9952         * config/score/score.c: Remove score3 and score5 define and code.
9953         * config/score/score.h: Remove score3 and score5 define and code.
9954         * config/score/score.md: Remove score3 template and unusual insn.
9955         * config/score/score.opt: Remove score3 and score5 options.
9956
9957 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9958
9959         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9960         when _HPUX_SOURCE is defined.
9961         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9962
9963 2011-03-10  Jason Merrill  <jason@redhat.com>
9964
9965         PR c++/48029
9966         * stor-layout.c (layout_type): Don't set structural equality
9967         on arrays of incomplete type.
9968         * tree.c (type_hash_eq): Handle comparing them properly.
9969
9970 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9971
9972         PR debug/48043
9973         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9974         result mode matches original rtl mode.
9975
9976 2011-03-10  Nick Clifton  <nickc@redhat.com>
9977
9978         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9979         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9980
9981 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9982
9983         PR rtl-optimization/47866
9984         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9985         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9986         if target wasn't scalar.
9987         * function.c (assign_stack_temp_for_type): Assert that neither
9988         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9989         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9990         macro.
9991         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9992
9993 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9994
9995         * config/s390/s390-protos.h (s390_label_align): New prototype.
9996         * config/s390/s390.c (s390_label_align): New function.
9997         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9998
9999 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10000
10001         PR target/47755
10002         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10003         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10004         (output_vec_const_move): Ditto.
10005
10006 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10007
10008         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10009         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10010         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10011         Change 'rclass' argument and result type to reg_class_t.
10012         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10013
10014 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10015
10016         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10017         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10018         (TARGET_MEMORY_MOVE_COST): Define.
10019         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10020
10021 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10022
10023         PR debug/47881
10024         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10025         removed anything.
10026
10027         PR tree-optimization/48022
10028         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10029         for EQ/NE_EXPR.
10030
10031 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10032
10033         PR debug/47991
10034         * var-tracking.c (find_use_val): Return NULL for
10035         cui->sets && cui->store_p BLKmode MEMs.
10036
10037 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10038
10039         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10040         Remove.
10041         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10042         xstormy16_print_operand_address): Remove.
10043         * config/stormy16/stormy16.c (xstormy16_print_operand,
10044         xstormy16_print_operand_address): Make static.
10045         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10046
10047 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10048
10049         PR target/47862
10050         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10051         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10052         before definition.
10053
10054 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10055
10056         PR bootstrap/48000
10057         * cfgloopmanip.c (fix_bb_placements): Return immediately
10058         if FROM is BASE_LOOP's header.
10059
10060 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10061
10062         * gimplify.c (gimplify_function_tree): Fix building calls
10063         to __builtin_return_address.
10064
10065 2011-03-07  Alan Modra  <amodra@gmail.com>
10066
10067         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10068         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10069         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10070         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10071         return_mode args.
10072         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10073         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10074         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10075         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10076         * config/rs6000/rs6000.c
10077         (rs6000_elf_end_indicate_exec_stack): Rename to..
10078         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10079         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10080         (rs6000_file_start): ..here.
10081         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10082         file scope variables.
10083         (call_ABI_of_interest): New function.
10084         (init_cumulative_args): Set above vars when function return value
10085         is a float, vector, or small struct.
10086         (rs6000_function_arg_advance_1): Likewise for function args.
10087         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10088         references float args.
10089
10090 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10091
10092         * doc/cfg.texi: Remove "See" before @ref.
10093         * doc/invoke.texi: Likewise.
10094
10095 2011-03-05  Jason Merrill  <jason@redhat.com>
10096
10097         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10098
10099 2011-03-05  Anthony Green  <green@moxielogic.com>
10100
10101         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10102
10103 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10104
10105         PR rtl-optimization/47899
10106         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10107         to flow_loop_nested_p when moving the loop upward.
10108
10109 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10110
10111         PR target/47719
10112         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10113
10114 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10115
10116         PR tree-optimization/47967
10117         * ipa-cp.c (build_const_val): Return NULL instead of creating
10118         VIEW_CONVERT_EXPR for mismatching sizes.
10119         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10120         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10121         give up on versioning.
10122
10123 2011-03-05  Alan Modra  <amodra@gmail.com>
10124
10125         PR target/47986
10126         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10127         full cmodel medium/large lo_sum + high addresses.
10128
10129 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10130
10131         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10132         pool references in UNSPEC_LTREL_OFFSET.
10133
10134 2011-03-04  Jan Hubicka  <jh@suse.cz>
10135
10136         PR lto/47497
10137         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10138         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10139         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10140         Add node pointers.
10141         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10142         cgraph_add_thunk): Add node pointers.
10143         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10144         associated to right node.
10145         (input_node): Update use of cgraph_same_body_alias
10146         and cgraph_add_thunk.
10147
10148 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10149
10150         * config/i386/i386.opt (mprefer-avx128): New flag.
10151         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10152         modes when the flag -mprefer-avx128 is on.
10153
10154 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10155
10156         * dwarf2out.c (compare_loc_operands): Fix address handling.
10157
10158 2011-03-04  Alan Modra  <amodra@gmail.com>
10159
10160         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10161
10162 2011-03-04  Richard Guenther  <rguenther@suse.de>
10163
10164         PR middle-end/47968
10165         * expmed.c (extract_bit_field_1): Prefer vector modes that
10166         vec_extract patterns can handle.
10167
10168 2011-03-04  Richard Guenther  <rguenther@suse.de>
10169
10170         PR middle-end/47975
10171         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10172
10173 2011-03-04  Richard Henderson  <rth@redhat.com>
10174
10175         * explow.c (emit_stack_save): Remove 'after' parameter.
10176         (emit_stack_restore): Likewise.
10177         * expr.h: Update to match.
10178         * builtins.c, calls.c, stmt.c: Likewise.
10179         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10180         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10181         * function.c (expand_function_end): Insert the emit_stack_save
10182         sequence before parm_birth_insn instead of after.
10183
10184 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10185
10186         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10187         (ssse3_pmaddubsw128): Ditto.
10188         (ssse3_pmaddubsw): Ditto.
10189
10190 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10191
10192         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10193
10194 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10195
10196         PR c/47963
10197         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10198         on TYPE_SIZE_UNIT if it is a DECL.
10199
10200         PR debug/47283
10201         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10202         first operand is not is_gimple_mem_ref_addr, try to fold it.
10203         If the operand still isn't is_gimple_mem_ref_addr, clear
10204         MEM_EXPR on op0.
10205
10206 2011-03-03  Richard Guenther  <rguenther@suse.de>
10207
10208         PR middle-end/47283
10209         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10210         match comment.
10211         (refs_may_alias_p_1): For release branches return true if
10212         we are confused by our input.
10213
10214 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10215
10216         * config/s390/s390.c (s390_function_value): Rename to ...
10217         (s390_function_and_libcall_value): ... this.
10218         (s390_function_value): New function.
10219         (s390_libcall_value): New function.
10220         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10221         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10222         target macro definitions.
10223         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10224
10225 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10226
10227         * config/i386/freebsd64.h (CC1_SPEC): Define.
10228         * config/i386/linux64.h (CC1_SPEC): Define.
10229         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10230
10231 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10232
10233         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10234         Remove.
10235         * config/stormy16/stormy16.c: Include reload.h.
10236         (xstormy16_memory_move_cost): New function.
10237         (TARGET_MEMORY_MOVE_COST): Define.
10238
10239 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10240
10241         PR rtl-optimization/47925
10242         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10243         with side effects.  Remove the more-specific check for volatile asms.
10244
10245 2011-03-02  Alan Modra  <amodra@gmail.com>
10246
10247         PR target/47935
10248         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10249         toc relative addresses for valid offsets.
10250
10251 2011-03-01  Richard Guenther  <rguenther@suse.de>
10252
10253         PR tree-optimization/47890
10254         * tree-vect-loop.c (get_initial_def_for_induction): Set
10255         related stmt properly.
10256
10257 2011-03-01  Richard Guenther  <rguenther@suse.de>
10258
10259         PR lto/47924
10260         * lto-streamer.c (lto_record_common_node): Also register
10261         the canonical type.
10262
10263 2011-03-01  Richard Guenther  <rguenther@suse.de>
10264
10265         PR lto/46911
10266         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10267         Do not stream DECL_ABSTRACT_ORIGIN.
10268         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10269         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10270         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10271         Do not stream DECL_ABSTRACT_ORIGIN.
10272         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10273         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10274
10275 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10276
10277         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10278         FUNCTION_VALUE_REGNO_P): Remove.
10279         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10280         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10281         Add 'outgoing' argument.
10282         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10283         function.
10284         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10285         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10286
10287 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10288
10289         PR debug/28047
10290         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10291         (lookup_filename): Likewise.
10292         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10293
10294 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10295             Jakub Jelinek  <jakub@redhat.com>
10296
10297         PR middle-end/47893
10298         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10299         (assign_stack_local_1): Change last argument type to int.
10300         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10301         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10302         don't record padding space into frame_space_list nor use those areas.
10303         (assign_stack_local): Adjust caller.
10304         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10305         of assign_stack_local, pass 0 as last argument.
10306         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10307         callers.
10308
10309 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10310
10311         PR debug/47283
10312         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10313         Use target address_mode and pointer_mode hooks instead of hardcoded
10314         Pmode and ptr_mode.  Handle some simple cases of extending if
10315         POINTERS_EXTEND_UNSIGNED < 0.
10316         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10317         Call convert_debug_memory_address.
10318         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10319         convert_debug_memory_address.
10320
10321         PR middle-end/46790
10322         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10323         * configure: Regenerated.
10324         * config.in: Regenerated.
10325         * varasm.c (default_function_section): Return NULL
10326         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
10327
10328 2011-02-28  Martin Jambor  <mjambor@suse.cz>
10329
10330         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10331         the description to match the printed values.
10332
10333 2011-02-28  Richard Guenther  <rguenther@suse.de>
10334
10335         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10336         of the copied scope tree.
10337
10338 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10339
10340         * doc/extend.texi (Function Attributes): Avoid deeply (and
10341         wrongly) nested tables.
10342
10343 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10344
10345         PR middle-end/47903
10346         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10347         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10348         r isn't op0 nor op1.
10349
10350 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10351
10352         * config/avr/avr.md: Remove magic comment for emacs.
10353
10354 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
10355
10356         PR target/45261
10357         * config/avr/avr.c (avr_option_override): Use error on bad options.
10358         (avr_help): New function.
10359         (TARGET_HELP): Define.
10360
10361 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
10362
10363         PR target/42240
10364         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10365         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10366
10367 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
10368
10369         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10370         (ARM Options): Ditto.
10371         (i386 and x86-64 Options): Ditto.
10372         (RX Options): Ditto.
10373         (SPARC Options): Ditto.
10374
10375 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
10376
10377         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10378         FreeBSD 6 and later.  Generally use cpu generic.
10379
10380 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10381
10382         * doc/cpp.texi: Update copyright years.
10383
10384 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
10385
10386         PR target/46898
10387         * config/lm32/lm32.md (ashrsi3): Added needed variable.
10388
10389 2011-02-25  Jon Beniston  <jon@beniston.com>
10390
10391         PR target/46898
10392         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10393         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10394         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10395         (lm32_block_move_inline): Add type cast to remove warning.
10396         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
10397         (gen_int_relational): Move declarations to start of function.
10398
10399 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
10400
10401         PR tree-optimization/45470
10402         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10403         can throw internally only.
10404         * tree-vect-stmts.c (vectorizable_call): Likewise.
10405
10406 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
10407
10408         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10409         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10410         * config/stormy16/stormy16-protos.h
10411         (xstormy16_preferred_reload_class): Remove.
10412         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10413         static. Change 'rclass' argument and return type to reg_class_t.
10414         (TARGET_PREFERRED_RELOAD_CLASS,
10415         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10416
10417 2011-02-24  Richard Guenther  <rguenther@suse.de>
10418
10419         * lto-streamer-in.c (input_bb): Do not find referenced vars
10420         in debug statements.
10421
10422 2011-02-23  Jason Merrill  <jason@redhat.com>
10423
10424         * common.opt (fabi-version): Document v5 and v6.
10425
10426 2011-02-23  Richard Guenther  <rguenther@suse.de>
10427
10428         PR tree-optimization/47849
10429         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10430
10431 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10432
10433         * opts-common.c (decode_cmdline_option): Print empty string
10434         argument as "" in decoded->orig_option_with_args_text.
10435         * gcc.c (execute): Print empty string argument as ""
10436         in the verbose output.
10437         (do_spec_1): Keep empty string argument.
10438
10439 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
10440
10441         * config.gcc: Declare score-* and crx-* obsolete.
10442
10443 2011-02-23  Jie Zhang  <jie@codesourcery.com>
10444
10445         PR rtl-optimization/47763
10446         * web.c (web_main): Ignore naked clobber when replacing register.
10447
10448 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
10449
10450         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10451         Remove.
10452
10453 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10454
10455         PR doc/47848
10456         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10457
10458 2011-02-22  Mike Stump  <mikestump@comcast.net>
10459
10460         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10461         assembler.
10462         * configure: Regenerate.
10463
10464 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
10465
10466         PR rtl-optimization/46002
10467         * ira-color.c (update_copy_costs): Change class intersection
10468         test to reg_class_contents[] test of 'hard_regno'.
10469
10470 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
10471
10472         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10473         than Driver option.
10474         * config/hpux11.opt (mt): Likewise.
10475         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10476         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10477         * config/vax/elf.opt (mno-asm-pic): Likewise.
10478         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10479
10480 2011-02-21  Mike Stump  <mikestump@comcast.net>
10481
10482         PR target/47822
10483         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10484         tree so we can get save the type.
10485         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10486         for CFString instead of trying to use past the end of the builtins.
10487         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10488         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10489         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10490         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10491         Rename to darwin_builtin_cfstring.
10492         (darwin_init_cfstring_builtins): Return the built type.
10493
10494 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
10495
10496         PR target/47840
10497         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10498         (_mm256_insert_epi64): Use _mm_insert_epi64.
10499
10500 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
10501
10502         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10503         * config/stormy16/stormy16-protos.h
10504         (xstormy16_mode_dependent_address_p): Remove.
10505         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10506         Make static. Change return type to bool. Change argument type to
10507         const_rtx. Remove dead code.
10508         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10509
10510 2011-02-21  Richard Guenther  <rguenther@suse.de>
10511
10512         PR lto/47820
10513         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10514         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10515         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10516         TUs context.
10517         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10518         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10519
10520 2011-02-20  Richard Guenther  <rguenther@suse.de>
10521
10522         PR lto/47822
10523         * tree.c (free_lang_data_in_decl): Clean builtins from
10524         the TU decl BLOCK_VARS.
10525
10526 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
10527
10528         PR debug/47620
10529         PR debug/47630
10530         * haifa-sched.c (fix_tick_ready): Skip tick computation
10531         for debug insns.
10532
10533 2011-02-19  Richard Guenther  <rguenther@suse.de>
10534
10535         PR lto/47647
10536         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10537         Remove lazy BLOCK_VARS streaming.
10538         (lto_input_ts_block_tree_pointers): Likewise.
10539         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10540
10541 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10542
10543         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10544
10545 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
10546
10547         * config/i386/biarch32.h, config/i386/mach.h,
10548         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10549
10550 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
10551
10552         PR target/47800
10553         * config/i386/i386.md (peephole2 for shift and plus): Use
10554         operands[1] original mode in the first insn.
10555
10556 2011-02-18  Mike Stump  <mikestump@comcast.net>
10557
10558         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10559
10560 2011-02-18  Jan Hubicka  <jh@suse.cz>
10561
10562         PR middle-end/47788
10563         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10564         to zero when the function is not inlinable at all.
10565
10566 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10567
10568         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10569         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10570         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10571         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10572         * config/pa/t-pa64: Likewise.
10573         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10574
10575 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10576
10577         PR driver/47787
10578         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10579
10580 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10581
10582         PR target/47792
10583         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10584
10585 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
10586
10587         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10588         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10589         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10590         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10591         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10592         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10593         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10594         m32r_load_postinc_p, m32r_store_preinc_predec_p,
10595         m32r_legitimate_address_p): New functions.
10596         * config/m32r/constraints.md (constraint "S"): Don't use
10597         STORE_PREINC_PREDEC_P.
10598         (constraint "U"): Don't use LOAD_POSTINC_P.
10599
10600 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
10601
10602         PR rtl-optimization/46178
10603         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10604         compute ira_hard_regno_cover_class[].
10605
10606 2011-02-18  Richard Guenther  <rguenther@suse.de>
10607
10608         PR lto/47798
10609         * lto-streamer.h (lto_global_var_decls): Declare.
10610         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10611         statics for global var processing.
10612
10613 2011-02-18  Richard Guenther  <rguenther@suse.de>
10614
10615         PR tree-optimization/47737
10616         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10617         edge dominance check.
10618
10619 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10620
10621         PR debug/47780
10622         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10623         avoid invalid rtx sharing.
10624
10625 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
10626
10627         * doc/cpp.texi (Obsolete Features): Add background on the
10628         origin of assertions.
10629
10630 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
10631
10632         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10633         objc_abi == 2.
10634         * config/darwin.c (output_objc_section_asm_op): Added support for
10635         ABI v1 and v2.
10636         (is_objc_metadata): New.
10637         (darwin_objc2_section): New.
10638         (darwin_objc1_section): New.
10639         (machopic_select_section): Added support for ABI v1 and v2.
10640         (darwin_emit_objc_zeroed): New.
10641         (darwin_output_aligned_bss): Detect objc metadata and treat it
10642         appropriately.
10643         (darwin_asm_output_aligned_decl_common): Same.
10644         (darwin_asm_output_aligned_decl_local): Same.
10645         * config/darwin-sections.def: Updated for ABI v1 and v2.
10646         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10647         compiling Objective-C code for the NeXT runtime, default to using
10648         ABI version 0 for 32-bit, and version 2 for 64-bit.
10649
10650 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10651
10652         * common.opt (optimize_fast): New Variable.
10653         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10654         instead of local variable ofast.
10655
10656 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10657
10658         * doc/invoke.texi (fobjc-abi-version): Documented.
10659         (fobjc-nilcheck): Documented.
10660         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10661         version.
10662
10663 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10664
10665         PR driver/47390
10666         * common.opt (export-dynamic): New Driver option.
10667         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10668
10669 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10670
10671         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10672
10673 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10674             Jan Hubicka  <jh@suse.cz>
10675
10676         PR debug/47106
10677         PR debug/47402
10678         * cfgexpand.c (account_used_vars_for_block): Remove.
10679         (estimated_stack_frame_size): Use referenced vars.
10680         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10681         that were referenced in the original function.  Test src_fn
10682         rather than cfun.  Drop redundant get_var_ann.
10683         (setup_one_parameter): Drop redundant get_var_ann.
10684         (declare_return_variable): Likewise.
10685         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10686         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10687         * ipa-inline.c (compute_inline_parameters): Do not compute
10688         disregard_inline_limits here.
10689         (compute_inlinable_for_current, pass_inlinable): New.
10690         (pass_inline_parameters): Require PROP_referenced_vars.
10691         * cgraphunit.c (cgraph_process_new_functions): Don't run
10692         compute_inline_parameters explicitly unless function is in SSA form.
10693         (cgraph_analyze_function): Set .disregard_inline_limits.
10694         * tree-sra.c (convert_callers): Compute inliner parameters
10695         only for functions already in SSA form.
10696
10697 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10698
10699         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10700         -mlittle-endian-data.
10701
10702 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10703
10704         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10705         -mno-fpu, not -fpu and -no-fpu.
10706         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10707         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10708
10709 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10710
10711         PR target/43653
10712         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10713         input reload with PLUS RTX.
10714
10715 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10716
10717         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10718         of InverseVar(MDMX).
10719
10720 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10721
10722         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10723         --m4-340.
10724
10725 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10726
10727         * config/mn10300/mn10300.opt (mno-crt0): New.
10728
10729 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10730
10731         * config/m68k/uclinux.opt (static-libc): New Driver option.
10732
10733 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10734
10735         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10736
10737 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10738
10739         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10740         %{muser-extend-enabled}.
10741
10742 2011-02-16  Richard Guenther  <rguenther@suse.de>
10743
10744         PR tree-optimization/47738
10745         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10746         the TODO from tree_predictive_commoning.
10747
10748 2011-02-15  Jeff Law  <law@redhat.com>
10749
10750         Revert
10751         2011-01-25  Jeff Law  <law@redhat.com>
10752
10753         PR rtl-optimization/37273
10754         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10755         handle them like argument loads from stack slots.  Do not double
10756         count memory for memory constants and argument loads from stack slots.
10757
10758 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10759
10760         PR middle-end/47725
10761         * combine.c (cant_combine_insn_p): Revert the last change.
10762
10763 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10764
10765         PR target/47755
10766         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10767         mode for vector constants.  Remove code that checks for TImode.
10768
10769 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10770
10771         PR debug/47106
10772         PR debug/47402
10773         * cgraph.h (compute_inline_parameters): Return void.
10774         * ipa-inline.c (compute_inline_parameters): Adjust.
10775
10776 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10777
10778         PR debug/47106
10779         PR debug/47402
10780         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10781         rather than decl.
10782         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10783         * ipa-inline.c (compute_inline_parameters): Adjust.
10784
10785 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10786
10787         PR debug/47106
10788         PR debug/47402
10789         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10790         Adjust all users.  Pass FN to...
10791         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10792         fn argument.
10793         * ipa-struct-reorg.c: Adjust.
10794         * tree-dfa.c: Adjust.
10795         * tree-into-ssa.c: Adjust.
10796         * tree-sra.c: Adjust.
10797         * tree-ssa-alias.c: Adjust.
10798         * tree-ssa-live.c: Adjust.
10799         * tree-ssa.c: Adjust.
10800         * tree-ssanames.c: Adjust.
10801         * tree-tailcall.c: Adjust.
10802
10803 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10804
10805         PR debug/47106
10806         PR debug/47402
10807         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10808         Adjust all callers.
10809         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10810         * tree-flow-inline.h: Adjust.
10811         * gimple-pretty-print.c: Adjust.
10812         * tree-into-ssa.c: Adjust.
10813         * tree-ssa.c: Adjust.
10814         * cfgexpand.c: Adjust.
10815
10816 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10817
10818         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10819         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10820         (EXTRA_CONSTRAINT): Delete.
10821         * config/iq2000/constraints.md: New file.
10822         * config/iq2000/iq2000.md: Include it.
10823         (define_insn ""): Delete.
10824         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10825         unsupported constraint letters from patterns.
10826         (call_value, call_value_internal1): Likewise.
10827         (call_value_multiple_internal1): Likewise.
10828
10829 2011-02-15  Nick Clifton  <nickc@redhat.com>
10830
10831         * config/mn10300/mn10300.c: Include tm-constrs.h.
10832         (struct liw_data): New data structure describing an LIW candidate
10833         instruction.
10834         (extract_bundle): Use struct liw_data.  Allow small integer
10835         operands for some instructions.
10836         (check_liw_constraints): Use struct liw_data.  Remove swapped
10837         parameter.  Add comments describing the checks.  Fix bug when
10838         assigning the source of liw1 to the source of liw2.
10839         (liw_candidate): Delete.  Code moved into extract_bundle.
10840         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10841         before swapping.
10842         * config/mn10300/predicates.md (liw_operand): New predicate.
10843         Allows registers and small integer constants.
10844         * config/mn10300/constraints.md (O): New constraint.  Accetps
10845         integers in the range -8 to +7 inclusive.
10846         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10847         for moving a small integer into a register.  Give this alternative
10848         LIW attributes.
10849         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10850         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10851         using the J,K,L and M constraints,
10852         (liw): Remove SI mode on second operands to allow for HI and QI
10853         mode values.
10854         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10855         instruction.
10856
10857 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10858
10859         PR middle-end/47725
10860         * combine.c (cant_combine_insn_p): Check zero/sign extended
10861         hard registers.
10862
10863 2011-02-15  Richard Guenther  <rguenther@suse.de>
10864
10865         PR tree-optimization/47743
10866         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10867         for a non-type-compatible VN lookup bail out.
10868
10869 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10870
10871         * config/fr30/constraints.md: New file.
10872         * config/fr30/fr30.md: Include it.
10873         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10874         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10875         (EXTRA_CONSTRAINT): Delete.
10876
10877 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10878
10879         * config/frv/constraints.md: New file.
10880         * config/frv/predicates.md: Include it.
10881         * config/frv/frv.c (reg_class_from_letter): Delete.
10882         (frv_option_override): Don't initialize it.
10883         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10884         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10885         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10886         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10887         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10888         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10889         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10890         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10891         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10892         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10893         (REG_CLASS_FROM_CONSTRAINT): Delete.
10894
10895 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10896
10897         PR middle-end/47581
10898         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10899         if frame size is 0 in a leaf function.
10900
10901 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10902
10903         PR pch/14940
10904         * config/alpha/host-osf.c: New file.
10905         * config/alpha/x-osf: New file.
10906         * config.host (alpha*-dec-osf*): Use it.
10907
10908 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10909
10910         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10911         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10912         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10913         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10914         type to const_rtx.
10915         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10916
10917 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10918
10919         * config/stormy16/constraints.md: New file.
10920         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10921         Use satisfies_constraint_Q and satisfies_constraint_R.
10922         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10923         Delete.
10924         (xstormy16_legitiamte_address_p): Declare.
10925         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10926         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10927         (EXTRA_CONSTRAINT): Delete.
10928         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10929         Un-staticize.
10930         (xstormy16_extra_constraint_p): Delete.
10931
10932 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10933
10934         PR tree-optimization/46494
10935         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10936         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10937         (pass_rtl_loop_done): Add TODO_verify_flow.
10938         * fwprop.c (pass_rtl_fwprop): Likewise.
10939         * modulo-sched.c (pass_sms): Likewise.
10940         * tree-ssa-dom.c (pass_dominator): Likewise.
10941         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10942         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10943         (pass_tree_loop_done): Likewise.
10944         * tree-ssa-pre.c (execute_pre): Likewise.
10945         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10946         * tree-ssa-sink.c (pass_sink_code): Likewise.
10947         * tree-vrp.c (pass_vrp): Likewise.
10948
10949 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10950
10951         * config/v850/constraints.md: New file.
10952         * config/v850/v850.md: Include it.
10953         * config/v850/predicates.md (reg_or_0_operand): Use
10954         satisfies_constraint_G.
10955         (special_symbolref_operand): Use satisfies_constraint_K.
10956         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10957         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10958         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10959         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10960         (EXTRA_CONSTRAINT): Delete.
10961         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10962         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10963         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10964
10965 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10966
10967         PR target/47696
10968         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10969         description.
10970
10971 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10972
10973         * config/mcore/constraints.md: New file.
10974         * config/mcore/mcore.md: Include it.
10975         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10976         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10977         (REG_CLASS_FROM_LETTER): Delete.
10978         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10979         insn_const_int_ok_for_constraint.
10980         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10981         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10982         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10983         (EXTRA_CONSTRAINT): Delete.
10984
10985 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10986
10987         PR ada/41929
10988         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10989         (IS_SIGHANDLER): Define.
10990         (sparc64_is_sighandler): New function, split off from
10991         sparc64_fallback_frame_state.
10992         (sparc_is_sighandler): New function, split off from
10993         sparc_fallback_frame_state.
10994         (sparc64_fallback_frame_state): Merge with ...
10995         (sparc_fallback_frame_state): ... this into ...
10996         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10997         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10998         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10999         stack instead of hardcoded offsets.
11000
11001 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11002
11003         PR target/45808
11004         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11005
11006 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11007
11008         * configure: Regenerate.
11009
11010 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11011
11012         PR driver/45731
11013         * gcc.c (asm_options): Correct spec matching --target-help.
11014
11015 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11016
11017         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11018         to gimple call error.
11019
11020 2011-02-12  Mike Stump  <mikestump@comcast.net>
11021
11022         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11023         comments in backslash regions.
11024
11025 2011-02-12  Mike Stump  <mikestump@comcast.net>
11026             Jakub Jelinek  <jakub@redhat.com>
11027             Iain Sandoe  <iains@gcc.gnu.org>
11028
11029         PR target/47324
11030         * dwarf2out.c (output_cfa_loc): When required, apply the
11031         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11032         (output_loc_sequence): Likewise.
11033         (output_loc_operands_raw): Likewise.
11034         (output_loc_sequence_raw): Likewise.
11035         (output_cfa_loc): Likewise.
11036         (output_loc_list): Suppress register number adjustment when
11037         calling output_loc_sequence()
11038         (output_die): Likewise.
11039
11040 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11041
11042         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11043         Remove macros.
11044         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11045         xtensa_memory_move_cost): New functions.
11046         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11047
11048 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11049
11050         PR lto/47225
11051         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11052         in the current directory.
11053         * configure: Rebuilt.
11054
11055 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11056
11057         * config/darwin.c (darwin_override_options): Add a hunk missed
11058         from the commit of r168571.  Trim comment line lengths and
11059         correct indents of the preceding block.
11060
11061 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11062
11063         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11064         the switch.
11065
11066 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11067
11068         * common.opt (nostartfiles): New Driver option.
11069
11070 2011-02-11  Xinliang David Li  <davidxl@google.com>
11071
11072         PR tree-optimization/47707
11073         * tree-chrec.c (convert_affine_scev): Keep type precision.
11074
11075 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11076
11077         PR tree-optimization/47420
11078         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11079
11080 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11081
11082         PR rtl-optimization/47614
11083         * rtl.h (check_for_inc_dec): Declare.
11084         * dse.c (check_for_inc_dec): Externalize...
11085         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11086         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11087
11088 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11089
11090         PR driver/47678
11091         * gcc.c (main): Do not compile inputs if there were errors in
11092         option handling.
11093         * opts-common.c (read_cmdline_option): Check for wrong language
11094         after other error checks.
11095
11096 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11097
11098         * cgraph.c: Fix comment typos.
11099         * cgraph.h: Likewise.
11100         * cgraphunit.c: Likewise.
11101         * ipa-cp.c: Likewise.
11102         * ipa-inline.c: Likewise.
11103         * ipa-prop.c: Likewise.
11104         * ipa-pure-const.c: Likewise.
11105         * ipa-ref.c: Likewise.
11106         * ipa-reference.c: Likewise.
11107
11108 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11109
11110         PR debug/47684
11111         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11112
11113 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11114
11115         PR testsuite/47400
11116         * doc/sourcebuild.texi (Require Support): Document
11117         dg-require-ascii-locale.
11118
11119 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11120
11121         * doc/lto.texi (Write summary): Fix missing parentheses.
11122
11123 2011-02-10  DJ Delorie  <dj@redhat.com>
11124
11125         * config/m32c/m32c.c (m32c_option_override): Disable
11126         -fcombine-stack-adjustments until flag value tracking and compare
11127         optimization can be rewritten.
11128
11129 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11130
11131         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11132         PROCESSOR_POWER7.
11133         (PROCESSOR_DEFAULT64): Likewise.
11134
11135 2011-02-10  Richard Henderson  <rth@redhat.com>
11136
11137         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11138         change from 2011-02-03.
11139         * config/rx/rx.c (flags_from_code): Likewise.
11140         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11141         is valid, n/pz otherwise.
11142         (rx_select_cc_mode): Return CCmode if Y is not zero.
11143
11144 2011-02-10  Richard Guenther  <rguenther@suse.de>
11145
11146         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11147
11148 2011-02-10  Richard Guenther  <rguenther@suse.de>
11149
11150         PR tree-optimization/47677
11151         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11152
11153 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11154
11155         PR target/47665
11156         * combine.c (make_compound_operation): Only change shifts into
11157         multiplication for SCALAR_INT_MODE_P.
11158
11159 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11160
11161         PR testsuite/47622
11162         Revert
11163         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11164         PR debug/42631
11165         * web.c (entry_register): Don't clobber the number of the
11166         first uninitialized reference in used[].
11167
11168 2011-02-09  Richard Guenther  <rguenther@suse.de>
11169
11170         PR tree-optimization/47664
11171         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11172         all edges again.
11173
11174 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11175
11176         PR target/46481
11177         PR target/47032
11178         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11179         PROCESSOR_POWER7.
11180         (PROCESSOR_DEFAULT64): Same.
11181         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11182
11183 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11184
11185         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11186
11187 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11188
11189         PR middle-end/45505
11190         * tree-sra.c (struct access): New flags grp_scalar_read and
11191         grp_scalar_write.  Changed description of assignment read and write
11192         flags.
11193         (dump_access): Dump new flags, reorder all of them.
11194         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11195         to detect multiple scalar reads.
11196         (analyze_access_subtree): Use the new scalar read write flags instead
11197         of the old flags.  Adjusted comments.
11198
11199 2011-02-08  DJ Delorie  <dj@redhat.com>
11200
11201         PR target/47548
11202         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11203         patterns.
11204
11205 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11206
11207         * config/m68k/uclinux.opt: New.
11208         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11209
11210 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11211
11212         * config/cris/elf.opt (sim): New Driver option.
11213
11214 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11215
11216         * config/xtensa/elf.opt: New.
11217         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11218
11219 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11220
11221         * config/vax/elf.opt: New.
11222         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11223
11224 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11225
11226         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11227
11228 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11229
11230         * config/gnu-user.opt: New.
11231         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11232         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11233         *-*-uclinux*): Use gnu-user.opt.
11234
11235 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11236
11237         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11238         * config/i386/gnu.h (CPP_SPEC): Likewise.
11239
11240 2011-02-08  Ian Lance Taylor  <iant@google.com>
11241
11242         * common.opt (fcx-limited-range): Add SetByCombined flag.
11243         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11244         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11245         (fassociative-math, freciprocal-math): Likewise.
11246         (funsafe-math-optimizations): Likewise.
11247         * opth-gen.awk: Handle SetByCombined.
11248         * optc-gen.awk: Likewise.
11249         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11250         (set_unsafe_math_optimizations_flags): Likewise.
11251         * doc/options.texi (Option properties): Document SetByCombined.
11252
11253 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11254
11255         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11256         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11257         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11258         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11259         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11260
11261 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11262
11263         PR tree-optimization/46834
11264         PR tree-optimization/46994
11265         PR tree-optimization/46995
11266         * graphite-sese-to-poly.c (used_outside_reduction): New.
11267         (detect_commutative_reduction): Call used_outside_reduction.
11268         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11269         translate_scalar_reduction_to_array only when at least one
11270         loop-phi/close-phi tuple has been detected.
11271
11272 2011-02-08  Richard Guenther  <rguenther@suse.de>
11273
11274         PR middle-end/47639
11275         * tree-vect-generic.c (expand_vector_operations_1): Update
11276         stmts here ...
11277         (expand_vector_operations): ... not here.  Cleanup EH info
11278         and the CFG if required.
11279
11280 2011-02-08  Richard Guenther  <rguenther@suse.de>
11281
11282         PR tree-optimization/47641
11283         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11284         require type compatibility.
11285
11286 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11287
11288         * gimple-low.c (lower_function_body): Don't remove the location of
11289         the return statement here.
11290         (lower_gimple_return): Do it here instead but only if the return
11291         statement is actually used twice.
11292
11293 2011-02-08  Richard Guenther  <rguenther@suse.de>
11294
11295         PR tree-optimization/47632
11296         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11297         unused up_to_stmt parameter, return whether cfg-cleanup is
11298         necessary, remove EH info properly.
11299         (forward_propagate_into_gimple_cond): Adjust caller.
11300         (forward_propagate_into_cond): Likewise.
11301         (forward_propagate_comparison): Likewise.
11302         (tree_ssa_forward_propagate_single_use_vars): Make
11303         forward_propagate_comparison case similar to the two others.
11304
11305 2011-02-08  Nick Clifton  <nickc@redhat.com>
11306
11307         * config/mn10300/mn10300.opt (mliw): New command line option.
11308         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11309         (liw_bundling): New automaton.
11310         (liw): New attribute.
11311         (liw_op): New attribute.
11312         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11313         (movsi_internal): Add LIW attributes.
11314         (andsi3): Likewise.
11315         (iorsi3): Likewise.
11316         (xorsi3): Likewise.
11317         (addsi3): Separate register and immediate alternatives.
11318         Add LIW attributes.
11319         (subsi3): Likewise.
11320         (cmpsi): Likewise.
11321         (aslsi3): Likewise.
11322         (lshrsi3): Likewise.
11323         (ashrsi3): Likewise.
11324         (liw): New pattern.
11325         * config/mn10300/mn10300.c (liw_op_names): New
11326         (mn10300_print_operand): Handle 'W' operand descriptor.
11327         (extract_bundle): New function.
11328         (check_liw_constraints): New function.
11329         (liw_candidate): New function.
11330         (mn10300_bundle_liw): New function.
11331         (mn10300_reorg): New function.
11332         (TARGET_MACHINE_DEPENDENT_REORG): Define.
11333         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11334         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11335         __LIW__ or __NO_LIW__.
11336         * doc/invoke.texi: Describe the -mliw command line option.
11337
11338 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11339
11340         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11341         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11342         pthread_mutex_unlock): Remove.
11343         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11344         * config/pa/t-pa64: Likewise.
11345         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11346         shared libc if not linking against libpthread.
11347         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11348
11349 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
11350
11351         PR target/47558
11352         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11353         on 10.6 and later to ensure that we always use the unwinder from
11354         the system.  Only add -no_compact_unwind when tarteting darwin
11355         10.6 or later.
11356
11357 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
11358
11359         PR target/46997
11360         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11361         (vec_interleave_lowv2sf): Ditto.
11362         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11363         (vec_extract_oddv2sf): Ditto.
11364
11365 2011-02-07  Mike Stump  <mikestump@comcast.net>
11366
11367         PR target/42333
11368         Add __ieee_divdc3 entry point.
11369         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11370         entry point.
11371         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11372         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11373         * config/darwin.c (darwin_rename_builtins): Add.
11374         * config/darwin-protos.h (darwin_rename_builtins): Add.
11375
11376 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11377
11378         PR target/47636
11379         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11380         for the condition.
11381
11382 2011-02-07  Mike Stump  <mikestump@comcast.net>
11383
11384         * config/darwin.opt (mmacosx-version-min): Update default OS version.
11385
11386 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
11387
11388         PR target/47534
11389         * config/avr/libgcc.S (exit): Move .endfunc
11390
11391 2011-02-07  Richard Guenther  <rguenther@suse.de>
11392
11393         PR tree-optimization/47615
11394         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11395         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11396         (run_scc_vn): Initialize it.
11397         (visit_reference_op_load): Use it.
11398         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11399
11400 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11401
11402         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11403         DImode trapping arithmetic libfuncs.
11404
11405 2011-02-07  Richard Guenther  <rguenther@suse.de>
11406
11407         PR tree-optimization/47621
11408         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11409         two duplicates ...
11410         (execute_update_addresses_taken): ... here.  Make it more
11411         conservative in what we accept.
11412
11413 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11414
11415         * config/sparc/freebsd.h (ASM_SPEC): Define.
11416         * config/sparc/vxworks.h (ASM_SPEC): Define.
11417
11418 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
11419
11420         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11421
11422 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
11423
11424         * doc/invoke.texi: Remove reference to compiler internals from
11425         user documentation.
11426
11427         * reg-notes.def: Remove REG_VALUE_PROFILE.
11428         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11429
11430 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
11431
11432         PR middle-end/47610
11433         * varasm.c (default_section_type_flags): If decl is NULL,
11434         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
11435
11436 2011-02-05  Jie Zhang  <jie@codesourcery.com>
11437
11438         PR debug/42631
11439         * web.c (entry_register): Don't clobber the number of the
11440         first uninitialized reference in used[].
11441
11442 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
11443
11444         PR tree-optimization/46194
11445         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11446         (build_classic_dist_vector_1): Do not represent classic distance
11447         vectors when the access functions are variating in different loops.
11448
11449 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11450
11451         * config/mips/iris6.opt: New.
11452         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11453
11454 2011-02-04  Richard Henderson  <rth@redhat.com>
11455             Steve Ellcey  <sje@cup.hp.com>
11456
11457         PR target/46997
11458         * config/ia64/predicates.md (mux1_brcst_element): New.
11459         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11460         * config/ia64/ia64.c (ia64_unpack_assemble): New.
11461         (ia64_unpack_sign): New.
11462         (ia64_expand_unpack): Rewrite using new routines.
11463         (ia64_expand_widen_sum): Ditto.
11464         (ia64_expand_dot_prod_v8qi): Ditto.
11465         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11466         routines, add endian check.
11467         (pmpy2_even): Rename from pmpy2_r, add endian check.
11468         (pmpy2_odd): Rename from pmpy2_l, add endian check.
11469         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11470         (vec_widen_smult_hi_v4hi): Ditto.
11471         (vec_widen_umult_lo_v4hi): Ditto.
11472         (vec_widen_umult_hi_v4hi): Ditto.
11473         (mulv2si3): Change endian checks.
11474         (sdot_prodv4hi): Rewrite with new calls.
11475         (udot_prodv4hi): New.
11476         (vec_pack_ssat_v4hi): Add endian check.
11477         (vec_pack_usat_v4hi): Ditto.
11478         (vec_pack_ssat_v2si): Ditto.
11479         (max1_even): Rename from max1_r, add endian check.
11480         (max1_odd): Rename from max1_l, add endian check.
11481         (*mux1_rev): Format change.
11482         (*mux1_mix): Ditto.
11483         (*mux1_shuf): Ditto.
11484         (*mux1_alt): Ditto.
11485         (*mux1_brcst_v8qi): Use new predicate.
11486         (vec_extract_evenv8qi): Remove endian check.
11487         (vec_extract_oddv8qi): Ditto.
11488         (vec_interleave_lowv4hi): Format change.
11489         (vec_interleave_highv4hi): Ditto.
11490         (mix2_even): Rename from mix2_r, add endian check.
11491         (mix2_odd): Rename from mux2_l, add endian check.
11492         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11493         (vec_extract_evenodd_helper): Format change.
11494         (vec_extract_evenv4hi): Remove endian check.
11495         (vec_extract_oddv4hi): Remove endian check.
11496         (vec_interleave_lowv2si): Format change.
11497         (vec_interleave_highv2si): Format change.
11498         (vec_initv2si): Remove endian check.
11499         (vecinit_v2si): Add endian check.
11500         (reduc_splus_v2sf): Add endian check.
11501         (reduc_smax_v2sf): Ditto.
11502         (reduc_smin_v2sf): Ditto.
11503         (vec_initv2sf): Remove endian check.
11504         (fpack): Add endian check.
11505         (fswap): Add endian check.
11506         (vec_interleave_highv2sf): Add endian check.
11507         (vec_interleave_lowv2sf): Add endian check.
11508         (fmix_lr): Add endian check.
11509         (vec_setv2sf): Format change.
11510         (*vec_extractv2sf_0_be): Use shift to extract operand.
11511         (*vec_extractv2sf_1_be): New.
11512         (vec_pack_trunc_v4hi): Add endian check.
11513         (vec_pack_trunc_v2si): Format change.
11514
11515 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
11516
11517         PR inline-asm/23200
11518         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
11519         do bb, locus and block comparison and disallow loads if it is not set.
11520         (stmt_is_replaceable_p): New function.
11521         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11522         callers.
11523         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11524         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11525         SSA_NAME_DEF_STMT.
11526         * tree-flow.h (stmt_is_replaceable_p): New prototype.
11527
11528 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11529
11530         * config/rs6000/xilinx.opt: New.
11531         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11532
11533 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
11534
11535         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11536
11537 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
11538
11539         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11540         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11541         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11542         secondary_reload_info, xtensa_secondary_reload): Remove.
11543         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11544         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11545         (xtensa_preferred_reload_class): Make static. Change return and
11546         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11547         Use CONST_DOUBLE_P predicate.
11548         (xtensa_preferred_output_reload_class): New function.
11549         (xtensa_secondary_reload): Make static.
11550
11551 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
11552
11553         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11554         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11555         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11556
11557 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11558
11559         PR middle-end/31490
11560         * output.h (SECTION_RELRO): Define.
11561         (SECTION_MACH_DEP): Adjust.
11562         (get_variable_section): New prototype.
11563         * varpool.c (varpool_finalize_named_section_flags): New function.
11564         (varpool_assemble_pending_decls): Call it.
11565         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11566         * cgraphunit.c (cgraph_output_in_order): Call
11567         varpool_finalize_named_section_flags.
11568         * varasm.c (get_section): Allow section flags conflicts between
11569         relro and read-only sections if the section hasn't been declared yet.
11570         Set SECTION_OVERRIDE after diagnosing section type conflict.
11571         (get_variable_section): No longer static.
11572         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11573         readonly sections that need relocations.
11574         (decl_readonly_section_1): New function.
11575         (decl_readonly_section): Use it.
11576
11577         Revert:
11578         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
11579                     Steve Ellcey  <sje@cup.hp.com>
11580
11581         PR middle-end/31490
11582         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11583         if section attribute used.
11584
11585 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11586
11587         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11588         * config/darwin.c (SECTION_NO_ANCHOR): Define.
11589         (darwin_init_sections): Remove assertion.
11590
11591 2011-02-03  Nick Clifton  <nickc@redhat.com>
11592
11593         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11594         lt and ge.
11595         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11596         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11597         instead of "n" and "pz".
11598         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11599         CC_FLAG_S.
11600
11601 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
11602
11603         PR target/47312
11604         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11605         fma, expand FMA_EXPR as fma{,f,l} call.
11606
11607         PR lto/47274
11608         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11609         copy them into a unsigned char variable and pass address of it to
11610         lto_output_data_stream.
11611
11612         PR target/47564
11613         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11614         around backend_init_target and lang_dependent_init_target calls.
11615         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11616         (verify_cgraph_node): Don't call set_cfun here.  Use
11617         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11618         Set error_found for incorrectly represented calls to thunks.
11619
11620 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11621
11622         PR debug/43092
11623         PR rtl-optimization/43494
11624         * rtl.h (for_each_inc_dec_fn): New type.
11625         (for_each_inc_dec): Declare.
11626         * rtlanal.c (struct for_each_inc_dec_ops): New type.
11627         (for_each_inc_dec_find_inc_dec): New fn.
11628         (for_each_inc_dec_find_mem): New fn.
11629         (for_each_inc_dec): New fn.
11630         * dse.c (struct insn_size): Remove.
11631         (replace_inc_dec, replace_inc_dec_mem): Remove.
11632         (emit_inc_dec_insn_before): New fn.
11633         (check_for_inc_dec): Use it, along with for_each_inc_dec.
11634         (canon_address): Pass mem modes to cselib_lookup.
11635         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
11636         (cselib_lookup_from_insn): Likewise.
11637         (cselib_subst_to_values): Likewise.
11638         * cselib.c (find_slot_memmode): New var.
11639         (cselib_find_slot): New fn.  Use it instead of
11640         htab_find_slot_with_hash everywhere.
11641         (entry_and_rtx_equal_p): Use find_slot_memmode.
11642         (autoinc_split): New fn.
11643         (rtx_equal_for_cselib_p): Rename and implement in terms of...
11644         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
11645         Deal with autoinc.  Special-case recursion into MEMs.
11646         (cselib_hash_rtx): Likewise.
11647         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11648         address and MEM modes.
11649         (cselib_subst_to_values): Add memmode, pass it on.
11650         Deal with autoinc.
11651         (cselib_lookup): Add memmode argument, pass it on.
11652         (cselib_lookup_from_insn): Add memmode.
11653         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11654         (struct cselib_record_autoinc_data): New.
11655         (cselib_record_autoinc_cb): New fn.
11656         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11657         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11658         (cselib_process_insn): ... here.
11659         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11660         to cselib_lookup.
11661         (add_uses): Likewise, also to cselib_subst_to_values.
11662         (add_stores): Likewise.
11663         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11664         cselib_subst_to_values.
11665         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11666         * gcse.c (do_local_cprop): Adjusted.
11667         * postreload.c (reload_cse_simplify_set): Adjusted.
11668         (reload_cse_simplify_operands): Adjusted.
11669         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11670
11671 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11672
11673         PR tree-optimization/45122
11674         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11675         unsafe assumptions when there's more than one loop exit.
11676
11677 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11678
11679         PR target/47272
11680         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11681         Document using vector double with the load/store builtins, and
11682         that the load/store builtins always use Altivec instructions.
11683
11684         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11685         to use altivec memory instructions, even on VSX.
11686         (vector_altivec_store_<mode>): Ditto.
11687
11688         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11689         function.
11690
11691         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11692         V2DF, V2DI support to load/store overloaded builtins.
11693
11694         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11695         altivec load/store builtins for V2DF/V2DI types.
11696
11697         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11698         set avoid indexed addresses on power6 if -maltivec.
11699         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11700         vector_altivec_load/vector_altivec_store builtins.
11701         (altivec_expand_st_builtin): Ditto.
11702         (altivec_expand_builtin): Add VSX memory builtins.
11703         (rs6000_init_builtins): Add V2DI types to internal types.
11704         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11705         load/store builtins.
11706         (rs6000_address_for_altivec): Insure memory address is appropriate
11707         for Altivec.
11708
11709         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11710         vec_vsx_ld and vec_vsx_st.
11711         (vsx_store_<mode>): Ditto.
11712
11713         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11714         variables to hold long long types for VSX vector memory builtins.
11715         (RS6000_BTI_unsigned_long_long): Ditto.
11716         (long_long_integer_type_internal_node): Ditti.
11717         (long_long_unsigned_type_internal_node): Ditti.
11718
11719         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11720         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11721         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11722
11723         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11724         short cuts.
11725         (vec_vsx_st): Ditto.
11726
11727 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11728
11729         * config/pa/pa-hpux10.opt: New.
11730         * config/hpux11.opt (pthread): New Driver option.
11731         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11732         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11733
11734 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11735
11736         * config/ia64/vms.opt: New.
11737         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11738
11739 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11740
11741         PR target/47580
11742         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11743         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11744         generator functions.
11745         (vsx_floatuns<VSi><mode>2): Ditto.
11746         (vsx_fix_trunc<mode><VSi>2): Ditto.
11747         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11748
11749 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11750
11751         * config/i386/djgpp.opt (posix): New Driver option.
11752
11753 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11754
11755         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11756         Move to the unsupported targets list.
11757
11758 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11759
11760         PR rtl-optimization/47525
11761         * df-scan.c: Update copyright years.
11762         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11763         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11764
11765 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11766
11767         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11768         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11769         (ASM_OUTPUT_ASCII): Remove.
11770         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11771
11772 2011-02-02  Jeff Law  <law@redhat.com>
11773
11774         PR middle-end/47543
11775         * reload.c (find_reloads_address): Handle reg+d address where both
11776         components are invalid by reloading the entire address.
11777
11778 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11779             Richard Guenther  <rguenther@suse.de>
11780
11781         PR tree-optimization/40979
11782         PR bootstrap/47044
11783         * passes.c (init_optimization_passes): After LIM call copy_prop
11784         and DCE to clean up.
11785         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11786
11787 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11788
11789         PR tree-optimization/47576
11790         PR tree-optimization/47555
11791         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11792         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11793         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11794         * tree-scalar-evolution.c (follow_ssa_edge): Use
11795         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11796
11797 2011-02-02  Richard Guenther  <rguenther@suse.de>
11798
11799         PR tree-optimization/47566
11800         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11801
11802 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11803
11804         PR debug/47106
11805         PR debug/47402
11806         * tree-inline.c (declare_return_variable): Remove unused caller
11807         variable.
11808
11809         PR debug/47106
11810         PR debug/47402
11811         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11812         * cfgexpand.c (account_used_vars_for_block): Use them.
11813         * tree-nrv.c (tree_nrv): Likewise.
11814         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11815         (dump_scope_block): Likewise.
11816         (remove_unused_locals): Likewise.
11817
11818         PR debug/47106
11819         PR debug/47402
11820         * tree-inline.c (declare_return_variable): Add result decl to
11821         local decls only once.
11822         * gimple-low.c (record_vars_into): Mark newly-created variables
11823         as referenced.
11824
11825 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11826
11827         PR debug/47498
11828         PR debug/47501
11829         PR debug/45136
11830         PR debug/45130
11831         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11832         debug insns.
11833         (no_real_insns_p, schedule_block, set_priorities): Drop special
11834         treatment of boundary debug insns.
11835         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11836         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11837         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11838         (BOUNDARY_DEBUG_INSN_P): Likewise.
11839         (SCHEDULE_DEBUG_INSN_P): Likewise.
11840         * sched-rgn.c (init_ready_list): Drop special treatment of
11841         boundary debug insns.
11842         * final.c (rest_of_clean_state): Clear notes' BB.
11843
11844 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11845
11846         * config/openbsd.opt (assert=): New Driver option.
11847
11848 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11849
11850         * config/i386/nto.opt: New.
11851         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11852
11853 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11854
11855         * config/i386/netware.opt: New.
11856         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11857
11858 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11859
11860         * config/interix.opt (posix): New Driver option.
11861
11862 2011-02-01  DJ Delorie  <dj@redhat.com>
11863
11864         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11865
11866         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11867         class for A0/A1.
11868
11869 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11870
11871         PR tree-optimization/47561
11872         * toplev.c (process_options): Print the Graphite flags.  Add
11873         flag_loop_flatten to the list of options requiring Graphite.
11874
11875 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11876
11877         * config/i386/cygming.opt (posix): New Driver option.
11878
11879 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11880
11881         * config/arm/vxworks.opt: New.
11882         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11883
11884 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11885
11886         * config/alpha/elf.opt: New.
11887         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11888         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11889
11890 2011-02-01  Richard Guenther  <rguenther@suse.de>
11891
11892         PR tree-optimization/47559
11893         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11894         store-motion on references that can throw.
11895
11896 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11897
11898         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11899         * tree-pass.h (TDF_CSELIB): New macro.
11900         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11901         cselib_lookup): Check for it rather than for TDF_DETAILS.
11902
11903 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11904
11905         PR driver/47547
11906         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11907         is HOST_BIT_BUCKET.
11908
11909         * opts.c (finish_options): Don't add x_aux_base_name if it is
11910         HOST_BIT_BUCKET.
11911
11912 2011-02-01  Richard Guenther  <rguenther@suse.de>
11913
11914         PR tree-optimization/47555
11915         Revert
11916         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11917
11918         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11919
11920 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11921
11922         PR gcc/46692
11923         * config/lm32/t-lm32: Add multilib for all CPU options.
11924
11925 2011-02-01  Richard Guenther  <rguenther@suse.de>
11926
11927         PR tree-optimization/47541
11928         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11929         sure to have a field at offset zero.
11930
11931 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11932
11933         * config/arc/arc.opt (EB, EL): New Driver options.
11934
11935 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11936
11937         * config/alpha/osf5.opt: New.
11938         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11939
11940 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11941
11942         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11943
11944 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11945
11946         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11947         -floop-interchange.
11948         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11949         is an alias of -floop-interchange and that it requires the
11950         Graphite infrastructure.
11951         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11952         flag_loop_interchange based on the value of flag_tree_loop_linear.
11953
11954 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11955             Richard Guenther  <rguenther@suse.de>
11956
11957         PR tree-optimization/47538
11958         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11959         type instead of r1type, except for comparisons.  For right
11960         shifts and comparisons punt if there are mismatches in
11961         sizetype vs. non-sizetype types.
11962
11963 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11964
11965         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11966         avx_runtime.
11967
11968 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11969
11970         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11971         version number.
11972         * configure: Regenerate.
11973
11974 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11975
11976         * configure.ac (gcc_cv_ld_static_option): Define.
11977         (gcc_cv_ld_dynamic_option): Define.
11978         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11979         instead.
11980         (HAVE_LD_STATIC_DYNAMIC): Update message.
11981         (LD_STATIC_OPTION): Define.
11982         (LD_DYNAMIC_OPTION): Define.
11983         * configure: Regenerate.
11984         * config.in: Regenerate.
11985         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11986         HAVE_LD_STATIC_DYNAMIC]: Use them.
11987
11988 2011-01-31  Nick Clifton  <nickc@redhat.com>
11989
11990         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11991         registers inside interrupt handlers if the handler is not a leaf
11992         function.
11993
11994 2011-01-31  Nick Clifton  <nickc@redhat.com>
11995
11996         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11997         reg_renumber returning an INVALID_REGNUM.
11998
11999 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12000
12001         PR libgcj/44341
12002         * doc/install.texi: Document host options discarded when cross
12003         configuring target libraries.
12004
12005 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12006
12007         Reverted:
12008         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12009         PR debug/45136
12010         PR debug/45130
12011         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12012         debug insns.
12013         (no_real_insns_p, schedule_block, set_priorities): Drop special
12014         treatment of boundary debug insns.
12015         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12016         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12017         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12018         (BOUNDARY_DEBUG_INSN_P): Likewise.
12019         (SCHEDULE_DEBUG_INSN_P): Likewise.
12020         * sched-rgn.c (init_ready_list): Drop special treatment of
12021         boundary debug insns.
12022         * final.c (rest_of_clean-state): Clear notes' BB.
12023
12024 2011-01-31  Alan Modra  <amodra@gmail.com>
12025
12026         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12027         toc relative expressions as we do in print_operand_address.
12028
12029 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12030
12031         * doc/extend.texi: Follow spelling conventions.
12032         * doc/invoke.texi: Fix a typo.
12033
12034 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12035
12036         * config/hpux11.opt: New.
12037         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12038         ia64*-*-hpux*): Use hpux11.opt.
12039
12040 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12041
12042         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12043         to tmake_file.
12044
12045 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12046
12047         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12048         support sites.
12049
12050 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12051
12052         * doc/install.texi (Binaries): Remove outdated reference for
12053         Motorola 68HC11/68HC12 downloads.
12054
12055 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12056
12057         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12058         Drepper's paper.
12059
12060 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12061
12062         PR bootstrap/47147
12063         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12064         used by NetBSD.
12065
12066 2011-01-28  Ahmad Sharif  <asharif@google.com>
12067
12068         * value-prof.c (check_counter): Corrected error message.
12069
12070 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12071
12072         * config/arm/arm.c (arm_legitimize_reload_address): New.
12073         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12074         arm_legitimize_reload_address.
12075         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12076
12077 2011-01-28  Ian Lance Taylor  <iant@google.com>
12078
12079         * godump.c (go_define): Ignore macros whose definitions include
12080         two adjacent operands.
12081
12082 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12083
12084         PR target/42894
12085         * varasm.c (force_const_mem): Store copy of x in desc->constant
12086         instead of x itself.
12087         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12088         itself into REG_EQUAL note.
12089
12090 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12091
12092         * config/freebsd.opt (posix, rdynamic): New Driver options.
12093
12094 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12095
12096         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12097         -Bstatic/-Bdynamic.
12098         * configure: Regenerate.
12099
12100 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12101
12102         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12103         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12104
12105 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12106
12107         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12108         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12109         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12110         (s390_preferred_reload_class): Make static. Change return and
12111         'rclass' argument type to reg_class_t.
12112
12113 2011-01-27  Jan Hubicka  <jh@suse.cz>
12114
12115         PR middle-end/46949
12116         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12117         (process_function_and_variable_attributes): Check defined weakrefs.
12118
12119 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12120
12121         PR tree-optimization/47228
12122         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12123         build_ref_for_offset.
12124
12125 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12126
12127         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12128
12129 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12130
12131         PR rtl-optimization/46856
12132         * postreload.c (reload_combine_recognize_const_pattern): Do not
12133         separate cc0 setter and user on cc0 targets.
12134
12135 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12136
12137         PR c/43082
12138         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12139         passed a VOID_TYPE expression, immediately emit an error and
12140         return error_mark_node.
12141
12142 2011-01-26  Jeff Law  <law@redhat.com>
12143
12144         PR rtl-optimization/47464
12145         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12146         rather than may_trap_p as needed.
12147
12148 2011-01-26  DJ Delorie  <dj@redhat.com>
12149
12150         PR rtl-optimization/46878
12151         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12152         setter/user dependency as well.
12153
12154 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12155
12156         PR rtl-optimization/44469
12157         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12158         after removing trivially dead basic blocks.
12159
12160 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12161
12162         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12163         * config/frv/frv.h (LINK_SPEC): Likewise.
12164         * config/i386/netware.h (LINK_SPEC): Likewise.
12165         * config/m68k/linux.h (ASM_SPEC): Likewise.
12166         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12167         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12168         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12169         * config/sparc/linux.h (ASM_SPEC): Likewise.
12170         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12171         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12172
12173 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12174
12175         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12176         * config/frv/frv.h (ASM_SPEC): Likewise.
12177         * config/m68k/linux.h (ASM_SPEC): Likewise.
12178         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12179         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12180         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12181         * config/sparc/linux.h (ASM_SPEC): Likewise.
12182         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12183         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12184
12185 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12186
12187         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12188         * config/frv/frv.h (LINK_SPEC): Likewise.
12189         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12190
12191 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12192
12193         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12194         * config/frv/frv.h (ASM_SPEC): Likewise.
12195         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12196         * config/m68k/linux.h (ASM_SPEC): Likewise.
12197         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12198         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12199         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12200         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12201         * config/sparc/linux.h (ASM_SPEC): Likewise.
12202         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12203         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12204         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12205
12206 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12207
12208         PR target/46997
12209         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12210         (*mux2): Ditto.
12211         (vec_extract_evenodd_help): Ditto.
12212         (vec_extract_evenv4hi): Ditto.
12213         (vec_extract_oddv4hi): Ditto.
12214         (vec_interleave_lowv2si): Ditto.
12215         (vec_interleave_highv2si): Ditto.
12216         (vec_extract_evenv2si): Ditto.
12217         (vec_extract_oddv2si: Ditto.
12218         (vec_pack_trunc_v2si): Ditto.
12219
12220 2011-01-22  Jan Hubicka  <jh@suse.cz>
12221
12222         PR target/47237
12223         * cgraph.h (cgraph_local_info): New field can_change_signature.
12224         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12225         signature can change.
12226         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12227         can change.
12228         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12229         (cgraph_function_versioning): We can not change signature of functions
12230         that don't allow that.
12231         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12232         (lto_input_node): Likewise.
12233         * ipa-inline.c (compute_inline_parameters): Compute
12234         local.can_change_signature.
12235         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12236         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12237         functions that can not change signature.
12238         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12239         init_cumulative_args): Do not use local calling conventions
12240         for functions that can not change signature.
12241
12242 2011-01-22  Jan Hubicka  <jh@suse.cz>
12243
12244         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12245
12246 2011-01-26  Richard Guenther  <rguenther@suse.de>
12247
12248         PR tree-optimization/47190
12249         * cgraphunit.c (process_common_attributes): New function.
12250         (process_function_and_variable_attributes): Use it.
12251
12252 2011-01-26  Richard Guenther  <rguenther@suse.de>
12253
12254         PR lto/47423
12255         * cgraphbuild.c (record_eh_tables): Record reference to personality
12256         function.
12257
12258 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12259
12260         PR debug/45454
12261         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12262         non-debug insns from moving up.
12263
12264 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12265
12266         PR target/40125
12267         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12268         t-dlldir{,-x} fragment for build and add it to tmake_file.
12269         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12270         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12271         * config/i386/t-dlldir: New file.
12272         (SHLIB_DLLDIR): Define.
12273         * config/i386/t-dlldir-x: New file.
12274         (SHLIB_DLLDIR): Define.
12275         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12276         (SHLIB_INSTALL): Use it.
12277
12278 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12279
12280         PR target/47246
12281         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12282         lower bound of the allowed Thumb-2 coprocessor load/store
12283         index range to -256. Add explaining comment.
12284
12285 2011-01-25  Ian Lance Taylor  <iant@google.com>
12286
12287         * godump.c (go_define): Improve lexing of macro expansion to only
12288         accept expressions which match Go spec.
12289
12290 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12291
12292         PR c++/43601
12293         * tree.c (handle_dll_attribute): Handle it.
12294         * doc/extend.texi (@item dllexport): Mention it.
12295         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12296
12297 2011-01-25  Ian Lance Taylor  <iant@google.com>
12298
12299         PR tree-optimization/26854
12300         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12301         (decl_jump_unsafe): Move higher in file, with no other change.
12302         (bind): Set has_jump_unsafe_decl if appropriate.
12303         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12304         (check_earlier_gotos): Likewise.
12305         (c_check_switch_jump_warnings): Likewise.
12306
12307 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12308
12309         * doc/invoke.texi (Warning Options): Add missing hyphen.
12310         (-fprofile-dir): Minor grammatical fixes.
12311         (-fbranch-probabilities): Likewise.
12312
12313 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12314
12315         PR debug/45136
12316         PR debug/45130
12317         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12318         debug insns.
12319         (no_real_insns_p, schedule_block, set_priorities): Drop special
12320         treatment of boundary debug insns.
12321         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12322         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12323         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12324         (BOUNDARY_DEBUG_INSN_P): Likewise.
12325         (SCHEDULE_DEBUG_INSN_P): Likewise.
12326         * sched-rgn.c (init_ready_list): Drop special treatment of
12327         boundary debug insns.
12328         * final.c (rest_of_clean-state): Clear notes' BB.
12329
12330 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12331
12332         * Makefile.in (LAMBDA_H): Removed.
12333         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12334         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12335         lambda-trans.o, and tree-loop-linear.o.
12336         (lto-symtab.o): Remove dependence on LAMBDA_H.
12337         (tree-loop-linear.o): Remove rule.
12338         (lambda-mat.o): Same.
12339         (lambda-trans.o): Same.
12340         (lambda-code.o): Same.
12341         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12342         (tree-vect-slp.o): Same.
12343         * hwint.h (gcd): Moved here.
12344         (least_common_multiple): Same.
12345         * lambda-code.c: Removed.
12346         * lambda-mat.c: Removed.
12347         * lambda-trans.c: Removed.
12348         * lambda.h: Removed.
12349         * tree-loop-linear.c: Removed.
12350         * lto-symtab.c: Do not include lambda.h.
12351         * omega.c (gcd): Removed.
12352         * passes.c (init_optimization_passes): Remove pass_linear_transform.
12353         * tree-data-ref.c (print_lambda_vector): Moved here.
12354         (lambda_vector_copy): Same.
12355         (lambda_matrix_copy): Same.
12356         (lambda_matrix_id): Same.
12357         (lambda_vector_first_nz): Same.
12358         (lambda_matrix_row_add): Same.
12359         (lambda_matrix_row_exchange): Same.
12360         (lambda_vector_mult_const): Same.
12361         (lambda_vector_negate): Same.
12362         (lambda_matrix_row_negate): Same.
12363         (lambda_vector_equal): Same.
12364         (lambda_matrix_right_hermite): Same.
12365         * tree-data-ref.h: Do not include lambda.h.
12366         (lambda_vector): Moved here.
12367         (lambda_matrix): Same.
12368         (dependence_level): Same.
12369         (lambda_transform_legal_p): Removed declaration.
12370         (lambda_collect_parameters): Same.
12371         (lambda_compute_access_matrices): Same.
12372         (lambda_vector_gcd): Same.
12373         (lambda_vector_new): Same.
12374         (lambda_vector_clear): Same.
12375         (lambda_vector_lexico_pos): Same.
12376         (lambda_vector_zerop): Same.
12377         (lambda_matrix_new): Same.
12378         * tree-flow.h (least_common_multiple): Removed declaration.
12379         * tree-parloops.c (lambda_trans_matrix): Moved here.
12380         (LTM_MATRIX): Same.
12381         (LTM_ROWSIZE): Same.
12382         (LTM_COLSIZE): Same.
12383         (LTM_DENOMINATOR): Same.
12384         (lambda_trans_matrix_new): Same.
12385         (lambda_matrix_vector_mult): Same.
12386         (lambda_transform_legal_p): Same.
12387         * tree-pass.h (pass_linear_transform): Removed declaration.
12388         * tree-ssa-loop.c (tree_linear_transform): Removed.
12389         (gate_tree_linear_transform): Removed.
12390         (pass_linear_transform): Removed.
12391         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12392         flag_loop_interchange.
12393
12394 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12395
12396         PR tree-optimization/47265
12397         PR tree-optimization/47443
12398         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12399         if name still has some uses.
12400
12401 2011-01-25  Martin Jambor  <mjambor@suse.cz>
12402
12403         PR tree-optimization/47382
12404         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12405         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12406
12407 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
12408
12409         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12410         sjlj_except_unwind_info.
12411
12412 2011-01-25  Richard Guenther  <rguenther@suse.de>
12413
12414         PR tree-optimization/47426
12415         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12416         visible functions results escape.
12417
12418 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12419
12420         PR target/45701
12421         * config/arm/arm.c (any_sibcall_uses_r3): New function.
12422         (arm_get_frame_offsets): Use it.
12423
12424 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12425             Jakub Jelinek  <jakub@redhat.com>
12426
12427         PR tree-optimization/47271
12428         * tree-if-conv.c (bb_postdominates_preds): New.
12429         (if_convertible_bb_p): Call bb_postdominates_preds.
12430         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12431         (predicate_scalar_phi): Call bb_postdominates_preds.
12432
12433 2011-01-25  Nick Clifton  <nickc@redhat.com>
12434
12435         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12436         * config/rx/rx.c (rx_function_value): Likewise.
12437         (rx_promote_function_mode): Likewise.
12438         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12439         in order to make it legitimate.
12440         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12441         make sure that the first operand is the same as the result register.
12442         (addsi3_unspec): Delete.
12443         (subdi3): Do not accept immediate operands.
12444         (subdi3_internal): Likewise.
12445
12446 2011-01-25  Jeff Law  <law@redhat.com>
12447
12448         PR rtl-optimization/37273
12449         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12450         handle them like argument loads from stack slots.  Do not double
12451         count memory for memory constants and argument loads from stack slots.
12452
12453 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
12454
12455         PR tree-optimization/47427
12456         PR tree-optimization/47428
12457         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12458         coalesce if the new root var would be TREE_READONLY.
12459
12460 2011-01-25  Richard Guenther  <rguenther@suse.de>
12461
12462         PR middle-end/47414
12463         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12464         correct type for TBAA.
12465
12466 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12467
12468         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12469         (close_phi_written_to_memory): Call for_each_index with
12470         dr_indices_valid_in_loop.
12471
12472 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12473
12474         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12475         when it is initialized.
12476
12477 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12478
12479         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12480         call to graphite_find_data_references_in_stmt.
12481         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12482         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
12483         call to graphite_find_data_references_in_stmt.
12484         (analyze_drs_in_stmts): Same.
12485         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12486         in which the scalar analysis of indices is performed.
12487         (create_data_ref): Same.  Update call to dr_analyze_indices.
12488         (find_data_references_in_stmt): Update call to create_data_ref.
12489         (graphite_find_data_references_in_stmt): Same.
12490         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12491         declaration.
12492         (create_data_ref): Same.
12493         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12494         call to create_data_ref.
12495
12496 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12497
12498         * graphite-sese-to-poly.c (build_poly_scop): Move
12499         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12500
12501 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12502
12503         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12504         VAR_DECL, PARM_DECL, and RESULT_DECL.
12505
12506 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12507
12508         * graphite-dependences.c (reduction_dr_1): Allow several reductions
12509         in a reduction PBB.
12510         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12511         that have already been marked as PBB_IS_REDUCTION.
12512
12513 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12514
12515         * graphite-scop-detection.c (same_close_phi_node): New.
12516         (remove_duplicate_close_phi): New.
12517         (make_close_phi_nodes_unique): New.
12518         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12519
12520 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12521
12522         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12523         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12524         of both data references to be the same.
12525
12526 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12527
12528         * graphite-dependences.c (build_lexicographical_constraint): Remove
12529         the gdim parameter.
12530         (build_lexicographical_constraint): Adjust call to
12531         ppl_powerset_is_empty.
12532         (dependence_polyhedron): Same.
12533         (graphite_legal_transform_dr): Same.
12534         (graphite_carried_dependence_level_k): Same.
12535         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12536         parameter.
12537         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12538
12539 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12540
12541         * graphite-sese-to-poly.c
12542         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12543         (close_phi_written_to_memory): New.
12544         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12545         and unshare_expr.
12546
12547 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12548
12549         * doc/install.texi: Update the expected version number of PPL to 0.11.
12550         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12551         #if PPL_VERSION_MINOR < 11.
12552
12553 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12554
12555         * graphite-dependences.c: Include graphite-cloog-util.h.
12556         (new_poly_ddr): Inlined into dependence_polyhedron.
12557         (free_poly_ddr): Moved close by new_poly_ddr.
12558         (dependence_polyhedron_1): Renamed dependence_polyhedron.
12559         Early return NULL when ppl_powerset_is_empty returns true.
12560         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
12561         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
12562         (graphite_legal_transform_dr): Call new_poly_ddr.
12563         (graphite_carried_dependence_level_k): Same.
12564         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
12565         (dot_transformed_deps_stmt_1): Removed.
12566         (dot_deps_stmt_1): Call dot_deps_stmt_2.
12567         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
12568         (dot_deps_1): Call dot_deps_2.
12569         * Makefile.in (graphite-dependences.o): Add missing dependence on
12570         graphite-cloog-util.h.
12571
12572 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12573
12574         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12575         (build_lexicographical_constraint): Same.
12576         (dependence_polyhedron_1): Same.
12577         (graphite_legal_transform_dr): Same.
12578         (graphite_carried_dependence_level_k): Same.
12579         * graphite-ppl.c (ppl_powerset_is_empty): New.
12580         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12581         * tree-data-ref.c (dump_data_reference): Print the basic block index.
12582
12583 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12584
12585         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12586         the "a followed by b" relation and document it.
12587
12588 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12589
12590         * graphite-dependences.c (build_lexicographical_constraint): Stop the
12591         iteration when the bag of constraints is empty.
12592
12593 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12594
12595         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12596
12597 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12598
12599         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12600         nest and two loop depths as parameters.
12601         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12602         lst_perfect_nestify.
12603
12604 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12605
12606         * graphite-dependences.c (print_pddr): Call
12607         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12608
12609 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
12610
12611         * graphite-ppl.c (debug_gmp_value): New.
12612         * graphite-ppl.h (debug_gmp_value): Declared.
12613
12614 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
12615
12616         * doc/install.texi: Document availability of cloog-0.16.
12617
12618 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
12619
12620         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12621         invalid postdominance info.
12622
12623 2011-01-24  Jan Hubicka  <jh@suse.cz>
12624
12625         PR c/21659
12626         * doc/extend.texi (weak pragma): Drop claim that it must
12627         appear before definition.
12628         * varasm.c (merge_weak, declare_weak): Only sanity check
12629         that DECL is not output at a time it is declared weak.
12630
12631 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
12632
12633         * machmode.def: Fixed comments.
12634
12635 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
12636
12637         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12638
12639 2011-01-24  Paul Koning  <ni1d@arrl.net>
12640
12641         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12642         WORDS_BIG_ENDIAN.
12643
12644 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
12645
12646         PR target/46519
12647         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12648         (block_info): Add scanned and prev.
12649         (move_or_delete_vzeroupper_2): Return if the basic block
12650         has been scanned and the upper 128bit state is unchanged
12651         from the last scan.
12652         (move_or_delete_vzeroupper_1): Return true if the exit
12653         state is changed.
12654         (move_or_delete_vzeroupper): Visit basic blocks using the
12655         work-list based algorithm based on vt_find_locations in
12656         var-tracking.c.
12657
12658         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12659
12660 2011-01-24  Nick Clifton  <nickc@redhat.com>
12661
12662         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12663         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12664         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12665         then define __v850e1__.
12666         * doc/invoke.texi: Document -mv850es.
12667
12668 2011-01-24  Richard Henderson  <rth@redhat.com>
12669
12670         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12671         compound unordered comparisons.
12672         * config/rx/rx.c (rx_split_fp_compare): Remove.
12673         * config/rx/rx-protos.h: Update.
12674         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12675         (cbranchsf4): Don't call rx_split_fp_compare.
12676         (*cbranchsf4): Use rx_split_cbranch.
12677         (*cmpsf): Don't accept "i" constraint.
12678         (*conditional_branch): Only valid after reload.
12679         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12680
12681 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12682
12683         PR target/47385
12684         * config/rs6000/altivec.md (vector constant splitters): Add
12685         support for creating vector single precision constants if -mvsx is
12686         used and we would create the constant using Altivec primitives.
12687
12688 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12689             Richard Sandiford  <rdsandiford@googlemail.com>
12690
12691         PR rtl-optimization/47166
12692         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12693         mechanism for PRE_MODIFY and POST_MODIFY.
12694         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12695         reloadreg.
12696
12697 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12698
12699         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12700
12701 2011-01-22  Jan Hubicka  <jh@suse.cz>
12702
12703         PR lto/47333
12704         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12705
12706 2011-01-22  Jan Hubicka  <jh@suse.cz>
12707
12708         PR tree-optimization/43884
12709         PR lto/44334
12710         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12711         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12712
12713 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12714
12715         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12716         * config/s390/s390.c (s390_register_move_cost,
12717         s390_memory_move_cost): New.
12718         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12719
12720 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12721
12722         PR middle-end/47401
12723         * except.c (sjlj_assign_call_site_values): Move setting the
12724         crtl->uses_eh_lsda flag to ...
12725         (sjlj_mark_call_sites): ... here.
12726         (sjlj_emit_function_enter): Support NULL dispatch label.
12727         (sjlj_build_landing_pads): In a function with no landing pads
12728         that still has must-not-throw regions, generate code to register
12729         a personality function with empty LSDA.
12730
12731 2011-01-21  Richard Henderson  <rth@redhat.com>
12732
12733         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12734
12735         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12736
12737         * compare-elim.c: New file.
12738         * Makefile.in (OBJS-common): Add it.
12739         (compare-elim.o): New.
12740         * common.opt (fcompare-elim): New.
12741         * opts.c (default_options_table): Add OPT_fcompare_elim.
12742         * tree-pass.h (pass_compare_elim_after_reload): New.
12743         * passes.c (init_optimization_passes): Add it.
12744         * recog.h: Protect against re-inclusion.
12745         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12746         * doc/invoke.texi (-fcompare-elim): Document it.
12747         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12748         * doc/tm.texi: Rebuild.
12749
12750 2011-01-22  Nick Clifton  <nickc@redhat.com>
12751
12752         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12753         rx_split_fp_compare.
12754
12755 2011-01-22  Nick Clifton  <nickc@redhat.com>
12756
12757         * config/rx/rx.md (UNSPEC_CONST): New.
12758         (deallocate_and_return): Wrap the amount popped off the stack in
12759         an UNSPEC_CONST in order to stop it being rejected by
12760         -mmax-constant-size.
12761         (pop_and_return): Add a "(return)" rtx.
12762         (call): Drop the immediate operand.
12763         (call_internal): Likewise.
12764         (call_value): Likewise.
12765         (call_value_internal): Likewise.
12766         (sibcall_internal): Likewise.
12767         (sibcall_value_internal): Likewise.
12768         (sibcall): Likewise.  Generate an explicit call using
12769         sibcall_internal.
12770         (sibcall_value): Likewise.
12771         (mov<>): FAIL if a constant operand is not legitimate.
12772         (addsi3_unpsec): New pattern.
12773
12774         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12775         (ok_for_max_constant): New function.
12776         (gen_safe_add): New function.
12777         (rx_expand_prologue): Use gen_safe_add.
12778         (rx_expand_epilogue): Likewise.
12779         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12780         UNSPEC CONSTs.
12781
12782 2011-01-21  Jeff Law  <law@redhat.com>
12783
12784         PR tree-optimization/47053
12785         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12786         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12787         statements are deleted.
12788         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12789         is nonempty, then purge dead edges and cleanup the CFG.
12790
12791 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12792
12793         PR debug/47402
12794         Temporarily revert:
12795         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12796         PR debug/47106
12797         * tree-dfa.c (create_var_ann): Mark variable as used.
12798
12799 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12800
12801         PR middle-end/45566
12802         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12803         notes from other section in hot/cold partitioning even if
12804         last_action is -3.  Increment call_site_base.
12805
12806         PR rtl-optimization/47366
12807         * fwprop.c (forward_propagate_into): Return bool.  If
12808         any changes are made, -fnon-call-exceptions is used and
12809         REG_EH_REGION note is present, call purge_dead_edges
12810         and return true if it purged anything.
12811         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12812         any EH edges were purged.
12813
12814 2011-01-21  Jeff Law  <law@redhat.com>
12815
12816         PR rtl-optimization/41619
12817         * caller-save.c (setup_save_areas): Break out code to determine
12818         which hard regs are live across calls by examining the reload chains
12819         so that it is always used.
12820         Eliminate code which checked REG_N_CALLS_CROSSED.
12821
12822 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12823
12824         PR tree-optimization/47355
12825         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12826         NOP has non-debug uses beyond PHIs in new_bb.
12827
12828 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12829
12830         PR debug/47106
12831         * cfgexpand.c (account_used_vars_for_block): Only account vars
12832         that are annotated as used.
12833         (estimated_stack_frame_size): Don't set TREE_USED.
12834         * tree-dfa.c (create_var_ann): Mark variable as used.
12835
12836 2011-01-21  Richard Guenther  <rguenther@suse.de>
12837
12838         PR middle-end/47395
12839         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12840
12841 2011-01-21  Richard Guenther  <rguenther@suse.de>
12842
12843         PR tree-optimization/47365
12844         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12845         (vn_reference_lookup_pieces): Adjust.
12846         (vn_reference_lookup): Likewise.
12847         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12848         (vn_reference_lookup_3): Only look through kills if in
12849         VN_WALKREWRITE mode.
12850         (vn_reference_lookup_pieces): Adjust.
12851         (vn_reference_lookup): Likewise.
12852         (visit_reference_op_load): Likewise.
12853         (visit_reference_op_store): Likewise.
12854         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12855         (compute_avail): Likewise.
12856         (eliminate): Likewise.
12857
12858 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12859
12860         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12861         DECL_IGNORED_P non-reg vars if they are used.
12862
12863         PR tree-optimization/47391
12864         * varpool.c (const_value_known_p): Return false if
12865         decl is volatile.
12866
12867 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12868
12869         PR bootstrap/47215
12870         * config/i386/i386.c (ix86_local_alignment): Handle
12871         case for va_list_type_node is nil.
12872         (ix86_canonical_va_list_type): Likewise.
12873
12874 2011-01-21  Alan Modra  <amodra@gmail.com>
12875
12876         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12877         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12878
12879 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12880
12881         * config/arm/arm.md (define_attr type): Rename f_load
12882         and f_store to f_fpa_load and f_fpa_store. Update.
12883         (write_conflict): Deal with rename fallout.
12884         (*push_fp_multi): Likewise.
12885         * config/arm/fpa.md (f_load): Use f_fpa_load.
12886         (f_store): Use f_fpa_store.
12887         (*movsf_fpa): Likewise.
12888         (*movdf_fpa): Likewise.
12889         (*movxf_fpa): Likewise.
12890         (*thumb2_movsf_fpa): Likewise.
12891         (*thumb2_movdf_fpa): Likewise.
12892         (*thumb2_movxf_fpa): Likewise.
12893         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12894         f_loadd and f_stored.
12895         (*thumb2_movdi_vfp): Likewise.
12896         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12897         (*thumb2_movsi_vfp): Likewise.
12898         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12899         Use f_loads instead of f_load.
12900         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12901
12902 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12903
12904         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12905         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12906         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12907         (xtensa_mode_dependent_address_p): New function.
12908         (constantpool_address_p): Make static. Change return type to bool.
12909         Change argument type to const_rtx. Use CONST_INT_P predicate.
12910
12911 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12912
12913         PR debug/46583
12914         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12915
12916 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12917
12918         PR debug/47283
12919         * cfgexpand.c (expand_debug_expr): Instead of generating
12920         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12921         etc. handling.
12922
12923 2011-01-20  Richard Guenther  <rguenther@suse.de>
12924
12925         PR middle-end/47370
12926         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12927         the pointer operand of MEM_REFs.
12928
12929 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12930
12931         PR tree-optimization/46130
12932         * ipa-split.c (consider_split): If return_bb contains non-virtual
12933         PHIs other than for retval or if split_function would not adjust it,
12934         refuse to split.
12935
12936 2011-01-20  Richard Guenther  <rguenther@suse.de>
12937
12938         PR tree-optimization/47167
12939         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12940         Revert previous change, only avoid enumeral type changes.
12941
12942 2011-01-19  Mike Stump  <mikestump@comcast.net>
12943
12944         * doc/tm.texi.in (BRANCH_COST): Englishify.
12945         * doc/tm.texi (BRANCH_COST): Likewise.
12946
12947 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12948
12949         PR c++/47291
12950         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12951         (gen_scheduled_generic_parms_dies): New functions.
12952         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12953         generation for the end of CU compilation.
12954         (dwarf2out_finish): Generate template parameters DIEs here.
12955
12956 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12957
12958         PR debug/46240
12959         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12960         debug bind stmt on merge edges.
12961
12962 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12963
12964         PR debug/47079
12965         PR debug/46724
12966         * function.c (instantiate_expr): Instantiate incoming rtl of
12967         implicit arguments, and recurse on VALUE_EXPRs.
12968         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12969         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12970
12971 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12972
12973         * c-parser.c (c_parser_for_statement): Initialize
12974         collection_expression.
12975
12976 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12977
12978         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12979
12980 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12981
12982         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12983         (LINK_SHLIB_SPEC): Don't use %(link_path).
12984         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12985
12986 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12987
12988         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12989         (NO_SHARED_LIB_SUPPORT): Remove.
12990         (LINK_SHLIB_SPEC): Remove one conditional definition.
12991
12992 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12993
12994         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12995         %{call_shared}.
12996         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12997         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12998         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12999         %{call_shared} and conditionals on these options not being passed.
13000         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13001         %{call_shared}.
13002
13003 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13004
13005         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13006         simplify.
13007
13008         * ipa-split.c: Spelling fixes.
13009
13010 2011-01-19  Richard Henderson  <rth@redhat.com>
13011
13012         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13013         (*mulsi3): Likewise.
13014
13015         * longlong.h [__mn10300__] (count_leading_zeros): New.
13016         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13017         [__mn10300__] (add_ssaaaa, subddmmss): New.
13018         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13019         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13020
13021 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13022
13023         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13024
13025 2011-01-19  Richard Henderson  <rth@redhat.com>
13026
13027         * config/mn10300/mn10300.md (addsi3_flags): New.
13028         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13029         (subsi3_flags, subc_internal, subdi3): New.
13030         (subdi3_internal, *subdi3_degenerate): New.
13031         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13032
13033         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13034         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13035         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13036         * config/mn10300/mn10300-protos.h: Update.
13037         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13038         (return_ret): Likewise.  Rename from return_internal_regs.
13039         (return_internal): Remove.
13040
13041         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13042         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13043         (mn10300_legitimate_constant_p): Likewise.
13044         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13045         (mn10300_frame_size): New.
13046         (mn10300_expand_prologue): Use it.
13047         (mn10300_expand_epilogue): Likewise.
13048         (mn10300_initial_offset): Likewise.
13049         * config/mn10300/mn10300-protos.h: Update.
13050         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13051         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13052         (prologue, epilogue, return_internal): Tidy output code.
13053         (mn10300_store_multiple_operation, return): Likewise.
13054         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13055         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13056         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13057         (load_pic, am33_load_pic): New.
13058         (mn10300_load_pic0, mn10300_load_pic1): New.
13059
13060         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13061         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13062         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13063         (cc_flags_for_mode, cc_flags_for_code): New.
13064         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13065         overflow flag is not valid.  Validate that the flags we need
13066         for the comparison are valid.
13067         (mn10300_output_cmp): Remove.
13068         (mn10300_output_add): New.
13069         (mn10300_select_cc_mode): Use cc_flags_for_code.
13070         (mn10300_split_cbranch): New.
13071         (mn10300_match_ccmode): New.
13072         (mn10300_split_and_operand_count): New.
13073         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13074         to the function.
13075         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13076         (addsi3): ... here.  Use mn10300_output_add.
13077         (*addsi3_flags): New.
13078         (*am33_subsi3, *mn10300_subsi3): Merge...
13079         (subsi3): ... here.  Use attribute isa.
13080         (*subsi3_flags): New.
13081         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13082         when possible.
13083         (*am33_andsi3, *mn10300_andsi3): Merge...
13084         (andsi3): ... here.
13085         (*andsi3_flags): New.
13086         (andsi3 splitters): New.
13087         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13088         (iorsi3): ... here.
13089         (*iorsi3_flags): New.
13090         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13091         (xorsi3): ... here.
13092         (*xorsi3_flags): New.
13093         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13094         (one_cmplsi2): ... here.
13095         (*one_cmplsi2_flags): New.
13096         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13097         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13098         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13099         use matching constraints to eliminate a self-comparison.
13100         (*integer_conditional_branch): Rename from integer_conditional_branch.
13101         Use int_mode_flags to match CC_REG.
13102         (*cbranchsi4_btst, *btstsi): New.
13103         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13104         mn10300_split_cbranch.
13105         (*am33_cmpsf): Rename from am33_cmpsf.
13106         (*float_conditional_branch): Rename from float_conditional_branch.
13107         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13108         (zero_extendqisi2): ... here.
13109         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13110         (zero_extendhisi2): ... here.
13111         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13112         (extendqisi2): ... here.
13113         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13114         (extendhisi2): ... here.
13115         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13116         (ashlsi3): ... here.
13117         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13118         (lshrsi3): ... here.
13119         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13120         (ashrsi3): ... here.
13121         (consecutive add peephole): Remove.
13122         * config/mn10300/predicates.md (label_ref_operand): New.
13123         (int_mode_flags): New.
13124         (CCZN_comparison_operator): New.
13125
13126         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13127         (throughput_42_latency_43): New reservation.
13128         (mulsidi3, umulsidi3): New expanders.
13129         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13130         the MDR register to allocation; separately allocate the low and
13131         high parts of the DImode result.
13132         (umulsidi3_internal): Similarly.
13133         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13134         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13135         (udivsi3, umodsi3): Remove.
13136         (udivmodsi4, divmodsi4): New expanders.
13137         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13138         (*divmodsi4): Simiarly.
13139         (ext_internal): New.
13140
13141         * config/mn10300/constraints.md ("z"): New constraint.
13142         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13143         (FIXED_REGISTERS): Don't fix MDR.
13144         (CALL_USED_REGSITERS): Reformat nicely.
13145         (REG_ALLOC_ORDER): Add MDR.
13146         (enum regclass): Add MDR_REGS.
13147         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13148         (IRA_COVER_CLASSES): Add MDR_REGS.
13149         (REGNO_REG_CLASS): Handle MDR_REG.
13150         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13151         (mn10300_register_move_cost): Likewise.
13152         * config/mn10300/mn10300.md (MDR_REG): New.
13153         (*movsi_internal): Handle moves to/from MDR_REGS.
13154
13155         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13156         POST_MODIFY.
13157         (mn10300_secondary_reload): Tidy combination reload classes.
13158         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13159         addresses for AM33.  Allow symbolic offsets for reg+imm.
13160         (mn10300_regno_in_class_p): New.
13161         (mn10300_legitimize_reload_address): New.
13162         * config/mn10300/mn10300.h (enum reg_class): Remove
13163         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13164         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13165         SP_OR_GENERAL_REGS.
13166         (REG_CLASS_NAMES): Update to match.
13167         (REG_CLASS_CONTENTS): Likewise.
13168         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13169         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13170         (REGNO_IN_RANGE_P): Remove.
13171         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13172         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13173         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13174         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13175         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13176         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13177         (REGNO_GENERAL_P): New.
13178         (HAVE_POST_MODIFY_DISP): New.
13179         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13180         (LEGITIMIZE_RELOAD_ADDRESS): New.
13181         * config/mn10300/mn10300-protos.h: Update.
13182
13183         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13184         DATA_REGS for AM33 stack-pointer destination.
13185         (mn10300_preferred_output_reload_class): Likewise.
13186         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13187         into a form appropriate for ...
13188         (TARGET_SECONDARY_RELOAD): New.
13189         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13190         * config/mn10300/mn10300-protos.h: Update.
13191         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13192         reload_insi; use the "A" constraint for the scratch; handle AM33
13193         moves of sp to non-address registers.
13194
13195         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13196         (*movqi_internal): ... here.
13197         (*am33_movhi, *mn10300_movhi): Merge into...
13198         (*movhi_internal): ... here.
13199         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13200         as the source/destination of moves from/to SP.
13201         (movsf): Only allow for AM33-2.
13202         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13203         any integer constant constraint.  Only allow for AM33-2.  Tidy
13204         all of the alternative outputs.
13205         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13206         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13207         for MN103.
13208         (udivsi3, umodsi3): New patterns for MN103 only.
13209
13210 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13211
13212         * doc/tm.texi.in: Spell out that a lack of register class unions
13213         can lead to ICEs.
13214         * doc/tm.texi: Regenerate.
13215
13216 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13217
13218         PR rtl-optimization/47337
13219         * dce.c (check_argument_store): New function.
13220         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13221
13222         PR tree-optimization/47290
13223         * tree-eh.c (infinite_empty_loop_p): New function.
13224         (cleanup_empty_eh): Use it.
13225
13226 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13227
13228         PR target/46997
13229         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13230         (a64_expand_widen_sum): Ditto.
13231         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13232         (vec_extract_evenodd_help): Ditto.
13233         (vec_extract_evenv4hi): Ditto.
13234         (vec_extract_oddv4hi): Ditto.
13235         (vec_extract_evenv2si): Ditto.
13236         (vec_extract_oddv2si): Ditto.
13237         (vec_extract_evenv2sf): Ditto.
13238         (vec_extract_oddv2sf): Ditto.
13239         (vec_pack_trunc_v4hi: Ditto.
13240         (vec_pack_trunc_v2si): Ditto.
13241         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13242         (vec_interleave_highv8qi): Ditto.
13243         (mix1_r): Ditto.
13244         (vec_extract_oddv8qi): Ditto.
13245         (vec_interleave_lowv4hi): Ditto.
13246         (vec_interleave_highv4hi): Ditto.
13247         (vec_interleave_lowv2si): Ditto.
13248         (vec_interleave_highv2si): Ditto.
13249
13250 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13251
13252         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13253         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13254         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13255         (pa_c_mode_for_suffix): New.
13256         (TARGET_EXPAND_BUILTIN): Define.
13257         (TARGET_C_MODE_FOR_SUFFIX): Define.
13258         (pa_builtins): Define.
13259         (pa_init_builtins): Register __float128 type and init new support
13260         builtins.
13261         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13262         * config/pa/quadlib.c (_U_Qfcopysign): New.
13263
13264 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13265
13266         PR middle-end/46894
13267         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13268         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13269         are defined.
13270
13271 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13272
13273         PR tree-optimization/47179
13274         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13275         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13276
13277 2011-01-18  Richard Guenther  <rguenther@suse.de>
13278
13279         PR rtl-optimization/47216
13280         * emit-rtl.c: Include tree-flow.h.
13281         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13282         of replicating it with different semantics.
13283         * Makefile.in (emit-rtl.o): Adjust.
13284
13285 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13286
13287         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13288         (cortex_a9_dp): Handle neon types correctly.
13289
13290 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13291
13292         PR rtl-optimization/47299
13293         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13294         subtarget.  Use normal multiplication if both operands are constants.
13295         * expmed.c (expand_widening_mult): Don't try to optimize constant
13296         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13297         before using it.
13298
13299 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13300
13301         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13302         spacing after 'e.g.', typos, comma, hyphenation.
13303
13304 2011-01-17  Richard Henderson  <rth@redhat.com>
13305
13306         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13307         (rx_restricted_mem_operand): New.
13308         (rx_shift_operand): Use register_operand.
13309         (rx_source_operand, rx_compare_operand): Likewise.
13310         * config/rx/rx.md (addsi3_flags): New expander.
13311         (adddi3): Rewrite as expander.
13312         (adc_internal, *adc_flags, adddi3_internal): New patterns.
13313         (subsi3_flags): New expander.
13314         (subdi3): Rewrite as expander.
13315         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13316
13317         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13318         (rx_init_builtins): Remove sat builtin.
13319         (rx_expand_builtin): Likewise.
13320         * config/rx/rx.md (ssaddsi3): New.
13321         (*sat): Rename from sat.  Represent the CC_REG input.
13322
13323         * config/rx/predicates.md (rshift_operator): New.
13324         * config/rx/rx.c (rx_expand_insv): Remove.
13325         * config/rx/rx-protos.h: Update.
13326         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
13327         operand to the canonical position.
13328         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13329         (*bitclr, *bitclr_in_memory): Similarly.
13330         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13331         (insv): Retain the zero_extract in the expansion.
13332
13333         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13334         (bswaphi2, bitinvert, revw): Likewise.
13335
13336         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13337         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13338         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13339         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13340         (bitset, bitset_in_memory): Likewise.
13341         (bitinvert, bitinvert_in_memory): Likewise.
13342         (bitclr, bitclr_in_memory): Likewise.
13343         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13344         (rx_strend, rx_cmpstrn): Likewise.
13345         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
13346         (bitop peep2 patterns): Remove.
13347
13348         * config/rx/rx.c (rx_match_ccmode): New.
13349         * config/rx/rx-protos.h: Update.
13350         * config/rx/rx.md (abssi2): Clobber, don't set flags.
13351         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13352         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13353         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13354         (fix_truncsfsi2, floatsisf2): Likewise.
13355         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13356         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13357         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13358         (*subsi3_flags, *xorsi3_flags): New.
13359
13360         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13361
13362         * config/rx/rx.c (rx_print_operand): Remove workaround for
13363         unsplit comparison operations.
13364
13365         * config/rx/rx.md (movsicc): Split after reload.
13366         (*movsicc): Merge *movsieq and *movsine via match_operator.
13367         (*stcc): New pattern.
13368
13369         * config/rx/rx.c (rx_float_compare_mode): Remove.
13370         * config/rx/rx.h (rx_float_compare_mode): Remove.
13371         * config/rx/rx.md (cstoresi4): Split after reload.
13372         (*sccc): New pattern.
13373
13374         * config/rx/predicates.md (label_ref_operand): New.
13375         (rx_z_comparison_operator): New.
13376         (rx_zs_comparison_operator): New.
13377         (rx_fp_comparison_operator): New.
13378         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13379         Validate that the flags are set properly for the comparison.
13380         (rx_gen_cond_branch_template): Remove.
13381         (rx_cc_modes_compatible): Remove.
13382         (mode_from_flags): New.
13383         (flags_from_code): Rename from flags_needed_for_conditional.
13384         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13385         (rx_select_cc_mode): Likewise.
13386         (rx_split_fp_compare): New.
13387         (rx_split_cbranch): New.
13388         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13389         (*cbranchsi4): Use match_operator and rx_split_cbranch.
13390         (*cbranchsf4): Similarly.
13391         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
13392         match_operator and rx_split_cbranch.
13393         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13394         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
13395         (*cmpsi): Rename from cmpsi.
13396         (*tstsi): Rename from tstsi.
13397         (*cmpsf): Rename from cmpsf; use CC_Fmode.
13398         (*conditional_branch): Rename from conditional_branch.
13399         (*reveresed_conditional_branch): Remove.
13400         (b<code>): Remove expander.
13401         * config/rx/rx-protos.h: Update.
13402
13403         * config/rx/rx.c (rx_compare_redundant): Remove.
13404         * config/rx/rx.md (cmpsi): Don't use it.
13405         * config/rx/rx-protos.h: Update.
13406
13407         * config/rx/rx-modes.def (CC_F): New mode.
13408         * config/rx/rx.c (rx_select_cc_mode): New.
13409         * config/rx/rx.h (SELECT_CC_MODE): Use it.
13410         * config/rx/rx-protos.h: Update.
13411
13412 2011-01-17  Richard Henderson  <rth@redhat.com>
13413
13414         * except.c (dump_eh_tree): Fix stray ; after for statement.
13415
13416 2011-01-17  Richard Guenther  <rguenther@suse.de>
13417
13418         PR tree-optimization/47313
13419         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13420         handling before copying the body.  Properly deal with
13421         by-reference result in SSA form.
13422
13423 2011-01-17  Ian Lance Taylor  <iant@google.com>
13424
13425         PR target/47219
13426         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13427         (struct_value_alias_set): Don't define.
13428         (sparc_option_override): Don't set sparc_sr_alias_set and
13429         struct_value_alias_set.
13430         (save_or_restore_regs): Use gen_frame_mem rather than calling
13431         set_mem_alias_set.
13432         (sparc_struct_value_rtx): Likewise.
13433
13434 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
13435
13436         PR target/47318
13437         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
13438         (_mm_maskstore_pd): Likewise.
13439         (_mm_maskload_ps): Likewise.
13440         (_mm_maskstore_ps): Likewise.
13441         (_mm256_maskload_pd): Change mask to __m256i.
13442         (_mm256_maskstore_pd): Likewise.
13443         (_mm256_maskload_ps): Likewise.
13444         (_mm256_maskstore_ps): Likewise.
13445
13446         * config/i386/i386-builtin-types.def: Updated.
13447         (ix86_expand_special_args_builtin): Likewise.
13448
13449         * config/i386/i386.c (bdesc_special_args): Update
13450         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13451         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13452         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13453         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13454
13455         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13456         Use <avxpermvecmode> on mask register.
13457         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13458
13459 2011-01-17  Olivier Hainque  <hainque@adacore.com>
13460             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13461             Eric Botcazou  <ebotcazou@adacore.com>
13462
13463         PR target/46655
13464         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13465         if <= USHRT_MAX in 32-bit mode.
13466
13467 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13468
13469         * doc/install.texi (Configuration, Specific): Wrap long
13470         lines in examples.  Allow line wrapping in long options
13471         and URLs where beneficial for PDF output.
13472
13473 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
13474
13475         * config/mips/mips.c (mips_classify_symbol): Don't return
13476         SYMBOL_PC_RELATIVE for nonlocal labels.
13477
13478 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
13479
13480         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13481
13482 2011-01-15  Jan Hubicka  <jh@suse.cz>
13483
13484         PR tree-optimization/47276
13485         * ipa.c (function_and_variable_visibility): Do not try to mark alias
13486         declarations as needed.
13487
13488 2011-01-15  Martin Jambor  <mjambor@suse.cz>
13489
13490         * common.opt (fdevirtualize): New flag.
13491         * doc/invoke.texi (Option Summary): Document it.
13492         * opts.c (default_options_table): Add devirtualize flag.
13493         * ipa-prop.c (detect_type_change): Return immediately if
13494         devirtualize flag is not set.
13495         (detect_type_change_ssa): Likewise.
13496         (compute_known_type_jump_func): Likewise.
13497         (ipa_analyze_virtual_call_uses): Likewise.
13498
13499 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13500
13501         PR tree-optimization/45934
13502         PR tree-optimization/46302
13503         * ipa-prop.c (type_change_info): New type.
13504         (stmt_may_be_vtbl_ptr_store): New function.
13505         (check_stmt_for_type_change): Likewise.
13506         (detect_type_change): Likewise.
13507         (detect_type_change_ssa): Likewise.
13508         (compute_complex_assign_jump_func): Check for dynamic type change.
13509         (compute_complex_ancestor_jump_func): Likewise.
13510         (compute_known_type_jump_func): Likewise.
13511         (compute_scalar_jump_functions): Likewise.
13512         (ipa_analyze_virtual_call_uses): Likewise.
13513         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13514
13515 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13516
13517         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13518         * config/i386/i386.opt (msse5): New Alias.
13519
13520 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13521
13522         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13523         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13524         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13525         * config/sparc/sparc.h (CC1_SPEC): Likewise.
13526
13527 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13528
13529         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13530         -mcpu options.
13531         * config/sparc/linux64.h (CC1_SPEC): Likewise.
13532         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13533         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13534         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13535         Likewise.
13536         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13537
13538 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13539
13540         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13541
13542 2011-01-14  Mike Stump  <mikestump@comcast.net>
13543
13544         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13545         * config/fr30/fr30.md: Likweise
13546         (movsi_push): Likewise.
13547         (movsi_pop): Likewise.
13548         (enter_func): Likewise.
13549         * config/moxie/moxie.md (movsi_push): Likewise.
13550         (movsi_pop): Likewise.
13551
13552 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13553
13554         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13555         %{no_archive} %{exact_version}.
13556         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13557         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13558         %{no_archive} %{exact_version}.
13559         * config/mips/openbsd.h (LINK_SPEC): Likewise.
13560         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13561         * config/mips/vxworks.h: Likewise.
13562
13563 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13564
13565         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13566
13567 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13568
13569         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13570         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13571
13572 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13573
13574         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13575         -nodefaultlib.
13576
13577 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13578
13579         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13580         for mcpu not cpu.
13581         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13582         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13583         not cpu.
13584         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13585         Don't handle -shlib.
13586
13587 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13588
13589         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13590         (CC1_SPEC): Don't handle -profile.
13591
13592 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13593
13594         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13595         * config/mips/mips.h (CC1_SPEC): Likewise.
13596
13597 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13598
13599         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13600         * config/mips/mips.h (CC1_SPEC): Likewise.
13601
13602 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13603
13604         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13605         * config/m32r/linux.h (LINK_SPEC): Likewise.
13606         * config/mips/linux.h (LINK_SPEC): Likewise.
13607         * config/mips/linux64.h (LINK_SPEC): Likewise.
13608         * config/sparc/linux.h (LINK_SPEC): Likewise.
13609         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13610         LINK_SPEC): Likewise.
13611         * config/xtensa/linux.h (LINK_SPEC): Likewise.
13612
13613 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13614
13615         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13616         %{version:-v}.
13617         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13618
13619 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13620
13621         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13622         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13623
13624 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
13625
13626         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13627
13628 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13629
13630         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13631         supports -Bstatic/-Bdynamic.
13632         * configure: Regenerate.
13633
13634 2011-01-14  Jan Hubicka  <jh@suse.cz>
13635             Jack Howarth  <howarth@bromo.med.uc.edu>
13636
13637         PR target/46037
13638         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13639         when checking debug_info_level. Test write_symbols instead of
13640         debug_hooks->var_location when setting flag_var_tracking_uninit.
13641
13642 2011-01-14  Richard Guenther  <rguenther@suse.de>
13643
13644         PR tree-optimization/47179
13645         * target.def (ref_may_alias_errno): New target hook.
13646         * targhooks.h (default_ref_may_alias_errno): Declare.
13647         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13648         (default_ref_may_alias_errno): New function.
13649         * target.h (struct ao_ref_s): Declare.
13650         * tree-ssa-alias.c: Include target.h.
13651         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13652         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13653         (targhooks.o): Likewise.
13654         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13655         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13656
13657 2011-01-14  Richard Guenther  <rguenther@suse.de>
13658
13659         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13660
13661 2011-01-14  Richard Guenther  <rguenther@suse.de>
13662
13663         PR tree-optimization/47280
13664         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13665         return CFG changes.
13666         (tree_ssa_forward_propagate_single_use_vars): Deal with
13667         CFG changes from associate_plusminus.
13668
13669 2011-01-14  Richard Guenther  <rguenther@suse.de>
13670
13671         PR middle-end/47281
13672         Revert
13673         2011-01-11  Richard Guenther  <rguenther@suse.de>
13674
13675         PR tree-optimization/46076
13676         * tree-ssa.c (useless_type_conversion_p): Conversions from
13677         unprototyped to empty argument list function types are useless.
13678
13679 2011-01-14  Richard Guenther  <rguenther@suse.de>
13680
13681         PR tree-optimization/47286
13682         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13683
13684 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13685
13686         PR middle-end/46823
13687         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13688
13689 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13690
13691         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13692         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13693         * config/xtensa/xtensa.c (xtensa_libcall_value,
13694         xtensa_function_value_regno_p): New functions.
13695         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13696
13697 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13698
13699         PR c++/47213
13700         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13701         PE specific hook.
13702         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13703         New function prototype.
13704         * config/i386/winnt.c (i386_pe_assemble_visibility):
13705         Warn only if attribute was specified by user.
13706
13707 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13708
13709         PR target/47251
13710         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13711         floating point.
13712         (floatunsdidf2_fcfidu): Ditto.
13713
13714 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13715
13716         * config/s390/s390.c (print_operand_address): Replace 'error' with
13717         'output_operand_lossage'.
13718         (print_operand): Likewise.
13719
13720 2011-01-13  Jeff Law  <law@redhat.com>
13721
13722         PR rtl-optimization/39077
13723         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13724         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13725         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13726         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13727         * gcse.c (prune_insertions_deletions): New function.
13728         (compute_pre_data): Use it.
13729
13730 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13731
13732         PR debug/PR46973
13733         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13734         static function.
13735         (prune_unused_types_mark): Use it.
13736
13737 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13738
13739         PR rtl-optimization/45352
13740         * sel-sched.c: Update copyright years.
13741         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13742         in the advancing loop when we have issued issue_rate insns.
13743
13744 2011-01-12  Richard Henderson  <rth@redhat.com>
13745
13746         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13747         (TARGET_MD_ASM_CLOBBERS): New.
13748
13749         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13750         (TARGET_DELEGITIMIZE_ADDRESS): New.
13751
13752         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13753         (clzsi2, *bsch): New patterns.
13754
13755         * config/mn10300/mn10300.md (INT): New mode iterator.
13756         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13757
13758         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13759         flag_split_wide_types.
13760
13761         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13762         (mn10300_trampoline_init): Rewrite without a template, an immediate
13763         load and a direct branch.
13764         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13765
13766 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13767
13768         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13769         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13770         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13771         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13772
13773 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13774
13775         PR debug/47209
13776         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13777         of type.
13778
13779 2011-01-12  Jan Hubicka  <jh@suse.cz>
13780
13781         PR driver/47244
13782         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13783         (PLUGIN_COND_CLOSE): New macro.
13784         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13785
13786 2011-01-12  Richard Guenther  <rguenther@suse.de>
13787
13788         PR lto/47259
13789         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13790         register variables in a MEM_REF.
13791
13792 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13793
13794         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13795         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13796         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13797         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13798         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13799         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13800         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13801         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13802         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13803         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13804         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13805         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13806         * config/gnu-user.h: New.  Copied from linux.h.
13807         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13808         GNU_USER_TARGET_STARTFILE_SPEC.
13809         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13810         GNU_USER_TARGET_ENDFILE_SPEC.
13811         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13812         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13813         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13814         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13815         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13816         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13817         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13818         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13819         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13820         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13821         * config/arm/linux-eabi.h (CC1_SPEC): Use
13822         GNU_USER_TARGET_CC1_SPEC.
13823         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13824         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13825         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13826         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13827         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13828         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13829         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13830         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13831
13832 2011-01-12  Richard Guenther  <rguenther@suse.de>
13833
13834         PR other/46946
13835         * doc/invoke.texi (ffast-math): Document it is turned on
13836         with -Ofast.
13837
13838 2011-01-12  Jan Hubicka  <jh@suse.cz>
13839
13840         PR tree-optimization/47233
13841         * opts.c (common_handle_option): Disable ipa-reference with profile
13842         feedback.
13843
13844 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13845
13846         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13847         error message.
13848
13849 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13850
13851         * c-parser.c (c_lex_one_token): Updated and reindented some
13852         comments.  No changes in code.
13853
13854 2011-01-11  Ian Lance Taylor  <iant@google.com>
13855
13856         * godump.c (go_output_var): Don't output the variable if there is
13857         already a type with the same name.
13858
13859 2011-01-11  Ian Lance Taylor  <iant@google.com>
13860
13861         * godump.c (go_format_type): Don't generate float80.
13862
13863 2011-01-11  Richard Henderson  <rth@redhat.com>
13864
13865         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13866         declaration.  Rewrite for both speed and size.
13867         (mn10300_address_cost_1): Remove.
13868         (mn10300_register_move_cost): New.
13869         (mn10300_memory_move_cost): New.
13870         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13871         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13872         extensions, shifts, BSWAP, CLZ.
13873         (mn10300_wide_const_load_uses_clr): Remove.
13874         (TARGET_REGISTER_MOVE_COST): New.
13875         (TARGET_MEMORY_MOVE_COST): New.
13876         * config/mn10300/mn10300-protos.h: Update.
13877         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13878
13879         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13880         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13881         * config/mn10300/mn10300-protos.h: Update.
13882         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13883         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13884         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13885         (*test_int_bitfield, *test_byte_bitfield): Remove.
13886         (*bit_test, *subreg_bit_test): Remove.
13887         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13888
13889         * config/mn10300/constraints.md ("c"): Rename from "A".
13890         ("A", "D"): New constraint letters.
13891         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13892         (fmssf4, fnmasf4, fnmssf4): Likewise.
13893
13894         * config/mn10300/mn10300.md (isa): New attribute.
13895         (enabled): New attribute.
13896
13897         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13898         (abssf2, negsf2): Define only for hardware fp.
13899         (sqrtsf2): Reformat.
13900         (addsf3, subsf3, mulsf3): Merge expander and insn.
13901
13902         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13903         (DEBUGGER_AUTO_OFFSET): Remove.
13904         (DEBUGGER_ARG_OFFSET): Remove.
13905
13906         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13907         Emit register stores with the same offsets as the hardware.
13908         (mn10300_store_multiple_operation): Don't check that the register
13909         save offsets are monotonic.
13910         * config/mn10300/mn10300-protos.h: Update.
13911
13912         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13913
13914         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13915         in terms of the value on the stack, not the MDR register.
13916
13917 2011-01-11  Jan Hubicka  <jh@suse.cz>
13918
13919         PR lto/45721
13920         PR lto/45375
13921         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13922         (symbol_alias_set_destroy, symbol_alias_set_contains,
13923         propagate_aliases_backward): Declare.
13924         * lto-streamer-out.c (struct sets): New sturcture.
13925         (trivally_defined_alias): New function.
13926         (output_alias_pair_p): Rewrite.
13927         (output_unreferenced_globals): Fix output of alias pairs.
13928         (produce_symtab): Likewise.
13929         * ipa.c (function_and_variable_visibility): Set weak alias destination
13930         as needed in lto.
13931         * varasm.c (symbol_alias_set_t): Remove.
13932         (symbol_alias_set_destroy): Export.
13933         (propagate_aliases_forward, propagate_aliases_backward): New functions
13934         based on ...
13935         (compute_visible_aliases): ... this one; remove.
13936         (trivially_visible_alias): New
13937         (trivially_defined_alias): New.
13938         (remove_unreachable_alias_pairs): Rewrite.
13939         (finish_aliases_1): Reorganize code checking if alias is defined.
13940         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13941         in LTO mode.
13942
13943 2011-01-11  Richard Guenther  <rguenther@suse.de>
13944
13945         PR tree-optimization/46076
13946         * tree-ssa.c (useless_type_conversion_p): Conversions from
13947         unprototyped to empty argument list function types are useless.
13948
13949 2011-01-11  Richard Guenther  <rguenther@suse.de>
13950
13951         PR middle-end/45235
13952         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13953         volatile MEMs as MEM_READONLY_P.
13954
13955 2011-01-11  Richard Guenther  <rguenther@suse.de>
13956
13957         PR tree-optimization/47239
13958         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13959
13960 2011-01-11  Jeff Law  <law@redhat.com>
13961
13962         PR tree-optimization/47086
13963         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13964         IVs from statements that might throw.
13965
13966 2011-01-10  Jan Hubicka  <jh@suse.cz>
13967
13968         PR lto/45375
13969         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13970
13971 2011-01-10  Jan Hubicka  <jh@suse.cz>
13972
13973         PR lto/45375
13974         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13975         when correcting profile.
13976
13977 2011-01-10  Jan Hubicka  <jh@suse.cz>
13978
13979         PR lto/46083
13980         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13981         DECL_FINI_PRIORITY.
13982         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13983         Restore DECL_FINI_PRIORITY.
13984
13985 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13986
13987         * doc/gimple.texi: Fix quoting of multi-word return values in
13988         @deftypefn statements.  Ensure presence of return value.  Wrap
13989         overlong @deftypefn lines.
13990         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13991         descriptions of removed functions.
13992         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13993         of multi-word return value in @deftypefn statement.
13994
13995 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13996
13997         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13998         (Conditional Expressions, Logical Operators)
13999         (Statement and operand traversals): Do not indent smallexample
14000         code.  Fix duplicate function argument in example.
14001
14002 2011-01-10  Jeff Law  <law@redhat.com>
14003
14004         PR tree-optimization/47141
14005         * ipa-split.c (split_function): Handle case where we are
14006         returning a value and the return block has a virtual operand phi.
14007
14008 2011-01-10  Jan Hubicka  <jh@suse.cz>
14009
14010         PR tree-optimization/47234
14011         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14012         (pass_feedback_split_functions): Declare.
14013         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14014         tree-profile.
14015         * ipa-split.c (gate_split_functions): Update comments; disable
14016         split-functions for profile_arc_flag and branch_probabilities.
14017         (gate_feedback_split_functions): New function.
14018         (execute_feedback_split_functions): New function.
14019         (pass_feedback_split_functions): New global var.
14020
14021 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14022
14023         PR lto/46760
14024         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14025         calling gimple_call_set_cannot_inline.
14026
14027 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14028
14029         * config/darwin-sections.def: Remove unused section.
14030
14031 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14032
14033         PR c++/47218
14034         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14035
14036 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14037
14038         PR objc/47232
14039         * c-parser.c (c_parser_declaration_or_fndef): Improved
14040         error message.
14041
14042 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14043
14044         * config/i386/winnt.c (i386_pe_start_function): Make sure
14045         to switch back to function's section.
14046
14047 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14048
14049         PR gcc/46902
14050         PR testsuite/46912
14051         * plugin.c: Move include of dlfcn.h from here...
14052         * system.h: ... to here.
14053
14054 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14055
14056         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14057         file name.
14058         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14059         two extra empty pages in PDF output.
14060
14061 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14062
14063         PR objc/47078
14064         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14065         for error recovery purposes behave as if it was not specified so
14066         that the default type is usd.
14067
14068 2011-01-07  Jan Hubicka  <jh@suse.cz>
14069
14070         PR tree-optmization/46469
14071         * ipa.c (function_and_variable_visibility): Clear needed flags on
14072         nodes with external decls; handle weakrefs merging correctly.
14073
14074 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14075
14076         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14077         not false.
14078
14079 2011-01-07  Jan Hubicka  <jh@suse.cz>
14080
14081         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14082         and no longer claim that gold is required for linker plugin.
14083         * configure: Regenerate.
14084         * gcc.c (PLUGIN_COND): New macro.
14085         (LINK_COMMAND_SPEC): Use it.
14086         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14087         * config.in (HAVE_LTO_PLUGIN): New.
14088         * configure.ac (--with-lto-plugin): New parameter; autodetect
14089         HAVE_LTO_PLUGIN.
14090
14091 2011-01-07  Jan Hubicka  <jh@suse.cz>
14092
14093         PR tree-optimization/46367
14094         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14095         when we can update original.
14096         (cgraph_mark_inline_edge): Sanity check.
14097         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14098
14099 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14100
14101         * config/spu/spu.h (ASM_COMMENT_START): Define.
14102
14103 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14104
14105         PR driver/42445
14106         * gcc.c (%>S): New.
14107         (SWITCH_KEEP_FOR_GCC): Likewise.
14108         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14109         (do_spec_1): Handle "%>".
14110
14111         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14112
14113 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14114
14115         PR target/47201
14116         * config/i386/i386.c (ix86_delegitimize_address): If
14117         simplify_gen_subreg fails, return orig_x.
14118
14119         PR bootstrap/47187
14120         * value-prof.c (gimple_stringop_fixed_value): Handle
14121         lhs of the call properly.
14122
14123 2011-01-07  Jan Hubicka  <jh@suse.cz>
14124
14125         PR lto/45375
14126         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14127
14128 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14129
14130         * target.def (function_switched_text_sections): New hook.
14131         * doc/tm.texi: Regenerated.
14132         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14133         * final.c (default_function_switched_text_sections): New.
14134         (final_scan_insn): Call function_switched_text_sections when a
14135         mid-function section change occurs.
14136         * output.h (default_function_switched_text_sections): Declare.
14137         * config/darwin-protos.h (darwin_function_switched_text_sections):
14138         Likewise.
14139         * config/darwin.c (darwin_function_switched_text_sections): New.
14140         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14141
14142 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14143
14144         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14145         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14146         the secondary code fragment when outputting for DWARF == 2.
14147
14148 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14149
14150         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14151         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14152         Remove.
14153         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14154         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14155
14156 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14157
14158         PR debug/46704
14159         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14160         when it is not empty.
14161
14162 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14163
14164         Bobcat Enablement
14165         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14166         (case ${target}): Add btver1.
14167         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14168         -march=native recognize btver1 processors.
14169         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14170         btver1 def_and_undef
14171         * config/i386/i386.c (struct processor_costs btver1_cost): New
14172         btver1 cost table.
14173         (m_BTVER1): New definition.
14174         (m_AMD_MULTIPLE): Includes m_BTVER1.
14175         (initial_ix86_tune_features): Add btver1 tune.
14176         (processor_target_table): Add btver1 entry.
14177         (static const char *const cpu_names): Add btver1 entry.
14178         (software_prefetching_beneficial_p): Add btver1.
14179         (ix86_option_override_internal): Add btver1 instruction sets.
14180         (ix86_issue_rate): Add btver1.
14181         (ix86_adjust_cost): Add btver1.
14182         * config/i386/i386.h (TARGET_BTVER1): New definition.
14183         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14184         (enum processor_type): Add PROCESSOR_BTVER1.
14185         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14186
14187 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14188
14189         PR target/43309
14190         * config/i386/i386.c (legitimize_tls_address)
14191         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14192         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14193         (tls_initial_exec_64_sun): New pattern.
14194
14195 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14196
14197         * doc/invoke.texi (Overall Options): Improve wording and markup
14198         of the description of -wrapper.
14199
14200 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14201
14202         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14203         rdynamic, threads): New Driver options.
14204
14205 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14206
14207         PR target/38118
14208         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14209         if coming from .tdata.
14210         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14211
14212 2011-01-06  Jan Hubicka  <jh@suse.cz>
14213
14214         PR lto/47188
14215         * collect2.c (main): Do not enable LTOmode when plugin is active.
14216
14217 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14218
14219         PR other/45915
14220         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14221         --version output if supported.
14222         * configure: Regenerate.
14223
14224 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14225
14226         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14227         Driver options.
14228
14229 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14230
14231         PR c/47150
14232         * c-convert.c (convert): When converting a complex expression
14233         other than COMPLEX_EXPR to a different complex type, ensure
14234         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14235         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14236         when converting COMPLEX_TYPE.
14237
14238 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14239
14240         PR tree-optimization/47139
14241         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14242         only the last reduction value is used outside the loop.  Update
14243         documentation.
14244
14245 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14246
14247         * config/rtems.opt: New.
14248         * config.gcc (*-*-rtems*): Use rtems.opt.
14249
14250 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14251
14252         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14253         processors do not support 3DNow instructions.
14254
14255 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14256
14257         * config/spu/spu.c (spu_option_override): Set parameter
14258         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14259
14260 2011-01-05  Jan Hubicka  <jh@suse.cz>
14261
14262         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14263         at the command line.
14264
14265 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14266
14267         PR lto/47162
14268         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14269         deltas on streamed outgoing edges.
14270         (output_node_opt_summary): Output info for outgoing edges only when
14271         the node is in new parameter set.
14272         (output_cgraph_opt_summary): New parameter set, passed to the two
14273         aforementioned functions.  Update its forward declaration and its
14274         callee too.
14275
14276 2011-01-05  Tom Tromey  <tromey@redhat.com>
14277
14278         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14279         operator to c_finish_omp_atomic.
14280         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14281         (build_unary_op): Update.
14282         (build_modify_expr): Update.
14283         (build_asm_expr): Update.
14284
14285 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14286
14287         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14288         newly inserted insns.
14289         (pad_bb): Likewise.
14290         (spu_emit_branch_hint): Likewise.
14291         (insert_hbrp_for_ilb_runout): Likewise.
14292         (spu_machine_dependent_reorg): Call df_finish_pass after
14293         schedule_insns returns.
14294
14295 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14296
14297         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14298
14299 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14300
14301         PR tree-optimization/47005
14302         * tree-sra.c (struct access): Add 'non_addressable' bit.
14303         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14304         (decide_one_param_reduction): Return 0 if the parameter is passed by
14305         reference and one of the accesses in the group is non_addressable.
14306
14307 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14308
14309         PR tree-optimization/47056
14310         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14311         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
14312         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
14313
14314 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14315
14316         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14317         initializer.  Skip view conversions from aggregate types.
14318
14319 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
14320
14321         PR bootstrap/47055
14322         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14323
14324 2011-01-04  Philipp Thomas  <pth@suse.de>
14325
14326         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14327         obvious typo.
14328
14329 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14330
14331         * function.c (thread_prologue_and_epilogue_insns): Do not crash
14332         on empty epilogue sequences.
14333
14334 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
14335
14336         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14337         non-static): New Driver options.
14338
14339 2011-01-04  Jie Zhang  <jie@codesourcery.com>
14340
14341         PR driver/47137
14342         * gcc.c (default_compilers[]): Set combinable field to 0
14343         for all assembly languages.
14344
14345 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
14346
14347         * config/mips/loongson3a.md: New file.
14348         * config/mips/mips.md: Include loongson3a.md.
14349         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14350         TUNE_LOONGSON_3A.
14351
14352 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
14353
14354         PR middle-end/47017
14355         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14356         instead of convert_memory_address_addr_space on the base expression.
14357
14358 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14359
14360         * config/spu/spu.c (spu_option_override): Update error text
14361         for bad -march= / -mtune= values.
14362
14363 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14364
14365         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14366         if branch-hint optimization will be performed.
14367
14368 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14369
14370         PR tree-optimization/47148
14371         * ipa-split.c (split_function): Convert arguments to
14372         DECL_ARG_TYPE if possible.
14373
14374         PR tree-optimization/47155
14375         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14376         when computing uns.
14377
14378         PR rtl-optimization/47157
14379         * combine.c (try_combine): If undobuf.other_insn becomes
14380         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14381         and set *new_direct_jump_p too.
14382
14383 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14384
14385         PR tree-optimization/47021
14386         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14387
14388 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
14389
14390         * gcc.c (process_command): Update copyright notice dates.
14391         * gcov.c (print_version): Likewise.
14392         * gcov-dump.c (print_version): Likewise.
14393         * mips-tfile.c (main): Likewise.
14394         * mips-tdump.c (main): Likewise.
14395
14396 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14397
14398         PR tree-optimization/46801
14399         * tree-sra.c (type_internals_preclude_sra_p): Check whether
14400         aggregate fields start at byte boundary instead of the bit-field flag.
14401
14402 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
14403
14404         PR driver/47137
14405         * gcc.c (main): Revert revision 168407.
14406
14407 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14408
14409         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14410
14411 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14412
14413         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14414         vector optab to expand vector/scalar shift, update gimple to vector.
14415
14416 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14417
14418         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14419         a thunk.
14420
14421 2011-01-03  Martin Jambor  <mjambor@suse.cz>
14422
14423         PR tree-optimization/46984
14424         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14425         HOST_WIDE_INT.
14426         (cgraph_create_indirect_edge): Fixed line length.
14427         (cgraph_indirect_call_info): Declare.
14428         (cgraph_make_edge_direct) Update declaration.
14429         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14430         (cgraph_create_indirect_edge): Use it.
14431         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
14432         callees.
14433         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14434         the new thunk_delta representation.
14435         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14436         HOST_WIDE_INT.
14437         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14438         (ipa_read_indirect_edge_info): Likewise.
14439         * lto-cgraph.c (output_edge_opt_summary): New function.
14440         (output_node_opt_summary): Call it on all outgoing edges.
14441         (input_edge_opt_summary): New function.
14442         (input_node_opt_summary): Call it on all outgoing edges.
14443
14444 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
14445
14446         PR driver/47137
14447         * gcc.c (main): Don't check have_o when settting combine_inputs.
14448
14449 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
14450
14451         * regrename.c: Add general comment describing the pass.
14452         (struct du_head): Remove 'length' field.
14453         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14454         (regrename_optimize): Do not sort chains.  Rework comments, add others.
14455         Force renaming to the preferred class (if any) in the first pass and do
14456         not consider registers that belong to it in the second pass.
14457         (create_new_chain): Do not set 'length' field.
14458         (scan_rtx_reg): Likewise.
14459
14460 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
14461
14462         PR tree-optimization/47140
14463         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14464         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14465         to bit_value_binop.
14466
14467         PR rtl-optimization/47028
14468         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14469         parm_birth_insn instead of at the beginning of first bb.
14470
14471 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
14472
14473         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14474         Remove the word "see" before "@pxref".
14475         * doc/rtl.texi: Remove the word "see" before "@pxref".
14476
14477 2011-01-01  Jan Hubicka  <jh@suse.cz>
14478
14479         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14480         memory.
14481
14482 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
14483
14484         PR target/38662
14485         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14486
14487 \f
14488 Copyright (C) 2011 Free Software Foundation, Inc.
14489
14490 Copying and distribution of this file, with or without modification,
14491 are permitted in any medium without royalty provided the copyright
14492 notice and this notice are preserved.